/* NBC Arcade — shared page shell (cabinet + every game page).
   Aug 26 2026 (Chris): brought in line with newburghbrewing.com — cream page with the site's soft
   tints, purple scrolling brand strip, coral scalloped header, purple Bebas nav, white cards,
   hard-shadow buttons, dark footer. One motion rhythm, one shadow scale (PREMIUM-UX-PLAYBOOK).
   Games render into #game-frame; the shell owns everything around it. docs/NBC-ARCADE-SPEC.md */
:root {
  --purple: #702082; --purple-dark: #5A1A6A; --coral: #ee7470; --coral-dark: #D45A56; --coral-ink: #B23E39;
  --mint: #98D4C4; --gold: #f5c518; --lilac: #CBA3D8;
  --cream: #FDFBF9; --cream-dark: #F5F0EB; --dark: #2D2926; --gray: #6B6460; --line: rgba(112,32,130,.14);
  /* legacy names still referenced by add-ons (taproom.js) */
  --plum: #fff; --ink: var(--dark); --mint-soft: var(--gray); --line-mint: rgba(152,212,196,.7);
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-fast: 140ms; --dur-base: 220ms; --dur-slow: 360ms;
  --sh-1: 0 2px 8px rgba(45,41,38,.06);
  --sh-2: 0 8px 32px rgba(45,41,38,.08);
  --sh-3: 0 20px 48px rgba(112,32,130,.15);
  --r: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Source Sans 3', 'Oswald', system-ui, sans-serif; color: var(--dark); min-height: 100vh;
  background:
    radial-gradient(ellipse at top left, rgba(203,163,216,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(238,116,112,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at center, rgba(152,212,196,0.1) 0%, transparent 70%),
    var(--cream);
}
a { color: var(--purple); }
.wrap { max-width: 560px; margin: 0 auto; padding: 22px 14px 40px; }
.wrap.wide { max-width: 980px; }
.font-bebas { font-family: 'Bebas Neue', sans-serif; }

/* entrance: one soft fade-up, staggered */
.rise { animation: rise var(--dur-slow) var(--ease) both; }
.rise:nth-child(2) { animation-delay: 60ms; } .rise:nth-child(3) { animation-delay: 120ms; }
.rise:nth-child(4) { animation-delay: 180ms; } .rise:nth-child(5) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── site chrome: brand strip → scalloped coral header → purple nav (mirrors newburghbrewing.com) ── */
.brand-strip { background: var(--purple); padding: 8px 0; overflow: hidden; position: relative; }
.brand-strip-inner { display: flex; animation: scroll-strip 35s linear infinite; white-space: nowrap; width: max-content; }
.brand-strip:hover .brand-strip-inner { animation-play-state: paused; }
@keyframes scroll-strip { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.strip-text { font-family: 'Bebas Neue', sans-serif; font-size: 13px; color: #fff; letter-spacing: 4px; margin-right: 60px; opacity: .95; display: inline-flex; align-items: center; gap: 8px; }
.strip-text::after { content: '♦'; color: var(--coral); font-size: 8px; }
.header-wavy { background: var(--coral); position: relative; padding: 18px 0 26px; }
.header-wavy::after {
  content: ''; position: absolute; bottom: -12px; left: 0; right: 0; height: 24px; z-index: 10;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 24' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0 24 Q15 8 30 24 Q45 8 60 24 Q75 8 90 24 Q105 8 120 24 L120 0 L0 0 Z' fill='%23ee7470'/%3E%3C/svg%3E") repeat-x;
  background-size: 60px 24px;
}
.header-wavy .inner { max-width: 980px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.header-wavy .logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.header-wavy .logo .circle { background: #fff; border-radius: 50%; padding: 8px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.header-wavy .logo img { width: 44px; height: 44px; display: block; }
.header-wavy .welcome { font-family: 'Caveat', cursive; font-size: 20px; line-height: 1; margin-bottom: 2px; }
.header-wavy .name { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 2px; line-height: 1; text-shadow: 2px 2px 0 rgba(0,0,0,.2); }
.header-wavy .arcade-tag { font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 3px; color: #fff; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 16px; white-space: nowrap; }
.nav-main { background: var(--purple); position: sticky; top: 0; z-index: 50; margin-top: 12px; }
.nav-main .inner { max-width: 980px; margin: 0 auto; display: flex; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.nav-main .inner::-webkit-scrollbar { display: none; }
.nav-link { font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 2px; color: rgba(255,255,255,.85); padding: 15px 18px; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-link.active { color: #fff; border-bottom-color: var(--coral); }
.nav-link:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* ── installed (home-screen) app chrome: compact header, notch-padded, no site nav ── */
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--purple); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; position: sticky; top: 0; z-index: 50; }
.app-head .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 3px; }
.app-head .brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.app-head .links { display: flex; gap: 8px; align-items: center; }
.app-head .back, .app-head .tag { font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 2px; color: #fff; text-decoration: none; background: rgba(255,255,255,.16); border-radius: 999px; padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; }   /* 44px tap targets (were ~28px; Sep 9 2026) */
/* white on #ee7470 is 2.85:1 — under AA. A deeper coral for anything COLOURED THAT CARRIES TEXT (4.9:1);
   decorative coral is untouched. Same token used for coral text on light backgrounds. */
.app-head .site { background: var(--coral-ink); text-decoration: underline; text-underline-offset: 3px; }
.app-head .refresh{font-size:19px;line-height:1;padding:0 12px;min-width:44px;cursor:pointer;font-family:inherit}
.app-head .install { background: var(--gold); color: var(--dark); border: 0; cursor: pointer; font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 2px; padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
#installSheet { position: fixed; inset: 0; z-index: 75; display: none; background: rgba(45,41,38,.55); align-items: flex-end; justify-content: center; }
#installSheet.open { display: flex; }
@media (min-width: 640px) { #installSheet { align-items: center; padding: 16px; } }
@media (max-width: 420px) { .app-head .brand span { display: none; } }
.wrap { padding-top: 14px; }
body.standalone .wrap { padding-top: 14px; }
body.standalone header.ar-head { padding-top: 0; }
footer.ar-foot.app { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }

/* ── page title ── */
header.ar-head { text-align: center; padding: 6px 0 14px; }
header.ar-head .kicker { font-family: 'Bebas Neue', sans-serif; color: var(--coral); letter-spacing: 3px; font-size: 14px; }
header.ar-head h1 { font-family: 'Bebas Neue', sans-serif; font-size: 52px; line-height: 1; color: var(--purple); letter-spacing: 3px; margin-top: 2px; }
header.ar-head h1 .coral { color: var(--coral); }
.section-divider { width: 80px; height: 4px; background: linear-gradient(90deg, var(--purple), var(--coral)); margin: 10px auto 0; border-radius: 2px; }
/* cabinet page: the emblem is the title (Sep 9 2026) — shorter than the old 52px wordmark + kicker */
header.ar-head.emblem-head { padding: 2px 0 8px; }
header.ar-head .emblem { display: block; width: min(108px, 30vw); height: auto; margin: 0 auto; filter: drop-shadow(0 2px 0 rgba(112,32,130,.18)); }
header.ar-head.emblem-head .section-divider { margin-top: 4px; width: 60px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ar-back { display: inline-block; margin-top: 10px; color: var(--purple); text-decoration: none; font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 2px; opacity: .85; transition: opacity var(--dur-fast) var(--ease); }
.ar-back:hover, .ar-back:focus-visible { opacity: 1; outline: none; text-decoration: underline; }

/* ── splash hero: the game's art, one line, one button ── */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r); text-align: center;
  padding: 44px 18px 26px; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  background: var(--purple-dark) var(--hero, none) center / cover no-repeat;
  border: 2px solid #fff; box-shadow: var(--sh-2);
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(45,41,38,0) 0%, rgba(45,41,38,.35) 50%, rgba(45,41,38,.85) 100%); }
.hero > * { position: relative; }
.hero p { color: #fff; font-size: 16px; line-height: 1.45; max-width: 34ch; margin: 0 0 16px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero .gotw { display: inline-block; margin-bottom: 12px; font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 2px; color: var(--dark); background: var(--gold); border-radius: 999px; padding: 6px 14px; box-shadow: var(--sh-1); }
.hero .gotw:empty { display: none; }
.hero .gotw a { color: var(--dark); }
.play-btn {
  font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 3px; cursor: pointer;
  background: var(--coral); color: #fff; border: 0; border-radius: 8px;
  padding: 14px 44px; text-transform: uppercase; text-decoration: none; display: inline-block; line-height: 1;
  box-shadow: 0 4px 0 var(--coral-dark);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.play-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--coral-dark); }
.play-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--coral-dark); }
.play-btn:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

/* ── game frame: hidden until PLAY, then a full-screen overlay ── */
#game-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 82vh; margin: 0 auto; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-3); background: #2a0e38; display: none; }
#game-frame canvas { display: block; }
#game-frame.frame-landscape { aspect-ratio: 16 / 9; }
#rotateCard { display: none; position: absolute; inset: 0; z-index: 5; align-items: center; justify-content: center; gap: 16px; background: rgba(42,14,56,.94); color: #fdfbf9; font-family: Oswald, sans-serif; text-align: center; padding: 24px; }
#rotateCard .rc-icon { font-size: 56px; animation: rc-turn 1.6s ease-in-out infinite; }
#rotateCard .rc-text b { display: block; font-family: 'Bebas Neue', Oswald, sans-serif; font-size: 40px; letter-spacing: 1px; line-height: 1; }
#rotateCard .rc-text span { font-size: 16px; opacity: .85; }
@keyframes rc-turn { 0%, 20% { transform: rotate(0); } 50%, 70% { transform: rotate(90deg); } 100% { transform: rotate(0); } }
#game-frame.playing.rotate #rotateCard { display: flex; }
#game-frame.playing { display: block; position: fixed; inset: 0; z-index: 60; width: 100vw; height: 100vh; height: 100svh; max-height: none; aspect-ratio: auto; box-shadow: none; background: #0b1512; border: 0; border-radius: 0; margin: 0; touch-action: none; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; padding-bottom: env(safe-area-inset-bottom); box-sizing: border-box; }
#game-frame.playing canvas { touch-action: none; }
/* iOS: an overflow:hidden body still rubber-bands under a fixed overlay; pin it while playing */
body.playing { position: fixed; width: 100%; overflow: hidden; overscroll-behavior: none; }
#game-frame.playing canvas { margin: 0 auto; }
#quitBtn, #muteBtn {
  position: absolute; top: 10px; z-index: 61; display: none; cursor: pointer; font-family: 'Oswald', sans-serif;
  background: rgba(28,11,38,.72); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; padding: 0 14px; min-height: 44px; min-width: 44px; font-size: 15px; backdrop-filter: blur(6px);
  transition: background var(--dur-fast) var(--ease);   /* 44px minimum (WCAG 2.5.8 / Apple HIG) — was ~32px (Sep 9 2026) */
}
#quitBtn { left: max(10px, env(safe-area-inset-left)); top: max(10px, env(safe-area-inset-top)); } #muteBtn { right: max(10px, env(safe-area-inset-right)); top: max(10px, env(safe-area-inset-top)); font-size: 19px; padding: 0 12px; }
#game-frame.playing #quitBtn, #game-frame.playing #muteBtn { display: block; }
#quitBtn:hover, #muteBtn:hover { background: rgba(28,11,38,.92); }
#quitBtn:focus-visible, #muteBtn:focus-visible { outline: 2px solid var(--gold); }

/* ── cards ── */
.card { background: #fff; border: 2px solid transparent; border-radius: var(--r); padding: 18px 20px; margin-top: 16px; box-shadow: var(--sh-2); }
.card h2 { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 2px; color: var(--purple); line-height: 1; }
.card p { font-size: 15px; line-height: 1.55; color: var(--gray); margin-top: 8px; }
.fine { font-size: 12px; color: var(--gray); opacity: .85; margin-top: 12px; line-height: 1.5; }

/* label-style icons */
.ar-ico { height: 1.3em; width: auto; vertical-align: -0.35em; }
.ar-ico.sm { height: 1.1em; margin-right: .35em; vertical-align: -0.2em; }
.prize-line .icons { display: flex; align-items: center; gap: 6px; flex: none; }
.prize-line .icons .ar-ico { height: 34px; }
.info-card li .ico { display: flex; align-items: flex-start; justify-content: center; padding-top: 2px; }
.info-card li .ico .ar-ico { height: 26px; }
.cab .badge .ar-ico, .gotw-banner .kicker .ar-ico { height: 1.2em; margin-right: .3em; vertical-align: -0.25em; }

.install-hint { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 12px 10px 14px; background: #fff; border-radius: 12px; box-shadow: var(--sh-1); border-left: 4px solid var(--mint); font-size: 13px; color: var(--dark); }
.install-hint b { color: var(--purple); }
.install-hint button { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--cream-dark); color: var(--purple); font-size: 18px; cursor: pointer; }

/* one prize line + the "?" that hides everything else */
.prize-line { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-top: 16px; padding: 12px 14px 12px 16px; background: #fff; border-radius: 12px; box-shadow: var(--sh-1); border-left: 4px solid var(--coral); }
.prize-line .txt { font-size: 14px; line-height: 1.45; color: var(--dark); flex: 1; }
.prize-line .txt b { font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 1px; color: var(--purple); margin-right: 6px; }
.info-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--purple); background: #fff; color: var(--purple); font-family: 'Bebas Neue', sans-serif; font-size: 22px; line-height: 1; cursor: pointer; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.info-btn:hover { background: var(--purple); color: #fff; transform: translateY(-1px); }
.info-btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* the "?" sheet: how to play · prizes · rules — the only place the words live */
#infoModal { position: fixed; inset: 0; z-index: 75; display: none; background: rgba(45,41,38,.55); align-items: flex-end; justify-content: center; padding: 0; }
#infoModal.open { display: flex; }
.info-card { width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh; overflow: auto; background: var(--cream); border-radius: 20px 20px 0 0; padding: 20px 22px 28px; box-shadow: var(--sh-3); animation: rise var(--dur-slow) var(--ease) both; }
.info-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.info-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 2px; color: var(--purple); line-height: 1; }
.info-card .x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--cream-dark); color: var(--purple); font-size: 20px; cursor: pointer; }
.info-card .x:focus-visible { outline: 2px solid var(--coral); }
.info-card h4 { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 2px; color: var(--coral); margin: 18px 0 8px; }
.info-card ul { list-style: none; display: grid; gap: 8px; }
.info-card li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--dark); }
.info-card li .n { font-family: 'Bebas Neue', sans-serif; font-size: 20px; line-height: 1.2; color: var(--purple); }
.info-card li .ico { font-size: 18px; line-height: 1.3; text-align: center; }
.info-card strong { color: var(--purple); }
@media (min-width: 640px) { #infoModal { align-items: center; padding: 16px; } .info-card { border-radius: var(--r); } }

.tabs { display: flex; gap: 8px; margin: 12px 0; }
.tabs button { flex: 1; padding: 9px 0; font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 2px; background: #fff; color: var(--purple); border: 2px solid var(--purple); border-radius: 8px; cursor: pointer; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.tabs button:hover { background: rgba(112,32,130,.06); }
.tabs button.active { background: var(--purple); color: #fff; }
.tabs button:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
table.lb { width: 100%; border-collapse: collapse; font-size: 15px; }
table.lb td, table.lb th { padding: 9px 6px; text-align: left; }
table.lb th { color: var(--gray); font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 13px; letter-spacing: 2px; border-bottom: 2px solid var(--cream-dark); }
table.lb th.num, table.lb td.num, table.lb td.score { text-align: right; }
table.lb td.score { color: var(--purple); font-weight: 700; font-variant-numeric: tabular-nums; }
table.lb td.rank { width: 36px; color: var(--coral-ink); font-weight: 700; }
table.lb tr:nth-child(even) td { background: var(--cream-dark); }
.lb-empty { text-align: center; color: var(--gray); padding: 18px 0; font-size: 15px; }

/* ── score submit modal (z 70: ABOVE the fullscreen frame at 60) ── */
#submitModal { position: fixed; inset: 0; z-index: 70; display: none; background: rgba(45,41,38,.7); align-items: center; justify-content: center; padding: 16px; }
#submitModal.open { display: flex; }
.modal-card { width: 100%; max-width: 420px; background: #fff; border-top: 6px solid var(--coral); border-radius: var(--r); padding: 22px; max-height: 92vh; max-height: 92dvh; overflow: auto; box-shadow: var(--sh-3); animation: rise var(--dur-slow) var(--ease) both; }
.modal-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 36px; letter-spacing: 2px; color: var(--purple); line-height: 1; }
.modal-card .score-line { font-family: 'Oswald', sans-serif; font-size: 17px; color: var(--coral-dark); margin: 6px 0 14px; }
.modal-card label { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: 2px; color: var(--gray); margin: 12px 0 5px; }
.modal-card input { width: 100%; padding: 11px 12px; font-size: 16px; font-family: inherit; background: var(--cream); color: var(--dark); border: 2px solid var(--cream-dark); border-radius: 10px; transition: border-color var(--dur-fast) var(--ease); }
.modal-card input:focus { outline: none; border-color: var(--purple); }
.modal-card label.chk { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; font-family: inherit; font-size: 14px; letter-spacing: 0; color: var(--dark); cursor: pointer; line-height: 1.4; }
.modal-card label.chk input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--purple); }
.modal-card label.chk small { display: block; color: var(--gray); font-size: 12px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn { flex: 1; padding: 13px 0; font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 2px; border: none; border-radius: 8px; cursor: pointer; text-align: center; text-decoration: none; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.btn.primary { background: var(--purple); color: #fff; box-shadow: 0 4px 0 var(--purple-dark); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--purple-dark); }
.btn.primary:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--purple-dark); }
.btn.ghost { background: #fff; color: var(--purple); border: 2px solid var(--purple); }
.btn.ghost:hover { background: rgba(112,32,130,.05); }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }
.btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
#submitMsg { margin-top: 12px; font-size: 15px; min-height: 20px; }
#submitMsg.err { color: var(--coral-dark); }
#submitMsg.ok { color: var(--purple); }
#rewardPanel { display: none; text-align: center; }
#rewardHead { font-size: 15px; color: var(--dark); margin-bottom: 8px; }
#rewardCode { cursor: pointer; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 28px; letter-spacing: 4px; background: var(--cream); border: 2px dashed var(--purple); border-radius: 10px; padding: 12px 8px; margin: 6px 0; color: var(--purple); }
#rewardMeta { font-size: 13px; color: var(--gray); margin: 6px 0 12px; }
#rewardShop { display: inline-block; padding: 13px 28px; }
#rewardNext { font-size: 13px; color: var(--gray); margin-top: 12px; }

/* ── auto-post toast (after the first submit, runs post silently) ── */
#arcadeToast { position: fixed; left: 50%; bottom: 18px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: min(92vw, 520px); background: #fff; color: var(--dark); border-left: 5px solid var(--coral); border-radius: 12px; padding: 12px 16px; font-size: 15px; line-height: 1.5; box-shadow: var(--sh-3); text-align: center; transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease); }
#arcadeToast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
#arcadeToast b { color: var(--purple); }
#arcadeToast .dim { color: var(--gray); font-size: 13px; display: block; margin-top: 2px; }
#arcadeToast .code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1.5px; background: var(--cream); color: var(--purple); border: 1px dashed var(--purple); border-radius: 8px; padding: 3px 10px; margin-left: 6px; cursor: pointer; font-size: 14px; }
#arcadeToast .link { background: none; border: 0; color: var(--purple); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; padding: 0; }
#arcadeToast .code:focus-visible, #arcadeToast .link:focus-visible { outline: 2px solid var(--coral); }

/* ── footer (site footer, condensed) ── */
footer.ar-foot { position: relative; margin-top: 36px; background: var(--dark); color: rgba(255,255,255,.7); text-align: center; padding: 28px 16px 26px; font-size: 13px; line-height: 1.7; }
footer.ar-foot::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--purple) 0%, var(--coral) 50%, var(--mint) 100%); }
footer.ar-foot .ft { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; color: #fff; }
footer.ar-foot a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; } /* a link in a run of text can't rely on colour alone (WCAG 1.4.1) */
footer.ar-foot a:hover { text-decoration: underline; }
body > .site-foot-wrap { margin: 0; }

