/* Own the member Arcade's branded scenes, native controls, responsive boards and motion preferences. */
.arcade-page { background: #0e0a15; }
/* The initial HTML and React loader stay visible even before any image or engine is ready. */
.arcade-loading { width: min(100%, 540px); margin: 32px auto; padding: clamp(24px, 5vw, 48px); border: 1px solid #bd8de15c; border-radius: 18px; background: radial-gradient(ellipse at top, #392044, #171020 75%); text-align: center; box-sizing: border-box; }
.arcade-loading-sigil { display: block; color: #deb7ff; font-size: 64px; line-height: 1.4; }
.arcade-loading h2 { margin-block: 10px 18px; }
.arcade-loading progress { display: block; width: 100%; height: 8px; margin-block: 24px; accent-color: #dab2ff; }
.arcade-artwork-warning { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); }
:is(.arcade-page, .arcade-page > :where(#public-app)) > main { position: relative; isolation: isolate; scroll-padding-block: 24px; }
.arcade-page .site-header { min-height: 76px; padding-right: 24px; }
/* Equal outer tracks keep catalogue search centred between identity and navigation. */
.arcade-page .site-header:has(.arcade-header-search) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 460px) minmax(0, 1fr); }
.arcade-header-search { min-width: 0; }
.arcade-header-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.arcade-header-search input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #9c7aad; border-radius: 6px; background: #130d1d; color: var(--text); }
.arcade-profile .arcade-sessions-control { width: 100%; margin-bottom: 10px; }
@media (max-width: 1350px) {
  .arcade-page .site-header:has(.arcade-header-search) { grid-template-columns: minmax(0, 1fr) auto; }
  .arcade-header-search { grid-row: 2; grid-column: 1 / -1; width: min(100%, 540px); justify-self: center; }
}
@media (max-width: 700px) {
  .arcade-page .site-header:has(.arcade-header-search) { grid-template-columns: minmax(0, 1fr); }
  .arcade-header-search { grid-row: 3; }
}
.arcade-page .site-header nav { gap: 22px; }
.arcade-page .site-header nav > a { display: flex; }
.arcade-page .site-header nav [aria-current="page"] { color: var(--accent); }
.arcade-page .primary, .arcade-page .secondary { min-height: 44px; padding: var(--control-padding); border-radius: var(--control-radius); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; }
.arcade-page .primary { border: 1px solid #d6aff5; background: linear-gradient(135deg, #804c9f, #5d387d); color: #fff; }
.arcade-page .primary:hover:not(:disabled) { background: #8755aa; }
.arcade-page .secondary { border: 1px solid var(--control-border); background: #21172c; color: var(--text); }
.arcade-page .secondary:hover:not(:disabled) { border-color: var(--accent); background: #32213f; }
.arcade-page button:disabled { opacity: .65; }
.arcade-page button:focus-visible, .arcade-page input:focus-visible, .arcade-page summary:focus-visible { outline: 3px solid #efd3ff; outline-offset: 3px; }
.arcade-app-shell { width: min(100%, 1380px); margin-inline: auto; padding: 40px 28px 70px; }
/* Reuse the existing original moon/backdrop artwork as a static background rather than a canvas loop. */
.arcade-app-shell::before { content: ""; position: fixed; inset: 76px 0 0; z-index: -1; pointer-events: none; background: linear-gradient(#100b17aa, #0e0a15 90%), url('/art/website/vvr-wallpaper-moon.webp') 92% 28px / 180px auto no-repeat, url('/art/website/vvr-wallpaper-backdrop.webp') center top / cover no-repeat; opacity: .6; }
.arcade-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 0; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.arcade-feedback:empty { display: none; }
.arcade-feedback.error { padding: 14px 16px; background: #402137; border: 1px solid #efb0c5; border-radius: 8px; color: #ffe1e9; }
.arcade-muted { color: var(--muted); font-size: 14px; line-height: 1.6; }
.arcade-eyebrow { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 1.8px; line-height: 1.6; }
/* Shared progression deliberately distinguishes earned XP from the spendable token wallet. */
.arcade-progression { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; padding: 18px 24px; background: #1c1425e8; border: 1px solid var(--line); border-radius: 10px; }
.arcade-progression:empty { display: none; }
.arcade-level { display: flex; gap: 16px; align-items: center; }
.arcade-level-seal { width: 52px; height: 56px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%); background: #6c4287; color: #fff; font-family: Georgia, serif; font-size: 28px; }
.arcade-level > div { display: grid; gap: 4px; min-width: 150px; }
.arcade-level strong { font-size: 15px; }
.arcade-level span:not(.arcade-level-seal), .arcade-level small { color: var(--muted); font-size: 12px; }
.arcade-level progress { appearance: none; width: 180px; max-width: 100%; height: 5px; border: 0; border-radius: 5px; background: #392646; margin-block: 3px; }
.arcade-level progress::-webkit-progress-bar { background: #392646; border-radius: 5px; }
.arcade-level progress::-webkit-progress-value { background: #dab2ff; border-radius: 5px; }
.arcade-level progress::-moz-progress-bar { background: #dab2ff; border-radius: 5px; }
.arcade-wallet { display: flex; align-items: center; gap: 12px; }
.arcade-wallet > span { color: #efcc83; font-size: 38px; }
.arcade-wallet > div { display: grid; gap: 4px; }
.arcade-wallet strong { color: #f4dca8; font-size: 22px; }
.arcade-wallet div span { color: var(--muted); font-size: 12px; }
.arcade-match, .arcade-library, .arcade-connect-card { background: linear-gradient(155deg, #261932f5, #140f1dfa); border: 1px solid #bd8de15c; border-radius: 14px; box-shadow: 0 20px 80px #04020955, inset 0 1px #efcfff12; padding: 28px; min-width: 0; }
.arcade-match-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.arcade-match-heading .arcade-eyebrow { margin-bottom: 8px; }
.arcade-match-heading h2 { margin-bottom: 0; font-size: clamp(25px, 4vw, 34px); }
.arcade-state { flex-shrink: 0; padding: 7px 10px; border: 1px solid #9279a6; border-radius: 20px; color: #e6d5f3; font-size: 11px; }
.arcade-state.state-active { border-color: #8dafba; color: #c9edeb; background: #25515333; }
.arcade-state.state-pending { border-color: #c8a068; color: #f5dba6; background: #6f4b2333; }
.arcade-players { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.arcade-player { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #5c456e; background: #1a1223; border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.arcade-player-marker { width: 24px; height: 24px; display: grid; place-items: center; flex-shrink: 0; background: #a26dcb; color: #150b20; border-radius: 50%; font-weight: 700; }
.arcade-player.player-2 .arcade-player-marker { background: #e6b979; color: #23170b; }
.arcade-player.current-turn { border-color: #dab2ff; box-shadow: 0 0 12px #c08deb1c; }
.arcade-player small { color: var(--muted); font-size: 11px; }
/* The sticky turn banner keeps the current move visible above the table on every screen. */
.arcade-turn { position: sticky; top: 0; z-index: 2; color: #f5e9ff; background: #2c2039; border: 1px solid #8d6ba4; border-radius: 10px; padding: 14px 18px; text-align: center; font-weight: 700; font-size: clamp(18px, 2.2vw, 24px); margin-bottom: 18px; box-shadow: 0 6px 20px #0005; overflow-wrap: anywhere; }
.arcade-turn.is-your-turn { background: #503466; border-color: #dfb9ff; }
.arcade-challenge-stages { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin-bottom: 20px; }
.arcade-challenge-stages li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 12px; }
.arcade-challenge-stages [aria-current] { color: #f3e0ff; border-color: #c996ed; background: #583274; }
/* Game scenes own their horizontal scroll when a large board needs full-sized touch targets. */
.arcade-stage { padding: 26px; margin-bottom: 20px; min-width: 0; overflow-x: auto; overflow-wrap: anywhere; background: radial-gradient(ellipse at 50% 0, #58367633, transparent 70%), #100d18; border: 1px solid #594069; border-radius: 12px; }
.arcade-stage button { scroll-margin: 8px; }
.arcade-board-hint { color: var(--muted); text-align: center; font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.arcade-board-scroll-hint { display: none; color: var(--muted); font-size: 12px; line-height: 1.5; margin-bottom: 10px; }
.arcade-game-feedback { padding: 12px 16px; border-inline-start: 3px solid #c7a1e3; background: #2c2038; color: #eadcf6; line-height: 1.6; overflow-wrap: anywhere; }
.arcade-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.arcade-actions:empty { display: none; }
.arcade-gameplay:has(.arcade-puzzle-scene, .arcade-card-table, .arcade-dice-scene, .arcade-story-scene, .arcade-invitation) > .arcade-actions { justify-content: center; }
.arcade-gameplay:has(.arcade-puzzle-scene, .arcade-card-table, .arcade-dice-scene) > .arcade-actions button { min-width: 100px; }
.arcade-guess-form { max-width: 580px; margin: 20px auto 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #1b1426; }
.arcade-guess-form > label { display: block; color: #e4d0f3; font-size: 14px; margin-bottom: 10px; line-height: 1.6; }
.arcade-guess-form > div { display: flex; gap: 10px; }
.arcade-guess-form input { flex: 1; min-width: 0; padding: 10px 12px; min-height: 44px; border: 1px solid #897196; border-radius: 6px; color: #fff; background: #0f0c17; }
.arcade-guess-form input:disabled { opacity: .65; }
.arcade-match-details { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.arcade-rules-content { margin: 0; font-size: 14px; color: var(--text); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.arcade-source { font-size: 12px; color: var(--muted); margin-block: 20px 0; line-height: 1.6; }
.arcade-source a { text-decoration: underline; text-underline-offset: 3px; }
.arcade-match-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.arcade-match-footer > span { font-size: 12px; color: var(--muted); }
.arcade-completion { margin-top: 24px; padding: 26px; border: 1px solid #c6a07370; border-radius: 10px; text-align: center; background: radial-gradient(ellipse at 50% 0, #885b2733, transparent), #241a2a; }
.arcade-completion-sigil { color: #e7c58c; font-size: 42px; }
.arcade-completion h3 { font-size: 26px; margin-block: 12px; }
.arcade-completion > p { line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.arcade-completion .arcade-actions { justify-content: center; }
.arcade-completion .arcade-muted { margin-top: 16px; margin-bottom: 0; }
/* One shared native result dialog traps focus; decorations settle after a single short burst. */
.arcade-result-modal.arcade-completion { position: fixed; inset: 0; margin: auto; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 52px 28px 28px; color: var(--text); box-sizing: border-box; box-shadow: 0 28px 100px #0009; }
.arcade-result-modal::backdrop { background: #090510c9; backdrop-filter: blur(8px); }
.arcade-result-modal > :not(.arcade-result-effects) { position: relative; z-index: 1; }
.arcade-result-modal .arcade-result-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; padding: 0; font-size: 24px; }
.arcade-result-modal[data-outcome="loss"] { background: radial-gradient(ellipse at 50% 0, #7765a333, transparent), #241a2a; }
.arcade-result-modal[data-outcome="loss"] .arcade-completion-sigil { color: #c2b7e5; }
.arcade-result-effects { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.arcade-result-effects span { position: absolute; opacity: 0; }
.arcade-result-modal[data-outcome="win"] .arcade-result-effects span { left: var(--left); top: var(--top); width: 4px; height: 12px; border-radius: 50%; background: #f5cd85; box-shadow: 0 0 8px #ecc77b; animation: arcade-firework 1400ms var(--delay) ease-out forwards; }
.arcade-result-modal[data-outcome="win"] .arcade-result-effects span:nth-child(3n) { background: #c8b0ff; box-shadow: 0 0 8px #c8b0ff; }
/* Losses get quiet falling violet petals rather than the winner's gold fireworks. */
.arcade-result-modal[data-outcome="loss"] .arcade-result-effects span { left: var(--fall-left); top: 0; width: 8px; height: 14px; border-radius: 80% 10% 80% 10%; background: #a89ac5; animation: arcade-result-petal 1700ms var(--fall-delay) ease-out forwards; }
@keyframes arcade-firework { 0% { opacity: 0; transform: rotate(var(--angle)) translateY(0) scale(.3); } 12% { opacity: .9; } 100% { opacity: 0; transform: rotate(var(--angle)) translateY(-115px) scale(.5); } }
@keyframes arcade-result-petal { 0% { opacity: 0; transform: translateY(-16px) rotate(0); } 20% { opacity: .6; } 100% { opacity: 0; transform: translate(24px, 240px) rotate(150deg); } }
@media (prefers-reduced-motion: reduce), (forced-colors: active) { .arcade-result-effects { display: none; } }
/* Board pieces have visible numbers or letters so player identity never depends on colour alone. */
.arcade-connect-wrap { width: min(100%, 462px); min-width: 308px; margin-inline: auto; }
.arcade-connect-columns { display: grid; grid-template-columns: repeat(7, minmax(44px, 1fr)); gap: 0; margin-bottom: 10px; }
.arcade-connect-columns .secondary { flex-direction: column; gap: 0; background: transparent; border-color: transparent; padding: 4px; font-size: 12px; }
.arcade-connect-columns button > span:first-child { font-size: 25px; line-height: 1; }
.arcade-connect-board { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; padding: 14px; border: 1px solid #895ba8; border-radius: 12px; background: linear-gradient(135deg, #463057, #281b38); box-shadow: 0 12px 25px #0007; }
.arcade-disc { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: #0b0910; border: 1px solid #120c1c; box-shadow: inset 0 3px 8px #0008; font-size: 18px; font-weight: 700; }
.arcade-disc.player-1, .arcade-checker-piece.player-1 { background: linear-gradient(135deg, #d7a6fc, #8955bb); color: #190d29; box-shadow: inset 0 2px 3px #edd2ff77, 0 3px 4px #0006; }
.arcade-disc.player-2, .arcade-checker-piece.player-2 { background: linear-gradient(135deg, #f6d798, #bb8047); color: #2b1705; box-shadow: inset 0 2px 3px #fff1be88, 0 3px 4px #0006; }
/* Connect 4's matched token set shares a silver frame and recessed moonlit sockets. */
.arcade-connect-board { border: 5px ridge #9c889e; border-radius: 3px; background: linear-gradient(135deg, #605264, #2b2332 55%, #4b3c51); box-shadow: 0 12px 25px #0009, 0 0 30px #8b44c322; }
.arcade-disc { position: relative; border: 2px solid #ad96b2; box-shadow: inset 0 3px 8px #000b, 0 1px #d0b9cf55; }
.arcade-disc.player-1, .arcade-disc.player-2 { background: #100d19; box-shadow: 0 0 12px #bc78d633; }
.arcade-disc img { display: block; width: 112%; max-width: none; height: 112%; position: absolute; left: -6%; top: -6%; object-fit: contain; }
.arcade-token-number { position: absolute; bottom: 0; right: 0; width: 16px; height: 16px; border-radius: 50%; background: #160d22e8; color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.arcade-setup-modal select { width: 100%; min-height: 44px; margin-block: 8px 16px; padding: 10px; background: #21172b; color: var(--text); border: 1px solid #9c7aad; border-radius: 6px; }
.arcade-tictactoe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: min(100%, 420px); margin-inline: auto; padding: 10px; border: 2px solid #a795b5; border-radius: 16px; background: #32213f; box-shadow: 0 12px 30px #0005, inset 0 0 0 3px #17101f; }
.arcade-square { display: grid; place-items: center; padding: 8px; aspect-ratio: 1; border: 1px solid #776583; background: radial-gradient(ellipse at top, #30223c, #160f21); border-radius: 8px; font-size: clamp(34px, 6vw, 58px); font-family: Georgia, serif; min-width: 44px; min-height: 44px; }
.arcade-square img { display: block; width: 100%; height: 100%; object-fit: contain; }
.arcade-square.winning { border-color: #e2baff; box-shadow: inset 0 0 20px #bb7bf044; }
.arcade-square:not(:disabled):hover { background: #423052; border-color: #dfb5f6; }
.arcade-square:focus-visible { outline: 3px solid #efd8ff; outline-offset: 3px; }
.arcade-square.player-1 { color: #d6a5ff; }
.arcade-square.player-2 { color: #f4ca89; }
.arcade-square.player-0 { color: #9b83ae; font-size: 20px; }
.arcade-square:disabled { opacity: 1 !important; }
.arcade-checkers-wrap { min-width: 358px; width: min(100%, 360px); margin-inline: auto; }
.arcade-checkers { display: grid; grid-template-columns: repeat(8, minmax(44px, 1fr)); border: 3px solid #77568b; border-radius: 6px; overflow: hidden; }
.arcade-checker-square { min-width: 44px; min-height: 44px; aspect-ratio: 1; display: grid; place-items: center; position: relative; padding: 6px; }
.arcade-checker-square.dark { background: #2e1e3c; }
.arcade-checker-square.light { background: #907c9a; }
.arcade-checker-square:disabled { opacity: 1 !important; }
.arcade-checker-square.selected { box-shadow: inset 0 0 0 3px #f7dda1; }
.arcade-checker-square:focus-visible { outline-offset: -4px; z-index: 1; }
.arcade-checker-piece { display: grid; place-items: center; border-radius: 50%; width: 100%; height: 100%; font-size: 23px; font-weight: 700; }
/* Checkers uses one matched marble set; numbers and K retain colour-independent identity. */
.arcade-checkers-wrap { min-width: 396px; width: min(100%, 520px); }
.arcade-checkers { border: 20px solid #97816d; border-image: url('/art/website/checkers-board-frame.webp') 175 / 20px stretch; border-radius: 0; overflow: visible; background: #302437; }
.arcade-checker-square.dark { background: linear-gradient(145deg, transparent 28%, #77608230 30%, transparent 33% 66%, #77608225 68%, transparent 72%), radial-gradient(ellipse at 25% 70%, #57465a55, transparent 65%), #211929; }
.arcade-checker-square.light { background: linear-gradient(145deg, transparent 18%, #8a707d35 20%, transparent 23% 71%, #8a707d25 73%, transparent 76%), radial-gradient(ellipse at 70% 30%, #e9dacd, transparent 70%), #c6afa2; }
.arcade-checker-square { padding: 3px; border: 1px solid #79687366; }
.arcade-checker-piece.player-1, .arcade-checker-piece.player-2 { background: transparent; box-shadow: none; position: relative; }
.arcade-checker-piece img { display: block; width: 100%; height: 100%; object-fit: contain; }
.arcade-checker-mark { position: absolute; bottom: 0; right: 0; min-width: 14px; height: 14px; font-size: 10px; line-height: 14px; border-radius: 50%; background: #1b1128; color: #fff4db; }
.arcade-checker-square .arcade-coordinate { top: 2px; left: 2px; bottom: auto; right: auto; font-size: 9px; line-height: 12px; padding-inline: 2px; border-radius: 2px; background: #160f22cc; color: #fff; }
.arcade-checkers .arcade-checker-square.light .arcade-coordinate { color: #fff; }
.arcade-coordinate { position: absolute; font-size: 10px; bottom: 2px; right: 2px; color: #dbccdf; }
.arcade-checker-square.light .arcade-coordinate { color: #24172c; }
.arcade-grid-game { max-width: 440px; margin-inline: auto; }
.arcade-mode { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; justify-content: center; }
.arcade-mode [aria-pressed="true"], .arcade-grid-game .dashboard-tabs [aria-selected="true"] { border-color: #d7aff6; background: #593772; }
.arcade-mines { width: min(100%, 310px); min-width: 220px; display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 5px; margin-inline: auto; }
.arcade-mine-cell { display: grid; place-items: center; aspect-ratio: 1; min-height: 44px; border: 1px solid #aa84bc; background: #382647; border-radius: 6px; font-weight: 700; font-size: 17px; }
.arcade-mine-cell.cell-hidden { font-size: 12px; color: #cfb6e1; }
.arcade-mine-cell.cell-flag { color: #f1ce8c; }
.arcade-mine-cell.cell-revealed { background: #181123; border-color: #40304e; color: #c3e1e8; }
.arcade-mine-cell.cell-mine { color: #ffd0de; background: #74304f; }
.arcade-mines + p { text-align: center; margin-top: 16px; margin-bottom: 0; }
/* Minesweeper's native tiles mirror the silver frame and amethyst survey surface. */
.arcade-mines { width: min(100%, 390px); padding: 10px; background: #201326; border: 2px solid #9d8ba8; border-radius: 12px; box-shadow: 0 12px 30px #0005; }
.arcade-mine-cell { border: 2px solid #9d8ba8; border-radius: 5px; background: linear-gradient(135deg, #795a98, #432257 45%, #1f112e); box-shadow: inset 0 0 0 2px #c8a9d222; font-family: Georgia, serif; font-size: 25px; }
.arcade-mine-cell:disabled { opacity: 1; }
.arcade-mine-cell.cell-revealed { background: #30293a; color: #eee7ff; border-color: #85768f; box-shadow: inset 0 2px 6px #0005; }
.arcade-mine-cell[data-number="1"] { color: #b6daff; }
.arcade-mine-cell[data-number="2"] { color: #abdfc6; }
.arcade-mine-cell[data-number="3"] { color: #ffb4c6; }
.arcade-mine-cell.cell-flag { color: #ead4b2; }
.arcade-mine-table { max-width: 780px; margin-inline: auto; padding: clamp(10px, 2vw, 22px); border: 1px solid #9d8ba866; border-radius: 18px; background: linear-gradient(145deg, #281731, #130d1c); }
.arcade-mine-dashboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.arcade-mine-dashboard > div { padding: 10px; border: 1px solid #9d8ba833; border-radius: 9px; background: #ffffff04; }
.arcade-mine-dashboard span, .arcade-mine-dashboard strong { display: block; }
.arcade-mine-dashboard span { font-size: 12px; }
.arcade-mine-dashboard strong { margin-top: 5px; font: 600 clamp(14px, 2vw, 21px) Georgia, serif; color: #f1e3ff; }
.arcade-mine-table progress { display: block; width: 100%; height: 7px; accent-color: #b592db; margin-block: 14px; }
.arcade-mine-table .arcade-mode { justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.arcade-mine-table .arcade-muted { font-size: 12px; }
.arcade-babylon[data-game="minesweeper"] canvas { aspect-ratio: 1; height: auto; max-width: 600px; margin-inline: auto; }
@media (max-width: 420px) {
  .arcade-mine-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arcade-mine-dashboard > div:last-child { grid-column: 1 / -1; }
  .arcade-mines { padding: 5px; gap: 3px; }
}
.arcade-grid-game .dashboard-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.arcade-sea { min-width: 284px; width: min(100%, 300px); margin-inline: auto; display: grid; grid-template-columns: repeat(6, minmax(44px, 1fr)); gap: 4px; }
.arcade-sea-cell { aspect-ratio: 1; min-height: 44px; border: 1px solid #4b8398; border-radius: 4px; background: #182b39; color: #b6d3e2; font-size: 12px; }
.arcade-sea-cell.sea-hit { background: #6b284b; color: #ffcedf; font-size: 25px; }
.arcade-sea-cell.sea-miss { background: #12212e; color: #a9c5d4; font-size: 25px; }
.arcade-sea-cell.sea-ship { background: #385169; color: #e6cfff; font-size: 25px; }
.arcade-sea-cell:disabled { opacity: 1 !important; }
/* Word tiles expose marks through accessible names and small visible symbols as well as colour. */
.arcade-wordle { display: grid; gap: 7px; width: min(100%, 300px); margin-inline: auto; }
.arcade-wordle-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.arcade-letter { display: grid; place-items: center; border: 1px solid #9675a9; background: #2a1e35; border-radius: 5px; aspect-ratio: 1; font-size: clamp(19px, 4vw, 29px); font-weight: 700; color: #f8edff; position: relative; }
.arcade-letter.mark-exact { background: #28594e; border-color: #a2dbc3; }
.arcade-letter.mark-present { background: #745d29; border-color: #eed192; }
.arcade-letter.mark-absent { background: #39363f; border-color: #93869b; }
.arcade-letter.mark-exact::after { content: "✓"; }
.arcade-letter.mark-present::after { content: "↔"; }
.arcade-letter.mark-absent::after { content: "×"; }
.arcade-letter[class*="mark-"]::after { position: absolute; bottom: 1px; right: 3px; font-size: 10px; }
.arcade-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; color: var(--muted); font-size: 11px; margin-top: 16px; margin-bottom: 0; }
.arcade-answer { margin-top: 18px; margin-bottom: 0; color: #e5cff5; }
.arcade-letter-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 20px; }
.arcade-letter-tray .arcade-letter { width: 48px; height: 54px; aspect-ratio: auto; }
.arcade-puzzle-scene { padding-block: 16px; text-align: center; }
.arcade-puzzle-scene .arcade-eyebrow { margin-bottom: 24px; }
.arcade-puzzle-scene p:last-child { margin-bottom: 0; }
/* Questions, clues and stories use their own visual hierarchy with complete text choices. */
.arcade-question { max-width: 680px; margin-inline: auto; }
.arcade-question .arcade-eyebrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.arcade-question h3 { font-size: clamp(24px, 4vw, 30px); line-height: 1.45; margin-bottom: 24px; }
.arcade-lifeline { margin-bottom: 16px; }
.arcade-answer-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.arcade-answer-options .secondary { justify-content: flex-start; text-align: left; padding: 14px; min-height: 64px; line-height: 1.5; overflow-wrap: anywhere; }
.arcade-answer-number { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border: 1px solid #9973b3; border-radius: 6px; color: #dfbdf5; font-weight: 600; }
.arcade-clue-scene { max-width: 580px; margin-inline: auto; }
.arcade-mystery { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; border: 1px solid #a477be; background: #57327155; font-family: Georgia, serif; font-size: 48px; color: #e0baf9; }
.arcade-clue-scene ol { padding-left: 28px; line-height: 1.75; }
.arcade-clue-scene li { padding-left: 7px; margin-bottom: 12px; }
.arcade-clue-scene li::marker { color: #d6a5f6; }
.arcade-story-scene { text-align: center; padding-block: 16px; }
.arcade-story-scene h3 { font-size: 28px; line-height: 1.5; }
.arcade-survivors { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.arcade-survivors > span { display: flex; align-items: center; gap: 8px; border: 1px solid #73518c; border-radius: 8px; padding: 12px 16px; color: #e4ccef; font-size: 13px; }
.arcade-survivors > span > span { color: #caa0ea; font-size: 22px; }
.arcade-rps-choices { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.arcade-rps-choices .secondary { flex-direction: column; padding: 20px; min-width: 110px; }
.arcade-rps-choices button > span { font-size: 44px; line-height: 1.4; }
.arcade-rps-results { text-align: center; margin-top: 22px; }
.arcade-rps-results p:last-child { margin-bottom: 0; }
/* Rank-only playing cards retain the real game rules; decorative suits would imply nonexistent state. */
.arcade-card-table { max-width: 680px; margin-inline: auto; background: radial-gradient(ellipse at center, #28443e88, transparent 85%); border: 1px solid #60827955; border-radius: 40px; padding: 18px; }
.arcade-card-hand h3 { text-align: center; font-family: "Segoe UI", sans-serif; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.arcade-card-hand + .arcade-card-hand { margin-top: 28px; }
.arcade-playing-cards { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.arcade-playing-card { position: relative; display: flex; align-items: center; justify-content: center; width: 65px; height: 95px; padding: 10px; border: 1px solid #e2d3e6; border-radius: 8px; background: linear-gradient(135deg, #fbf5ff, #d6c6de); color: #3d244b; box-shadow: 0 5px 14px #0006; font-family: Georgia, serif; font-size: 42px; animation: arcade-card-arrive .22s ease-out; }
.arcade-playing-card.face-down { background: repeating-linear-gradient(45deg, #452859, #452859 6px, #58336f 6px, #58336f 9px); color: #dab8f1; border-color: #ae8bbe; }
/* Rank text remains one line even when surrounding external content wraps within a narrow scene. */
.arcade-playing-card { white-space: nowrap; }
.arcade-table-sigil { display: block; width: 88px; height: 88px; margin: 0 auto 16px; }
.arcade-table-sigil img { display: block; width: 100%; height: 100%; object-fit: contain; }
.arcade-dice-scene { text-align: center; }
.arcade-dice-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
/* Each participant shares the name, dice, roll status and score rows with their opponent. */
.arcade-dice-players > section { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
.arcade-dice-players h3 { font-size: 20px; overflow-wrap: anywhere; }
.arcade-dice { display: flex; gap: 10px; justify-content: center; }
.arcade-dice span { color: #e7cbfa; font-size: 70px; line-height: 1.2; }
.arcade-dice-players p { color: var(--muted); font-size: 13px; margin-top: 12px; margin-bottom: 0; }
.arcade-invitation { text-align: center; padding: 20px; }
.arcade-invitation-sigil { border: 1px solid #9f7daf; border-radius: 50%; width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 20px; font-family: Georgia, serif; font-size: 30px; color: #e8c4ff; background: #663d8255; }
.arcade-invitation h3 { font-size: 28px; }
.arcade-invitation p { margin-bottom: 0; color: var(--muted); line-height: 1.7; }
.arcade-connect-card { text-align: center; padding: 44px 30px; max-width: 720px; margin-inline: auto; }
.arcade-connect-card h2 { font-size: 32px; }
.arcade-connect-card p { max-width: 480px; margin-inline: auto; line-height: 1.75; color: var(--muted); }
.arcade-connect-card .primary { margin-top: 8px; }
.arcade-library h2 { font-size: 28px; }
.arcade-session-list { display: grid; gap: 12px; margin-top: 24px; }
.arcade-session-list .secondary { display: flex; justify-content: space-between; padding: 18px; text-align: left; }
.arcade-session-list button > span:first-child { display: grid; gap: 5px; }
.arcade-session-list small { color: var(--muted); font-weight: 400; }
/* Open matches retain compact spacing; the carousel overrides this with centred catalogue spacing. */
.arcade-app-shell:has(.arcade-match, .arcade-library) { padding-top: 24px; }
.arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-progression { padding-block: 12px; margin-bottom: 18px; }
.arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-match-heading { margin-bottom: 16px; }
.arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-players { margin-bottom: 12px; }
.arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-turn { margin-bottom: 14px; }
.arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-connect-wrap { max-width: 410px; }
@media (min-width: 701px) {
  .arcade-app-shell:has(.arcade-match, .arcade-library) { padding-top: 18px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-level > div { gap: 2px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-match { padding: 22px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-match-heading h2 { font-size: 28px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-stage { padding: 18px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-connect-wrap { max-width: 360px; }
}
/* A wide Wordle table pairs the guess input with the board so the next action never sits below six rows. */
@media (min-width: 900px) {
  .arcade-gameplay:has(.arcade-wordle):has(.arcade-guess-form) { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: center; }
  .arcade-gameplay:has(.arcade-wordle):has(.arcade-guess-form) > .arcade-stage { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .arcade-gameplay:has(.arcade-wordle):has(.arcade-guess-form) > .arcade-guess-form { grid-column: 2; grid-row: 1; margin: 0; width: 100%; }
  .arcade-gameplay:has(.arcade-wordle):has(.arcade-guess-form) .arcade-guess-form > div { flex-direction: column; }
  .arcade-gameplay:has(.arcade-wordle):has(.arcade-guess-form) > .arcade-game-feedback { grid-column: 1 / -1; }
}
@keyframes arcade-card-arrive { from { transform: translateY(-8px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 700px) {
  .arcade-app-shell { padding: 28px 16px 44px; }
  .arcade-match, .arcade-library { padding: 20px; }
  .arcade-progression { padding: 18px; }
  .arcade-match-heading { flex-direction: column; gap: 12px; }
  .arcade-stage { padding: 18px; }
  .arcade-answer-options { grid-template-columns: 1fr; }
  .arcade-card-table { padding: 22px 12px; }
  .arcade-hangman { gap: 16px; }
  .arcade-letter-tray .arcade-letter { width: 36px; height: 44px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) { padding-top: 18px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-progression { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px; margin-bottom: 16px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-level { gap: 8px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-level-seal { width: 38px; height: 42px; flex-shrink: 0; font-size: 22px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-level > div { min-width: 0; gap: 3px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-level strong { font-size: 13px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-level div > span { font-size: 11px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-level small { font-size: 10px; line-height: 1.4; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-level progress { width: 124px; height: 4px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-wallet { gap: 5px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-wallet > span { font-size: 25px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-wallet strong { font-size: 18px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-wallet div > span { max-width: 78px; font-size: 10px; line-height: 1.4; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-match-heading { flex-direction: row; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-match-heading .arcade-eyebrow { font-size: 10px; margin-bottom: 5px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-match-heading h2 { font-size: 24px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-state { font-size: 10px; padding: 6px 8px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-player { padding: 6px 9px; font-size: 12px; }
  .arcade-app-shell:has(.arcade-match, .arcade-library) .arcade-turn { margin-bottom: 12px; }
}
@media (max-width: 420px) {
  .arcade-page .site-header { gap: 12px; padding-inline: 16px; }
  .arcade-page .site-header .wordmark { font-size: 10px; gap: 9px; letter-spacing: 1px; }
  .arcade-page .site-header nav { gap: 14px; }
  .arcade-app-shell { padding-inline: 12px; }
  .arcade-match, .arcade-library { padding: 16px; }
  .arcade-stage { padding: 12px; }
  .arcade-guess-form { padding: 12px; }
  .arcade-guess-form input { width: 100%; }
  .arcade-completion { padding: 20px 12px; }
  .arcade-completion .arcade-actions > button { width: 100%; }
  .arcade-hangman { flex-direction: column; }
  .arcade-hangman svg { width: 120px; max-width: 100%; }
  .arcade-rps-choices .secondary { min-width: 68px; padding: 10px; font-size: 12px; }
  .arcade-rps-choices button > span { font-size: 32px; }
  .arcade-dice-players { column-gap: 12px; }
  .arcade-dice { gap: 0; }
  .arcade-dice span { font-size: 52px; }
  .arcade-playing-card { width: 65px; height: 95px; }
}
/* Shared catalogue tabs and setup fields retain native accessible controls. */
.arcade-library .dashboard-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.arcade-library .dashboard-tabs [aria-selected="true"] { background: #563571; border-color: #cf9feb; }
.arcade-library [hidden] { display: none; }
.arcade-game-kind { font-size: 11px; color: #d5b5ed; }
.arcade-launch-panel { position: sticky; top: 20px; padding: 22px; border: 1px solid #765687; border-radius: 14px; background: #211629; }
.arcade-launch-panel h3 { font-size: 25px; margin: 0 0 20px; overflow-wrap: anywhere; }
.arcade-discovery { margin-block: 20px; }
.arcade-discovery label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.arcade-discovery input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #8c6c9e; border-radius: 7px; background: #130d1b; color: var(--text); }
.arcade-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.arcade-filters [aria-pressed="true"] { background: #563571; border-color: #cf9feb; }
.arcade-discovery > p { margin-block: 12px 0; font-size: 12px; }
.arcade-launch-panel label, .arcade-invitation label { display: block; margin: 14px 0 7px; font-size: 13px; font-weight: 600; }
.arcade-launch-panel input, .arcade-launch-panel select, .arcade-invitation input { width: 100%; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #8c6c9e; border-radius: 7px; background: #130d1b; color: #f8eaff; font-size: 14px; }
.arcade-launch-panel button { width: 100%; margin-top: 14px; }
/* Shared member controls keep their normal field spacing and scrollable, keyboard-aware overlay. */
.arcade-launch-panel .search-picker button { margin-top: 0; }
.arcade-launch-panel .picker-hint { font-size: 12px; }
.arcade-launch-panel .arcade-muted { font-size: 12px; line-height: 1.5; }
.arcade-invitation { padding: 14px; margin: 14px 0; border: 1px solid #846696; border-radius: 10px; background: #251831; }
.arcade-invitation p { margin: 0; font-size: 13px; }
/* Adjacent 44px actions leave the long match URL shrinkable on phone screens. */
.arcade-invite-link { display: flex; gap: 8px; align-items: center; }
.arcade-invite-link input { flex: 1; width: 0; }
.arcade-page .arcade-link-icon { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; }
.arcade-invitation .arcade-muted, .arcade-invitation .arcade-link-status { margin-top: 10px; line-height: 1.5; }
.arcade-link-status:empty { display: none; }
@media (max-width: 480px) {
  .arcade-wordle { max-width: 220px; margin-inline: auto; gap: 5px; }
  .arcade-wordle-row { gap: 5px; }
  .arcade-match:has(.arcade-wordle) .arcade-stage { margin-bottom: 12px; }
  .arcade-match:has(.arcade-wordle) .arcade-guess-form { margin-top: 12px; }
  .arcade-legend { gap: 6px 10px; margin-top: 12px; }
  .arcade-filters .secondary { font-size: 12px; padding-inline: 10px; }
  .scroll-checkers { display: block; }
}
@media (max-width: 360px) { .arcade-guess-form > div { flex-direction: column; } }
@media (max-width: 380px) { .scroll-connect4, .scroll-battleships { display: block; } }
@media (forced-colors: active) {
  .arcade-launch-panel, .arcade-invitation { border-color: ButtonText; }
}
@media (prefers-reduced-motion: reduce) {
  .arcade-playing-card { animation: none; }
  :is(.arcade-page, .arcade-page > :where(#public-app)) > main { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .arcade-app-shell::before { display: none; }
  .arcade-stage, .arcade-match, .arcade-progression, .arcade-completion { border-color: CanvasText; box-shadow: none; }
  .arcade-disc, .arcade-playing-card, .arcade-checker-piece, .arcade-letter, .arcade-player-marker, .arcade-level-seal { border: 1px solid CanvasText; }
  .arcade-checker-square.selected { outline: 3px solid Highlight; outline-offset: -3px; }
  .arcade-hangman svg { stroke: CanvasText; }
  .arcade-letter.mark-exact::after, .arcade-letter.mark-present::after, .arcade-letter.mark-absent::after { color: CanvasText; }
}

/* The shared footer stays compact here so game boards keep their vertical room. */
:is(.arcade-page, .arcade-page > :where(#public-app)) > footer { padding-block: 0; row-gap: 0; }
/* Visitors who are not yet members reach joining from the login card. */
.arcade-connect-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.arcade-feedback-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
/* The collection shows three large illustrations with an elevated central launch card. */
/* Auto margins centre loading and the catalogue, collapsing when content needs to scroll. */
:is(.arcade-page, .arcade-page > :where(#public-app)) > main:has(.arcade-carousel-library, .arcade-loading) { display: flex; flex-direction: column; }
/* Before React supplies the bars, the authored loader occupies the full viewport. */
#arcade-app:has(> .arcade-loading) { min-height: 100dvh; padding: 24px 12px; }
#arcade-app > .arcade-loading { flex-shrink: 0; margin-block: auto; }
.arcade-app-shell:has(.arcade-loading) { flex-shrink: 0; margin-block: auto; padding-block: 24px; }
.arcade-app-shell > .arcade-loading { margin-block: 0; }
.arcade-app-shell:has(.arcade-carousel-library) { width: min(100%, 1560px); flex-shrink: 0; margin-block: auto; padding-block: 24px; }
.arcade-library.arcade-carousel-library { background: transparent; border: 0; box-shadow: none; padding: 0; }
/* Retain a named catalogue heading for assistive technology without a second page title. */
.arcade-catalogue-intro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.arcade-carousel { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 14px; }
.arcade-carousel-arrow { position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50% !important; padding: 0 !important; font: 32px Georgia, serif !important; }
.arcade-carousel-window { min-width: 0; padding: 22px 4px; overflow: hidden; touch-action: pan-y pinch-zoom; }
/* Cards retain their DOM identity and interpolate through perspective, without a render loop. */
.arcade-carousel-cards { position: relative; display: grid; place-items: center; perspective: 1200px; --card-step: 108%; }
.arcade-feature-card { display: flex; flex-direction: column; grid-area: 1 / 1; width: min(30%, 360px); min-width: 0; max-width: 360px; padding: 0; border: 1px solid #76568b; border-radius: 20px; overflow: hidden; text-align: left; color: #f7eaff; background: #20152c; cursor: pointer; transform: translateX(calc(var(--card-position) * var(--card-step))) translateZ(-65px) rotateY(calc(var(--card-position) * -24deg)); opacity: .78; z-index: 1; backface-visibility: hidden; transition: transform 560ms cubic-bezier(.22,.68,.2,1), opacity 400ms ease, border-color 300ms, box-shadow 400ms; }
.arcade-feature-card.is-centre { z-index: 3; transform: translateX(0) translateZ(45px) rotateY(0); opacity: 1; border-color: #d2acf0; box-shadow: 0 16px 44px #0008, 0 0 36px #ae6ce825; }
.arcade-page .arcade-feature-card.is-away { opacity: 0; pointer-events: none; z-index: 0; }
.arcade-feature-card:hover { opacity: 1; border-color: #e3c4fa; }
.arcade-card-art { display: block; position: relative; width: 100%; aspect-ratio: 1; background: #170e23; }
.arcade-card-art img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.arcade-card-art::after { content: ''; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, #20152c); }
.arcade-card-number { position: absolute; left: 18px; top: 16px; color: #eee0ff; font: 12px Georgia, serif; letter-spacing: 2px; padding: 6px 8px; border: 1px solid #d9b5ed55; border-radius: 6px; background: #140d20aa; }
.arcade-feature-copy { display: flex; flex-direction: column; gap: 8px; padding: 10px 18px 18px; min-height: 190px; }
.arcade-feature-copy strong { font: 24px/1.15 Georgia, serif; overflow-wrap: anywhere; }
.arcade-game-kind { text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; }
.arcade-card-description { color: #d5c3df; font-size: 13px; line-height: 1.5; }
.arcade-card-play { margin-top: auto; padding-top: 12px; border-top: 1px solid #9874b240; font-size: 13px; color: #d5b5ed; }
.is-centre .arcade-card-play { color: #f7eaff; }
.arcade-carousel-status { text-align: center; color: #eddafa; font-size: 13px; margin: 0 0 10px; }
.arcade-carousel-hint { color: var(--muted); text-align: center; font-size: 12px; line-height: 1.6; margin-bottom: 6px; }
/* Native dialog supplies focus trapping; setup owns no duplicate channel/global feature control. */
.arcade-setup-modal.arcade-launch-panel { position: fixed; inset: 0; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; margin: auto; padding: 30px; color: var(--text); box-shadow: 0 28px 100px #0009; }
.arcade-setup-modal::backdrop { background: #090510c9; backdrop-filter: blur(8px); }
.arcade-setup-modal .arcade-setup-close { position: absolute; top: 12px; right: 12px; width: 44px; margin: 0; font-size: 24px; }
.arcade-setup-art { display: block; width: 120px; height: 120px; object-fit: cover; margin-bottom: 20px; border-radius: 16px; }
.arcade-setup-modal h3 { margin-bottom: 12px; }
.arcade-setup-feedback { padding: 12px; border: 1px solid #a17bb5; border-radius: 6px; font-size: 13px; line-height: 1.6; }
/* GPU scenes remain accompanied by the existing native text and keyboard action interface. */
.arcade-babylon { position: relative; margin-bottom: 22px; }
.arcade-babylon canvas { display: block; width: 100%; height: clamp(260px, 45vw, 460px); border-radius: 10px; touch-action: pan-y; }
.arcade-babylon[data-game="connect4"] canvas { max-width: 780px; height: clamp(340px, 65vw, 620px); margin-inline: auto; }
.arcade-babylon[data-game="checkers"] canvas { max-width: 780px; height: clamp(340px, 65vw, 620px); margin-inline: auto; }
.arcade-babylon[data-game="tictactoe"] canvas { width: 100%; max-width: 600px; height: auto; aspect-ratio: 1; margin-inline: auto; border-radius: 16px; }
.arcade-ttt-table { max-width: 720px; margin-inline: auto; padding: clamp(12px, 3vw, 24px); background: linear-gradient(135deg, #271a35, #100b18); border: 1px solid #a286b355; border-radius: 22px; box-shadow: 0 16px 44px #0004; }
.arcade-ttt-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.arcade-ttt-seats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.arcade-ttt-seats section { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid #79668555; background: #160f21; border-radius: 12px; }
.arcade-ttt-seats section.current { border-color: #c79be4; box-shadow: inset 0 0 20px #a56bcd18; }
.arcade-ttt-seats img { width: clamp(26px, 5vw, 40px); height: clamp(26px, 5vw, 40px); object-fit: contain; }
.arcade-ttt-seats div { min-width: 0; }
.arcade-ttt-seats strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.arcade-ttt-seats span { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; }
.arcade-ttt-rule { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; margin: 14px 0 0; }
@media (max-width: 420px) {
  .arcade-ttt-seats { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .arcade-ttt-seats section { padding: 8px 10px; }
}
.arcade-babylon[data-game="blackjack"] canvas { max-width: 900px; height: clamp(390px, 72vw, 700px); margin-inline: auto; border: 1px solid #baa17a66; border-radius: 28px; box-shadow: 0 18px 48px #0005; }
.blackjack-table { max-width: 900px; padding: clamp(16px, 4vw, 32px); border: 1px solid #baa17a88; background: radial-gradient(ellipse at 50% 30%, #513158, #1b1026 85%); box-shadow: inset 0 0 0 6px #bda17b12, 0 12px 30px #0004; }
.blackjack-table > .arcade-eyebrow { text-align: center; letter-spacing: .22em; color: #e7cda6; }
.blackjack-table .arcade-card-hand h3 { color: #eee2f5; font-size: 14px; letter-spacing: .1em; }
.blackjack-table .arcade-playing-cards { gap: clamp(4px, 2vw, 16px); }
.blackjack-card { position: relative; display: inline-block; flex: 0 0 auto; width: clamp(100px, 15vw, 155px); aspect-ratio: 5 / 7; vertical-align: middle; filter: drop-shadow(0 8px 6px #0007); }
.blackjack-card > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.blackjack-card-ranks { position: absolute; inset: 0; color: #241c2c; font-family: Georgia, serif; }
.blackjack-card.is-red .blackjack-card-ranks { color: #a5213d; }
.blackjack-card-ranks > strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(48px, 7vw, 72px); }
.blackjack-card-ranks > .blackjack-index { position: absolute; top: 14%; left: 11%; width: 18%; text-align: center; line-height: 1; white-space: nowrap; overflow-wrap: normal; font-size: clamp(12px, 1.6vw, 18px); font-weight: bold; }
.blackjack-index small { display: block; font-size: .8em; }
.blackjack-card-ranks > .blackjack-index.is-bottom { inset: auto 11% 14% auto; transform: rotate(180deg); }
.blackjack-card-ranks > .blackjack-pips { position: absolute; inset: 0; font-size: clamp(18px, 2.8vw, 28px); }
.blackjack-pips > span { position: absolute; line-height: 1; }
.blackjack-card-ranks > .blackjack-pips.is-large { font-size: clamp(26px, 3.8vw, 38px); }
.blackjack-card-ranks > .blackjack-pips.is-ace { font-size: clamp(42px, 6vw, 60px); }
.blackjack-card-ranks > .blackjack-court { display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: clamp(36px, 5.8vw, 56px); }
.blackjack-court small { font-size: .75em; }
.blackjack-total { display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; margin-left: 8px; border: 1px solid #d3b98288; border-radius: 50%; color: #f8e0af; background: #1b1129; font-size: 19px; }
.blackjack-seat { text-align: center; }
.blackjack-seat > div { display: flex; justify-content: center; margin-block: 24px; }
.blackjack-seat .blackjack-card:first-child { transform: rotate(-12deg); margin-right: -28px; }
.blackjack-seat .blackjack-card:last-child { transform: rotate(10deg); }
.blackjack-table-rules { margin: 24px 0 0; text-align: center; color: #d5c2df; font-size: 12px; }
@media (forced-colors: active) {
  .blackjack-card { background: Canvas; border: 1px solid CanvasText; filter: none; }
  .blackjack-card > img { visibility: hidden; }
  .blackjack-card .blackjack-card-ranks { color: CanvasText; }
  .blackjack-card.is-hidden::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; }
}
.arcade-babylon[data-game="battleships"] canvas { max-width: 900px; height: auto; aspect-ratio: 12 / 11.2; margin-inline: auto; }
.arcade-naval-sound { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.arcade-naval-sound span { color: var(--muted); font-size: 12px; }
.arcade-naval-native-duel { margin-bottom: 18px; }
.arcade-naval-ships { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: 190px; overflow: hidden; border: 1px solid #aa8fc45c; border-radius: 10px; background: #171124 url('/art/website/battleships-ocean.webp') center / cover; }
.arcade-naval-ships img { width: 100%; height: 190px; object-fit: contain; }
.arcade-naval-ships .opponent-ship { transform: scaleX(-1); }
.arcade-naval-shot { position: absolute; inset: 0; pointer-events: none; }
.naval-native-projectile { position: absolute; left: 28%; top: 74%; width: 12px; height: 12px; border-radius: 50%; background: #ffe5af; box-shadow: 0 0 14px #d499ff; opacity: 0; animation: naval-fire-out 700ms linear both; }
.incoming .naval-native-projectile { animation-name: naval-fire-in; }
.naval-native-burst { position: absolute; left: 72%; top: 75%; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, #ffe9b3, #cf80eb 40%, transparent 72%); opacity: 0; animation: naval-burst 550ms ease-out both; }
.incoming .naval-native-burst { left: 28%; }
.naval-native-burst.miss { top: 87%; background: radial-gradient(circle, #d9f0ff, #839fcc 40%, transparent 72%); }
.arcade-naval-native .arcade-sea { border: 4px ridge #867a97; background: #1d2639; padding: 4px; }
.arcade-naval-native .arcade-sea-cell { background: linear-gradient(145deg, #314b67, #1e2c45); }
.arcade-naval-native .arcade-sea-cell.sea-hit { background: radial-gradient(circle, #8c456b, #3c2542); }
.arcade-naval-native .arcade-sea-cell.sea-ship { background: linear-gradient(145deg, #75889a, #45586d); }
@keyframes naval-fire-out { 0% { left: 28%; top: 74%; opacity: 1; } 50% { top: 35%; } 99% { opacity: 1; } 100% { left: 72%; top: 74%; opacity: 0; } }
@keyframes naval-fire-in { 0% { left: 72%; top: 74%; opacity: 1; } 50% { top: 35%; } 99% { opacity: 1; } 100% { left: 28%; top: 74%; opacity: 0; } }
@keyframes naval-burst { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.2); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(3); } }
@media (prefers-reduced-motion: reduce) { .naval-native-projectile, .naval-native-burst { display: none; animation: none; } }
.arcade-babylon-help { color: var(--muted); font-size: 12px; text-align: center; line-height: 1.5; margin-block: 10px; }
.arcade-native-scene { margin-top: 14px; }
.arcade-page .arcade-icon-button { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; --icon-size: 22px; }
.arcade-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.arcade-sea { position: relative; }
.arcade-fleet-art { position: absolute; pointer-events: none; z-index: 2; }
.arcade-fleet-art img { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; object-fit: contain; transform: translate(-50%, -50%); }
.arcade-sea-cell > span { position: relative; z-index: 3; text-shadow: 0 1px 3px #000, 0 0 5px #000; }
.arcade-fleet-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.arcade-fleet-choice img { width: 22px; height: 44px; object-fit: contain; }
.arcade-fleet-choice[aria-pressed="true"], .arcade-placement-sea .selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.arcade-fleet-setup .arcade-sea { margin-block: 16px; max-width: 450px; }
/* Dialogs retain live native play and scroll wide boards without overflowing the document. */
.arcade-info-modal { position: fixed; inset: 0; margin: auto; width: min(780px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #bd8de1; border-radius: 14px; color: var(--text); background: #1b1426; box-shadow: 0 24px 90px #000a; overflow: hidden; }
.arcade-info-modal::backdrop { background: #090510c9; backdrop-filter: blur(6px); }
.arcade-info-modal > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.arcade-info-modal h2 { margin: 0; font-size: 24px; }
.arcade-dialog-content { padding: 20px; max-height: calc(100dvh - 105px); overflow: auto; scroll-padding: 20px; }
.arcade-dialog-content .arcade-board-scroll-hint { display: block; }
@media (min-width: 701px) { .arcade-card-art { aspect-ratio: auto; height: clamp(240px, calc(100dvh - 390px), 390px); } }
@media (max-width: 700px) {
  .arcade-carousel { display: block; position: relative; }
  .arcade-carousel-arrow { position: absolute; top: 45%; left: 0; width: 44px; height: 44px; }
  .arcade-carousel-arrow:last-child { left: auto; right: 0; }
  .arcade-carousel-window { overflow: hidden; }
  .arcade-carousel-cards { min-height: 375px; --card-step: 94%; perspective: 900px; }
  .arcade-feature-card { width: 78%; max-width: 340px; }
  .arcade-feature-card.is-left, .arcade-feature-card.is-right { opacity: .45; }
  .arcade-feature-card.is-away { opacity: 0; }
  .arcade-feature-card.is-centre { transform: translateX(0) translateZ(0) rotateY(0); }
  .arcade-feature-copy { padding: 10px 16px 20px; min-height: 175px; }
  .arcade-feature-copy strong { font-size: 23px; }
  .arcade-carousel-hint { padding-inline: 10px; }
  .arcade-catalogue-intro { margin-top: 24px; }
  .arcade-setup-modal.arcade-launch-panel { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { .arcade-feature-card { transition: none; } }
@media (forced-colors: active) {
  .arcade-feature-card { border-color: ButtonText; opacity: 1; }
  .arcade-feature-card.is-centre { outline: 3px solid Highlight; }
  .arcade-card-play { color: ButtonText; }
}
.arcade-babylon canvas[hidden] { display: none; }
/* Engine tables and their native alternatives stack naturally instead of squeezing into puzzle columns. */
.arcade-match:has(.arcade-babylon) .arcade-gameplay { display: block; }
.arcade-match:has(.arcade-babylon) .arcade-stage { max-height: none; }

/* Dice keeps readable stacked trays on phones and a full table on larger screens. */
/* Clues keeps evidence readable in native cards, including when its ornamental desk cannot render. */
.arcade-clues-table.arcade-clue-scene { position: relative; display: block; max-width: 1040px; margin-inline: auto; padding: clamp(14px, 3vw, 26px); border: 1px solid #9f809f6b; border-radius: 18px; background: radial-gradient(ellipse at top, #33213d, #170e20 70%); overflow: hidden; }
.clues-desk-heading, .clues-case-stats, .clues-desk-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.clues-desk-heading .arcade-eyebrow { color: #d2b389; font-size: 10px; margin: 0 0 7px; letter-spacing: .18em; }
.clues-desk-heading h3 { margin: 0; color: #f1dfbf; font-size: clamp(22px, 3vw, 30px); }
.clues-case-status { padding: 7px 12px; color: #eadbbf; background: #bda07914; border: 1px solid #bda07955; border-radius: 30px; font-size: 12px; }
.clues-case-stats { justify-content: flex-start; gap: 22px; margin-top: 17px; font-size: 12px; color: #bfb0cc; }
.clues-case-stats strong { color: #ebd6ad; margin-right: 4px; }
.arcade-babylon[data-game="clues"] canvas { height: clamp(140px, 23vw, 245px); width: 100%; border: 0; border-radius: 12px; }
.clues-desk-art { margin-block: 18px 10px; }
.arcade-clues-table .clues-evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.clues-note { min-width: 0; margin: 0; }
.clues-note-face { display: flex; flex-direction: column; justify-content: center; align-items: center; aspect-ratio: 4 / 3; padding: 13% 11%; background: url('/art/website/clues-parchment.webp') center / 100% 100% no-repeat; color: #342235; text-align: center; }
.clues-note-number { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: #604365; }
.clues-note-face p { margin: 10px 0; font-family: Georgia, serif; font-size: clamp(14px, 1.7vw, 18px); line-height: 1.45; overflow-wrap: anywhere; }
.clues-note-foot { color: #614e58; font-size: 9px; font-style: italic; }
.clues-sealed-face { height: 100%; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(145deg, #39223d, #24162e); border: 1px solid #a183974d; border-radius: 10px; text-align: center; }
.clues-sealed-face strong { color: #d4c3db; font-family: Georgia, serif; font-size: 15px; font-weight: 400; }
.clues-sealed-face p { max-width: 170px; color: #b8a7c4; font-size: 11px; line-height: 1.5; margin: 9px 0 0; }
.clues-wax-seal { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border: 3px double #c69b78; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #905573, #501b4b); box-shadow: 0 4px 9px #0006; font: 24px Georgia, serif; color: #eed1a4; }
.clues-desk-tools { margin-top: 20px; padding-block: 14px; border-block: 1px solid #a1839733; }
.clues-desk-tools p { margin: 0; font-size: 12px; color: #c7b7ce; }
.clues-desk-tools button { position: relative; z-index: 1; }
.clues-attempts { padding-top: 16px; }
.clues-attempts h4 { margin: 0 0 10px; color: #e1caa6; font: 16px Georgia, serif; }
.clues-attempts > p { font-size: 12px; color: #b8a7c4; margin: 0; line-height: 1.6; }
.arcade-clues-table .clues-attempts ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.clues-attempts li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 12px; border: 1px solid #a1839740; border-radius: 8px; background: #24162d; color: #ecdef3; font-size: 13px; overflow-wrap: anywhere; }
.clues-attempt-number { color: #c1a575; font-size: 10px; }
.clues-reveal { animation: clues-unseal 720ms ease-out both; }
.clues-feedback-effect { pointer-events: none; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #d4b383; opacity: 0; animation: clues-confirm 950ms ease-out; }
.clues-effect-guess, .clues-effect-loss { border-color: #ab82c6; }
.clues-effect-win { border-color: #efd5a0; box-shadow: inset 0 0 50px #e6b56428; }
@keyframes clues-unseal { from { opacity: .4; transform: translateY(10px) rotate(-2deg); filter: brightness(1.25); } to { opacity: 1; transform: none; filter: none; } }
@keyframes clues-confirm { 0% { opacity: .9; } 100% { opacity: 0; } }
@media (max-width: 620px) {
  .arcade-clues-table .clues-evidence { grid-template-columns: 1fr; gap: 10px; }
  .clues-note-face { max-width: 380px; margin-inline: auto; }
  .clues-note-face p { font-size: 18px; }
  .clues-sealed-face { min-height: 90px; flex-direction: row; flex-wrap: wrap; column-gap: 14px; padding: 12px; }
  .clues-wax-seal { width: 36px; height: 36px; margin: 0; font-size: 20px; }
  .clues-sealed-face p { flex-basis: 100%; max-width: none; margin-top: 4px; }
  .clues-desk-tools button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .clues-reveal, .clues-feedback-effect { animation: none; } }
@media (forced-colors: active) {
  .clues-note-face, .clues-sealed-face { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  .clues-note-number, .clues-note-foot { color: CanvasText; }
}
.arcade-babylon[data-game="dice"] canvas { height: clamp(280px, 38vw, 390px); border-radius: 14px; }

/* Native score/result panels sit outside the graphics so tray edges never obscure text. */
.arcade-dice-table { max-width: 960px; margin-inline: auto; padding: clamp(12px, 3vw, 24px); background: #130d1c; border: 1px solid #9370ae40; border-radius: 18px; }
.arcade-dice-round { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; }
.arcade-dice-round .arcade-eyebrow { margin: 0; font-size: 10px; }
.arcade-dice-round > strong { color: #e0c58e; white-space: nowrap; font-size: 13px; }
.arcade-dice-scoreboard, .arcade-dice-roll-summaries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.arcade-dice-scoreboard { padding-bottom: 16px; }
.arcade-dice-scoreboard section { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 14px; background: #261537; border: 1px solid #9360c54d; border-radius: 12px; }
.arcade-dice-scoreboard .dice-side-1 { background: #101d35; border-color: #5485dc4d; }
.arcade-dice-scoreboard h3 { display: flex; flex: 1; min-width: 0; align-items: center; gap: 9px; margin: 0; font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; overflow-wrap: anywhere; }
.arcade-dice-scoreboard p { margin: 0; color: #c8bbd5; font-size: 12px; }
.arcade-dice-scoreboard p strong { color: #f0d89d; font-size: 22px; }
.arcade-dice-seat { display: inline-grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: #7947a0; font-size: 12px; }
.dice-side-1 .arcade-dice-seat { background: #315b9a; }
.arcade-dice-roll-summaries { padding-top: 16px; }
.arcade-dice-roll-summaries section { padding: 10px 12px; border-top: 1px solid #a68aba30; }
.arcade-dice-roll-summaries section > span { color: #b7a6c5; font-size: 11px; }
.arcade-dice-roll-summaries p { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; font-size: 14px; }
.arcade-dice-total { color: #e0c58e; font-size: 12px; }
@media (max-width: 520px) {
  .arcade-dice-round { align-items: flex-start; flex-direction: column; gap: 7px; }
  .arcade-dice-scoreboard { grid-template-columns: 1fr; gap: 8px; }
  .arcade-dice-scoreboard section { padding: 9px; }
  .arcade-dice-scoreboard h3 { font-size: 12px; gap: 6px; }
  .arcade-dice-roll-summaries { gap: 8px; }
  .arcade-dice-roll-summaries section { padding-inline: 2px; }
  .arcade-babylon[data-game="dice"] canvas { height: 320px; }
}

/* Trivia keeps readable native cards above its illustrated desk and finite GPU effects. */
.arcade-trivia-table { position: relative; isolation: isolate; overflow: hidden; max-width: 1000px; margin-inline: auto; border: 1px solid #bba07880; border-radius: 20px; background: #25132e url('/art/website/trivia-quiz-desk.webp') center / cover; box-shadow: 0 20px 50px #0006; }
.arcade-babylon[data-game="trivia"] .arcade-trivia-table canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.arcade-trivia-content.arcade-question { position: relative; z-index: 1; max-width: none; padding: clamp(24px, 5vw, 64px); padding-top: clamp(36px, 7vw, 88px); background: linear-gradient(#1b0d2370, #190c2240); overflow-wrap: anywhere; }
.arcade-trivia-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.arcade-trivia-heading h3 { margin: 4px 0; font: 600 clamp(22px, 3vw, 32px)/1.25 Georgia, serif; color: #f4e5ca; }
.arcade-trivia-score { flex-shrink: 0; padding: 10px 16px; background: #211329e8; border: 1px solid #c5ad7866; border-radius: 12px; color: #f6dfa6; font: 28px Georgia, serif; text-align: center; }
.arcade-trivia-score small { display: block; margin-top: 5px; font: 11px/1.4 sans-serif; color: #e3d1e8; }
.arcade-trivia-progress { display: flex; gap: 8px; margin-block: 18px; }
.arcade-trivia-progress span { flex: 1; height: 5px; border-radius: 9px; background: #c9a9e23b; }
.arcade-trivia-progress .answered { background: #d3b781; box-shadow: 0 0 8px #d3b78140; }
.arcade-trivia-feedback { min-height: 46px; margin-bottom: 16px; padding: 10px 14px; border-left: 2px solid #a989c0; background: #1d1029ed; color: #f2e6f7; font-size: 14px; line-height: 1.6; }
.arcade-trivia-prompt { padding: clamp(18px, 3vw, 30px); background: linear-gradient(135deg, #f6eedf, #ddd0b8); border: 1px solid #c4ac80; border-radius: 12px; box-shadow: 0 7px 20px #0004; color: #35243e; }
.arcade-trivia-prompt .arcade-eyebrow { color: #6b5073; }
.arcade-trivia-prompt h3 { margin: 10px 0 0; font: 600 clamp(21px, 3vw, 28px)/1.5 Georgia, serif; color: #35243e; }
.arcade-trivia-table .arcade-answer-options { margin-top: 20px; }
.arcade-trivia-table .arcade-answer-options .secondary { display: flex; gap: 14px; align-items: center; color: #f6eefb; background: linear-gradient(135deg, #442854f5, #271631f5); border: 1px solid #b39a7680; border-radius: 12px; box-shadow: 0 5px 12px #0003; min-width: 0; }
.arcade-trivia-table .arcade-answer-options .secondary:hover:not(:disabled) { border-color: #f0d6a1; background: #563465; }
.arcade-trivia-table .arcade-answer-options .secondary:focus-visible { outline: 3px solid #f0d6a1; outline-offset: 3px; }
.arcade-trivia-table .arcade-answer-number { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #cfb785; border-radius: 9px; color: #f0d6a1; font: 22px Georgia, serif; background: #21132e; }
.arcade-trivia-table[data-cue="correct"] .arcade-trivia-feedback { border-color: #f2d28d; }
.arcade-trivia-table[data-cue]:not([data-cue=""]) .arcade-trivia-page { animation: trivia-page-in .5s ease-out; }
.arcade-trivia-finish { text-align: center; padding: 30px 18px; border: 1px solid #c5ad7850; border-radius: 12px; background: #251430eb; }
.arcade-trivia-finish > span { color: #f0d6a1; font-size: 54px; }
.arcade-trivia-finish h3 { margin: 8px 0; }
@keyframes trivia-page-in { from { opacity: .5; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .arcade-trivia-content.arcade-question { padding: 30px 16px 24px; } .arcade-trivia-heading { flex-direction: column; align-items: stretch; gap: 12px; } .arcade-trivia-heading h3 { overflow-wrap: normal; } .arcade-trivia-score { align-self: flex-start; display: flex; align-items: center; gap: 12px; padding: 10px; font-size: 23px; } .arcade-trivia-score small { margin: 0; } .arcade-trivia-table .arcade-answer-options { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .arcade-trivia-table .arcade-trivia-page { animation: none !important; } }

/* Hangman's native artwork and alphabet remain complete when the decorative canvas fails. */
.arcade-hangman-table { position: relative; isolation: isolate; overflow: hidden; max-width: 1000px; margin-inline: auto; border: 1px solid #b8a5c5; border-radius: 20px; background: #23142e url('/art/website/hangman-writing-desk.webp') center / cover; box-shadow: 0 20px 50px #0006; }
.arcade-babylon[data-game="hangman"] .arcade-hangman-table canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.hangman-content { position: relative; z-index: 1; padding: clamp(22px, 4vw, 48px); background: linear-gradient(#160c2280, #160c2230); }
.hangman-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hangman-heading h3 { font: clamp(23px, 3vw, 34px) Georgia, serif; color: #fff0dc; margin: 8px 0; }
.hangman-chances { display: grid; text-align: center; padding: 10px 18px; border: 1px solid #aa92b6; border-radius: 12px; background: #22152de8; flex-shrink: 0; }
.hangman-chances strong { font: 32px Georgia, serif; color: #f1d8a4; }
.hangman-chances span { font-size: 12px; color: #e0cde9; }
.hangman-layout.arcade-hangman { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 1.5fr); align-items: center; gap: 28px; margin-block: 24px; }
.hangman-sketch { padding: 14px; border: 1px solid #bfb0ca50; border-radius: 50% 50% 14px 14px; background: radial-gradient(ellipse at top, #51376499, #1b102be0); }
.hangman-sketch svg { display: block; width: 100%; max-width: 230px; height: auto; margin-inline: auto; fill: none; stroke: #e6c9f5; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.hangman-sketch .hangman-frame { stroke: url('#hangman-silver'); stroke-width: 7; }
.hangman-sketch .hangman-rope { stroke: #c1a878; stroke-width: 3; }
.hangman-sketch .hangman-ornament { fill: #a97be3; stroke: #ede0fb; stroke-width: 2; }
.hangman-miss-track { display: flex; justify-content: center; gap: 8px; padding-block: 12px 4px; }
.hangman-miss-track span { width: 10px; height: 10px; background: #e3c6f8; transform: rotate(45deg); border: 1px solid #f7e9ff; }
.hangman-miss-track .spent { background: #442738; border-color: #ab7086; }
.hangman-puzzle { min-width: 0; text-align: center; }
.hangman-word { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-block: 18px; }
.hangman-word span { display: grid; place-items: center; width: clamp(32px, 4vw, 48px); height: clamp(44px, 5vw, 60px); border: 1px solid #d7bf95; border-radius: 7px; color: #36203e; background: linear-gradient(145deg, #fff4dc, #d7c6ac); box-shadow: 0 4px 8px #0005; font: bold clamp(23px, 3vw, 30px) Georgia, serif; }
.hangman-word .sealed { color: #d9bee6; background: linear-gradient(135deg, #4a305e, #291833); border-color: #9e7bb4; }
.hangman-feedback { min-height: 48px; color: #f7e9ff; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.hangman-alphabet { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 7px; padding-top: 20px; border-top: 1px solid #b09abd60; }
.hangman-alphabet .secondary { min-width: 0; min-height: 44px; padding: 8px 0; border-radius: 7px; border: 1px solid #b29ac7; background: linear-gradient(135deg, #4d315f, #291936); color: #fff1dc; font: bold 17px Georgia, serif; box-shadow: 0 3px 6px #0004; }
.hangman-alphabet .secondary[data-tried="true"] { opacity: .45; text-decoration: line-through; }
.hangman-alphabet .secondary:hover:not(:disabled) { background: #654177; border-color: #f3dba6; }
.hangman-alphabet .secondary:focus-visible { outline: 3px solid #f3dba6; outline-offset: 3px; }
.hangman-history { color: #dfcce9; font-size: 13px; line-height: 1.6; margin-bottom: 0; overflow-wrap: anywhere; }
.arcade-hangman-table[data-cue="reveal"] .hangman-word .revealed, .arcade-hangman-table[data-cue="win"] .hangman-word .revealed { animation: hangman-reveal .65s ease-out; }
.arcade-hangman-table[data-cue="miss"] .hangman-figure, .arcade-hangman-table[data-cue="loss"] .hangman-figure { animation: hangman-ink .7s ease-out; }
@keyframes hangman-reveal { 0% { transform: translateY(-8px); box-shadow: 0 0 22px #f4d5a5; } 100% { transform: none; } }
@keyframes hangman-ink { 0% { opacity: .2; } 100% { opacity: 1; } }
@media (max-width: 600px) { .hangman-alphabet { grid-template-columns: repeat(7, minmax(0, 1fr)); } .hangman-layout.arcade-hangman { grid-template-columns: 1fr; gap: 16px; } .hangman-sketch { max-width: 190px; width: 100%; justify-self: center; } .hangman-sketch svg { max-width: 145px; } .hangman-chances { padding: 8px 10px; } .hangman-heading h3 { font-size: 23px; } }
@media (max-width: 420px) { .hangman-content { padding: 22px 12px; } .hangman-heading { flex-direction: column; align-items: stretch; } .hangman-chances { display: flex; align-items: center; justify-content: center; gap: 10px; } .hangman-chances strong { font-size: 24px; } .hangman-alphabet { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hangman-word { gap: 4px; } .hangman-word span { width: 28px; } }
@media (prefers-reduced-motion: reduce) { .arcade-hangman-table *, .arcade-hangman-table .hangman-word .revealed, .arcade-hangman-table .hangman-figure { animation: none !important; } }
@media (forced-colors: active) { .hangman-sketch svg, .hangman-sketch .hangman-frame, .hangman-sketch .hangman-rope, .hangman-sketch .hangman-ornament { stroke: CanvasText; } .hangman-word span { border: 1px solid CanvasText; } }
/* Elimination keeps one accessible route set above its illustrated expedition table. */
.arcade-elimination-table.arcade-story-scene { position: relative; isolation: isolate; overflow: hidden; max-width: 1040px; margin-inline: auto; padding: 0; border: 1px solid #ac96b0; border-radius: 20px; background: #22122e url('/art/website/elimination-expedition-desk.webp') center / cover; box-shadow: 0 18px 50px #0006; text-align: left; }
.arcade-babylon[data-game="elimination"] .arcade-elimination-table canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.elimination-content { position: relative; z-index: 1; padding: clamp(22px, 5vw, 62px); background: linear-gradient(#120a2080, #120a2040); overflow-wrap: anywhere; }
.elimination-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.elimination-heading h3 { margin: 6px 0; font: 600 clamp(24px, 3vw, 34px)/1.2 Georgia, serif; color: #f0e2c5; }
.elimination-score { flex-shrink: 0; text-align: center; padding: 10px 14px; border: 1px solid #c7b28970; border-radius: 12px; background: #1c1226ed; font: 27px Georgia, serif; color: #f0d7a0; }
.elimination-score small { display: block; font: 11px/1.6 sans-serif; color: #dbcde5; }
.elimination-journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 24px 0; gap: 10px; }
.elimination-journey li { position: relative; display: grid; justify-items: center; gap: 7px; color: #c9bad5; }
.elimination-journey li::before { content: ''; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: #af93c052; z-index: -1; }
.elimination-journey li > span:first-child { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #937aa2; border-radius: 50%; background: #271631; color: #d9c2ee; }
.elimination-journey .passed > span:first-child { background: #594732; border-color: #cfb780; color: #ffe3a9; }
.elimination-journey .current > span:first-child { background: #513365; border: 2px solid #e5c6fa; box-shadow: 0 0 14px #a77ccb50; }
.elimination-journey small { font-size: 11px; }
.elimination-feedback { min-height: 44px; padding: 11px 14px; margin: 0 0 18px; border-left: 2px solid #b69aca; background: #1b1126ef; color: #f0e7f5; font-size: 14px; line-height: 1.6; }
.elimination-prompt { padding: 18px 22px; border: 1px solid #bbab91; border-radius: 10px; background: linear-gradient(135deg, #f1e8d8, #dbceb7); color: #36253f; }
.elimination-prompt .arcade-eyebrow { color: #6c5075; margin: 0 0 9px; }
.elimination-prompt h4 { margin: 0; font: 600 clamp(19px, 2.4vw, 26px)/1.45 Georgia, serif; }
.elimination-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.elimination-routes .elimination-route { position: relative; display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #a89aaf; border-radius: 65px 65px 12px 12px; background: #241630; color: #f5e8fa; text-align: center; box-shadow: 0 8px 18px #0005; }
.elimination-route img { display: block; width: 100%; height: clamp(130px, 18vw, 215px); object-fit: cover; object-position: center 40%; }
.elimination-route-label { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px 10px 16px; border-top: 1px solid #97809c60; background: linear-gradient(#31203c, #1e142a); }
.elimination-route-label small { font-size: 9px; letter-spacing: .2em; color: #d6ba91; }
.elimination-route-label strong { font: 600 clamp(16px, 2vw, 21px)/1.3 Georgia, serif; overflow-wrap: anywhere; }
.elimination-route-label > span { margin-top: auto; font-size: 11px; color: #d0bddf; }
.elimination-routes .elimination-route:hover:not(:disabled) { border-color: #f0d4a0; filter: brightness(1.12); }
.elimination-routes .elimination-route:focus-visible { outline: 3px solid #f3d5a0; outline-offset: 3px; }
.elimination-rivals { margin-top: 24px; padding-top: 17px; border-top: 1px solid #a38aab55; }
.elimination-rivals h4 { margin: 0 0 10px; color: #e4cfa9; font: 16px Georgia, serif; }
.elimination-rivals .arcade-survivors { justify-content: flex-start; flex-wrap: wrap; }
.elimination-rivals .arcade-survivors > span { min-width: 0; max-width: 100%; font-size: 12px; }
.elimination-rivals p { margin: 12px 0 0; font-size: 11px; color: #c7b8d3; }
.elimination-finish { padding: 32px 18px; text-align: center; background: #20122ce8; border: 1px solid #ab8db558; border-radius: 12px; color: #e7d7ee; }
.elimination-finish > span { display: block; font-size: 46px; color: #e6c58e; }
.arcade-elimination-table[data-cue="safe"] .elimination-round, .arcade-elimination-table[data-cue="win"] .elimination-finish { animation: elimination-onward 850ms ease-out; }
.arcade-elimination-table[data-cue="exit"] .elimination-finish { animation: elimination-fade 850ms ease-out; }
@keyframes elimination-onward { from { opacity: .55; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes elimination-fade { from { box-shadow: inset 0 0 35px #b57dcc50; } to { box-shadow: none; } }
@media (max-width: 540px) {
  .elimination-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .elimination-score { font-size: 21px; padding: 7px 12px; }
  .elimination-routes { grid-template-columns: 1fr; gap: 12px; }
  .elimination-routes .elimination-route { flex-direction: row; border-radius: 12px; text-align: left; min-height: 110px; }
  .elimination-route img { flex: 0 0 88px; width: 88px; height: 120px; }
  .elimination-route-label { border-top: 0; border-left: 1px solid #97809c60; padding: 12px; }
  .elimination-prompt { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) { .arcade-elimination-table[data-cue] .elimination-round, .arcade-elimination-table[data-cue] .elimination-finish { animation: none; } }
@media (forced-colors: active) { .elimination-prompt, .elimination-route-label, .elimination-feedback { background: Canvas; color: CanvasText; } .elimination-route-label small, .elimination-route-label > span, .elimination-prompt .arcade-eyebrow { color: CanvasText; } }
/* Higher or Lower owns its native card table; canvas is a finite decorative layer. */
.arcade-higherlower-table { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; background: #1b1022 url('/art/website/higherlower-velvet-table.webp') center / 100% 100% no-repeat; }
.arcade-higherlower-table > canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.higherlower-content { position: relative; padding: 48px clamp(28px, 7%, 80px) 70px; color: #fff1e1; }
.higherlower-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.higherlower-heading h3 { margin: 6px 0; font: 600 clamp(21px, 3vw, 30px) Georgia, serif; }
.higherlower-score { display: grid; text-align: right; margin: 0; gap: 4px; }
.higherlower-score strong { font: 600 28px Georgia, serif; color: #efd699; }
.higherlower-score span { font-size: 12px; }
.higherlower-progress { display: flex; justify-content: center; gap: 16px; margin: 18px 0; }
.higherlower-progress span { color: #786b86; font-size: 23px; }
.higherlower-progress .earned { color: #efd699; text-shadow: 0 0 12px #c39458; }
.higherlower-cards { display: flex; justify-content: center; gap: clamp(22px, 6vw, 64px); align-items: center; margin: 20px 0; }
.higherlower-current { display: grid; justify-items: center; gap: 10px; }
.higherlower-current p { margin: 0; }
.higherlower-card, .higherlower-deck { width: clamp(110px, 17vw, 164px); aspect-ratio: 5/7; border: 3px solid #b9a68a; border-radius: 12px; box-shadow: 0 12px 24px #0008, inset 0 0 0 5px #f3e2c0, inset 0 0 0 7px #8a7197; }
.higherlower-card { position: relative; display: grid; place-items: center; color: #392044; background: radial-gradient(ellipse at 30% 20%, #fff8e8, #e8d5b7); }
.higherlower-card > strong { font: 600 clamp(58px, 9vw, 90px) Georgia, serif; }
.higherlower-index { position: absolute; top: 12px; left: 12px; font: 600 20px Georgia, serif; display: grid; justify-items: center; }
.higherlower-index small { font-size: 10px; }
.higherlower-index.bottom { top: auto; left: auto; bottom: 12px; right: 12px; transform: rotate(180deg); }
.higherlower-deck { margin-top: 24px; display: grid; place-items: center; transform: rotate(-7deg); background: repeating-linear-gradient(45deg, #452c55 0 8px, #382144 8px 10px); box-shadow: 4px 4px 0 #ac9a83, 8px 8px 0 #392b40, 0 16px 24px #0008; }
.higherlower-deck span { display: grid; place-items: center; border: 1px solid #ccb792; width: 64%; aspect-ratio: 1; transform: rotate(45deg); border-radius: 8px; font: 48px Georgia, serif; color: #efd699; }
.higherlower-feedback { text-align: center; min-height: 26px; margin: 20px 0; color: #fff1e1; }
.higherlower-choices { display: flex; justify-content: center; gap: 18px; }
.higherlower-choices button { display: flex; gap: 14px; align-items: center; justify-content: center; min-height: 70px; min-width: 150px; border: 1px solid #bda780; background: linear-gradient(#593b69, #34223f); color: #fff5e5; }
.higherlower-choices button > span:first-child { font-size: 32px; color: #efd699; }
.higherlower-choices button > span:last-child { display: grid; gap: 4px; font-size: 18px; text-align: left; }
.higherlower-choices small { font-size: 12px; font-weight: 400; }
.higherlower-rules { text-align: center; font-size: 13px; line-height: 1.6; margin: 20px 0 0; color: #dfd2e5; }
.arcade-higherlower-table[data-cue='correct'] .higherlower-card, .arcade-higherlower-table[data-cue='win'] .higherlower-card { animation: higherlower-reveal .85s ease-out; }
.arcade-higherlower-table[data-cue='push'] .higherlower-card { animation: higherlower-push .65s ease-out; }
.arcade-higherlower-table[data-cue='loss'] .higherlower-card { animation: higherlower-push .65s ease-out; outline: 2px solid #efa3b5; }
@keyframes higherlower-reveal { 0% { transform: translateY(-16px) rotateY(70deg); filter: brightness(1.3); } 60% { transform: translateY(0) rotateY(0); } 100% { filter: brightness(1); } }
@keyframes higherlower-push { 25% { transform: translateX(-5px); } 60% { transform: translateX(5px); } 100% { transform: none; } }
@media (max-width: 520px) {
  .arcade-higherlower-table { background-size: cover; border: 2px solid #aa9780; box-shadow: inset 0 0 0 5px #27172f; }
  .higherlower-content { padding: 36px 20px 75px; }
  .higherlower-heading { flex-direction: column; text-align: center; gap: 10px; }
  .higherlower-score { text-align: center; }
  .higherlower-choices { gap: 10px; }
  .higherlower-choices button { min-width: 0; flex: 1; padding: 10px; gap: 10px; }
  .higherlower-cards { gap: 20px; }
  .higherlower-card, .higherlower-deck { width: clamp(82px, 27vw, 110px); flex-shrink: 0; }
  .higherlower-choices button { gap: 6px; padding: 8px; }
  .higherlower-choices button > span:first-child { font-size: 24px; }
  .higherlower-choices button > span:last-child { font-size: 16px; white-space: nowrap; }
  .higherlower-choices small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .arcade-higherlower-table .higherlower-card { animation: none !important; }
}

/* Wordle keeps one readable native puzzle above a disposable decorative effect layer. */
.arcade-wordle-table { position: relative; isolation: isolate; overflow: hidden; max-width: 960px; margin-inline: auto; border: 1px solid #b8a5c5; border-radius: 20px; background: #25132e url('/art/website/wordle-letter-desk.webp') center / cover; box-shadow: 0 20px 50px #0006; }
.arcade-babylon[data-game="wordle"] .arcade-wordle-table canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.arcade-wordle-content { position: relative; z-index: 1; padding: 40px 24px 32px; background: linear-gradient(#190d2355, #190d2390); text-align: center; }
.arcade-wordle-heading h3 { color: #f4e5ca; font: 600 clamp(22px, 3vw, 30px)/1.25 Georgia, serif; margin: 6px 0 10px; }
.arcade-wordle-heading .arcade-eyebrow { color: #d7bc92; }
.arcade-wordle-count { color: #d5c3e0; font-size: 12px; margin-bottom: 20px; }
.arcade-wordle-table .arcade-wordle { width: min(100%, 310px); max-width: 310px; padding: 12px; border: 1px solid #aa97b280; border-radius: 14px; background: #160c20e8; box-shadow: inset 0 2px 12px #0008, 0 8px 24px #0005; }
.arcade-wordle-table .arcade-letter { border: 1px solid #b8a6bd; border-radius: 7px; background: linear-gradient(145deg, #f6eddf, #d6c8b4); color: #302036; box-shadow: inset 0 1px 2px #fff9, 0 3px 0 #120a1d; }
.arcade-wordle-table .arcade-letter::after { content: none; }
.arcade-wordle-table .arcade-letter small { position: absolute; bottom: 2px; right: 4px; font-size: 11px; line-height: 1; }
.arcade-wordle-table .mark-exact { background: linear-gradient(145deg, #34765e, #214f40); border-color: #a7dfbc; color: #fff; }
.arcade-wordle-table .mark-present { background: linear-gradient(145deg, #856223, #5c4218); border-color: #e8cc80; color: #fff; }
.arcade-wordle-table .mark-absent { background: linear-gradient(145deg, #514555, #302936); border-color: #9f8ca8; color: #fff; }
.arcade-wordle-table .arcade-legend { color: #eee0f6; }
.arcade-wordle-feedback { min-height: 2.5em; margin: 18px auto 12px; max-width: 480px; color: #f0e4f7; font-size: 13px; overflow-wrap: anywhere; }
.arcade-wordle-table .arcade-answer { padding: 18px; font-size: 18px; background: #1e102de8; border: 1px solid #c4a66a; border-radius: 12px; max-width: 400px; margin-inline: auto; }
.arcade-wordle-form { max-width: 410px; margin: 16px auto; text-align: left; }
.arcade-wordle-form label { display: block; margin-bottom: 8px; color: #efe1f7; font-size: 13px; }
.arcade-wordle-form > div { display: flex; gap: 8px; }
.arcade-wordle-form input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #b8a6bd; border-radius: 7px; background: #1c1028; color: #f4e5ca; font-size: 18px; text-transform: uppercase; letter-spacing: .22em; text-align: center; }
.arcade-wordle-form button { flex-shrink: 0; }
/* Use full keyboard rows when they fit and an alphabetic letter grid in a narrower column. */
.arcade-wordle-keyboard { display: grid; grid-template-columns: repeat(auto-fit, 44px); justify-content: center; gap: 5px 4px; max-width: 480px; margin: 20px auto 0; }
.arcade-wordle-keyboard > div { display: contents; }
.arcade-wordle-keyboard .secondary { min-width: 44px; min-height: 44px; padding: 0; border-radius: 6px; font-size: 13px; font-weight: 700; box-shadow: 0 2px 0 #13091b; }
.arcade-wordle-keyboard .secondary.mark-empty { background: #f2e6d7; color: #302036; border-color: #b8a6bd; }
.arcade-wordle-keyboard .secondary:disabled { opacity: .72; }
.arcade-wordle-keyboard .secondary:focus-visible, .arcade-wordle-form :focus-visible { outline: 3px solid #f0d6a1; outline-offset: 2px; }
.arcade-wordle-row[data-reveal="true"] .arcade-letter { animation: wordle-tile-reveal .42s ease-out both; }
.arcade-wordle-row[data-reveal="true"] [data-column="1"] { animation-delay: .09s; }
.arcade-wordle-row[data-reveal="true"] [data-column="2"] { animation-delay: .18s; }
.arcade-wordle-row[data-reveal="true"] [data-column="3"] { animation-delay: .27s; }
.arcade-wordle-row[data-reveal="true"] [data-column="4"] { animation-delay: .36s; }
.arcade-wordle-table[data-cue="win"] .arcade-wordle { animation: wordle-solved .9s ease-out; }
@keyframes wordle-tile-reveal { from { transform: rotateX(70deg) translateY(-3px); opacity: .45; } to { transform: rotateX(0); opacity: 1; } }
@keyframes wordle-solved { 50% { box-shadow: 0 0 28px #9fdfc480; } }
@media (min-width: 850px) {
  .arcade-wordle-content { display: grid; grid-template-columns: minmax(250px, 310px) minmax(0, 480px); gap: 0 36px; justify-content: center; padding: 44px 40px 36px; align-items: center; }
  .arcade-wordle-heading { grid-column: 1 / -1; }
  .arcade-wordle-table .arcade-wordle { grid-column: 1; grid-row: 2 / span 3; }
  .arcade-wordle-table .arcade-legend { grid-column: 1; grid-row: 5; }
  .arcade-wordle-feedback { grid-column: 2; grid-row: 2; }
  .arcade-wordle-form, .arcade-wordle-table .arcade-answer { grid-column: 2; grid-row: 3; width: 100%; }
  .wordle-pad { grid-column: 2; grid-row: 4; }
}
@media (max-width: 520px) {
  .arcade-wordle-content { padding: 30px 10px 24px; }
  .arcade-wordle-table .arcade-wordle { width: min(100%, 280px); padding: 8px; }
  .arcade-wordle-form > div { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .arcade-wordle-table .arcade-letter, .arcade-wordle-table .arcade-wordle { animation: none !important; } }
@media (forced-colors: active) { .arcade-wordle-table .arcade-letter, .arcade-wordle-keyboard .secondary { border: 1px solid CanvasText; color: CanvasText; background: Canvas; } }

/* Quiz Show owns its studio stage and native controls above the finite decorative canvas. */
.arcade-quizshow-table { position: relative; isolation: isolate; overflow: hidden; max-width: 1040px; margin-inline: auto; border: 1px solid #c2a57299; border-radius: 22px; background: #170d25 url('/art/website/quizshow-studio-stage.webp') center / cover; box-shadow: 0 20px 50px #0007; }
.arcade-babylon[data-game="quizshow"] .arcade-quizshow-table canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.quizshow-content { position: relative; z-index: 1; padding: clamp(24px, 6vw, 68px); padding-bottom: clamp(24px, 4vw, 44px); background: linear-gradient(#100a2260, #10091bc0); overflow-wrap: anywhere; }
.quizshow-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.quizshow-heading .arcade-eyebrow { color: #e2c797; letter-spacing: .18em; }
.quizshow-heading h3 { margin: 4px 0 8px; font: 600 clamp(28px, 4vw, 42px)/1.2 Georgia, serif; color: #f6e4bb; }
.quizshow-heading p:last-child { margin: 0; color: #e8dbed; font-size: 14px; }
.quizshow-score { flex-shrink: 0; text-align: center; border: 1px solid #c7a872; border-radius: 12px; padding: 12px 18px; background: #100a20ed; box-shadow: inset 0 0 20px #e9c68712; }
.quizshow-score strong { display: block; font: 32px/1.2 Georgia, serif; color: #f6dfa6; }
.quizshow-score span { display: block; margin-top: 4px; font-size: 11px; color: #eadff1; }
.quizshow-scoreboard { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 22px 0; }
.quizshow-rounds { display: flex; gap: 9px; padding: 0; margin: 0; list-style: none; }
.quizshow-rounds li { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ae8bba80; border-radius: 50%; background: #1a0f28; color: #d1bedc; font: 14px Georgia, serif; }
.quizshow-rounds .answered { background: #735630; color: #fff0c8; border-color: #e8c57e; }
.quizshow-rounds .current { border-color: #e7d3f4; box-shadow: 0 0 0 3px #c699e724; color: #fff5ff; }
.arcade-quizshow-table .quizshow-lifeline { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 8px 14px; border: 1px solid #a9dbe6; border-radius: 12px; background: #172835f5; color: #d5f5fb; }
.quizshow-lifeline strong { font: 22px Georgia, serif; }
.quizshow-lifeline span { font-size: 12px; }
.arcade-quizshow-table .quizshow-lifeline:disabled { opacity: 1; color: #c1b6cc; border-color: #806e94; background: #1c1425; }
.quizshow-display { padding: clamp(20px, 3vw, 32px); border: 1px solid #ceb582; border-radius: 14px; background: radial-gradient(ellipse at top, #312447fa, #110d24fa); box-shadow: inset 0 0 0 4px #d7b77512, 0 8px 24px #0005; }
.quizshow-display .arcade-eyebrow { margin: 0 0 12px; color: #e7c887; }
.quizshow-display h4 { margin: 0; color: #f8f0ff; font: 500 clamp(22px, 3vw, 29px)/1.5 Georgia, serif; }
.quizshow-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.arcade-quizshow-table .quizshow-podium { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 84px; padding: 16px; border: 1px solid #c4a57999; border-radius: 14px 14px 20px 20px; background: linear-gradient(135deg, #473156fa, #20132efa); color: #fbf4ff; text-align: left; font-size: 16px; line-height: 1.5; box-shadow: inset 0 -5px 0 #0d081640, 0 6px 16px #0004; white-space: normal; }
.quizshow-letter { flex: 0 0 38px; display: grid; place-items: center; height: 38px; border: 1px solid #d8bd84; border-radius: 50%; background: #1d132b; color: #f0d49a; font: 24px Georgia, serif; }
.quizshow-podium > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.quizshow-podium small { display: block; margin-top: 5px; font-size: 11px; color: #d2c4dd; }
.arcade-quizshow-table .quizshow-podium[data-eliminated="true"] { background: #171120e8; border-color: #695d79; color: #baacc8; opacity: 1; box-shadow: none; }
.arcade-quizshow-table .quizshow-podium:hover:not(:disabled), .arcade-quizshow-table .quizshow-lifeline:hover:not(:disabled) { border-color: #f7d69b; background: #513565; transform: translateY(-2px); }
.arcade-quizshow-table button:focus-visible { outline: 3px solid #f7d69b; outline-offset: 3px; }
.quizshow-feedback { margin: 22px 0 0; min-height: 48px; padding: 12px 16px; border-left: 3px solid #b48bcc; border-radius: 0 8px 8px 0; background: #110c21ed; color: #f1e6f7; font-size: 14px; line-height: 1.6; }
.arcade-quizshow-table[data-cue="correct"] .quizshow-feedback { border-color: #f1d28b; }
.arcade-quizshow-table[data-cue="help"] .quizshow-feedback { border-color: #9de2ef; }
.arcade-quizshow-table[data-cue="correct"] .quizshow-question, .arcade-quizshow-table[data-cue="incorrect"] .quizshow-question { animation: quizshow-reveal .45s ease-out; }
.arcade-quizshow-table[data-cue="help"] .quizshow-podium[data-eliminated="true"] { animation: quizshow-remove .45s ease-out; }
.quizshow-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; color: #decde7; font-size: 11px; letter-spacing: .06em; }
.quizshow-footer strong { margin-left: 6px; color: #f6dfa6; }
.quizshow-finish { padding: 28px 18px; text-align: center; border: 1px solid #ceb58288; border-radius: 14px; background: #170f29ed; }
.quizshow-finish > span { color: #f0d6a1; font-size: 54px; }
.quizshow-finish h4 { margin: 8px 0; color: #f6e4bb; font: 26px Georgia, serif; }
.quizshow-finish p { color: #eadff1; }
@keyframes quizshow-reveal { from { opacity: .6; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes quizshow-remove { from { opacity: .4; } to { opacity: 1; } }
@media (max-width: 520px) { .quizshow-content { padding: 28px 16px 24px; } .quizshow-heading { gap: 12px; align-items: flex-start; } .quizshow-heading h3 { font-size: 26px; overflow-wrap: normal; } .quizshow-score { padding: 10px; } .quizshow-score strong { font-size: 25px; } .quizshow-answers { grid-template-columns: 1fr; gap: 12px; } .arcade-quizshow-table .quizshow-podium { min-height: 72px; } .quizshow-rounds { gap: 7px; } .quizshow-rounds li { width: 32px; height: 32px; } .quizshow-display { padding: 20px 16px; } }
@media (prefers-reduced-motion: reduce) { .arcade-quizshow-table .quizshow-question, .arcade-quizshow-table .quizshow-podium { animation: none !important; } .arcade-quizshow-table button:hover:not(:disabled) { transform: none; } }
/* Phone studio space prioritizes the question and touch targets over nested frame padding. */
@media (max-width: 520px) {
  .arcade-stage:has(.arcade-quizshow-table) { padding: 8px; }
  .quizshow-heading { flex-direction: column; }
  .quizshow-score { display: flex; gap: 12px; align-items: center; }
  .quizshow-score span { margin: 0; }
  .arcade-quizshow-table .quizshow-podium { justify-content: flex-start; }
}

/* Scramble owns one illustrated desk and matched native tiles, independent of GPU availability. */
.arcade-scramble-table { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #b4a0b8; border-radius: 18px; background: #28162f url('/art/website/scramble-puzzle-desk.webp') center/cover; box-shadow: inset 0 0 70px #10071999, 0 14px 36px #0005; }
.arcade-scramble-table > canvas { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; pointer-events: none; z-index: 2; }
.scramble-content { position: relative; padding: 46px 48px 36px; }
.scramble-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px; border-radius: 12px; background: #160b20e8; }
.scramble-heading h3 { margin: 6px 0 0; font: 30px/1.2 Georgia, serif; color: #f7e7cc; }
.scramble-chances { flex-shrink: 0; text-align: center; padding: 10px 16px; border-left: 1px solid #c9b38a66; }
.scramble-chances strong { display: block; color: #f4d79c; font: 34px/1 Georgia, serif; }
.scramble-chances span { display: block; margin-top: 7px; color: #e4d3ed; font-size: 12px; }
.scramble-rack { margin-top: 26px; padding: 24px 16px; border: 1px solid #cbbca777; border-radius: 16px; text-align: center; background: #180d23ed; box-shadow: inset 0 -5px 0 #0003; }
.scramble-tiles { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.scramble-tile { display: grid; place-items: center; width: 54px; height: 62px; border: 2px solid #c8b79f; border-radius: 9px; color: #35253b; background: linear-gradient(145deg, #fff6e5, #d8c6ab); font: bold 32px Georgia, serif; box-shadow: inset 0 2px 2px #fff, inset 0 -3px 0 #ac957b, 0 5px 0 #08030b, 0 7px 12px #0007; }
.scramble-feedback { min-height: 3em; margin: 16px auto 0; max-width: 440px; color: #ebdff1; font-size: 14px; line-height: 1.6; }
.scramble-ledger { margin-top: 24px; padding: 20px; border: 1px solid #ba9ec866; border-radius: 12px; background: #190d23ed; }
.scramble-ledger ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.scramble-ledger li { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 12px; border: 1px solid #8b6da044; border-radius: 8px; color: #bca8c8; background: #251630; }
.scramble-guess-number { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: #493054; color: #ecdaed; font: 14px Georgia, serif; }
.scramble-ledger li > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; letter-spacing: .08em; }
.scramble-ledger small { font-size: 11px; }
.scramble-ledger li[data-filled="true"] { color: #f0e5f6; border-color: #ae90c177; }
.scramble-ledger li[data-solved="true"] { color: #ffe2a2; border-color: #e2c088; background: #443228; }
.arcade-scramble-table[data-cue="miss"] .scramble-ledger li[data-filled="true"]:last-of-type { animation: scramble-record .45s ease-out; }
.arcade-scramble-table[data-cue="miss"] .scramble-rack { animation: scramble-record .45s ease-out; }
.arcade-scramble-table[data-cue="win"] .scramble-tile { animation: scramble-unlock .7s ease-out; }
.arcade-scramble-table[data-cue="loss"] .scramble-rack { animation: scramble-record .45s ease-out; }
@keyframes scramble-record { from { opacity: .65; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes scramble-unlock { 0% { transform: translateY(5px); } 45% { transform: translateY(-5px); box-shadow: 0 0 22px #efd69977; } 100% { transform: none; } }
@media (max-width: 520px) {
  .arcade-stage:has(.arcade-scramble-table) { padding: 8px; }
  .scramble-content { padding: 24px 14px; }
  .scramble-heading { padding: 12px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .scramble-heading h3 { font-size: 25px; }
  .scramble-chances { display: flex; align-items: center; gap: 12px; border-left: 0; padding: 0; }
  .scramble-chances strong { font-size: 26px; }
  .scramble-chances span { margin: 0; }
  .scramble-rack { padding: 20px 10px; }
  /* Six letters fit the phone rack. Longer words balance across centred lines. */
  .scramble-tiles { display: block; text-align: center; text-wrap: balance; }
  .scramble-tile { display: inline-grid; vertical-align: middle; width: min(44px, calc(100% / 6 - 6px)); height: 52px; margin: 4px 3px; font-size: 26px; }
  .scramble-ledger { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .arcade-scramble-table .scramble-tile, .arcade-scramble-table .scramble-rack, .arcade-scramble-table .scramble-ledger li { animation: none !important; } }

/* Arcade identity and progression live in the top bar, leaving the collection free of account strips. */
.arcade-page .public-page-heading { display: flex; align-items: center; gap: 14px; min-width: 0; }
.arcade-page .public-page-title-row { display: flex; align-items: center; gap: 14px; }
.arcade-page .public-header-actions .arcade-naval-sound { margin: 0; justify-content: flex-start; }
.arcade-page .public-page-heading h1 { margin: 0; font: 30px/1.1 Georgia, serif; }
.arcade-page .public-page-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
/* Match identity and participants use the space between the brand and right-aligned navigation. */
.arcade-page .site-header:has(.arcade-match-header) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
.arcade-match-header { min-width: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 20px; }
.arcade-match-header .arcade-match-heading { min-width: 0; max-width: 100%; flex-direction: row; align-items: center; margin: 0; gap: 12px; }
.arcade-match-header .arcade-match-heading > div { min-width: 0; }
.arcade-match-header .arcade-eyebrow { margin: 0 0 4px; }
.arcade-match-header h2 { font-size: 25px; overflow-wrap: anywhere; }
.arcade-match-header .arcade-players { min-width: 0; max-width: 100%; margin: 0; gap: 8px; }
.arcade-match-header .arcade-player { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 1250px) {
  .arcade-page .site-header:has(.arcade-match-header) { grid-template-columns: minmax(0, 1fr) auto; }
  .arcade-match-header { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
}
.arcade-profile { flex-shrink: 0; }
.arcade-profile .account-menu .arcade-progression { display: grid; gap: 16px; margin: 0 0 14px; padding: 14px 0; border-width: 1px 0; border-radius: 0; background: transparent; }
.arcade-profile .arcade-level { gap: 10px; }
.arcade-profile .arcade-level-seal { flex-shrink: 0; width: 42px; height: 46px; font-size: 23px; }
.arcade-profile .arcade-level > div { min-width: 0; }
.arcade-profile .arcade-level progress { width: 170px; }
@media (max-width: 1000px) {
  .arcade-page .site-header { flex-wrap: wrap; gap: 12px; }
  .arcade-page .public-header-actions { flex: 1 1 auto; flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 700px) {
  .arcade-page .site-header { align-items: stretch; }
  .arcade-page .site-header:has(.arcade-match-header) { grid-template-columns: minmax(0, 1fr); }
  .arcade-match-header { grid-row: 3; display: grid; gap: 10px; }
  .arcade-match-header .arcade-players { flex-wrap: wrap; }
  .arcade-match-header .arcade-match-heading { justify-content: space-between; }
  .arcade-page .site-header:has(.arcade-match-header) .public-header-actions { flex-wrap: wrap; }
  .arcade-page .public-header-actions { justify-content: space-between; flex-wrap: nowrap; gap: 8px; }
  .arcade-page .site-header nav { flex-wrap: wrap; justify-content: flex-start; gap: 6px 14px; }
  .arcade-page .public-page-heading h1 { font-size: 26px; }
  .arcade-page .public-page-heading p { font-size: 11px; }
}
/* RPS owns one native duel surface; Babylon adds only bounded confirmed sparks. */
.arcade-rps-table { position: relative; isolation: isolate; overflow: hidden; border: 2px solid #baacbf; border-radius: 24px; background: radial-gradient(ellipse at 50% 35%, #432d55, #1b1426 75%); box-shadow: inset 0 0 0 6px #21182b, inset 0 0 0 7px #726078, 0 15px 40px #0005; }
.arcade-rps-table::before, .arcade-rps-table::after { content: '\2726'; position: absolute; top: 12px; color: #ddc9a0; font-size: 24px; }
.arcade-rps-table::before { left: 15px; } .arcade-rps-table::after { right: 15px; }
.arcade-babylon .arcade-rps-table canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; background: transparent; }
.rps-content { position: relative; padding: 24px clamp(16px, 4vw, 42px); text-align: center; }
.rps-content header h3 { margin: 6px 0 24px; font: 600 clamp(23px, 4vw, 34px)/1.2 Georgia, serif; }
.rps-duel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 4vw, 48px); max-width: 640px; margin: auto; }
.rps-player { min-width: 0; padding: 16px 10px; border: 1px solid #947d9d; border-radius: 16px; background: #130f1c66; }
.rps-player h4 { margin: 6px 0 12px; overflow-wrap: anywhere; font-size: 18px; }
.rps-medallion { display: block; width: min(100%, 150px); margin: auto; filter: drop-shadow(0 6px 5px #0006); }
.rps-player p:last-child { margin-bottom: 0; text-transform: capitalize; }
.rps-player small { display: block; margin-top: 5px; color: #dfd1e7; }
.rps-feedback { min-height: 2.8em; max-width: 600px; margin: 22px auto 16px; color: #f0e5f5; overflow-wrap: anywhere; }
.arcade-rps-table .arcade-rps-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 650px; margin: auto; }
.arcade-rps-table .rps-choice { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 14px 8px; border-radius: 15px; background: linear-gradient(145deg, #513560, #2a1d37); border: 1px solid #ab96b6; }
.arcade-rps-table .rps-choice .rps-medallion { width: min(100%, 90px); }
.rps-choice strong { font-size: 17px; } .rps-choice small { color: #eadff0; line-height: 1.4; }
.arcade-rps-table .rps-choice[aria-pressed="true"] { border: 2px solid #e9d099; box-shadow: inset 0 0 14px #e9d09933; opacity: 1; }
.rps-rules { color: #d4c3df; font-size: 13px; line-height: 1.6; margin: 22px 0 0; }
.arcade-rps-table[data-cue="lock"] .rps-choice[aria-pressed="true"] .rps-medallion { animation: rps-seal 450ms ease-out; }
.arcade-rps-table[data-cue="win"] .rps-player .rps-medallion, .arcade-rps-table[data-cue="loss"] .rps-player .rps-medallion, .arcade-rps-table[data-cue="draw"] .rps-player .rps-medallion { animation: rps-reveal 650ms ease-out; }
@keyframes rps-seal { 50% { transform: scale(.92); } }
@keyframes rps-reveal { from { transform: rotateY(90deg) scale(.9); opacity: .3; } to { transform: none; opacity: 1; } }
@media (max-width: 420px) { .rps-content { padding: 22px 12px; } .rps-player { padding: 12px 6px; } .rps-player h4 { font-size: 15px; } .arcade-rps-table .arcade-rps-choices { gap: 6px; } .rps-choice strong { font-size: 12px; white-space: nowrap; } .rps-choice small { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .arcade-rps-table .rps-medallion { animation: none !important; } }
@media (forced-colors: active) { .arcade-rps-table, .rps-player, .arcade-rps-table .rps-choice { border-color: CanvasText; } .arcade-rps-table .rps-choice[aria-pressed="true"] { outline: 3px solid Highlight; } .rps-medallion { forced-color-adjust: none; } }

/* Who Am I keeps native readable identity cards above one blank illustrated masquerade table. */
.arcade-whoami-table.arcade-clue-scene { position: relative; display: block; isolation: isolate; max-width: 1040px; margin-inline: auto; overflow: hidden; border: 1px solid #b4a5c180; border-radius: 18px; background: #25142f url('/art/website/whoami-masquerade-table.webp') center / cover; }
.whoami-content { position: relative; z-index: 1; padding: clamp(24px, 4vw, 44px); background: linear-gradient(#1b10285c, #140c22c9); }
.whoami-effects { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.arcade-whoami-table .whoami-effects canvas { width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; background: transparent; }
.whoami-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 18px; }
.whoami-heading .arcade-eyebrow { margin: 0 0 8px; color: #e2cafa; letter-spacing: .16em; font-size: 10px; }
.whoami-heading h3 { margin: 0; font: 500 clamp(25px, 3.5vw, 38px)/1.2 Georgia, serif; color: #f7edff; }
.whoami-heading p:last-child { margin: 10px 0 0; color: #e0d0e9; font-size: 13px; }
.whoami-status { padding: 9px 12px; border: 1px solid #bfa8d3; border-radius: 24px; background: #22142df2; color: #f4e6ff; font-size: 12px; }
.whoami-case-stats { display: flex; flex-wrap: wrap; gap: 18px; margin: 24px 0 18px; color: #e4d2ed; font-size: 12px; }
.whoami-case-stats strong { color: #fff0cb; margin-right: 5px; }
.arcade-whoami-table .whoami-evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.whoami-note { min-width: 0; margin: 0; }
.whoami-note-face, .whoami-sealed { min-height: 220px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 18px; text-align: center; border: 4px double #b8a1bd; border-radius: 12px; box-shadow: 0 8px 20px #0005; }
.whoami-note-face { background: linear-gradient(135deg, #fbf1df, #e6d6c2); color: #32233b; }
.whoami-note-number { color: #67466c; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.whoami-note-face p { margin: 18px 0; font: 18px/1.5 Georgia, serif; overflow-wrap: anywhere; }
.whoami-note-face small { font-size: 10px; color: #65516a; font-style: italic; }
.whoami-sealed { background: linear-gradient(135deg, #483052f5, #281931fa); color: #f1e2fc; }
.whoami-sealed > span { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border: 3px double #cbb6d6; border-radius: 50%; background: #61366f; color: #fff2cf; font: 28px Georgia, serif; }
.whoami-sealed strong { font: 16px Georgia, serif; }
.whoami-sealed p { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: #e0cde9; }
.whoami-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-block: 22px; padding-block: 16px; border-block: 1px solid #b69fc64d; }
.whoami-tools p { margin: 0; color: #eadcf2; font-size: 12px; line-height: 1.6; }
.whoami-tools button { min-height: 44px; }
.whoami-tools button:focus-visible { outline: 3px solid #f4d59f; outline-offset: 3px; }
.whoami-attempts { padding: 18px; background: #190e26e8; border: 1px solid #a58eb44d; border-radius: 12px; }
.whoami-attempts h4 { margin: 0 0 12px; color: #f3e1fc; font: 19px Georgia, serif; }
.whoami-attempts p { margin: 0; color: #d6c4e0; font-size: 12px; line-height: 1.6; }
.whoami-attempts ol { padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.whoami-attempts li { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; padding: 8px 12px; background: #392342; border-radius: 8px; color: #f8edff; }
.whoami-attempts li span { color: #e6c18e; font: 16px Georgia, serif; }
.whoami-feedback { margin: 18px 0 0; color: #e6d1f1; font-size: 12px; line-height: 1.6; }
.whoami-note-face[data-reveal='true'] { animation: whoami-unveil .65s ease-out; }
.arcade-whoami-table[data-cue='win'] .whoami-status { animation: whoami-glint .85s ease-out; }
@keyframes whoami-unveil { from { opacity: .5; transform: translateY(10px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes whoami-glint { 50% { box-shadow: 0 0 22px #ead3b880; } }
@media (max-width: 650px) { .arcade-whoami-table .whoami-evidence { grid-template-columns: 1fr; } .whoami-content { padding: 26px 16px; } .whoami-note-face, .whoami-sealed { min-height: 160px; } .arcade-stage:has(.arcade-whoami-table) { padding: 8px; } }
@media (prefers-reduced-motion: reduce) { .arcade-whoami-table .whoami-note-face, .arcade-whoami-table .whoami-status { animation: none; } }

/* The daily desk shares one illustrated frame across three native, accessible trials. */
.arcade-daily-table { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #b9a6b5; border-radius: 18px; background: #211025 url('/art/website/dailychallenge-challenge-desk.webp') center/100% 100%; box-shadow: 0 16px 40px #0006; }
.arcade-daily-table > canvas { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; pointer-events: none; z-index: 2; }
.daily-content { position: relative; padding: 100px 44px 36px; }
.daily-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 22px; border: 1px solid #b297bb65; border-radius: 12px; background: #190c24e8; }
.daily-heading h3 { margin: 8px 0 0; font: 28px/1.25 Georgia, serif; color: #f4e7d2; }
.daily-progress { flex-shrink: 0; padding-left: 20px; border-left: 1px solid #bca0c45c; text-align: center; }
.daily-progress strong { display: block; color: #edce8f; font: 28px Georgia, serif; }
.daily-progress span { display: block; margin-top: 6px; font-size: 12px; color: #dcc9e5; }
.daily-journey { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; padding: 0; margin: 20px 0; list-style: none; }
.daily-journey li { display: flex; gap: 12px; align-items: center; padding: 16px 12px; border: 1px solid #9a81a75c; border-radius: 12px; background: #170b20eb; min-width: 0; }
.daily-journey li[aria-current="step"] { border-color: #d7b4e2; box-shadow: inset 0 0 20px #b06ee226; }
.daily-journey li[data-state="passed"] { border-color: #c5aa69; }
.daily-journey li[data-state="ended"] { border-color: #bd7c91; }
.daily-journey strong { display: block; color: #f2e3f4; font-size: 15px; }
.daily-journey small { display: block; margin-top: 5px; color: #d5c0dd; font-size: 12px; }
.daily-medallion { flex: 0 0 40px; display: grid; place-items: center; height: 40px; border: 2px solid #b7a3b6; border-radius: 50%; color: #f5e5cf; background: radial-gradient(circle at 35% 25%,#925dba,#3d1c53 65%); box-shadow: inset 0 0 0 3px #25132e; font: 19px Georgia, serif; }
.daily-journey li[data-state="passed"] .daily-medallion { color: #281c34; background: radial-gradient(circle at 35% 25%,#fff0c8,#b29461); }
.daily-puzzle { padding: 24px; border: 1px solid #b29ac279; border-radius: 14px; background: linear-gradient(135deg,#2f1a3af5,#140b1ded); }
.daily-puzzle h4 { margin: 14px 0 24px; color: #f6eadc; font: 25px/1.4 Georgia, serif; overflow-wrap: anywhere; }
.daily-puzzle .arcade-question { padding: 0; border: 0; background: none; box-shadow: none; }
.daily-puzzle .arcade-answer-options { margin-top: 22px; }
.daily-puzzle .arcade-answer-options button { min-height: 70px; text-align: left; background: linear-gradient(135deg,#52305e,#2a1936); border-color: #a78ab1; }
.daily-letters { justify-content: center; gap: 10px; margin: 26px 0; }
.daily-letter { display: grid; place-items: center; width: 56px; height: 64px; border: 2px solid #c4b393; border-radius: 8px; color: #36203f; background: linear-gradient(135deg,#fff5df,#d5c6aa); box-shadow: inset 0 0 0 3px #f5e9d0, 0 5px 0 #806b66, 0 8px 12px #0005; font: bold 32px Georgia, serif; }
.daily-clues { display: grid; gap: 12px; padding: 0; list-style: none; }
.daily-clues li { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid #b9a286; border-radius: 10px; color: #35243b; background: linear-gradient(135deg,#f6ecd6,#d8c9ac); overflow-wrap: anywhere; }
.daily-clues li[data-sealed="true"] { color: #cab6d3; border-color: #7c588a; background: repeating-linear-gradient(135deg,#291833,#291833 8px,#2e1c39 8px,#2e1c39 16px); }
.daily-seal { flex: 0 0 32px; display: grid; place-items: center; height: 32px; border: 1px solid #c79bbd; border-radius: 50%; color: #eed7e7; background: radial-gradient(circle at 30% 25%,#a16691,#48213e); font: 18px Georgia, serif; }
.daily-ledger { margin-top: 24px; padding-top: 16px; border-top: 1px solid #b093bd65; }
.daily-ledger p { color: #dcc8e3; font-size: 14px; }
.daily-ledger ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0; list-style: none; }
.daily-ledger li { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #846a9469; border-radius: 8px; color: #baa4c4; min-width: 0; }
.daily-ledger li[data-filled="true"] { color: #f3e7da; border-color: #bc9eae; background: #65436335; }
.daily-ledger strong { font-size: 13px; overflow-wrap: anywhere; }
.daily-result { padding: 16px; border-left: 3px solid #d8bb7b; background: #4e354559; color: #f3e3ce; }
.arcade-daily-table[data-cue="stage"] .daily-journey li[aria-current="step"], .arcade-daily-table[data-cue="hint"] .daily-clues li:not([data-sealed="true"]):last-of-type, .arcade-daily-table[data-cue="win"] .daily-medallion { animation: daily-unlock .75s ease-out; }
.arcade-daily-table[data-cue="miss"] .daily-ledger, .arcade-daily-table[data-cue="loss"] .daily-result { animation: daily-record .45s ease-out; }
@keyframes daily-unlock { from { filter: brightness(1.8); transform: translateY(6px); } to { filter: brightness(1); transform: translateY(0); } }
@keyframes daily-record { from { opacity: .45; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) { .daily-content { padding: 70px 20px 24px; } .daily-heading { align-items: flex-start; padding: 16px; } .daily-heading h3 { font-size: 23px; } .daily-journey li { flex-direction: column; text-align: center; padding: 14px 6px; } .daily-puzzle { padding: 20px 16px; } .daily-ledger ol { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .arcade-daily-table { background-size: 100% auto; background-position: top center; background-repeat: no-repeat; box-shadow: inset 0 0 0 5px #b9a6b542, 0 16px 40px #0006; } .daily-journey { grid-template-columns: 1fr; } .daily-journey li { flex-direction: row; text-align: left; padding: 10px 12px; } .arcade-stage:has(.arcade-daily-table) { padding: 8px; } .daily-content { padding: 60px 12px 20px; } .daily-heading { flex-direction: column; gap: 14px; } .daily-progress { padding: 0; border: 0; display: flex; align-items: center; gap: 12px; } .daily-progress span { margin: 0; } .daily-journey { gap: 6px; } .daily-journey strong { font-size: 13px; } .daily-journey small { font-size: 11px; } .daily-puzzle h4 { font-size: 23px; } .daily-letter { width: 40px; height: 48px; font-size: 26px; } .daily-letters { gap: 8px; } .daily-clues li { padding: 12px; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .arcade-daily-table * { animation: none !important; } }

/* Member Arcade polish: emphasize the game selection and confirmed match state, preserving every board. */
.arcade-editorial-heading { max-width: 76ch; margin-inline: auto; text-align: center; }
.arcade-editorial-heading h2 { letter-spacing: -.04em; line-height: 1.1; }
.arcade-carousel-status { border-top: 1px solid var(--line); padding-top: 18px; }
.arcade-feature-copy { background: #17101ff2; border-color: #b58aca63; border-radius: 14px; box-shadow: 0 12px 36px #0004, inset 0 1px #ffffff0c; }
.arcade-card-play { gap: 12px; }
.arcade-playing-header { gap: 16px 24px; }
.arcade-match-heading h2 { letter-spacing: -.03em; }
.arcade-players { gap: 12px; }
.arcade-player { background: #17101fe6; border-color: var(--line); border-radius: 10px; }
.arcade-player.current-turn { border-color: #d1a1ef; box-shadow: inset 0 -2px #b580df; }
.arcade-turn { border-color: #bc8cdf70; border-radius: 10px; background: #24172ff5; }
.arcade-match-footer { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }
.arcade-guess-form { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #17101ff2; gap: 12px; }
.arcade-game-feedback:not(:empty) { border-left: 2px solid var(--accent); background: #21172de8; border-radius: 8px; padding: 12px 16px; }
.arcade-loading { border-color: #b58aca63; box-shadow: inset 0 1px #ffffff0c; }
.arcade-launch-panel.app-dialog { overflow-y: auto; }
.arcade-session-list { gap: 12px; }
.arcade-session-list > li { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #17101f; }
.arcade-info-modal.app-dialog > header { padding: 20px 24px; margin: 0; border-bottom: 1px solid var(--line); }
.arcade-info-modal.app-dialog .arcade-dialog-content { padding: 24px; }
@media (max-width: 650px) {
  .arcade-info-modal.app-dialog > header, .arcade-info-modal.app-dialog .arcade-dialog-content { padding: 16px; }
  .arcade-guess-form { padding: 14px; }
}

/* Launch labels retain their footprint while an authoritative start is pending. */
.arcade-launch-panel .primary { min-width: min(220px, 100%); }

.wordle-pad { width: 100%; min-width: 0; text-align: center; }
.wordle-pad-toggle { min-height: 44px; margin-block-start: 12px; }
.arcade-wordle-keyboard[hidden] { display: none; }
.arcade-wordle-keyboard[data-layout="qwerty"] { display: flex; flex-direction: column; align-items: center; }
.arcade-wordle-keyboard[data-layout="qwerty"]:not([hidden]) > div { display: flex; justify-content: center; gap: 4px; }
.arcade-wordle-keyboard[data-layout="qwerty"][hidden] { display: none; }


/* Keep future clues subordinate to revealed evidence and answers close to their question. */
.whoami-sealed { border: 1px solid #756080; box-shadow: none; background: #2a1d30; }
.whoami-sealed > span { border: 1px solid #967fa0; background: #38283f; color: #e0cde9; }
@media (max-width: 650px) {
  .arcade-whoami-table .whoami-sealed { min-height: auto; padding: 12px; }
  .whoami-sealed > span { height: 32px; width: 32px; margin-bottom: 6px; font-size: 18px; }
  .whoami-sealed p { margin-top: 4px; }
  .quizshow-answers { margin-top: 10px; }
  .scramble-ledger { margin-top: 12px; }
  .scramble-ledger li { min-height: 28px; padding-block: 4px; }
}

/* Local covers hide the scroll shadows at the corresponding end of a full-size board. */
.arcade-dialog-content:has(.arcade-board-scroll-hint) {
  background:
    linear-gradient(to right, #17121f 60%, transparent) left center / 24px 100% local no-repeat,
    linear-gradient(to left, #17121f 60%, transparent) right center / 24px 100% local no-repeat,
    linear-gradient(to right, #9974b066, transparent) left center / 12px 100% scroll no-repeat,
    linear-gradient(to left, #9974b066, transparent) right center / 12px 100% scroll no-repeat,
    #17121f;
}
