/* fonts: self-hosted, SIL Open Font License (css/fonts/LICENSE-*.txt) */
@font-face { font-family: "Cormorant Garamond"; src: url("/css/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/css/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/css/fonts/outfit-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/css/fonts/outfit-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/css/fonts/outfit-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/css/fonts/outfit-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* Mayor Pinto's Casino — "Night Room" lobby (release candidate rc2, from the approved A1 preview).
   Purple / black / warm gold; neon used sparingly (section rules, the Create button, live dots, hover glow).
   Motion is ambient and slow, only transform / opacity, and stops with the Lights button or reduced motion. */
:root {
  --ink: #0b0614; --night: #120a22; --plum: #1c1033; --plum-2: #26164a; --line: #3a2766;
  --gold: #e2b955; --gold-2: #f6d98b; --gold-ink: #2a1a05;
  --violet: #8f5bff; --neon: #c58bff; --ok: #5ee39b; --wait: #f2c45a; --cached: #f2c45a;
  --ivory: #f6eedf; --muted: #bcaed6; --dim: #9384b0;
  --r: 18px; --r-sm: 12px;
  --pad: clamp(16px, 4.5vw, 64px);
  --display: "Cormorant Garamond", Georgia, serif; --sans: "Outfit", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ink); color: var(--ivory); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1100px 600px at 85% -10%, #3b1a6b66, transparent 60%), radial-gradient(900px 500px at -5% 45%, #2a0f4a44, transparent 60%), radial-gradient(700px 400px at 100% 85%, #4a2a0a33, transparent 60%), var(--ink); }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 8px; z-index: 50; font-weight: 600; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 10px; }
.proposal-flag { margin: 0; padding: 6px 12px; text-align: center; font-size: 12px; letter-spacing: .02em; color: var(--muted); background: #05020a; border-bottom: 1px solid #ffffff14; }

/* ── top bar ── */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px var(--pad); background: #0b0614e8; backdrop-filter: blur(12px); border-bottom: 1px solid #ffffff12; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; color: var(--muted); font-weight: 500; flex: none; }
.back svg { width: 18px; height: 18px; }
.back:hover { color: var(--ivory); }
.jump { display: flex; gap: 2px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.jump::-webkit-scrollbar { display: none; }
.jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.jump a:hover { color: var(--ivory); background: #ffffff0d; }
.jump a[aria-current="true"] { color: var(--gold-2); background: #e2b9551a; box-shadow: inset 0 0 0 1px #e2b95555; }
.bar-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.sync { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.sync.live i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.sync.cached i { background: var(--cached); }
.tool { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid #ffffff26; background: transparent; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; }
.tool svg { width: 16px; height: 16px; }
.tool[aria-pressed="true"] { color: var(--gold-2); border-color: #e2b95566; }
.tool:hover { color: var(--ivory); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 15.5px var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: 0 6px 20px #e2b95533; }
.btn.violet { background: linear-gradient(180deg, #a77bff, #7a45f0); color: #fff; box-shadow: 0 6px 20px #8f5bff40; }
.btn.line { background: transparent; color: var(--ivory); border-color: #ffffff38; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14.5px; }

/* ── tags (live / cached / unknown / preview) ── */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 11.5px/1.4 var(--sans); letter-spacing: .04em; white-space: nowrap; background: #ffffff10; border: 1px solid #ffffff2a; color: var(--muted); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.live { color: #9ff3c4; border-color: #5ee39b66; background: #5ee39b14; }
.tag.live::before { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.tag.cached { color: #f6e2a8; border-color: #f2c45a66; background: #f2c45a14; }
.tag.preview { color: #e3d2ff; border-color: #c58bff80; background: #8f5bff1f; }
.tag.preview::before { border-radius: 2px; transform: rotate(45deg); }
.tag.off { color: var(--dim); }

/* ── hero ── */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 24px; min-height: 480px; padding: 36px var(--pad) 0; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -24px; z-index: -3; background: url("/bean-machine/img/casino/games/hero-scene-bg-1600.webp") 75% center / cover no-repeat; filter: blur(14px) saturate(1.15) brightness(.5); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #0b0614f2 0%, #0b0614cc 42%, #0b061455 76%, #0b061499 100%), linear-gradient(0deg, var(--ink) 0%, transparent 32%); }
.beams { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.beams i { position: absolute; top: -30%; width: 46%; height: 160%; background: linear-gradient(90deg, transparent, #c58bff14 40%, #f6d98b18 50%, #c58bff14 60%, transparent); transform-origin: 50% 0; filter: blur(6px); }
.beams i:first-child { left: 40%; transform: rotate(18deg); animation: sweep 14s ease-in-out infinite alternate; }
.beams i:last-child { left: 62%; transform: rotate(-14deg); animation: sweep2 17s ease-in-out infinite alternate; opacity: .8; }
@keyframes sweep { to { transform: rotate(-8deg); } }
@keyframes sweep2 { to { transform: rotate(12deg); } }
.dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1.5px 1.5px at 12% 30%, #f6d98b, transparent), radial-gradient(1px 1px at 33% 70%, #c58bff, transparent), radial-gradient(1.5px 1.5px at 58% 22%, #f6d98b, transparent), radial-gradient(1px 1px at 76% 64%, #fff, transparent), radial-gradient(1.5px 1.5px at 88% 36%, #c58bff, transparent), radial-gradient(1px 1px at 47% 48%, #f6d98b, transparent);
  animation: drift 22s linear infinite; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-40px); } }
.hero-copy { align-self: center; padding: 8px 0 48px; max-width: 640px; }
.kicker { margin: 0 0 10px; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 600; }
h1 { margin: 0; font: 700 clamp(46px, 7vw, 88px)/.95 var(--display); color: var(--ivory); text-shadow: 0 0 30px #c58bff40; }
h1 span { display: block; font-size: .55em; color: var(--gold-2); text-shadow: none; letter-spacing: .01em; }
.lede { margin: 18px 0 26px; color: #e9e0f7; font-size: clamp(17px, 1.6vw, 19px); max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.now { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; }
.now li { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 14px; border-radius: 999px; background: #ffffff0f; border: 1px solid #ffffff1a; font-size: 14px; color: var(--muted); }
.now li:empty { display: none; }
.now b { color: var(--ivory); font-weight: 600; }
.now .pv-pill { border-color: #c58bff55; }
.dealer { position: relative; margin: 0; justify-self: center; align-self: end; width: min(370px, 100%); }
.dealer img { width: 100%; height: auto; filter: drop-shadow(0 20px 40px #000a) drop-shadow(0 0 34px #8f5bff38); animation: idle 6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes idle { 50% { transform: translateY(-4px) rotate(-.4deg); } }
.says { position: absolute; top: 6%; left: -52%; max-width: 230px; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #fff8ec; color: #2b1838; font: 600 15px/1.3 var(--sans); box-shadow: 0 10px 30px #0008; transition: opacity .4s; }
.says.fade { opacity: 0; }
.marquee { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: radial-gradient(circle, var(--gold-2) 0 2px, transparent 3px) 0 50% / 18px 8px repeat-x; opacity: .75; animation: chase 1.6s steps(3) infinite; }
@keyframes chase { to { background-position: 18px 50%; } }

/* ── legend and availability note ── */
.legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; max-width: 1280px; margin: 22px auto 0; padding: 0 var(--pad); color: var(--dim); font-size: 13px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.avail-note { max-width: calc(1280px - 2 * var(--pad)); width: calc(100% - 2 * var(--pad)); margin: 24px auto -16px; padding: 12px 18px; border-radius: 12px; border: 1px solid #f2c45a66; background: #f2c45a14; color: #f6e2a8; font-size: 14px; }

/* ── sections ── */
.block { padding: 60px var(--pad) 8px; max-width: 1280px; margin: 0 auto; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 24px; }
.block-head h2 { margin: 0; font: 700 clamp(32px, 4vw, 44px)/1 var(--display); }
.block-head h2::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 12px; background: var(--neon); box-shadow: 0 0 10px var(--neon); border-radius: 2px; }
.block-head p { flex-basis: 100%; margin: 0; color: var(--muted); max-width: 760px; }

/* ── table game cards ── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gcard { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: linear-gradient(180deg, var(--plum-2), var(--plum)); border: 1px solid var(--line); box-shadow: 0 20px 50px #0007, inset 0 1px 0 #ffffff14; transition: border-color .2s, box-shadow .2s; }
.gcard:hover { border-color: #8f5bff99; box-shadow: 0 20px 50px #0007, 0 0 0 1px #8f5bff55, 0 0 30px #8f5bff22; }
.art { position: relative; display: block; overflow: hidden; background: #000; }
.gcard .art { aspect-ratio: 2 / 1; }
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gcard:hover .art img, .tile:hover .art img, .feature:hover .art img { transform: scale(1.03); }
.gcard .art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, var(--plum-2), transparent); }
.ribbon { position: absolute; z-index: 2; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: #120a22e6; border: 1px solid #c58bff99; color: #e3d2ff; font: 600 12px var(--sans); letter-spacing: .03em; }
.gbody { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; }
.gbody h3 { margin: 0; font: 700 27px/1.1 var(--display); color: var(--gold-2); }
.gbody > p { margin: -4px 0 0; font-size: 14.5px; color: var(--muted); }
.solo-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px; border-radius: var(--r-sm); text-decoration: none; background: #5ee39b0d; border: 1px solid #5ee39b33; }
.solo-row:hover { border-color: #5ee39b88; background: #5ee39b16; }
.solo-row b { display: block; font-weight: 600; }
.solo-row small { color: var(--muted); font-size: 12.5px; }
.solo-row .go { color: var(--gold-2); font-size: 18px; }
.mp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; padding-top: 10px; border-top: 1px dashed #ffffff1f; font-size: 14px; }
.mp-head small { margin-left: auto; color: var(--dim); font-size: 12.5px; }
.strips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: #0b0614b3; border: 1px solid #ffffff12; }
.strip.skeleton { height: 64px; background: linear-gradient(90deg, #ffffff08, #ffffff12, #ffffff08) 0 0 / 200% 100%; animation: sk 1.4s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }
.strip .tname { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.strip .acts { display: flex; gap: 6px; }
.strip .acts a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; }
.strip .join { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); }
.strip .watch { background: #8f5bff26; color: #e3d2ff; border: 1px solid #8f5bff80; }
.strip.empty, .strip.start { font-size: 14px; color: var(--muted); }
.ico { display: inline-flex; align-items: center; gap: 5px; }
.ico svg { width: 15px; height: 15px; }
.state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state.on { color: var(--ok); } .state.wait { color: var(--wait); }
.seats { display: inline-flex; }
.seat { width: 22px; height: 22px; border-radius: 50%; margin-left: -5px; border: 2px solid var(--plum); background: #ffffff14 center / cover; }
.seat:first-child { margin-left: 0; }
.seat.taken { background-color: var(--gold); }
.sim { color: var(--dim); font-size: 12px; }
.balls { display: inline-flex; gap: 3px; }
.ball { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.ball.red { background: #c62c3a; } .ball.black { background: #1d1726; border: 1px solid #ffffff30; } .ball.green { background: #138a52; }
.create { display: grid; justify-items: center; gap: 10px; margin: 32px auto 0; text-align: center; }
.create p { margin: 0; color: var(--muted); }
.create-btn { min-height: 58px; padding: 0 42px; font-size: 18px; color: var(--gold-2); background: #120a22; border: 1.5px solid var(--gold); box-shadow: 0 0 0 4px #e2b9551a, 0 0 28px #e2b95540, inset 0 0 18px #e2b95522; animation: glow 3.2s ease-in-out infinite; }
.create-btn:hover { background: #1c1033; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px #e2b95526, 0 0 42px #e2b95566, inset 0 0 18px #e2b95533; } }

/* ── tiles, feature ── */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--r); overflow: hidden; text-decoration: none; background: var(--plum); border: 1px solid var(--line); transition: transform .15s, border-color .2s, box-shadow .2s; }
.tile:hover, .feature:hover { transform: translateY(-3px); border-color: #e2b95599; box-shadow: 0 14px 30px #0008, 0 0 24px #e2b95522; }
.tile .art.sq { aspect-ratio: 1; }
.tile .txt { display: grid; gap: 4px; padding: 12px 14px 16px; justify-items: start; }
.tile b { font-weight: 600; font-size: 16.5px; }
.tile small { color: var(--muted); font-size: 13.5px; }
.tile.wide { flex-direction: row; }
.tile.wide .art.sq { flex: 0 0 44%; }
.tile.wide .txt { align-content: center; padding: 16px 18px; }
.tile.wide b { font: 700 26px/1.1 var(--display); color: var(--gold-2); }
.art-missing { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #3a2160, #160c2a 70%); }
.art-missing .coin { position: relative; width: 44%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #f6d98b, #b8892e 70%); box-shadow: 0 0 0 6px #8c6a2c, 0 10px 30px #000a; font-size: clamp(28px, 4vw, 48px); animation: flip 5s ease-in-out infinite; }
.art-missing .coin i { position: absolute; font-style: normal; backface-visibility: hidden; }
.art-missing .coin i:last-child { transform: rotateY(180deg); }
@keyframes flip { 0%, 40% { transform: rotateY(0); } 50%, 90% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.art-missing .reels { display: flex; gap: 6%; width: 64%; padding: 6%; border-radius: 12px; background: #0b0614; box-shadow: 0 0 0 4px #e2b955, 0 0 30px #e2b95544; }
.art-missing .reels i { flex: 1; aspect-ratio: 1 / 1.6; border-radius: 6px; background: linear-gradient(180deg, #2a1452, #f6d98b 50%, #2a1452); opacity: .8; }
.slots { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.feature { display: grid; grid-template-columns: minmax(0, 380px) 1fr; border-radius: var(--r); overflow: hidden; text-decoration: none; background: linear-gradient(135deg, #2b1452, #150b28); border: 1px solid #e2b95566; box-shadow: 0 20px 50px #0007; transition: transform .15s, border-color .2s, box-shadow .2s; }
.feature .art.sqf { min-height: 380px; height: 100%; }
.ftxt { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 24px; }
.ftxt b { font: 700 38px/1 var(--display); color: var(--gold-2); }
.ftxt small { color: var(--muted); font-size: 15px; }
.ftxt .btn { margin-top: 6px; }
.slots > .tile.wide { flex-direction: column; }
.slots > .tile.wide .art.sq { flex: none; }

/* availability states */
.is-off { display: none !important; }
.is-unknown.tile, .is-unknown.feature, .is-unknown.solo-row { border-style: dashed; }
.is-unknown .play { visibility: hidden; }
.is-unknown .play-btn { background: transparent; color: var(--muted); border-color: #ffffff38; }
.btn.is-unknown { display: none; }

/* QA overlay (?qa=1): which artwork is final, interim, missing or wrong */

/* ── collection, events, footer ── */
.collection { list-style: none; margin: 0; padding: 4px 2px 10px; display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x mandatory; border-radius: 12px; }
.collection li { scroll-snap-align: start; }
.collection figure { margin: 0; border-radius: var(--r-sm); overflow: hidden; background: radial-gradient(circle at 50% 35%, #3a2160, #160c2a); border: 1px solid var(--line); aspect-ratio: 1; }
.collection img { width: 100%; height: 100%; object-fit: cover; }
.collection li span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); text-align: center; }
.events { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.event { display: flex; gap: 16px; align-items: center; min-height: 72px; padding: 16px 18px; border-radius: var(--r); text-decoration: none; background: var(--plum); border: 1px solid var(--line); }
.event:hover { border-color: #e2b95599; }
.event .date { display: grid; place-items: center; min-width: 70px; padding: 8px; border-radius: 12px; background: #0b0614; border: 1px solid #e2b95566; color: var(--gold-2); text-align: center; }
.event .date b { font: 700 22px/1 var(--display); }
.event .date span { font-size: 12px; color: var(--muted); }
.event b { display: block; font-weight: 600; }
.event small { color: var(--muted); }
.foot { max-width: 1280px; margin: 64px auto 0; padding: 24px var(--pad) 48px; border-top: 1px solid #ffffff12; color: var(--dim); font-size: 13px; }
.foot p { margin: 4px 0; }

/* ── create dialog ── */
dialog { width: min(580px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 0; border: 1px solid #e2b95566; border-radius: 22px; background: linear-gradient(180deg, #22143e, #140b26); color: var(--ivory); box-shadow: 0 30px 80px #000c, 0 0 40px #8f5bff33; }
dialog::backdrop { background: #05020acc; backdrop-filter: blur(4px); }
dialog form { padding: 24px; }
dialog h2 { margin: 0 0 14px; font: 700 30px/1.1 var(--display); color: var(--gold-2); }
fieldset { border: 0; margin: 0 0 14px; padding: 0; }
legend { margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick.three { grid-template-columns: repeat(3, 1fr); }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: grid; gap: 2px; height: 100%; min-height: 56px; padding: 12px; border-radius: 12px; background: #0b061499; border: 1px solid #ffffff1f; }
.pick small { color: var(--muted); font-size: 12.5px; }
.pick input:checked + span { border-color: var(--gold); background: #e2b9551a; box-shadow: inset 0 0 0 1px var(--gold); }
.pick input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.pick input:disabled + span { opacity: .4; cursor: not-allowed; }
.note { margin: 4px 0 16px; font-size: 13.5px; color: var(--muted); }
.dlg-acts { display: flex; justify-content: flex-end; gap: 10px; }

/* ── tablet (768–1179): two-up layouts, cards become horizontal ── */
@media (max-width: 1179px) {
  .hero { min-height: 480px; }
  .dealer { width: min(330px, 100%); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gcard.preview-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gcard.preview-card .art { aspect-ratio: 2 / 1; align-self: start; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles > li > .tile { flex-direction: row; }
  .tiles > li > .tile .art.sq { flex: 0 0 42%; }
  .tiles > li > .tile .txt { align-content: center; }
  .slots { grid-template-columns: 1fr; }
  .slots > .tile.wide { flex-direction: row; }
  .slots > .tile.wide .art.sq { flex: 0 0 38%; }
  .bar-tools .sync span { display: none; }
}
/* ── phone (< 768) ── */
@media (max-width: 767px) {
  .topbar { flex-wrap: wrap; row-gap: 0; padding-top: 6px; padding-bottom: 4px; }
  .jump { order: 3; flex-basis: 100%; margin: 2px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); }
  .bar-tools { margin-left: auto; }
  .tool span { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; gap: 0; }
  .hero-copy { padding-bottom: 6px; }
  .dealer { width: 210px; justify-self: end; margin-top: -8px; margin-right: 6px; }
  .says { left: auto; right: 86%; top: 14%; width: max-content; max-width: 150px; font-size: 14px; border-radius: 14px 14px 4px 14px; }
  .cta .btn { flex: 1 1 100%; }
  .legend { justify-content: flex-start; gap: 6px 14px; }
  .block { padding-top: 48px; }
  .cards { grid-template-columns: 1fr; }
  .gcard.preview-card { display: flex; }
  .tiles { gap: 12px; }
  .tiles > li > .tile { flex-direction: column; }
  .tiles > li > .tile .art.sq { flex: none; }
  .tile.wide b { font: 600 16.5px var(--sans); color: var(--ivory); }
  .tile .txt { padding: 10px 12px 14px; }
  .feature { grid-template-columns: 1fr; }
  .feature .art.sqf { aspect-ratio: 1; min-height: 0; height: auto; }
  .ftxt { padding: 18px; }
  .ftxt .btn { align-self: stretch; }
  .slots > .tile.wide { flex-direction: column; }
  .slots > .tile.wide .art.sq { flex: none; aspect-ratio: 2 / 1; }
  .events { grid-template-columns: 1fr; }
  .pick.three { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip .acts a { flex: 1; justify-content: center; min-height: 44px; }
}
@media (pointer: coarse) { .strip .acts a, .tool, .jump a { min-height: 44px; } }

/* motion off: Lights button or the system setting */
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Play buttons on game tiles (the whole tile is the link; this is its visible call to action) */
.play-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; margin-top: 8px; padding: 0 16px; border-radius: 999px; font: 600 14px var(--sans); color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-2), var(--gold)); border: 1px solid transparent; }
.tile:hover .play-btn { box-shadow: 0 4px 16px #e2b95555; }
.sim { color: var(--dim); font-size: 11.5px; font-style: italic; }
.stale-hub { margin: 0; padding: 10px var(--pad); background: #6b1d1d; color: #ffe2e2; font-size: 14px; border-bottom: 1px solid #ff9a9a55; }
.stale-hub code { font-size: 12.5px; background: #0005; padding: 1px 6px; border-radius: 4px; }

/* ── A1 (14 Oct): Beanville menu, Passport, Community, Records, Today's booth ── */
.bv-menu { position: relative; flex: none; }
.bv-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid #ffffff26; background: #ffffff08; color: var(--ivory); font: 600 14px var(--sans); cursor: pointer; }
.bv-btn svg { width: 16px; height: 16px; } .bv-btn .caret { width: 14px; height: 14px; transition: transform .2s; }
.bv-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.bv-btn:hover { border-color: #e2b95588; }
.bv-panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: min(360px, calc(100vw - 24px)); padding: 8px; border-radius: 16px; background: #160c2a; border: 1px solid #e2b95555; box-shadow: 0 20px 50px #000c; display: grid; gap: 2px; }
.bv-head { margin: 4px 10px 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.bv-panel a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; text-decoration: none; min-height: 44px; }
.bv-panel a:hover, .bv-panel a:focus-visible { background: #ffffff0f; }
.bv-panel b { font-weight: 600; } .bv-panel small { color: var(--muted); font-size: 12.5px; }
.passport-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: 999px; text-decoration: none; background: #e2b9551a; border: 1px solid #e2b95577; color: var(--gold-2); }
.passport-btn:hover { background: #e2b9552a; }
.pp-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #2a1650; border: 1px solid #e2b95577; }
.pp-avatar svg { width: 18px; height: 18px; color: #c9a36a; }
.pp-text { display: grid; line-height: 1.05; } .pp-text small { font-size: 10.5px; color: var(--muted); } .pp-text b { font-size: 14px; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.booth-art { font-size: clamp(54px, 7vw, 88px); background: radial-gradient(circle at 50% 40%, #4a2a7a, #160c2a 72%) !important; }
.now a { color: inherit; text-decoration: none; } .now a b { color: var(--ivory); }
#nowParade { border-color: #e2b95566; }

.comm-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.parade-feature { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 18px; padding: 18px; border-radius: var(--r); background: radial-gradient(circle at 15% 20%, #4a2a1066, transparent 55%), linear-gradient(135deg, #2b1452, #150b28); border: 1px solid #e2b95577; box-shadow: 0 20px 50px #0007; }
.pf-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; max-width: 160px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #5a3592, #1a0d30 70%); border: 1px solid #e2b95544; overflow: hidden; }
.pf-art img { width: 100%; height: 100%; object-fit: contain; }
.pf-crown { position: absolute; top: 6px; right: 8px; font-size: 30px; filter: drop-shadow(0 2px 6px #000a); }
.pf-art > .pf-crown:only-child { position: static; font-size: 72px; }
.pf-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.pf-body h3 { margin: 8px 0 6px; font: 700 34px/1 var(--display); color: var(--gold-2); }
.pf-body > p { margin: 0 0 10px; color: #e9e0f7; font-size: 15px; }
.pf-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: 14px; }
.pf-facts dt { color: var(--dim); } .pf-facts dd { margin: 0; color: var(--ivory); font-weight: 500; }
.pf-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.spotlight { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--plum); border: 1px solid var(--line); }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sp-head h3 { margin: 0; font: 700 24px/1 var(--display); }
.sp-ctrl { display: flex; gap: 6px; }
.sp-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ffffff2a; background: #0b061499; color: var(--ivory); font-size: 16px; cursor: pointer; }
.sp-btn:disabled { opacity: .35; cursor: default; }
.sp-stage { flex: 1; min-height: 150px; display: grid; }
.sp-slide { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: #0b0614b3; border: 1px solid #ffffff14; text-decoration: none; animation: fadeIn .4s ease; }
a.sp-slide:hover { border-color: #e2b95588; }
.sp-slide.skeleton { background: linear-gradient(90deg, #ffffff08, #ffffff12, #ffffff08) 0 0 / 200% 100%; animation: sk 1.4s infinite linear; }
.sp-slide.empty { grid-template-columns: 1fr; }
.sp-slide.empty a { color: var(--gold-2); font-weight: 600; font-size: 14px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } }
.sp-ic { font-size: 40px; }
.sp-txt { display: grid; gap: 4px; justify-items: start; }
.sp-txt b { font-size: 18px; font-weight: 600; } .sp-txt small { color: var(--muted); font-size: 14px; }
.sp-when { color: var(--gold-2); font-size: 13px; font-weight: 500; }
.sp-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.sp-dot { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.sp-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ffffff33; }
.sp-dot[aria-current="true"]::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.sp-src { margin: 0; font-size: 12.5px; color: var(--dim); }
.comm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ccard { display: flex; gap: 14px; align-items: center; min-height: 84px; padding: 14px 16px; border-radius: var(--r); text-decoration: none; background: var(--plum); border: 1px solid var(--line); transition: border-color .2s, transform .15s; }
.ccard:hover { border-color: #e2b95599; transform: translateY(-2px); }
.ccard > span:last-child { display: grid; gap: 3px; justify-items: start; }
.cc-ic { font-size: 34px; flex: none; }
.ccard b { font-weight: 600; } .ccard small { color: var(--muted); font-size: 13px; }
.cc-count { font-size: 13px; color: var(--gold-2); } .cc-count b { font-size: 16px; }
.board-all { margin-top: 14px; font-size: 14px; color: var(--muted); }
.board-all summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; }
.board-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.board-list a { color: var(--ivory); }
.rec-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rcard { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-height: 72px; padding: 12px 16px; border-radius: 14px; text-decoration: none; background: var(--plum); border: 1px solid var(--line); }
.rcard:hover { border-color: #e2b95599; }
.rc-ic { grid-row: span 2; font-size: 28px; }
.rcard b { font-weight: 600; } .rcard small { color: var(--muted); font-size: 13px; }
.muted { color: var(--dim); }
.is-off.parade-feature, .is-off.ccard { display: none !important; }
@media (max-width: 1179px) {
  .comm-top { grid-template-columns: 1fr; }
  .tiles.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-text small { display: none; }
}
@media (max-width: 767px) {
  .bv-btn { padding: 0 10px; font-size: 13px; }
  .pp-text b { font-size: 13px; }
  .parade-feature { grid-template-columns: 1fr; }
  .pf-art { max-width: 160px; }
  .comm-grid, .rec-grid, .tiles.three { grid-template-columns: 1fr; }
  .pf-acts .btn { flex: 1 1 100%; }
}
.now li a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: inherit; }
.board-list a { display: inline-flex; align-items: center; min-height: 40px; }
.sp-slide.empty a { display: inline-flex; align-items: center; min-height: 40px; }
@media (pointer: coarse) { .btn.small, .sp-btn, .sp-dot, .now li a, .board-list a, .sp-slide.empty a { min-height: 44px; } .sp-btn, .sp-dot { width: 44px; height: 44px; } }
.spot-band { padding-top: 36px; }
.spot-band .comm-top { margin-bottom: 0; }

.solo-facts { margin: 0; font-size: 13px; color: var(--dim); }

/* ── Casino attractions (registry-driven cards: Doodle or Nothing and later games) ── */
/* Doodle or Nothing inside Mayor Pinto's Casino — integration preview only.
   Uses the lobby's own tokens and card classes (gcard, art, ribbon, mp-head, strip, tag); this file only adds what
   the drawing table needs. Nothing here restyles an existing card. */

/* the slot is invisible to the grid: the attraction card sits beside Twenty-One and Showdown */
[data-casino-slot="tables"] { display: contents; }
.attr-card .art .dw-live { position: absolute; z-index: 2; left: 12px; top: 12px; font-size: 12.5px; }
.attr-card .art::after { z-index: 1; }
.attr-card .strips .strip.skeleton { height: 112px; }
.attr-card .strip .acts a[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.attr-card .strip .acts button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font: 600 14px var(--sans); cursor: pointer; background: #8f5bff26; color: #e3d2ff; border: 1px solid #8f5bff80; }
.attr-card .strip .acts button:hover { border-color: var(--neon); }
.attr-card .strip.don-off { border-color: #ffffff22; }
.attr-card .strip.don-off b { font-weight: 600; color: var(--ivory); }
.attr-card .strip.don-off small { color: var(--dim); }
.attr-card .strip.is-quiet .tname { color: var(--muted); font-weight: 500; }
.don-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; margin: 2px 0 0; font-size: 13px; }
.don-host { color: var(--gold-2); font-weight: 600; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 32px; }
.don-host[aria-disabled="true"] { color: var(--dim); text-decoration: none; cursor: not-allowed; }
.don-sim { color: var(--neon); font-size: 12.5px; }

/* Game Night spotlight (the featured widget) */
.attr-spot .dw-featured { max-width: none; }
.jump .don-nav { color: var(--gold-2); }

@media (max-width: 767px) {
  .attr-card .strip .acts button { flex: 1; justify-content: center; min-height: 44px; }
  .don-foot { flex-direction: column; align-items: flex-start; }
}
@media (pointer: coarse) { .don-host { min-height: 44px; } .don-gn-toggle { min-height: 40px; } }

.don-title { color: inherit; text-decoration: none; }
.don-title:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Collection scrollbar (themed; was a plain white bar) ── */
.collection { scrollbar-color: #c9a24a66 transparent; }
.collection::-webkit-scrollbar { height: 8px; }
.collection::-webkit-scrollbar-thumb { background: #c9a24a66; border-radius: 8px; }
.collection::-webkit-scrollbar-track { background: #ffffff0d; border-radius: 8px; }

/* ── RC2: Casino Tables layout and table art ── */
@media (min-width: 1180px) {
  #tables .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #tables .gcard.attr-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #tables .gcard.attr-card .art { aspect-ratio: auto; align-self: stretch; min-height: 300px; }
  #tables .gcard.attr-card .art img { position: absolute; inset: 0; }
}
#tables .gcard:not(.attr-card) .gbody .solo-row { margin-top: auto; }
@media (min-width: 768px) { #tables .gcard:not(.attr-card) .gbody > p:first-of-type { min-height: 2.9em; } }
.gcard .art img[data-art="table-showdown"] { transform-origin: 0 0; transform: scale(1.11); }
.gcard:hover .art img[data-art="table-showdown"] { transform: scale(1.14); }
.gcard .art:has(img[data-art="table-twentyone"])::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 9%; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #0b0614 0%, #0b0614cc 30%, transparent); }

/* ── RC2: attraction pill in the hero (Doodle or Nothing: tables open / drawing) ── */
.now .attr-pill { padding: 0; border-color: #c58bff55; background: #8f5bff1c; }
.now .attr-pill a { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.now .attr-pill a:hover { color: var(--ivory); } .now .attr-pill a:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.attr-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 3px #e2b95533; }
.attr-pill[data-state="live"] .attr-pill-dot { background: #5ee39b; box-shadow: 0 0 0 3px #5ee39b33, 0 0 10px #5ee39b; }
@media (prefers-reduced-motion: no-preference) { .attr-pill[data-state="live"] .attr-pill-dot { animation: attr-pulse 1.8s ease-in-out infinite; } }
@keyframes attr-pulse { 50% { box-shadow: 0 0 0 6px #5ee39b11, 0 0 14px #5ee39b; } }