/* ── cabinet page ── */
.gotw-banner { position: relative; overflow: hidden; margin-top: 4px; padding: 0; border-radius: var(--r); text-align: center; background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%); color: #fff; box-shadow: var(--sh-2); }
/* the big card = the Game of the Week's share card (Sep 9 2026): art on top, the prize line under it */
.gotw-banner .gotw-art-link { display: block; position: relative; }
.gotw-banner .gotw-art-link:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.gotw-banner .gotw-art { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--purple-dark); }
/* the THIS HOUR badge on the big card — same pill as the grid cards, pinned bottom-left over the art */
.gotw-banner .gotw-art-link .badge { position: absolute; left: 12px; bottom: 12px; top: auto; background: var(--coral); color: #fff; font-family: 'Bebas Neue', sans-serif; font-size: 12px; letter-spacing: 2px; padding: 6px 10px; border-radius: 999px; box-shadow: var(--sh-1); display: inline-flex; align-items: center; }
.gotw-banner .gotw-art-link .badge .ar-ico { height: 1.2em; margin-right: .3em; }
/* `display:inline-flex` above outranks the browser's own [hidden] rule, so the THIS HOUR badge painted
   at 10 AM with the doors shut even though the page had hidden it (Chris, Sep 9 2026). */
.gotw-banner .gotw-art-link .badge[hidden] { display: none; }
.gotw-banner .gotw-body { padding: 22px 22px 24px; }
/* desktop: art beside the copy at its FULL shape (never cropped — the share card's headline is the point), copy centered */
@media (min-width: 720px) { .gotw-banner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; } .gotw-banner .gotw-art-link { align-self: stretch; display: flex; align-items: center; background: var(--purple-dark); } .gotw-banner .gotw-art { height: auto; } .gotw-banner .gotw-body { padding: 28px 26px; } }
.gotw-banner::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(238,116,112,.25); }
.gotw-banner > * { position: relative; }
.gotw-banner .kicker { font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 3px; color: var(--gold); }
.gotw-banner h2 { font-family: 'Bebas Neue', sans-serif; font-size: 54px; line-height: 1; letter-spacing: 2px; margin: 8px 0 6px; }
.gotw-banner p { color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.5; margin-bottom: 18px; max-width: 44ch; margin-left: auto; margin-right: auto; }
.gotw-banner .ends { display: block; margin-top: 14px; font-family: 'Bebas Neue', sans-serif; font-size: 13px; color: var(--mint); letter-spacing: 2px; }
.cabinets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.cab { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; background: #fff; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: var(--sh-2); transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease); }
.cab:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: rgba(112,32,130,.2); }
/* the whole card is the button: it has to press like one and be reachable by keyboard */
/* the card link (art + name + board) — the details button is a SIBLING, never inside it (Sep 9 2026) */
.cab .cab-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cab .cab-link:active { transform: translateY(1px); }
.cab .cab-link:focus-visible { outline: 3px solid var(--purple); outline-offset: -3px; border-radius: var(--r); }
.cab .cab-link:hover .play-tag { background: var(--coral); transform: scale(1.06); }
.cab .cab-foot { padding: 0 16px 14px; }
.cab .play-tag { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 999px;
  background: rgba(238,116,112,.92); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; padding-left: 3px; box-shadow: var(--sh-1); transition: background var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); }
