/* The Arcade (public/js/arcade): a screen over the office — the menu, the tables, the bear select, the game's HUD */
#arcade { --text: #f1ead8; --muted: #b3a88f; --accent: #f0b429; --panel: #241f2c; --panel-2: #2e2838; --line: #4a3f58;
  position: fixed; inset: 0; z-index: 900; background: #0c0a12; color: var(--text); font-family: var(--font); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
#arc-view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#arc-ui, #arc-fly { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
#arc-fly { z-index: 4; }
#arc-ui > * { pointer-events: auto; }
#arcade button { font-family: var(--font); font-size: 19px; color: var(--text); background: var(--panel-2); border: 2px solid var(--line); padding: 6px 14px; cursor: pointer; }
#arcade button:hover { border-color: var(--accent); }
#arcade .muted { color: var(--muted); }

.arc-panel { background: color-mix(in srgb, var(--panel) 92%, transparent); border: 3px solid #000; box-shadow: 0 0 0 2px var(--line), 0 12px 40px #0008; padding: 16px; }
.arc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.arc-head h2 { margin: 0; flex: 1; font-size: 32px; font-weight: 400; color: var(--accent); letter-spacing: 1px; }
#arcade .arc-x, #arcade .arc-back { padding: 4px 12px; }

.arc-menu { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, calc(100% - 32px)); }
.arc-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
#arcade .arc-game { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px; text-align: center; background: var(--panel-2); }
#arcade .arc-game b { font-size: 26px; font-weight: 400; color: var(--accent); }
#arcade .arc-game small { color: var(--muted); font-size: 16px; }
#arcade .arc-game.soon { opacity: 0.45; cursor: default; }
.arc-emoji { font-size: 42px; line-height: 1; }
.arc-note { color: var(--muted); font-size: 16px; text-align: center; margin: 12px 0 0; }

