/* tandy.beer: styles for index.html (loaded with a version stamp: see tests/stamp-assets.mjs). */
@font-face { font-family: 'Anton'; font-weight: 400; font-display: swap; src: url(fonts/anton-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Anton'; font-weight: 400; font-display: swap; src: url(fonts/anton-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Libre Franklin is a variable font: one file per character set covers 400-700. */
@font-face { font-family: 'Libre Franklin'; font-weight: 400 700; font-display: swap; src: url(fonts/libre-franklin-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Franklin'; font-weight: 400 700; font-display: swap; src: url(fonts/libre-franklin-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Cinzel: engraved capitals, for the Local Legends only (variable 400-700). */
@font-face { font-family: 'Cinzel'; font-weight: 400 700; font-display: swap; src: url(fonts/cinzel-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cinzel'; font-weight: 400 700; font-display: swap; src: url(fonts/cinzel-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* --muted is used for small text on the dark backgrounds; #947956 is the lightest
   tweak of the original tone that meets WCAG AA (4.5:1) on both. */
:root { --accent: #D4AF37; --bg: #1B1108; --bg-deep: #150D06; --cream: #F5EBD8; --muted: #947956; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: #EFE6D2; font-family: 'Libre Franklin', system-ui, sans-serif; }
.screen { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }

#opens { position: relative; flex-direction: column; gap: 24px; text-align: center; }
.opens-heading { margin: 0; font-family: 'Anton', Impact, sans-serif; font-weight: 400; font-size: clamp(38px, 7vw, 88px); line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; color: var(--cream); }
.countdown { font-family: 'Anton', Impact, sans-serif; font-size: clamp(44px, 9vw, 104px); line-height: 1; letter-spacing: 0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.scroll-cue { position: absolute; bottom: 32px; left: 50%; margin-left: -22px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--muted); animation: cueBob 2s ease-in-out infinite; }
.scroll-cue:hover { color: #F2C879; }
#opens { padding-bottom: 104px; }
/* On phones the tap list always runs past the screen, so while open the first screen is
   anchored to the top from the start. Centred, it jumped up when the list arrived. */
@media (max-width: 600px) { #opens.is-open { justify-content: flex-start; } }

/* Logo: traced from the Untappd original (see assets/). Each part is its own <svg>
   stacked in one box, so the browser can fade them on the compositor instead of
   re-rasterising the whole logo (and its mask) every frame — that's what keeps it
   smooth on phones. */
.logo { position: relative; width: min(440px, 78vw); aspect-ratio: 2505 / 1235; }
.logo svg { fill-rule: evenodd; }
.logo .layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.logo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo .ink { fill: var(--cream); }
.logo .l-shadow { fill: #C4B07A; }

/* The first screen is simply there: the intro (below) opens onto it. The board and
   "what's on" arrive later (after their fetch), so they fade in when they do. */
#opens > .taps, #opens > .whats-on { animation: logoFade 0.5s ease both; }
@keyframes logoFade { from { opacity: 0; } to { opacity: 1; } }

/* ---- The opening: a screenful of beer that parts down the middle ----
   0-0.6s the beer rises with its foam head, bubbles going up; at 0.85s the two halves
   slide apart (their inner edges frothy) and the page is there. Transforms only. With
   animations off it isn't shown; it hides itself at the end even without the script,
   and a tap skips it. */
.intro { position: fixed; inset: 0; z-index: 60; overflow: hidden; cursor: pointer; animation: introGone 0s linear 2.05s forwards; }
.intro.leaving { animation: introLeave 0.28s ease forwards; }
.calm .intro { display: none; }
.intro-back { position: absolute; inset: 0; background: var(--bg); animation: introBack 0.4s ease 0.85s forwards; }
.intro-half { position: absolute; top: 0; bottom: 0; width: 50.5%; overflow: hidden; will-change: transform;
  background: linear-gradient(180deg, #F7BE45 0%, #EAA028 32%, #D3801A 66%, #9A5810 100%); }
.intro-l { left: 0; animation: introL 1.9s both; }
.intro-r { right: 0; animation: introR 1.9s both; }
@keyframes introL { 0% { transform: translate(0, 100%); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); } 32% { transform: translate(0, 0); }
  45% { transform: translate(0, 0); animation-timing-function: cubic-bezier(0.7, 0, 0.3, 1); } 100% { transform: translate(-104%, 0); } }
@keyframes introR { 0% { transform: translate(0, 100%); animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); } 32% { transform: translate(0, 0); }
  45% { transform: translate(0, 0); animation-timing-function: cubic-bezier(0.7, 0, 0.3, 1); } 100% { transform: translate(104%, 0); } }
@keyframes introBack { to { opacity: 0; } }
@keyframes introGone { to { visibility: hidden; } }
@keyframes introLeave { to { opacity: 0; visibility: hidden; } }
/* The head: a cream band with a bubbly underside. */
.intro-foam { position: absolute; left: 0; right: 0; top: 0; height: 15vh;
  background: radial-gradient(circle at 26px 0, #FFF8E6 25px, transparent 26px) 0 100% / 52px 30px repeat-x,
    linear-gradient(180deg, #FFFDF5, #FBEFD2) 0 0 / 100% calc(100% - 14px) no-repeat; }
/* Where the beer parts: a frothy edge on each half's inner side. */
.intro-edge { position: absolute; top: 0; bottom: 0; width: 22px; opacity: 0; animation: introEdge 0.25s ease 0.84s forwards;
  background: radial-gradient(circle at 40% 50%, rgba(255,248,230,0.95) 6px, rgba(255,248,230,0) 7px) 0 0 / 22px 19px repeat-y,
    radial-gradient(circle at 65% 50%, rgba(255,248,230,0.9) 4px, rgba(255,248,230,0) 5px) 0 7px / 22px 13px repeat-y,
    radial-gradient(circle at 25% 50%, rgba(255,248,230,0.8) 3px, rgba(255,248,230,0) 4px) 0 3px / 22px 27px repeat-y; }
@keyframes introEdge { to { opacity: 1; } }
.intro-l .intro-edge { right: -11px; }
.intro-r .intro-edge { left: -11px; transform: scaleX(-1); }
.intro-bubbles i { position: absolute; bottom: -20px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(255, 250, 230, 0.75); background: rgba(255, 255, 255, 0.18);
  animation: introBubble 1.6s cubic-bezier(0.4, 0, 0.8, 0.6) infinite; }
.intro-bubbles i:nth-child(1) { left: 8%; animation-delay: 0s; }
.intro-bubbles i:nth-child(2) { left: 18%; width: 5px; height: 5px; animation-delay: 0.3s; }
.intro-bubbles i:nth-child(3) { left: 29%; width: 11px; height: 11px; animation-delay: 0.15s; }
.intro-bubbles i:nth-child(4) { left: 38%; animation-delay: 0.6s; }
.intro-bubbles i:nth-child(5) { left: 47%; width: 6px; height: 6px; animation-delay: 0.45s; }
.intro-bubbles i:nth-child(6) { left: 57%; width: 10px; height: 10px; animation-delay: 0.05s; }
.intro-bubbles i:nth-child(7) { left: 66%; width: 5px; height: 5px; animation-delay: 0.75s; }
.intro-bubbles i:nth-child(8) { left: 74%; animation-delay: 0.25s; }
.intro-bubbles i:nth-child(9) { left: 82%; width: 12px; height: 12px; animation-delay: 0.55s; }
.intro-bubbles i:nth-child(10) { left: 90%; width: 6px; height: 6px; animation-delay: 0.1s; }
.intro-bubbles i:nth-child(11) { left: 13%; width: 9px; height: 9px; animation-delay: 0.9s; }
.intro-bubbles i:nth-child(12) { left: 61%; width: 7px; height: 7px; animation-delay: 1s; }
@keyframes introBubble { from { transform: translateY(0); opacity: 0.9; } to { transform: translateY(-105vh); opacity: 0.4; } }

/* The board, shown while open: On tap, Next up, Wine. */
.taps { width: 100%; max-width: 760px; margin-top: 8px; text-align: left; display: flex; flex-direction: column; gap: 44px; }
.taps[hidden], .board-block[hidden] { display: none; }
.taps h2 { margin: 0 0 16px; text-align: center; font-family: 'Anton', Impact, sans-serif; font-weight: 400; font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); }
.tap-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.tap-list li { padding-bottom: 12px; border-bottom: 1px solid #3A2A16; }
.tap-name { font-weight: 700; font-size: 16px; color: var(--cream); }
.tap-meta { margin-top: 3px; font-size: 13px; color: #B79B72; }
.wine-dot, .beer-dot { display: inline-block; width: 12px; height: 16px; margin-right: 8px; vertical-align: -2px; }
/* The tap a beer's on, at the right of its name. */
.tap-no { float: right; margin-left: 12px; font-weight: 700; font-size: 11px; line-height: 21px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 600px) { .tap-list { grid-template-columns: 1fr; } }

/* Next up: the "Coming Up Next" kegs, in the order they'll go on (whichever keg kicks,
   the next in line replaces it, so there are no tap numbers here). */
.taps .next-up h2 { margin-bottom: 6px; }
.next-sub { margin: 0 0 18px; text-align: center; font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #B79B72; }
.next-list li { position: relative; padding-left: 40px; }
/* Place in the queue: a numbered disc; the first one's gold and pulses. */
.q-no { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border: 2px solid #6B5436; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Anton', Impact, sans-serif; font-size: 14px; line-height: 1; color: #CDB894; }
.q-first .q-no { border-color: var(--accent); background: var(--accent); color: #1B1108; }
/* A ring that grows and fades, on the compositor (no repaints). */
.q-pulse { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border: 2px solid var(--accent); border-radius: 50%; animation: nextPulse 2.2s ease-out infinite; }
@keyframes nextPulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.8); opacity: 0; } }

/* Happy-hour countdown and "Today: ..." events, under the status line. */
.status-note { margin: -6px 0 0; max-width: 34em; text-wrap: balance; font-weight: 600; font-size: 14px; line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; color: #D9C9A6; }

#roulette { position: relative; flex-direction: column; gap: 28px; padding-bottom: 72px; background: var(--bg-deep); border-top: 3px solid #3A2A16; }
.modes { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #3A2A16; border-radius: 999px; background: var(--bg); }
.modes[hidden] { display: none; }
.mode { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 13px/1 'Libre Franklin', system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.mode:hover { color: var(--cream); }
.mode[aria-pressed="true"] { background: var(--accent); color: var(--bg-deep); }
.mode:focus-visible { outline: 2px solid #F2C879; outline-offset: 2px; }
.mode[hidden] { display: none; }
/* With all three modes on a phone, "Pick my" goes so the buttons fit on one line. */
@media (max-width: 480px) { .modes.three .mode-long { display: none; } .modes.three .mode { padding: 0 16px; } }
/* "Pick my beer" / "Pick my wine" wheels */
.beer-wheel { --size: min(88vw, 62vh, 440px); width: var(--size); height: var(--size); flex-shrink: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.beer-wheel[hidden] { display: none; }
.beer-wheel[aria-disabled="true"] { cursor: default; }
.beer-wheel:focus-visible { outline: 3px solid #F2C879; outline-offset: 10px; }
.beer-wheel svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.bw-sep { stroke: rgba(245, 235, 216, 0.6); stroke-width: 1.5; }
.bw-peg { fill: #F5EBD8; stroke: #0B0704; stroke-width: 1; }
.bw-label { font-family: 'Libre Franklin', system-ui, sans-serif; font-weight: 700; }
.bw-hub-text { font-family: 'Anton', Impact, sans-serif; font-size: 22px; letter-spacing: 0.05em; fill: #1B1108; }
.bw-pointer { fill: #F5EBD8; stroke: #0B0704; stroke-width: 3; stroke-linejoin: round; }
.bw-bulb { fill: #5E4A12; }
.bw-bulb.on { fill: #FFE9A8; }
.bw-bulbs.win .bw-bulb { animation: bulbFlash 0.36s steps(1) 4; }
@keyframes bulbFlash { 50% { fill: #5E4A12; } }
.beer-hint { margin: -8px 0 0; font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.beer-hint[hidden] { display: none; }
/* Choosing what's on the beer/wine wheel. */
.pick-edit { width: min(580px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: -8px; }
.pick-edit[hidden], .pick-panel[hidden], .pick-all[hidden] { display: none; }
.pick-toggle { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; padding: 0 6px 0 18px; border: 1px solid #3A2A16; border-radius: 999px; background: var(--bg);
  color: var(--cream); font: 600 13px/1 'Libre Franklin', system-ui, sans-serif; letter-spacing: 0.04em; cursor: pointer; }
.pick-cta { padding: 9px 14px; border-radius: 999px; background: var(--accent); color: var(--bg-deep); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.pick-toggle[aria-expanded="true"] .pick-cta { background: none; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pick-panel { width: 100%; padding: 16px; border: 1px solid #3A2A16; border-radius: 18px; background: var(--bg); text-align: center; }
.pick-help { margin: 0 0 12px; font-size: 13px; color: #B79B72; }
.pick-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px 6px 10px; border: 1px solid #6B5436; border-radius: 999px; background: #24170B;
  color: var(--cream); font: 600 14px/1.25 'Libre Franklin', system-ui, sans-serif; text-align: left; cursor: pointer; }
.chip[aria-pressed="false"] { border-style: dashed; background: none; color: #B79B72; text-decoration: line-through; }
.chip[aria-pressed="false"] svg { opacity: 0.35; }
.chip:disabled { cursor: not-allowed; }
.pick-all { margin-top: 12px; min-height: 40px; padding: 0 16px; border: 0; background: none; color: var(--accent); font: 700 12px/1 'Libre Franklin', system-ui, sans-serif;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: underline; cursor: pointer; }
.pick-toggle:focus-visible, .chip:focus-visible, .pick-all:focus-visible { outline: 2px solid #F2C879; outline-offset: 2px; }

/* The pint pop-up: card pops in, the glass pours in the beer's colour, foam swells, bubbles rise. */
.pint-pop { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; background: rgba(12, 7, 3, 0.62); }
.pint-pop[hidden] { display: none; }
.pint-card { position: relative; width: min(320px, 100%); padding: 28px 24px 24px; border-radius: 20px; background: var(--cream); color: #1B1108; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.pint-pop.show .pint-card { animation: pintPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.pint { display: block; width: 104px; height: auto; margin: 0 auto 10px; overflow: visible; }
.pint-fill { transform: translateY(132px); }
.pint-pop.show .pint-fill { animation: pintPour 1.4s cubic-bezier(0.3, 0.7, 0.35, 1) 0.2s forwards; }
/* Foam grows up from the beer's surface: a thin cap while pouring, the full head as it lands. */
.pint-foam { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0.28); }
.pint-pop.show .pint-foam { animation: pintFoam 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s forwards; }
.pint-bubbles circle { opacity: 0; }
.pint-pop.show .pint-bubbles circle { animation: bubbleRise 2.2s linear 1.2s infinite; }
.pint-pop.show .pint-bubbles circle:nth-child(2) { animation-delay: 1.55s; }
.pint-pop.show .pint-bubbles circle:nth-child(3) { animation-delay: 1.9s; }
.pint-pop.show .pint-bubbles circle:nth-child(4) { animation-delay: 2.3s; }
.pint-pop.show .pint-bubbles circle:nth-child(5) { animation-delay: 2.65s; }
.pint-pop.show .pint-bubbles circle:nth-child(6) { animation-delay: 3s; }
@keyframes pintPop { from { opacity: 0; transform: scale(0.82) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pintPour { from { transform: translateY(132px); } to { transform: translateY(0); } }
@keyframes pintFoam { to { transform: scaleY(1); } }
@keyframes bubbleRise { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 0.85; } 100% { opacity: 0; transform: translateY(-104px); } }
/* The wine glass: wine pours in, sloshes, and fizzes if it's sparkling. */
.wineglass { display: block; width: 104px; height: auto; margin: 0 auto 10px; overflow: visible; }
.pint[hidden], .wineglass[hidden] { display: none; }
.wine-fill { transform: translateY(46px); }
.pint-pop.show .wine-fill { animation: winePour 1.4s cubic-bezier(0.3, 0.7, 0.35, 1) 0.2s forwards; }
.pint-pop.show .wine-surface { animation: wineSlosh 1.1s ease-in-out 1.4s 2; }
.wine-bubbles circle { opacity: 0; }
.pint-pop.show .wineglass.fizz .wine-bubbles circle { animation: fizzRise 1.5s linear 1.3s infinite; }
.pint-pop.show .wineglass.fizz .wine-bubbles circle:nth-child(2) { animation-delay: 1.6s; }
.pint-pop.show .wineglass.fizz .wine-bubbles circle:nth-child(3) { animation-delay: 1.85s; }
.pint-pop.show .wineglass.fizz .wine-bubbles circle:nth-child(4) { animation-delay: 2.2s; }
.pint-pop.show .wineglass.fizz .wine-bubbles circle:nth-child(5) { animation-delay: 2.5s; }
@keyframes winePour { from { transform: translateY(46px); } to { transform: translateY(0); } }
@keyframes wineSlosh { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-12px); } 75% { transform: translateX(12px); } }
@keyframes fizzRise { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-34px); } }
.pint-note { margin: -10px 0 18px; font-style: italic; font-size: 14px; color: #6B5436; }
.pint-note[hidden] { display: none; }
.pint-label { margin: 0; font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #6B5436; }
.pint-name { margin: 4px 0 6px; font-family: 'Anton', Impact, sans-serif; font-weight: 400; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.pint-meta { margin: 0 0 18px; font-size: 14px; color: #6B5436; }
.pint-again { min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: #1B1108; color: var(--accent); font: 600 14px/1 'Libre Franklin', system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.pint-close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 26px; line-height: 1; color: #6B5436; cursor: pointer; }
.pint-again:focus-visible, .pint-close:focus-visible { outline: 3px solid #B8860B; outline-offset: 2px; }
/* Readable, not faint: this line is what tells people the site isn't the bar's own. */
.site-foot { padding: 28px 24px 36px; background: var(--bg-deep); border-top: 1px solid #3A2A16; text-align: center; }
.site-foot .about { max-width: 40em; margin: 0 auto 10px; font-size: 13px; line-height: 1.6; color: #B79B72; }
.fan-note { margin: 0; font-size: 13px; color: #B79B72; }

/* ---- VIP lounge: deep velvet, gold trim, and a trading card per regular ----
   Kept compact and dark (the owner found the first version too loud). */
.vip { position: relative; overflow: hidden; padding: 64px 20px 56px; border-top: 3px solid #3A2A16; color: var(--cream);
  background: radial-gradient(110% 55% at 50% 0%, #34101A 0%, #22090F 52%, #16060A 100%); }
/* Gold trim just inside the top and bottom edges. */
.vip::before, .vip::after { content: ''; position: absolute; left: 0; right: 0; height: 4px; pointer-events: none;
  border-top: 1px solid rgba(212, 175, 55, 0.4); border-bottom: 1px solid rgba(212, 175, 55, 0.4); }
.vip::before { top: 12px; }
.vip::after { bottom: 12px; }
.vip-inner { max-width: 1000px; margin: 0 auto; }
.vip-head { position: relative; max-width: 520px; margin: 0 auto 30px; text-align: center; }
/* "Members only" between two fine gold lines that draw outwards on arrival. */
.vip-eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 8px; font-weight: 700; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: #D8BC86; }
.vip-eyebrow::before, .vip-eyebrow::after { content: ''; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, #C9A227); }
.vip-eyebrow::after { background: linear-gradient(90deg, #C9A227, transparent); }
.vip-eyebrow::before { transform-origin: 100% 50%; }
.vip-eyebrow::after { transform-origin: 0 50%; }
/* The title in gold foil, with a light sweeping across it now and then (it's clipped to
   the title's box, with room for the glow). */
.vip-title { position: relative; display: inline-block; overflow: hidden; margin: -10px -24px; padding: 10px 24px; font-family: 'Anton', Impact, sans-serif; font-weight: 400;
  font-size: clamp(40px, 8vw, 72px); line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; color: #F2C879; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .vip-title-text { background: linear-gradient(180deg, #FFF3C4 0%, #F2C879 38%, #C9A227 64%, #8A6A1A 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 0 #16060A) drop-shadow(0 0 14px rgba(242, 200, 121, 0.25)); }
}
.vip-title::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 22%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 252, 235, 0.95), transparent); mix-blend-mode: overlay;
  transform: translateX(-160%) skewX(-18deg); animation: titleSheen 7s ease-in-out 0.6s infinite paused; }
.vip.live .vip-title::after { animation-play-state: running; }
@keyframes titleSheen { 0% { transform: translateX(-160%) skewX(-18deg); } 22%, 100% { transform: translateX(560%) skewX(-18deg); } }
.vip-lede { margin: 12px auto 0; max-width: 30em; font-size: 15px; line-height: 1.55; color: #DCC5A4; }

/* The entrance: a red carpet running away from you (narrow at the far end), brass posts
   at the near corners, and the velvet rope across. On arrival the carpet rolls out
   towards you (a roll of carpet travels down it, widening as it comes closer), then the
   posts rise and the rope drops into its sag with a bounce. Once. */
.vip-entrance { position: relative; width: min(340px, 86%); aspect-ratio: 340 / 150; margin: 6px auto 0; }
.carpet { position: absolute; inset: 0; transform-origin: 50% 0; }
.carpet svg { display: block; width: 100%; height: 100%; }
.carpet-roll { position: absolute; left: 2%; width: 96%; top: 0; height: 10.5%; border-radius: 999px; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, #FF7A94 0%, #C2183F 35%, #6A0820 75%, #3A0410 100%); box-shadow: inset 0 0 0 1px rgba(242, 210, 122, 0.7), 0 4px 8px rgba(0, 0, 0, 0.5);
  transform-origin: 50% 0; }
.vip-rope { position: absolute; left: -3%; right: -3%; bottom: -6%; width: 106%; height: auto; overflow: visible; }
.rope-post, .rope-line { transform-box: view-box; }
.rope-post { transform-origin: 50% 100%; }
.rope-line { transform-origin: 180px 40px; }
.lively .vip.watching:not(.entered) .carpet { transform: scaleY(0); }
.lively .vip.watching:not(.entered) .rope-post { transform: translateY(16px); opacity: 0; }
.lively .vip.watching:not(.entered) .rope-line { transform: scaleY(0.1); opacity: 0; }
.lively .vip.watching:not(.entered) .vip-eyebrow::before, .lively .vip.watching:not(.entered) .vip-eyebrow::after { transform: scaleX(0); }
.lively .vip.entered .carpet { animation: carpetOut 1.05s cubic-bezier(0.25, 0.7, 0.3, 1) 0.15s both; }
.lively .vip.entered .carpet-roll { animation: carpetRoll 1.05s cubic-bezier(0.25, 0.7, 0.3, 1) 0.15s both; }
.lively .vip.entered .rope-post { animation: ropePost 0.6s cubic-bezier(0.2, 0.8, 0.3, 1.3) 1s both; }
.lively .vip.entered .rope-post-r { animation-delay: 1.08s; }
.lively .vip.entered .rope-line { animation: ropeDrop 1.15s cubic-bezier(0.3, 0.7, 0.4, 1) 1.35s both; }
.lively .vip.entered .vip-eyebrow::before, .lively .vip.entered .vip-eyebrow::after { animation: lineDraw 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) 0.1s both; }
@keyframes carpetOut { from { transform: scaleY(0); } to { transform: none; } }
@keyframes carpetRoll { 0% { opacity: 1; transform: translateY(0) scaleX(0.27); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(860%) scaleX(0.97); } }
@keyframes ropePost { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ropeDrop { 0% { transform: scaleY(0.1); opacity: 0; } 12% { opacity: 1; } 55% { transform: scaleY(1.25); } 75% { transform: scaleY(0.92); } 90% { transform: scaleY(1.04); } 100% { transform: scaleY(1); opacity: 1; } }
@keyframes lineDraw { from { transform: scaleX(0); } to { transform: none; } }

/* Twinkling stars round the title. transform/opacity only, and only while the lounge is
   on screen (.live), so they never cost a repaint. */
.sparkle { position: absolute; width: 16px; height: 16px; background: #FFE9A8; opacity: 0.7; pointer-events: none;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 2.8s ease-in-out infinite paused; }
.vip.live .sparkle { animation-play-state: running; }
.sparkle.s1 { left: 4%; top: 22%; }
.sparkle.s2 { right: 6%; top: 10%; width: 20px; height: 20px; animation-delay: -0.9s; }
.sparkle.s3 { right: 14%; top: 60%; width: 12px; height: 12px; animation-delay: -2.3s; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.5) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

.vip-body { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 400px); gap: 48px; justify-content: center; align-items: center; }
.vip.has-vips .vip-body { grid-template-columns: minmax(0, 1fr); gap: 44px; }
.vip-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
/* Rows of cards, with a part-filled last row centred rather than left hanging. */
.vip.has-vips .vip-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.vip.has-vips .vip-pass { flex: 0 1 260px; }
@media (max-width: 760px) { .vip-body { grid-template-columns: minmax(0, 290px); gap: 40px; } .vip.has-vips .vip-pass { flex-basis: 280px; } }

/* ---- The King: one VIP, crowned, enlarged and centre stage ---- */
.vip-king { display: flex; justify-content: center; margin: 0 0 40px; }
.vip-king[hidden] { display: none; }
.king-stage { position: relative; display: flex; flex-direction: column; align-items: center; width: min(330px, 100%); }
/* A warm glow behind the King that breathes (opacity only). */
.king-stage::before { content: ''; position: absolute; left: -30%; right: -30%; top: 6%; bottom: -4%; pointer-events: none; opacity: 0.75;
  background: radial-gradient(closest-side, rgba(242, 200, 121, 0.38), rgba(242, 200, 121, 0.12) 55%, transparent); animation: kingGlow 4s ease-in-out infinite paused; }
.vip.live .king-stage::before { animation-play-state: running; }
.king-crown { position: relative; z-index: 3; width: 92px; height: auto; margin-bottom: -26px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)); animation: crownFloat 3.2s ease-in-out infinite paused; }
.vip.live .king-crown { animation-play-state: running; }
.king-title { position: relative; z-index: 2; margin: 30px 0 14px; padding: 6px 18px; border: 1px solid #C9A227; border-radius: 999px; background: #1B0B0F;
  font-family: 'Anton', Impact, sans-serif; font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; color: #F2C879; box-shadow: 0 0 22px rgba(242, 200, 121, 0.25); }
.king-list { list-style: none; margin: 0; padding: 0; width: 100%; position: relative; z-index: 1; }
.vip-pass.king .pass-face.pass-front { box-shadow: 0 0 0 4px #16060A, 0 0 0 6px #E9C46A, 0 0 34px rgba(242, 200, 121, 0.45), 0 26px 50px rgba(0, 0, 0, 0.6); }
.vip-pass.king .pass-name { font-size: 30px; }
@keyframes kingGlow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes crownFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---- A pass: a two-sided trading card ----
   The card tilts (with the phone, or towards the mouse); its inner layer turns over to
   show the back. Each face is its own little world (isolation) so the foil's blend modes
   only mix with the card. The face that's turned away is also hidden half-way through
   the turn (visibility), not just by backface-visibility, which some browsers get wrong
   with blended layers inside. */
.vip-pass { position: relative; display: flex; flex-direction: column; perspective: 1100px; }
.pass-card { flex: 1 1 auto; display: flex; flex-direction: column; transform-style: preserve-3d; cursor: pointer; will-change: transform; }
.pass-inner { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1); }
.vip-pass.flipped .pass-inner { transform: rotateY(180deg); }
.pass-face { position: relative; isolation: isolate; display: flex; flex-direction: column; flex: 1 1 auto; padding: 4.6%; border-radius: 16px; overflow: hidden;
  background: var(--backing, #1B1108) center / 100% 100%; border: 1px solid #C9A227;
  box-shadow: 0 0 0 4px #16060A, 0 0 0 5px rgba(201, 162, 39, 0.4), 0 22px 44px rgba(0, 0, 0, 0.55);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: visibility 0s linear 0.2s; }
/* One fixed shape (1 x 2: room for the 4:5 photo and the words), so the painted backing fits it exactly. */
.pass-front { visibility: visible; aspect-ratio: 1 / 2; }
.vip-pass.flipped .pass-front { visibility: hidden; }
.pass-back { position: absolute; inset: 0; transform: rotateY(180deg); justify-content: flex-start; visibility: hidden; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 70% at 50% 0%, #3A1018, #1B0B0C 70%); border-color: #8A6A1A; }
.vip-pass.flipped .pass-back { visibility: visible; }
.ink-dark { border-color: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 4px #16060A, 0 0 0 5px rgba(255, 255, 255, 0.35), 0 22px 44px rgba(0, 0, 0, 0.55); }

/* The foil. Bottom to top on the front: the backing (the face's background), the reverse
   holo's foil, the photo (with the holo rare's foil inside it), the full-art foils, the
   words, then the glare and the gloss. A foil is its pattern (a mask, painted by cards.js)
   with a band of rainbow inside that slides as the card tilts (.holo-shift, moved by
   lounge.js) and drifts slowly by itself while on screen (its <i>). The "wash" is the same
   rainbow, faint and unmasked, for a glassy sheen. Transforms only: nothing repaints. */
.holo, .glare, .gloss { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.holo { -webkit-mask-size: cover; mask-size: cover; -webkit-mask-position: center; mask-position: center; mix-blend-mode: color-dodge; }
.holo-shift, .glare-shift { position: absolute; inset: -50%; will-change: transform; }
.holo-shift i, .glare-shift i { position: absolute; inset: 0; }
.holo-shift i { background: repeating-linear-gradient(115deg, #FF5C9E 0%, #FFD24A 4.5%, #6CF08A 9%, #4BE3FF 13.5%, #7F8CFF 18%, #E86BFF 22.5%, #FF5C9E 27%);
  animation: holoDrift 9s ease-in-out infinite alternate paused; }
.tex-gold .holo-shift i { background: repeating-linear-gradient(115deg, #FFF6D0 0%, #E9B83A 5%, #FFFFFF 9%, #C9971F 14%, #FFEAA0 19%, #FFF6D0 24%); }
.vip.live .holo-shift i { animation-play-state: running; }
@keyframes holoDrift { from { transform: translate(-5%, -3%); } to { transform: translate(5%, 3%); } }
/* How strong each foil is. */
.holo-card { z-index: 1; opacity: 0.8; }
.holo-card.holo-wash { opacity: 0.14; }
.holo-art { border-radius: 10px; opacity: 0.6; }
.holo-art.holo-wash { opacity: 0.12; }
.holo-full { z-index: 3; opacity: 0.62; }
.holo-full.holo-wash { opacity: 0.16; }
.holo-full.tex-gold { opacity: 0.9; }
.holo-full.tex-gold.holo-wash { opacity: 0.2; }
/* The glare: a broad light that slides across with the tilt; stronger on the rares. */
.glare { z-index: 5; mix-blend-mode: overlay; opacity: 0.78; }
.glare-shift { transform: translate(-16%, -20%); }
.glare-shift i { background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 14%, rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0.18) 60%); }
.finish-normal .glare { opacity: 0.45; }
.finish-ultra .glare, .finish-secret .glare { opacity: 0.9; }
/* The gloss: the card's glassy surface, a soft light from the top left and a bright rim. */
.gloss { z-index: 5; background: linear-gradient(125deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 26%, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, 0) 76%, rgba(255, 255, 255, 0.07) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.pass-band { position: relative; z-index: 4; display: flex; justify-content: space-between; gap: 8px; padding: 5px 9px; border-radius: 8px;
  background: linear-gradient(90deg, #B8860B, #F5E1A4 50%, #B8860B); color: #1B1108; font-weight: 700; font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.pass-band.band-silver { background: linear-gradient(90deg, #8E97A3, #F3F5F8 50%, #8E97A3); }
.finish-secret .pass-band { background: linear-gradient(90deg, #A8740A, #FFF0B8 30%, #E9B83A 55%, #FFF6D8 75%, #A8740A); }
/* The photo: the whole 4:5 portrait, as framed at the admin page. */
.pass-photo { position: relative; z-index: 2; flex: none; aspect-ratio: 4 / 5; margin-top: 8px; border: 2px solid #C9A227; border-radius: 11px; overflow: hidden; background: #0E0804; }
.ink-dark .pass-photo { border-color: rgba(27, 17, 8, 0.55); }
.pass-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pass-seal { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#F5E1A4, #E79AA2, #9FD8EA, #CDEFA9, #F5E1A4); color: #1B1108; font-family: 'Anton', Impact, sans-serif; font-size: 14px; letter-spacing: 0.06em;
  transform: rotate(-12deg); box-shadow: 0 0 0 2px #1B1108, 0 4px 10px rgba(0, 0, 0, 0.5); }
/* The words sit on a panel, so they read on any backing. */
/* The words on a panel, as see-through as each backing allows (--panel, from cards.js). */
.pass-info { position: relative; z-index: 4; flex: 1 1 auto; min-height: 0; overflow: hidden; margin-top: 8px; padding: 8px 9px 2px; border-radius: 10px; background: rgba(12, 7, 3, var(--panel, 0.5)); }
.ink-dark .pass-info { background: rgba(255, 255, 255, var(--panel, 0.6)); }
.pass-front .pass-blurb { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pass-name { margin: 0 0 5px; font-family: 'Anton', Impact, sans-serif; font-weight: 400; font-size: 22px; line-height: 1.05; text-transform: uppercase; color: var(--cream); overflow-wrap: anywhere; }
.ink-dark .pass-name { color: #1B1108; }
.finish-secret .pass-name { color: #FFE9A8; }
.pass-blurb { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: #E6D7BC; overflow-wrap: anywhere; }
.ink-dark .pass-blurb { color: #2E2216; }
.pass-foot { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding: 6px 2px 0;
  white-space: nowrap; font-weight: 700; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: #C9B08A; }
.pass-info + .pass-foot { margin-top: auto; }
.ink-dark .pass-foot, .ink-dark .pass-set { color: #3A2A16; }
.pass-barcode { flex: none; width: 62px; height: 20px; fill: currentColor; }
/* Like a card's set number: the rarity, and its number in the set. */
.pass-set { position: relative; z-index: 4; display: flex; justify-content: space-between; margin: 3px 2px 0; font-weight: 600; font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #B79B72; }
.pass-rarity { white-space: nowrap; }
.ink-dark .pass-foot, .ink-dark .pass-set { text-shadow: 0 0 6px rgba(255, 255, 255, 0.8); }
.ink-light .pass-foot, .ink-light .pass-set { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }

/* Full art (ultra and secret rare): the photo fills the card, the words on a dark fade. */
.pass-front.full-art .pass-photo { position: absolute; inset: 6px; margin: 0; aspect-ratio: auto; border: 0; border-radius: 12px; }
.pass-front.full-art .pass-photo img { object-position: 50% 28%; }
.pass-front.full-art .pass-info { flex: none; margin-top: auto; padding-top: 34px; border-radius: 0 0 10px 10px; margin-left: -6px; margin-right: -6px;
  background: linear-gradient(180deg, rgba(10, 6, 3, 0), rgba(10, 6, 3, 0.8) 30px, rgba(10, 6, 3, 0.86)); }
.pass-front.full-art .pass-foot, .pass-front.full-art .pass-set { margin-left: -6px; margin-right: -6px; padding-left: 8px; padding-right: 8px; background: rgba(10, 6, 3, 0.86); }
.pass-front.full-art .pass-foot { margin-top: 0; }
.pass-front.full-art .pass-set { margin-top: 0; margin-bottom: -10px; padding-top: 6px; padding-bottom: 10px; }
.pass-front.full-art .pass-blurb { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pass-front.full-art .pass-seal { display: none; }

/* Badges, on the front under the name, and with what they mean on the back. */
.pass-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin: -2px 0 9px; padding: 0; }
/* On the front, badges stay on one line (the back lists them all with what they mean). */
.pass-front .pass-badges { gap: 4px; margin: 0 0 6px; }
.pass-front .badge { padding: 2px 7px 2px 16px; font-size: 9px; }
.pass-front .badge::before { left: 5px; width: 8px; height: 8px; margin-top: -4px; }
.pass-front .pass-blurb { margin-bottom: 6px; font-size: 13px; line-height: 1.4; }
.badge { position: relative; display: inline-block; padding: 3px 8px 3px 19px; border-radius: 999px; font-weight: 700; font-size: 10px; line-height: 1.25; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--tone, #F2C879); color: #1B1108; }
.badge::before { content: ''; position: absolute; left: 6px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; background: #1B1108; opacity: 0.75;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.tone-gold { --tone: #F2C879; }
.tone-silver { --tone: #D9DDE3; }
.tone-red { --tone: #F09A9A; }
.tone-green { --tone: #A8DDA0; }
.tone-blue { --tone: #9CCBF0; }
.tone-purple { --tone: #CDB1F0; }
.tone-pink { --tone: #F5A8CF; }
.tone-amber { --tone: #F4BE7A; }
.tone-dark { --tone: #CFC2AC; }

/* The back. */
.back-band { margin: 0; padding: 6px 10px; border-radius: 8px; background: linear-gradient(90deg, #B8860B, #F5E1A4 50%, #B8860B); color: #1B1108;
  font-weight: 700; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; }
.back-name { margin: 14px 0 8px; font-family: 'Anton', Impact, sans-serif; font-size: 23px; line-height: 1.05; text-transform: uppercase; text-align: center; color: #F2C879; overflow-wrap: anywhere; }
.back-stats { margin: 0; display: grid; gap: 7px; }
.back-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 5px; border-bottom: 1px dashed #5A4524; }
.back-stats dt { font-weight: 700; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #C9B08A; }
.back-stats dd { margin: 0; font-size: 13.5px; text-align: right; color: var(--cream); }
.back-stats dd small { display: block; margin-top: 1px; font-size: 11px; color: #B79B72; }
/* Dues: green when this month's pint is in, amber when it's due. */
.dues-paid dd { color: #8FDB9A; font-weight: 700; }
.dues-paid dd::before { content: '✓ '; }
.dues-due dd { color: #F4BE7A; font-weight: 700; }
.back-blurb { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: #E6D7BC; }
.back-badges { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.back-badges li { display: grid; gap: 3px; justify-items: start; }
.back-about { font-size: 12.5px; line-height: 1.4; color: #E6D7BC; }
.back-steps { margin: 4px 0 0; padding-left: 22px; display: grid; gap: 9px; font-size: 15px; line-height: 1.4; color: var(--cream); }
.back-steps li::marker { font-family: 'Anton', Impact, sans-serif; color: #F2C879; }
.back-small { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: #C9B08A; }
.pass-back .pass-barcode { margin-top: auto; padding-top: 10px; align-self: center; fill: #C9B08A; }

/* Turn over. */
.pass-flip { position: absolute; top: -11px; right: -11px; z-index: 6; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 2px solid #16060A; border-radius: 50%;
  background: linear-gradient(180deg, #F5E1A4, #C9A227); color: #1B1108; cursor: pointer; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); }
.pass-flip:focus-visible { outline: 3px solid #FFE9A8; outline-offset: 2px; }
.pass-flip[aria-pressed="true"] svg { transform: scaleX(-1); }

/* The empty pass: a spotlit silhouette waiting for a face. */
.pass-empty { background: radial-gradient(70% 55% at 50% 38%, rgba(255, 233, 168, 0.24), transparent 70%), #120A04; }
.pass-silhouette { position: absolute; left: 18%; right: 18%; bottom: 0; width: 64%; height: auto; }
/* On the silhouette's head (its centre is two-thirds of the way down the frame). */
.pass-q { position: absolute; left: 0; right: 0; top: 66.7%; transform: translateY(-50%); text-align: center; font-family: 'Anton', Impact, sans-serif; font-size: 44px; line-height: 1; color: #F2C879; }
.pass-here { position: absolute; left: 0; right: 0; top: 12px; margin: 0; text-align: center; font-weight: 700; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #F2C879; }
#vip-wanted .holo-art.holo-wash { mix-blend-mode: soft-light; opacity: 0.35; }

/* Cards are dealt in, one after another, the first time the lounge comes on screen. */
.lively .vip.watching:not(.dealt) .vip-pass.deal { opacity: 0; }
.lively .vip.dealt .vip-pass.deal { animation: dealIn 0.75s cubic-bezier(0.2, 0.8, 0.25, 1) both; animation-delay: calc(var(--i, 0) * 0.11s + 0.15s); }
@keyframes dealIn { from { opacity: 0; transform: translateY(46px) rotate(-5deg) scale(0.9); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }

/* Under the cards, just the call to action (the owner's choice, 2026-10-16). */
.vip-pitch { text-align: center; }
/* "How to get in:" then the answer in gold foil, with a glint sweeping across it and
   stars twinkling round it — transform/opacity only, and only while on screen (.live). */
.vip-how { margin: 0; }
.vip-how-label { margin: 0 0 6px; font-weight: 700; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: #D8BC86; }
.vip-how-cta { position: relative; display: inline-block; margin: 0; padding: 2px 4px; }
.gold-text { display: block; white-space: nowrap; font-family: 'Anton', Impact, sans-serif; font-size: clamp(28px, 8.4vw, 48px); line-height: 1.05; letter-spacing: 0.04em; text-transform: uppercase; color: #F2C879; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold-text { background: linear-gradient(180deg, #FFF8DC 0%, #FFE08A 22%, #E9B83A 45%, #B8860B 62%, #8A6410 74%, #E6C25A 88%, #FFF1B8 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 0 #16060A) drop-shadow(0 0 16px rgba(255, 210, 110, 0.3)); }
}
/* The glint: a bright diagonal band that brightens the gold as it passes ("overlay"
   lifts the bright letters a lot and the dark velvet around them hardly at all). */
.glint { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glint::before { content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95) 50%, transparent); mix-blend-mode: overlay;
  transform: translateX(-160%) skewX(-20deg); animation: glint 4.2s ease-in-out infinite paused; }
.vip.live .glint::before { animation-play-state: running; }
@keyframes glint { 0%, 55% { transform: translateX(-160%) skewX(-20deg); } 100% { transform: translateX(420%) skewX(-20deg); } }
.sparkle.c1 { left: -14px; top: -6px; width: 14px; height: 14px; animation-delay: -0.4s; }
.sparkle.c2 { right: -16px; top: 4px; width: 18px; height: 18px; animation-delay: -1.5s; }
.sparkle.c3 { right: 22%; bottom: -12px; width: 11px; height: 11px; animation-delay: -2.2s; }
.sparkle.c4 { left: 18%; bottom: -10px; width: 10px; height: 10px; animation-delay: -1s; }
.vip.has-vips .vip-pitch { max-width: 520px; margin: 0 auto; text-align: center; }
.vip-fine { max-width: 46em; margin: 36px auto 0; text-align: center; font-size: 12.5px; line-height: 1.55; color: #C4A57F; }

/* ---- Local Legends: a hall of fame in black and gold ----
   Gold that glows, not glitters: engraved capitals, fine double rules, portraits in
   gilded arches. Rarer than the VIPs, and it should feel it. */
.legends { position: relative; padding: 76px 20px 64px; color: #EFE3C8; overflow: hidden;
  background: radial-gradient(70% 45% at 50% 0%, rgba(242, 200, 121, 0.13), transparent 70%), linear-gradient(180deg, #0E0A06, #080604); }
.legends::before { content: ''; position: absolute; inset: 14px; pointer-events: none; border: 1px solid rgba(201, 162, 39, 0.5);
  box-shadow: inset 0 0 0 5px #0A0705, inset 0 0 0 6px rgba(201, 162, 39, 0.28); }
.legends-inner { position: relative; max-width: 960px; margin: 0 auto; text-align: center; }
.legends-eyebrow { margin: 0 0 12px; font-family: 'Cinzel', Georgia, serif; font-weight: 600; font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase; color: #C9A227; }
.legends-title { position: relative; display: inline-block; overflow: hidden; margin: -14px -28px; padding: 14px 28px; font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: clamp(38px, 8.6vw, 74px); line-height: 1.05; letter-spacing: 0.05em; color: #F2C879; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .legends-word { background: linear-gradient(180deg, #FFF6D8 0%, #F5D98A 30%, #D4AF37 55%, #9A7416 78%, #E9C46A 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 18px rgba(242, 200, 121, 0.28)); }
}
/* A slow sheen across the title while it's on screen. */
.legends-title::after { content: ''; position: absolute; top: -10%; bottom: -10%; left: 0; width: 18%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 230, 0.9), transparent); mix-blend-mode: overlay;
  transform: translateX(-200%) skewX(-18deg); animation: legendSheen 6.5s ease-in-out infinite paused; }
.legends.live .legends-title::after { animation-play-state: running; }
@keyframes legendSheen { 0%, 60% { transform: translateX(-200%) skewX(-18deg); } 100% { transform: translateX(650%) skewX(-18deg); } }
.legends-rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto 0; }
.legends-rule span { width: min(120px, 28vw); height: 1px; background: linear-gradient(90deg, transparent, #C9A227); }
.legends-rule span:last-child { background: linear-gradient(90deg, #C9A227, transparent); }
.legends-rule i { width: 9px; height: 9px; background: #F2C879; transform: rotate(45deg); box-shadow: 0 0 12px rgba(242, 200, 121, 0.6); }
.legends-lede { max-width: 32em; margin: 18px auto 0; font-size: 15px; line-height: 1.6; color: #CDBB98; }
.legends-grid { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 30px; }
.legend { flex: 0 1 230px; display: flex; flex-direction: column; align-items: center; }
/* The arch: a gilded frame round the portrait, with a soft glow that breathes. */
.legend-frame { position: relative; width: 100%; aspect-ratio: 4 / 5; padding: 7px; border-radius: 50% 50% 14px 14px / 38% 38% 14px 14px;
  background: linear-gradient(160deg, #FFF3C4, #C9A227 30%, #7A5C12 55%, #E9C46A 80%, #8A6A1A); }
.legend-frame::before { content: ''; position: absolute; inset: -14px; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(242, 200, 121, 0.35), transparent); opacity: 0.6; animation: kingGlow 5s ease-in-out infinite paused; }
.legends.live .legend-frame::before { animation-play-state: running; }
.legend-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: inherit; box-shadow: 0 0 0 2px #0A0705; }
.legend-glint { position: absolute; inset: 7px; overflow: hidden; border-radius: 50% 50% 9px 9px / 38% 38% 9px 9px; pointer-events: none; }
.legend-glint::before { content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 26%;
  background: linear-gradient(90deg, transparent, rgba(255, 245, 220, 0.55), transparent); mix-blend-mode: overlay;
  transform: translateX(-180%) skewX(-16deg); animation: legendSheen 7.5s ease-in-out infinite paused; animation-delay: calc(var(--i, 0) * 0.8s); }
.legends.live .legend-glint::before { animation-play-state: running; }
.legend-plaque { position: relative; margin-top: -14px; padding: 9px 18px 8px; min-width: 76%; border: 1px solid #C9A227; border-radius: 4px;
  background: linear-gradient(180deg, #2A2012, #140F08); box-shadow: inset 0 0 0 3px #0E0A06, inset 0 0 0 4px rgba(201, 162, 39, 0.35), 0 8px 20px rgba(0, 0, 0, 0.6); }
.legend-name { margin: 0; font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: 0.05em; color: #F2C879; overflow-wrap: anywhere; }
.legend-since { margin: 3px 0 0; font-family: 'Cinzel', Georgia, serif; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #B9A27A; }
.legend-citation { max-width: 22em; margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: #D9C9A6; overflow-wrap: anywhere; }
/* Waiting for the first: an empty arch with a spotlight and a laurel. */
.legend-empty .legend-frame { display: grid; place-items: center; background: linear-gradient(160deg, #6E5A2A, #3A2F16 50%, #6E5A2A); }
.legend-empty .legend-frame::after { content: ''; position: absolute; inset: 7px; border-radius: 50% 50% 9px 9px / 38% 38% 9px 9px;
  background: radial-gradient(60% 50% at 50% 35%, rgba(242, 200, 121, 0.16), transparent 70%), #0C0906; }
.legend-laurel { position: relative; z-index: 1; width: 52%; height: auto; opacity: 0.85; }
.legend-empty .legend-name { color: #C9B08A; }
.legend-empty[hidden] { display: none; }
.legends-fine { max-width: 40em; margin: 40px auto 0; font-size: 12.5px; line-height: 1.55; color: #9E8B68; }
/* They rise into place the first time the section comes on screen. */
.lively .legends.watching:not(.arrived) .legend, .lively .legends.watching:not(.arrived) .legends-rule { opacity: 0; }
.lively .legends.arrived .legend { animation: legendRise 1s cubic-bezier(0.2, 0.8, 0.25, 1) both; animation-delay: calc(var(--i, 0) * 0.15s + 0.25s); }
.lively .legends.arrived .legends-rule { animation: ruleOpen 1.1s cubic-bezier(0.2, 0.8, 0.25, 1) 0.1s both; }
@keyframes legendRise { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes ruleOpen { from { opacity: 0; transform: scaleX(0.2); } to { opacity: 1; transform: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---- Roulette: the wheel, and the free-play table beside it (under it on phones) ---- */
.roulette-play { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 100%; }
@media (min-width: 900px) { .roulette-play { flex-direction: row; justify-content: center; gap: 56px; } }
.wheel { --size: min(84vw, 58vh, 420px); width: var(--size); height: var(--size); position: relative; flex-shrink: 0; margin: 0; padding: 0; border: none; background: none; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wheel[hidden] { display: none; }
/* The idle glow is a fixed shadow on its own layer whose opacity pulses: the compositor
   animates that for free. Animating box-shadow directly repainted the whole wheel
   ~60 times a second, forever, even when scrolled out of view. */
.wheel::before { content: ''; position: absolute; inset: -2%; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.4); opacity: 0; animation: wheelGlow 3.6s ease-in-out infinite; }
.wheel[aria-disabled="true"] { cursor: default; }
.wheel[aria-disabled="true"]::before { animation: none; }
.wheel:focus-visible { outline: 3px solid #F2C879; outline-offset: 12px; }
/* The bowl never moves; the rotor and the ball each turn on their own layer, drawn once.
   (The old wheel's rotor was a CSS gradient that the browser re-drew every frame of the
   spin, which is what made it judder.) */
.bowl, .rotor, .disc { position: absolute; inset: 0; border-radius: 50%; }
.bowl svg, .disc svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bowl { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)); }
/* The rotor turns inside a round clip: a turning square's corners would otherwise poke
   out of the wheel, change the page's overflow every frame and make the browser repaint
   the whole page throughout the spin (tests/performance.test.mjs checks it doesn't). */
.rotor { z-index: 2; overflow: hidden; }
.disc { will-change: transform; }
.num { font-family: 'Anton', Impact, sans-serif; font-size: 13.5px; fill: #F5EBD8; }
/* A zero-size point at the wheel's centre, not a full-size box: a rotated square's
   corners poke past the screen edge on phones and make the page scroll sideways. */
.ball-orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 3; pointer-events: none; will-change: transform; }
.ball { position: absolute; left: calc(var(--size) * -0.02); top: calc(var(--size) * -0.02); width: calc(var(--size) * 0.04); height: calc(var(--size) * 0.04); border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff, #EFEADF 42%, #9A9287 100%); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7), inset 0 -1px 2px rgba(0, 0, 0, 0.25); will-change: transform; }
.hub { position: absolute; top: 50%; left: 50%; width: calc(var(--size) * 0.22); height: calc(var(--size) * 0.22); margin: calc(var(--size) * -0.11) 0 0 calc(var(--size) * -0.11); border-radius: 50%; z-index: 4;
  background: radial-gradient(circle at 35% 30%, #F5E1A4, var(--accent) 55%, #7A5C12 100%); border: 3px solid #0B0704; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; }
.result { width: 70%; height: 70%; border-radius: 50%; border: 2px solid #0B0704; display: none; align-items: center; justify-content: center; font-family: 'Anton', Impact, sans-serif; font-size: calc(var(--size) * 0.07); line-height: 1; color: var(--cream); }
.result.show { display: flex; }

/* The free-play table: green felt, standing up to fit a phone. */
.table { width: min(360px, 100%); display: flex; flex-direction: column; gap: 12px; }
.table[hidden] { display: none; }
.table-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bank { margin: 0; font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #B79B72; }
.bank strong { display: block; font-family: 'Anton', Impact, sans-serif; font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: 0.02em; color: var(--accent); }
.chip-picker { display: flex; gap: 7px; }
.chip-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, 0.8); background: var(--chip); color: #fff;
  font: 700 11px/1 'Libre Franklin', system-ui, sans-serif; box-shadow: 0 0 0 2px var(--chip), 0 3px 6px rgba(0, 0, 0, 0.5); cursor: pointer; transition: transform 0.15s ease; }
.chip-btn[aria-checked="true"] { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--chip), 0 0 0 4px #F2C879, 0 6px 10px rgba(0, 0, 0, 0.5); }
.chip-btn:disabled { opacity: 0.5; cursor: default; }
.chip-btn:focus-visible, .spot:focus-visible, .table-btn:focus-visible, .chips-refill:focus-visible { outline: 3px solid #F2C879; outline-offset: 2px; }
.chip-5 { --chip: #B3203A; }
.chip-25 { --chip: #1F7A45; }
.chip-100 { --chip: #26262C; }
.chip-500 { --chip: #5B2A86; }
/* The last dozen numbers, newest first (the newest ringed in gold). */
.spins-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.spins-row[hidden] { display: none; }
.spins-label { flex: none; font-weight: 700; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #B79B72; }
.spins { list-style: none; margin: 0; padding: 2px; display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; }
.spins li { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 400 12px/1 'Anton', Impact, sans-serif; color: #F5EBD8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.spins li:first-child { width: 28px; height: 28px; font-size: 14px; box-shadow: inset 0 0 0 2px #F2C879; }
.felt { display: grid; grid-template-columns: 0.85fr 0.85fr 1fr 1fr 1fr; grid-template-rows: repeat(14, minmax(30px, auto)); gap: 3px; padding: 8px; border-radius: 14px;
  background: radial-gradient(120% 80% at 50% 0%, #1E6B43, #0F4A2C 70%, #0B3B23); border: 2px solid #8A6A1A; box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.45), 0 10px 26px rgba(0, 0, 0, 0.45); }
.spot { position: relative; display: grid; place-items: center; min-height: 30px; padding: 0; border: 1px solid rgba(245, 235, 216, 0.45); border-radius: 4px; background: transparent;
  color: #F5EBD8; font: 400 15px/1 'Anton', Impact, sans-serif; cursor: pointer; }
.spot:disabled { cursor: default; }
.n-red { background: #A6192E; }
.n-black { background: #141414; }
.n-green { background: #1F5C3A; }
.spot:not(:disabled):hover { box-shadow: inset 0 0 0 2px rgba(242, 200, 121, 0.7); }
.outside { font: 700 11px/1.1 'Libre Franklin', system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.dozen .spot-label, .even-money .spot-label { writing-mode: vertical-rl; transform: rotate(180deg); }
.o-red { background: rgba(166, 25, 46, 0.85); }
.o-black { background: rgba(20, 20, 20, 0.85); }
/* The winning places glow for a moment after the ball lands. */
.spot.won { animation: spotWin 0.65s ease-in-out 4; }
@keyframes spotWin { 50% { box-shadow: inset 0 0 0 3px #FFE9A8, 0 0 14px rgba(255, 233, 168, 0.8); } }
/* Chips on the table: a little stack showing how much is on that spot. */
.stack { position: absolute; z-index: 1; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 12px; display: none; place-items: center;
  font: 700 10px/1 'Libre Franklin', system-ui, sans-serif; color: #fff; background: var(--chip); border: 2px dashed rgba(255, 255, 255, 0.85); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.stack.on { display: grid; }
.table-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.table-btn { min-height: 38px; padding: 0 14px; border: 1px solid #6B5436; border-radius: 999px; background: none; color: var(--cream); font: 700 11px/1 'Libre Franklin', system-ui, sans-serif;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.table-btn:disabled { opacity: 0.35; cursor: default; }
.bet-total { margin: 0 0 0 auto; font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #B79B72; }
.bet-total strong { margin-left: 4px; font-size: 14px; letter-spacing: 0.02em; color: var(--cream); }
.table-result { min-height: 1.4em; margin: 0; text-align: center; font-weight: 700; font-size: 15px; color: #F2C879; }
.chips-refill { align-self: center; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--bg-deep);
  font: 700 12px/1 'Libre Franklin', system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.chips-refill[hidden] { display: none; }
.table-note { margin: 0; text-align: center; font-size: 12px; line-height: 1.5; color: #B79B72; }

/* ---- The board's extras ---- */
.new-badge { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: #5CC46E; color: #0F2414; font-weight: 800; font-size: 10px;
  line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; vertical-align: 2px; }
.kicked { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: #B79B72; }
.kicked[hidden] { display: none; }
.kicked-label { margin-right: 8px; font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #E2A35A; }
.kicked-name { margin-right: 10px; color: #CDB894; text-decoration-color: #E2A35A; }
.next-more { display: block; min-height: 40px; margin: 14px auto 0; padding: 0 18px; border: 1px solid #6B5436; border-radius: 999px; background: none; color: var(--accent);
  font: 700 12px/1 'Libre Franklin', system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.next-more[hidden], .next-list li[hidden] { display: none; }
.next-more:focus-visible { outline: 2px solid #F2C879; outline-offset: 2px; }
.board-note { max-width: 40em; margin: -4px 0 0; font-size: 12.5px; line-height: 1.5; color: #E2A35A; }
.board-note[hidden] { display: none; }

/* What's on: the event on now, and this week's scrolling past (transform only). */
.whats-on { width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.whats-on[hidden], .on-now[hidden], .ticker[hidden] { display: none; }
.on-now { margin: 0; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; color: var(--cream); }
.on-now-label { margin-right: 6px; font-weight: 800; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #5CC46E; }
/* The "live" dot's ring grows and fades: transform/opacity, so no repainting. */
.live-dot { position: relative; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #5CC46E; vertical-align: 1px; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #5CC46E; animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3); opacity: 0; } }
.ticker { position: relative; width: 100%; overflow: hidden; padding: 10px 0; border-top: 1px solid #3A2A16; border-bottom: 1px solid #3A2A16;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: tickerScroll var(--ticker-time, 30s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker-list li { padding: 0 28px; white-space: nowrap; font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #D9C9A6; }
.ticker-list li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 12px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* The foam burst behind the pop-up as the result lands. */
.burst { position: absolute; left: 50%; top: 42%; width: 0; height: 0; pointer-events: none; }
.burst span { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--c, #FFF8E6); opacity: 0;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.1); animation: burstOut 0.95s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes burstOut { 0% { opacity: 0.95; transform: translate(0, 0) scale(0.3); } 70% { opacity: 0.9; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(var(--s)); } }

/* The opening bell: a pint pours up the whole screen, "TAPS ARE OPEN", then it clears. */
.bell { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.bell[hidden] { display: none; }
.bell.ringing { animation: bellOut 0.6s ease 3.6s forwards; }
.bell-pour { position: absolute; inset: 0; background: linear-gradient(180deg, #F2B33D 0%, #D98A1C 55%, #8E5310 100%); transform: translateY(100%); }
.bell.ringing .bell-pour { animation: bellPour 1.4s cubic-bezier(0.3, 0.7, 0.35, 1) forwards; }
.bell-foam { position: absolute; left: -20px; right: -20px; top: -46px; height: 90px;
  background: radial-gradient(circle at 24px 30px, #FFF8E6 22px, transparent 23px) 0 0 / 48px 52px repeat-x, linear-gradient(#FFF8E6, #FFF8E6) 0 30px / 100% 60px no-repeat; }
.bell-pour span { position: absolute; bottom: -12px; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
.bell.ringing .bell-pour span { animation: bellBubble 2.4s linear 0.6s infinite; }
.bell-pour span:nth-child(2) { left: 18%; animation-delay: 0.9s !important; }
.bell-pour span:nth-child(3) { left: 40%; width: 7px; height: 7px; animation-delay: 1.3s !important; }
.bell-pour span:nth-child(4) { left: 63%; animation-delay: 0.7s !important; }
.bell-pour span:nth-child(5) { left: 84%; width: 8px; height: 8px; animation-delay: 1.6s !important; }
.bell-text { position: relative; margin: 0; padding: 0 16px; text-align: center; font-family: 'Anton', Impact, sans-serif; font-size: clamp(56px, 13vw, 160px); line-height: 0.95;
  text-transform: uppercase; color: #FFF8E6; text-shadow: 0 4px 0 #6B3A0C, 0 12px 40px rgba(0, 0, 0, 0.45); opacity: 0; }
.bell.ringing .bell-text { animation: bellText 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards; }
@keyframes bellPour { to { transform: translateY(0); } }
@keyframes bellBubble { from { transform: translateY(0); opacity: 0.8; } to { transform: translateY(-100vh); opacity: 0; } }
@keyframes bellText { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes bellOut { to { opacity: 0; } }

/* The logo easter egg: five taps and the foam overflows. A head of foam boils up over
   the logo (its own layer, scaled from its base), thick drips run down from it and a few
   drops let go, bubbles pop on top, then it all settles away. */
.foam-spill { position: absolute; left: -8%; right: -8%; top: -26%; height: 78%; pointer-events: none; z-index: 3; }
.foam-head { position: absolute; left: 0; right: 0; top: 0; height: 100%; transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 8px rgba(60, 30, 5, 0.35));
  animation: foamSurge 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both, foamBoil 0.55s ease-in-out 0.7s 3 alternate, foamAway 0.8s ease-in 2.9s forwards; }
.foam-head svg { display: block; width: 100%; height: 100%; }
.foam-drip { position: absolute; top: 90%; border-radius: 0 0 50% 50% / 0 0 26% 26%; transform-origin: 50% 0; transform: scaleY(0);
  background: linear-gradient(90deg, #EBCF9C, #FDF2D8 40%, #FFFEF8 55%, #F3DFB8); box-shadow: inset -2px -3px 0 rgba(184, 138, 72, 0.25);
  animation: foamDrip 1.25s cubic-bezier(0.5, 0, 0.8, 0.45) forwards, foamFade 0.8s ease-in 2.9s forwards; }
/* A round end on each drip, the way a heavy drip hangs. */
.foam-drip::after { content: ''; position: absolute; left: -12%; right: -12%; bottom: -28%; aspect-ratio: 1; border-radius: 50%; background: inherit; box-shadow: inherit; }
.foam-drop { position: absolute; top: calc(90% + var(--from, 60px)); width: 12px; height: 15px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; opacity: 0;
  background: linear-gradient(90deg, #EBCF9C, #FFFEF8 50%, #F3DFB8); animation: foamDrop 0.9s cubic-bezier(0.55, 0, 1, 0.45) forwards; }
.foam-pop { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.95); opacity: 0;
  animation: foamPop 0.45s ease-out forwards; }
@keyframes foamSurge { from { transform: scaleY(0.05) translateY(30%); } to { transform: none; } }
@keyframes foamBoil { to { transform: scale(1.03, 1.06); } }
@keyframes foamAway { to { transform: scaleY(0.6) translateY(-12%); opacity: 0; } }
@keyframes foamDrip { to { transform: scaleY(1); } }
@keyframes foamFade { to { opacity: 0; } }
@keyframes foamDrop { 0% { opacity: 1; transform: translateY(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--fall, 200px)); } }
@keyframes foamPop { 0% { opacity: 0; transform: scale(0.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.7); } }

/* The switch at the bottom: animations on or off for this visitor. */
.motion-line { margin: 14px 0 0; }
.motion-switch { min-height: 36px; padding: 0 14px; border: 1px solid #3A2A16; border-radius: 999px; background: none; color: #B79B72;
  font: 600 12px/1 'Libre Franklin', system-ui, sans-serif; letter-spacing: 0.08em; cursor: pointer; }
.motion-switch:hover { color: var(--cream); border-color: #6B5436; }
.motion-switch:focus-visible { outline: 2px solid #F2C879; outline-offset: 2px; }
.motion-switch[aria-pressed="true"] span { color: #8FDB9A; }

@keyframes wheelGlow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes bellFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cueBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---- Animations off ----
   <html class="calm">: the phone asks for reduced motion (and this visitor hasn't turned
   animations on), or they've switched them off at the bottom of the page. Set before the
   page is drawn, by motion.js. Things still appear and fade; the movement goes. */
.calm { scroll-behavior: auto; }
.calm .scroll-cue, .calm .wheel::before { animation: none; }
/* Beer/wine wheels: the spin and the pour stay (they're the point); the flashing,
   bouncing, sloshing and fizzing go. Chasing lights are switched off in JS. */
.calm .bw-bulbs.win .bw-bulb, .calm .pint-pop.show .pint-bubbles circle, .calm .pint-pop.show .wine-surface, .calm .pint-pop.show .wineglass.fizz .wine-bubbles circle { animation: none; }
.calm .pint-pop.show .pint-card { animation: logoFade 0.3s ease both; }
/* Next up, the lounge and the Legends sit still: no pulse, no twinkle, no drift, no tilt. */
.calm .q-pulse { animation: none; opacity: 0; }
.calm .sparkle, .calm .glint::before, .calm .legends-title::after, .calm .legend-glint::before, .calm .legend-frame::before,
.calm .king-stage::before, .calm .king-crown, .calm .holo-shift i, .calm .vip-title::after { animation: none; }
.calm .pass-card, .calm .pass-inner, .calm .pass-face { transition: none; }
.calm .ticker { -webkit-mask-image: none; mask-image: none; }
.calm .ticker-track { animation: none; width: auto; }
.calm .ticker-list { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
.calm #ticker-copy { display: none; }
.calm .live-dot::after { animation: none; opacity: 0; }
.calm .burst span { animation: none; display: none; }
.calm .bell.ringing .bell-pour { animation: bellFadeIn 0.4s ease forwards; transform: none; opacity: 0; }
.calm .bell.ringing .bell-pour span { animation: none; }
.calm .bell.ringing .bell-text { animation: bellFadeIn 0.4s ease 0.3s forwards; transform: none; }
.calm .foam-head { animation: bellFadeIn 0.3s ease both, foamFade 0.6s ease 2.6s forwards; }
.calm .foam-drip, .calm .foam-drop, .calm .foam-pop { display: none; }
.calm .spot.won { animation: none; box-shadow: inset 0 0 0 3px #FFE9A8; }
.calm .chip-btn { transition: none; }
/* The roulette spin is the whole point of the wheel, so it isn't removed or shortened;
   only the ball's hops off the frets go (see SPIN in app.js). */