.cab.soon { opacity: .85; }
.cab.featured { border-color: var(--gold); }
.cab .art { aspect-ratio: 1200 / 630; width: 100%; object-fit: cover; display: block; background: var(--purple-dark) center / cover no-repeat; }
.cab .art.placeholder { display: flex; align-items: center; justify-content: center; font-size: 60px; }
.cab .art.placeholder { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%); }
.cab .badge { position: absolute; top: 10px; left: 10px; background: var(--gold); color: var(--dark); font-family: 'Bebas Neue', sans-serif; font-size: 12px; letter-spacing: 2px; padding: 6px 10px; border-radius: 999px; box-shadow: var(--sh-1); }
.cab .badge.soon { background: #fff; color: var(--purple); }
.cab .badge.hour { top: auto; bottom: 10px; background: var(--coral); color: #fff; }   /* the taproom hourly contest's game (Sep 8 2026) */
.cab .badge.hour:first-child { top: 10px; bottom: auto; }
.cab .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cab h3 { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 2px; line-height: 1; color: var(--purple); }
.cab .tag { font-size: 14px; color: var(--gray); line-height: 1.45; }
.cab .top3 { list-style: none; margin: 2px 0 6px; font-size: 13px; color: var(--dark); }
.cab .top3 li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid var(--cream-dark); }
.cab .top3 li b { color: var(--purple); font-weight: 700; font-variant-numeric: tabular-nums; }
.cab .top3 li.empty { color: var(--gray); font-style: italic; border: 0; }
.cab .play-btn { margin-top: auto; align-self: flex-start; font-size: 20px; padding: 11px 28px; }
.cab .play-btn.soon { background: #fff; border: 2px solid var(--cream-dark); color: var(--gray); box-shadow: none; cursor: default; transform: none; }
.skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--cream-dark) 25%, #fff 50%, var(--cream-dark) 75%); background-size: 200% 100%; animation: arShimmer 1.2s infinite; margin: 6px 0; }
@keyframes arShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .skel, .rise, .modal-card, .info-card, .brand-strip-inner { animation: none; }
  .cab, .play-btn, .btn, .tabs button, .ar-back, .info-btn { transition: none; }
}
@media (max-width: 480px) {
  header.ar-head h1 { font-size: 44px; }
  .gotw-banner h2 { font-size: 42px; }
  .hero { padding-top: 36px; min-height: 230px; }
  .header-wavy .name { font-size: 24px; } .header-wavy .welcome { font-size: 17px; }
  .header-wavy .arcade-tag { display: none; }
}