.arc-tables { position: absolute; inset: 16px; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; overflow: auto; }
.arc-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; flex: 1; min-height: 0; }
.arc-tlist { display: flex; flex-direction: column; gap: 8px; }
#arcade .arc-table { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; }
#arcade .arc-table b { display: block; font-size: 24px; font-weight: 400; }
#arcade .arc-table small { display: block; color: var(--muted); font-size: 16px; }
#arcade .arc-table em { display: block; font-style: normal; color: var(--accent); font-size: 16px; }
#arcade .arc-table.on { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.arc-table.t-honey .arc-emoji { filter: drop-shadow(0 0 6px #ffcf3a); }
.arc-table.t-market .arc-emoji { filter: drop-shadow(0 0 6px #26e07f); }
.arc-table.t-haunted .arc-emoji { filter: drop-shadow(0 0 6px #b06bff); }
.arc-table.t-street .arc-emoji { filter: drop-shadow(0 0 6px #ff3d9a); }
.arc-table.t-winter .arc-emoji { filter: drop-shadow(0 0 6px #9ff0ff); }
.arc-board { background: #0006; border: 2px solid var(--line); padding: 10px; min-height: 200px; }
.arc-tabs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
#arcade .arc-tabs button { padding: 3px 10px; font-size: 17px; }
#arcade .arc-tabs button.on { border-color: var(--accent); color: var(--accent); }
.arc-top { list-style: none; margin: 0; padding: 0; }
.arc-top li { display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: 'rk nm sc' 'rk br sc'; column-gap: 8px; padding: 5px 4px; border-bottom: 1px solid #ffffff14; }
.arc-top li.me { background: #f0b42922; }
.arc-top .rk { grid-area: rk; font-size: 26px; color: var(--muted); text-align: center; }
.arc-top li:nth-child(1) .rk { color: #ffd23f; } .arc-top li:nth-child(2) .rk { color: #dfe6ee; } .arc-top li:nth-child(3) .rk { color: #e0954f; }
.arc-top .nm { grid-area: nm; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-top .br { grid-area: br; font-size: 15px; color: var(--muted); }
.arc-top .sc { grid-area: sc; font-size: 22px; color: var(--accent); align-self: center; font-variant-numeric: tabular-nums; }
.arc-empty { padding: 20px 0; text-align: center; }
.arc-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
#arcade .arc-go { background: var(--accent); color: #1b1300; border-color: #000; font-size: 24px; padding: 8px 26px; }

.arc-bears { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; display: flex; flex-direction: column; align-items: center; background: linear-gradient(transparent, #0c0a12ee 30%); }
.arc-bears .arc-head { position: fixed; top: 16px; left: 16px; right: 16px; }
.arc-pick { display: flex; align-items: center; gap: 14px; width: min(640px, 100%); }
#arcade .arc-arrow { font-size: 34px; padding: 4px 16px; }
#arc-bear { flex: 1; text-align: center; }
#arc-bear h3 { margin: 0; font-size: 40px; font-weight: 400; color: var(--accent); }
.arc-skill b { font-size: 24px; font-weight: 400; color: #7fe3ff; }
.arc-skill p { margin: 4px 0; font-size: 19px; }
.arc-skill small { color: var(--muted); font-size: 15px; }
.arc-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
#arcade .arc-chips button { padding: 2px 10px; font-size: 17px; }
#arcade .arc-chips button.on { border-color: var(--accent); color: var(--accent); }

/* the game's HUD */
.arc-hud { position: absolute; inset: 0; pointer-events: none; }
.arc-hud > *, .arc-hud button { pointer-events: auto; }
.arc-top-bar { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; align-items: flex-start; gap: 10px; pointer-events: none; }
.arc-top-bar > * { pointer-events: auto; }
#arcade .arc-icon { padding: 2px 10px; font-size: 22px; background: #0008; }
/* (the score on the left: in the middle it covered the backbox's panel with the table's name) */
.arc-score { flex: 1; text-align: left; padding-left: 6px; text-shadow: 0 2px 0 #000, 0 0 12px #000; pointer-events: none; }
.arc-score b { display: block; font-size: 48px; font-weight: 400; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.arc-score small { color: var(--accent); font-size: 18px; }
.arc-balls { background: #0008; padding: 4px 10px; font-size: 18px; white-space: nowrap; }
.arc-modes { position: absolute; top: 74px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; pointer-events: none; }
.arc-mode { background: #000a; border: 2px solid var(--accent); color: var(--accent); padding: 1px 10px; font-size: 18px; animation: arc-pulse 1s ease-in-out infinite; }
.arc-mode.save { border-color: #52c47a; color: #52c47a; animation: none; }
.arc-mode.hurry { border-color: #ff6a2a; color: #ffb38a; }
.arc-score .arc-bonus { display: block; color: #7fe3ff; font-size: 16px; }
.arc-banner.tilt { font-size: 56px; color: #ff3b3b; text-shadow: 0 4px 0 #000, 0 0 30px #ff0000; }
.arc-chains { position: absolute; left: 10px; top: 110px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.arc-chains span { background: #0009; padding: 1px 8px; font-size: 16px; color: var(--muted); width: fit-content; }
.arc-chains span.lit { color: #7fe3ff; }
#arc-banner { position: absolute; left: 0; right: 0; top: 34%; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.arc-banner { font-size: 40px; color: #fff; text-shadow: 0 3px 0 #000, 0 0 18px var(--accent); animation: arc-pop 0.5s cubic-bezier(.2,1.6,.4,1) both; text-align: center; padding: 0 12px; }
.arc-banner.small { font-size: 26px; text-shadow: 0 2px 0 #000; }
.arc-banner.mode, .arc-banner.skill { color: #7fe3ff; }
.arc-banner.jp { font-size: 52px; color: #ffd23f; }
.arc-banner.super { font-size: 62px; color: #ff6ad5; text-shadow: 0 4px 0 #000, 0 0 30px #ff6ad5; }
.arc-banner.million { font-size: 58px; color: #ffd23f; text-shadow: 0 4px 0 #000, 0 0 40px #ffb300; }
.arc-banner.billion { font-size: 64px; background: linear-gradient(90deg, #ffd23f, #fff6c8, #ffb300, #ffd23f); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 0 #000) drop-shadow(0 0 24px #ffb300); animation: arc-pop 0.6s both, arc-shine 1.2s linear infinite; }
.arc-bottom { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.arc-skillbar { background: #000a; padding: 3px 10px; width: min(360px, 70%); font-size: 16px; }
.arc-skillbar i, .arc-plunger i { display: block; height: 8px; background: #ffffff22; margin-top: 3px; }
.arc-skillbar u { display: block; height: 100%; width: 0; background: #7fe3ff; text-decoration: none; transition: width 0.15s; }
.arc-skillbar u.full { background: #ffd23f; box-shadow: 0 0 10px #ffd23f; animation: arc-pulse 0.6s infinite; }
.arc-plunger { background: #000a; padding: 3px 10px; width: min(300px, 60%); font-size: 14px; color: var(--muted); }
.arc-plunger u { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #52c47a 0 60%, #ffd23f 60% 70%, #e5604f 70%); text-decoration: none; }
.arc-pts { position: absolute; transform: translate(-50%, -50%); font-family: var(--font); font-size: 22px; color: #fff; text-shadow: 0 2px 0 #000; animation: arc-fly 1.1s ease-out forwards; white-space: nowrap; }
.arc-pts.k-hit { font-size: 18px; color: #7fe3ff; }
.arc-pts.k-shot { color: #ffd23f; }
.arc-pts.k-flat { color: #9dff8a; }
.arc-pts.big { font-size: 30px; color: #ff9a3d; text-shadow: 0 2px 0 #000, 0 0 12px #ff9a3d; }
.arc-pts.jp { font-size: 38px; color: #ffd23f; text-shadow: 0 3px 0 #000, 0 0 18px #ffb300; }
/* the guide: over everything, scrolled inside */
.arc-help { position: absolute; inset: 0; background: #000b; display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow: auto; z-index: 5; }
.arc-help .arc-panel { width: min(760px, 100%); font-size: 17px; line-height: 1.45; }
.arc-help h3 { margin: 14px 0 6px; font-weight: 400; font-size: 24px; color: var(--accent); }
.arc-help p, .arc-help ul { margin: 0 0 6px; }
.arc-help ul { padding-left: 20px; }
.arc-help li { margin: 3px 0; }
.arc-keys { border-collapse: collapse; width: 100%; margin-bottom: 6px; }
.arc-keys th, .arc-keys td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.arc-keys th { color: var(--muted); font-weight: 400; }
.arc-help kbd { display: inline-block; min-width: 1.4em; padding: 0 5px; border: 2px solid var(--line); border-bottom-width: 3px; background: var(--panel-2); text-align: center; font-family: inherit; }
.arc-help .arc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
#arcade .arc-help .arc-tabs button { font-size: 16px; padding: 4px 10px; }
#arcade .arc-help .arc-tabs button.on { border-color: var(--accent); color: var(--accent); }
#arcade .arc-head button { white-space: nowrap; }
@media (max-width: 560px) { .arc-head .arc-hl { display: none; } .arc-help { padding: 8px; } .arc-help .arc-panel { font-size: 15px; } .arc-keys th, .arc-keys td { padding: 3px 4px; } }

.arc-pause, .arc-over { position: absolute; inset: 0; background: #000a; display: flex; align-items: center; justify-content: center; }
.arc-pause[hidden], .arc-over[hidden] { display: none; }
.arc-pause .arc-panel { display: flex; flex-direction: column; gap: 10px; min-width: 260px; text-align: center; }
.arc-pause h2, .arc-over h2 { margin: 0; font-weight: 400; font-size: 36px; color: var(--accent); }
.arc-over .arc-panel { width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; text-align: center; }
.arc-final { font-size: 64px; color: #fff; text-shadow: 0 3px 0 #000; }
#arc-result { margin: 4px 0 10px; font-size: 19px; }
.arc-over .arc-board { text-align: left; }
.arc-touch { position: absolute; inset: 60px 0 0 0; display: grid; grid-template-columns: 1fr 1fr; }
.arc-touch div { -webkit-tap-highlight-color: transparent; }
#arcade .arc-tbtn { position: absolute; bottom: 70px; width: 64px; height: 64px; border-radius: 50%; font-size: 28px; padding: 0; background: #000a; z-index: 2; }
#arcade .arc-tbtn.launch { right: 12px; }
#arcade .arc-tbtn.skill { left: 12px; }
#arcade .arc-tbtn.nudge { left: 50%; transform: translateX(-50%); bottom: 118px; width: 52px; height: 52px; font-size: 22px; }
#arcade .arc-tbtn.skill.full { border-color: #ffd23f; box-shadow: 0 0 14px #ffd23f; }

@keyframes arc-pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes arc-fly { 0% { opacity: 0; margin-top: 0; transform: translate(-50%, -50%) scale(0.4); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } 30% { transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; margin-top: -70px; transform: translate(-50%, -50%) scale(0.9); } }
@keyframes arc-pulse { 50% { opacity: 0.6; } }
@keyframes arc-shine { to { background-position: 300% 0; } }

@media (max-width: 760px) {
  .arc-cols { grid-template-columns: 1fr; }
  .arc-tables { inset: 8px; }
  .arc-head h2 { font-size: 26px; }
  .arc-score b { font-size: 36px; }
  .arc-banner { font-size: 30px; } .arc-banner.jp { font-size: 38px; } .arc-banner.super, .arc-banner.million, .arc-banner.billion { font-size: 40px; }
  .arc-chains { top: 100px; }
  .arc-chains span { font-size: 14px; }
  .arc-balls { font-size: 15px; }
  #arc-bear h3 { font-size: 32px; }
  .arc-skill p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .arc-banner, .arc-pts, .arc-mode { animation: none; } }

/* Bear Den Bistro (31/10): the game over the office, its menu, top bar, tickets and the tags over its customers and tables */
#bistro { position: fixed; inset: 0; z-index: 9000; background: #f3e7d3; color: #2a1d12; font-family: Nunito, system-ui, sans-serif; }
#bistro canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#bi-tags { position: absolute; inset: 0; pointer-events: none; }
#bi-tags > * { pointer-events: auto; }
#bi-ui { position: absolute; inset: 0; pointer-events: none; }
#bi-ui > * { pointer-events: auto; }
/* (the help strip is read, never tapped: it sat over the three machines in a phone's landscape view and caught their taps — UI review 65 R19) */
#bi-ui > .bi-help { pointer-events: none; }
.bi-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: #fffaf2; border-radius: 16px; box-shadow: 0 16px 50px rgba(60, 35, 10, 0.3); padding: 18px 20px; }
.bi-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* (100vh is the toolbar-hidden height on a phone: the ✕ went off the top; dvh, and the head stays in view as the menu scrolls — UI review 65 R21) */
.bi-panel > .bi-head { position: sticky; top: -18px; z-index: 1; background: #fffaf2; margin: -18px -20px 0; padding: 18px 20px 8px; }
.bi-head h2 { margin: 0; font-size: 1.25em; }
.bi-x { border: 0; background: #f0e3cf; border-radius: 10px; width: 34px; height: 34px; font-size: 16px; cursor: pointer; }
.bi-btn { display: inline-block; border: 1px solid #d8c4a4; background: #fff; border-radius: 10px; padding: 7px 12px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; color: inherit; }
.bi-btn.on { background: #e8a33a; border-color: #e8a33a; color: #fff; }
.bi-btn:disabled { opacity: 0.45; cursor: default; }
.bi-muted { color: #8a7560; font-size: 0.9em; }
.bi-wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; font-size: 1.05em; }
.bi-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bi-level { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; border: 1px solid #e3d2b6; background: #fff; border-radius: 12px; padding: 9px 10px; font: inherit; cursor: pointer; }
.bi-level:hover:not(:disabled) { border-color: #e8a33a; }
.bi-level.locked { opacity: 0.5; cursor: default; }
.bi-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.bi-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.bi-top { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; gap: 14px; align-items: center; background: #fffaf2; border-radius: 12px; padding: 8px 12px; box-shadow: 0 6px 20px rgba(60, 35, 10, 0.2); white-space: nowrap; max-width: calc(100vw - 24px); overflow-x: auto; }
.bi-help { position: absolute; left: 50%; top: calc(var(--bi-top-b, 52px) + 10px); transform: translateX(-50%); background: rgba(255, 250, 242, 0.85); border-radius: 10px; padding: 4px 10px; font-size: 0.85em; color: #6b5640; max-width: calc(100vw - 24px); text-align: center; }
.bi-tickets { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; overflow-x: auto; padding: 4px; }
.bi-ticket { position: relative; flex: none; display: flex; flex-direction: column; align-items: flex-start; min-width: 170px; border: 1px solid #e3d2b6; background: #fffaf2; border-radius: 12px; padding: 8px 10px 12px; font: inherit; cursor: pointer; text-align: left; box-shadow: 0 4px 14px rgba(60, 35, 10, 0.15); }
.bi-ticket.cooking { border-color: #e8a33a; }
.bi-ticket.ready { border-color: #34c26b; }
.bi-ticket i { position: absolute; left: 0; bottom: 0; height: 4px; background: #e8a33a; border-radius: 0 0 0 12px; }
.bi-ticket.ready i { background: #34c26b; }
.bi-tag { position: absolute; transform: translate(-50%, -100%); border: 2px solid #fff; background: #fffaf2; border-radius: 12px; padding: 3px 8px 6px; font: inherit; font-size: 15px; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); white-space: nowrap; }
.bi-tag i { position: absolute; left: 6px; right: 6px; bottom: 2px; height: 3px; border-radius: 2px; }
.bi-tag.sel { border-color: #e8a33a; }
.bi-tag.ready { border-color: #34c26b; animation: bi-pulse 0.9s ease-in-out infinite alternate; }
.bi-tag.vip { background: #fff3c4; }
@keyframes bi-pulse { to { transform: translate(-50%, -110%); } }
.bi-ttag { position: absolute; transform: translate(-50%, -50%); border: 2px solid #e8a33a; background: #fff; border-radius: 10px; padding: 4px 9px; font: inherit; font-weight: 800; cursor: pointer; }
.bi-float { position: absolute; transform: translate(-50%, -100%); font-weight: 800; color: #2a7a3f; pointer-events: none; animation: bi-up 1.4s ease-out forwards; white-space: nowrap; }
@keyframes bi-up { to { transform: translate(-50%, -220%); opacity: 0; } }
.bi-end { text-align: center; }
.bi-end .bi-row { justify-content: center; }
@media (max-width: 640px) { .bi-cols { grid-template-columns: 1fr; } .bi-ticket { min-width: 140px; } }
/* the Bistro's kitchen tags (31/10): over each machine its icon, the orders waiting for it and its progress; a dish on the
   pass; a dirty table — shown, never tapped (the things themselves are) */
.bi-stag { position: absolute; transform: translate(-50%, -100%); background: #fffaf2; border: 2px solid #e3d2b6; border-radius: 12px; padding: 3px 9px 7px; font-weight: 800; font-size: 15px; pointer-events: none; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18); }
.bi-stag i { position: absolute; left: 6px; bottom: 2px; height: 4px; border-radius: 2px; background: #e8a33a; }
.bi-stag.want { border-color: #e8a33a; animation: bi-pulse 0.9s ease-in-out infinite alternate; }
.bi-stag.busy { border-color: #e8a33a; }
.bi-stag.dish { border-color: #34c26b; }
.bi-stag.dirty { border-color: #b5523a; }
#bi-tags .bi-tag, #bi-tags .bi-stag { pointer-events: none; } /* (the machines' tags too: `#bi-tags > *` outranked .bi-stag's none and a tap on a tag missed its machine — review 65 R19) */
div.bi-ticket { cursor: default; }
/* the Bistro's two floors in its menu */
.bi-floors { display: flex; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.bi-floor { flex: 1 1 220px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid #e3d2b6; background: #fff; border-radius: 12px; padding: 9px 12px; font: inherit; font-weight: 800; cursor: pointer; text-align: left; }
.bi-floor small { font-weight: 600; color: #8a7560; }
.bi-floor.on { border-color: #e8a33a; background: #fff3dc; box-shadow: inset 0 0 0 1px #e8a33a; }
/* the VIP room's bookings, a VIP's words, Limitless and its week's board */
.bi-books { position: absolute; right: 12px; top: 96px; display: flex; flex-direction: column; gap: 6px; max-width: min(320px, calc(100vw - 24px)); }
.bi-book { background: #fff3c4; border: 2px solid #c9a24a; border-radius: 12px; padding: 6px 10px; font-size: 0.9em; box-shadow: 0 4px 14px rgba(60, 35, 10, 0.15); }
.bi-book.warn { border-color: #e74c3c; animation: bi-shake 1.2s ease-in-out infinite; }
.bi-book.done, .bi-book.missed { opacity: 0.6; }
@keyframes bi-shake { 50% { transform: translateX(-3px); } }
.bi-tag.say { background: #fff3c4; border-color: #c9a24a; white-space: normal; max-width: 240px; font-size: 13px; }
.bi-ticket.vip { background: #fff3c4; border-color: #c9a24a; }
.bi-limitless { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; padding: 10px 12px; border: 1px solid #e3d2b6; border-radius: 12px; background: #fffdf8; }
.bi-board h4 { margin: 0 0 6px; }
.bi-board ol { margin: 0; padding: 0; list-style: none; }
.bi-board li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 6px; border-radius: 8px; }
.bi-board li.me { background: #fff3dc; font-weight: 800; }
.bi-hook input { flex: 1; min-width: 0; border: 1px solid #d8c4a4; border-radius: 10px; padding: 7px 10px; font: inherit; }
@media (max-width: 640px) { .bi-limitless { grid-template-columns: 1fr; } }
/* a phone (UI review 65 R45): the top bar wraps, its ✕ first, the whole width; the VIP bookings above the tickets strip
   (about 80 px), clear of the help and the room's middle; the help fades after 8 s where the screen is short */
@media (max-width: 640px), (max-height: 500px) {
  .bi-top { left: 12px; right: 12px; transform: none; width: fit-content; max-width: none; margin: 0 auto; white-space: normal; flex-wrap: wrap; justify-content: center; row-gap: 4px; column-gap: 10px; }
  .bi-help { left: 12px; right: 12px; transform: none; width: fit-content; max-width: none; margin: 0 auto; }
  .bi-books { top: auto; bottom: 96px; }
  .bi-book { pointer-events: none; opacity: 0.92; }
}
@media (max-height: 500px) { .bi-help { animation: bi-fade 0.8s ease-in 8s forwards; } }
@keyframes bi-fade { to { opacity: 0; visibility: hidden; } }
.bi-turn { display: none; }
@media (orientation: portrait) and (max-width: 640px) { .bi-turn { display: block; margin-top: 2px; font-weight: 800; color: #8a5a20; } }

/* Multi-game Arcade extensions */
.arc-games { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.arc-subhud { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px; justify-content: center; pointer-events: none; }
.arc-badge { background: rgba(15, 18, 34, 0.72); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 999px; padding: 4px 10px; font-size: 13px; color: #f2f5ff; }
.arc-badge b { opacity: 0.35; margin: 0 2px; }
.arc-badge b.lit, .arc-badge.lit { opacity: 1; color: #ffcf3a; border-color: rgba(255, 207, 58, 0.45); }
.arc-pad { position: fixed; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 10px; padding: 0 12px; z-index: 6; pointer-events: auto; }
.arc-pbtn { min-width: 54px; height: 54px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(18, 22, 42, 0.72); color: #fff; font-size: 20px; touch-action: none; }
.arc-pbtn.hi { background: rgba(255, 190, 46, 0.28); border-color: rgba(255, 207, 58, 0.65); }

/* Standalone 2D framed stage (Bear Dino Chrome-offline runner) */
.arc-2d-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 72px 16px 86px; background: radial-gradient(circle at 50% 45%, #1d1a2c 0%, #0c0a12 85%); z-index: 1; pointer-events: none; }
.arc-2d-stage { width: min(960px, 100%); max-height: 100%; aspect-ratio: 8 / 3; border: 3px solid var(--line); box-shadow: 0 0 0 2px #000, 0 18px 44px #000b; border-radius: 10px; image-rendering: pixelated; cursor: pointer; touch-action: none; pointer-events: auto; }
@media (max-width: 760px) { .arc-2d-wrap { padding: 66px 8px 94px; } }