/* A link inside a run of text must be distinguishable without colour (WCAG 1.4.1) — underline it. */
footer a, .foot a, .fine a, .info-card a { text-decoration: underline; text-underline-offset: 2px; }


/* ── cabinet details modal: scores without leaving the grid (the card itself plays) ── */
#cabModal { position: fixed; inset: 0; z-index: 80; background: rgba(45,41,38,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
#cabModal[hidden] { display: none; }
#cabModal .cm-card { background: #fff; border-radius: var(--r); max-width: 460px; width: 100%; max-height: 90vh; overflow: auto; position: relative; box-shadow: var(--sh-3); padding-bottom: 18px; }
#cabModal .cm-x { position: absolute; top: 8px; right: 10px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 999px; background: rgba(45,41,38,.55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
#cabModal .cm-x:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
#cabModal .cm-art { aspect-ratio: 1200 / 630; background: var(--purple-dark) center / cover no-repeat; border-radius: var(--r) var(--r) 0 0; }
#cabModal .cm-name { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 2px; color: var(--purple); margin: 14px 18px 2px; }
#cabModal .cm-tag { margin: 0 18px 12px; color: var(--gray); font-size: 14px; line-height: 1.45; }
#cabModal .cm-board { margin: 0 18px 12px; }
#cabModal .cm-board h3 { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 2px; color: var(--dark); margin-bottom: 4px; }
#cabModal .cm-list { list-style: none; font-size: 14px; }
#cabModal .cm-list li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--cream-dark); }
#cabModal .cm-list li b { color: var(--purple); font-variant-numeric: tabular-nums; }
#cabModal .cm-empty { color: var(--gray); font-style: italic; font-size: 14px; }
#cabModal .cm-play { display: block; margin: 14px 18px 0; text-align: center; text-decoration: none; }
.cab .cab-info { display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 0; background: none; border: 0; padding: 0 4px; font: inherit; font-size: 14px; color: var(--purple); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }   /* 44px tap target (was ~21px) */
.cab .cab-info:hover { color: var(--coral-ink); }
.cab .cab-info:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }

/* nothing open to this visitor — better than a blank grid */
.cab-none { grid-column: 1 / -1; text-align: center; padding: 26px 18px; color: var(--gray); font-size: 15px; line-height: 1.6; }

/* ---- loading card (Sep 4 2026) ------------------------------------------------------------
   Shown from the Play tap until the game fires 'arcade:ready' (or the shell's watchdog gives
   up). The soundtrack is held until the same moment — it used to play over the loading screen.
   Per-cabinet copy comes from mount({ loadingText }). */
#loadCard { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; padding: 28px;
  background: radial-gradient(120% 90% at 50% 40%, #4a1458 0%, #2a0e38 70%);
  color: #fdfbf9; font-family: Oswald, sans-serif; text-align: center; transition: opacity .26s ease; }
#loadCard[hidden] { display: none; }
#loadCard.lc-out { opacity: 0; }
#loadCard .lc-name { font-family: 'Bebas Neue', Oswald, sans-serif; font-size: clamp(40px, 11vw, 68px);
  line-height: .95; letter-spacing: 1px; color: #fdfbf9; }
#loadCard .lc-name span { color: #ee7470; margin-left: .3em; }
/* THE MUG (Sep 9 2026, replaces the progress bar): beer + foam rise inside the glass over the watchdog
   window (4.4s ≈ LOAD_WATCHDOG_MS), .lc-full tops it off in ~300ms when the game says ready. */
#loadCard .lc-mug { width: clamp(96px, 26vw, 132px); margin: 2px 0 6px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
#loadCard .lc-mug svg { display: block; width: 100%; height: auto; overflow: visible; }
#loadCard .lc-beer, #loadCard .lc-foam { transform-box: view-box; transform: translateY(104px);
  animation: lc-pour 4.4s cubic-bezier(.25,.6,.3,1) forwards; }
#loadCard .lc-beer2 { animation-name: lc-pour-slosh; }
#loadCard.lc-full .lc-beer, #loadCard.lc-full .lc-foam { animation: lc-top .32s ease-out forwards; }
#loadCard .lc-bub { transform-box: view-box; opacity: 0; animation: lc-bub 1.7s linear infinite; }
#loadCard .lc-bub:nth-child(5) { animation-delay: .55s; } #loadCard .lc-bub:nth-child(6) { animation-delay: 1.1s; }
#loadCard .lc-msg { font-size: 17px; letter-spacing: .3px; color: #98d4c4; max-width: 30ch; }
@keyframes lc-pour { 0% { transform: translateY(104px); } 100% { transform: translateY(10px); } }
@keyframes lc-pour-slosh { 0% { transform: translateY(104px) scaleX(1); } 50% { transform: translateY(58px) scaleX(1.04); } 100% { transform: translateY(10px) scaleX(1); } }
@keyframes lc-top { 100% { transform: translateY(0); } }
@keyframes lc-bub { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .75; } 100% { transform: translateY(-72px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #loadCard .lc-beer, #loadCard .lc-foam { animation: none; transform: translateY(0); }
  #loadCard .lc-bub { animation: none; opacity: 0; }
}
