/* Sal's Back Room: a cartoon back-alley speakeasy. Brick, felt, neon, chunky ink outlines. */
:root {
  --ink: #14100E; --brick: #3A1F1A; --mortar: #2A1512; --room: #2A1512; --cream: #FFF4DC; --tan: #E9C9A8; --dim: #C9A98A;
  --gold: #FFC94A; --pink: #FF5FA2; --cyan: #4FE3E0; --felt: #1F5C46; --felt-hi: #2E7A5C; --green: #5BD18B; --red: #E0464E;
  --coral: #FF8A70; --sky: #8FD3F5; --lilac: #C6B3FF; --wood: #6B3A22; --night: #141238;
  --display: 'Bagel Fat One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --neon: Bungee, Impact, system-ui, sans-serif;
  --body: Figtree, system-ui, -apple-system, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--room); color: var(--cream); font-family: var(--body); -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px dashed var(--pink); outline-offset: 3px; }
a { color: var(--cream); }

.screen { position: relative; z-index: 0; max-width: 440px; min-height: 100dvh; margin: 0 auto; overflow: hidden;
  padding: calc(16px + var(--safe-top)) 18px calc(16px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 12px; }
.brick { background-color: var(--brick); background-image: linear-gradient(var(--mortar) 2px, transparent 2px), linear-gradient(90deg, var(--mortar) 2px, transparent 2px), linear-gradient(90deg, var(--mortar) 2px, transparent 2px);
  background-size: 56px 28px, 56px 56px, 56px 56px; background-position: 0 0, 0 0, 28px 28px; }
.neon-pink { color: #FFE3F0; text-shadow: 0 0 4px var(--pink), 0 0 12px var(--pink), 0 0 24px #FF2E88; }
.neon-cyan { color: #E2FFFE; text-shadow: 0 0 4px var(--cyan), 0 0 12px var(--cyan), 0 0 24px #19B8C9; }
.display { font-family: var(--display); font-weight: 400; }
.neon { font-family: var(--neon); font-weight: 400; }
.money { font-family: var(--display); color: var(--gold); text-shadow: 2px 2px 0 var(--ink); font-variant-numeric: tabular-nums; }
.muted { color: var(--tan); }
.small { font-size: 13px; font-weight: 700; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-height: 0; }
.center { text-align: center; }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.back { background: none; border: 0; padding: 6px 0; font-weight: 800; font-size: 14px; }
.pill { background: var(--ink); border-radius: 999px; padding: 6px 12px; font-family: var(--neon); font-size: 13px; color: var(--cyan); white-space: nowrap; }
.bank { font-size: 24px; }
.mute { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 3px 0 var(--ink); }
.mute svg { width: 20px; height: 20px; }
.mute[aria-pressed="true"] { background: var(--red); }

/* Buttons */
.btn { width: 100%; min-height: 56px; padding: 0 14px; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink);
  background: var(--gold); color: var(--ink); font-family: var(--display); font-size: 22px; line-height: 1.1; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn.cream { background: var(--cream); } .btn.pink { background: var(--pink); } .btn.green { background: var(--green); }
.btn.coral { background: var(--coral); } .btn.dark { background: var(--ink); color: var(--cream); border-color: var(--tan); box-shadow: none; font-family: var(--body); font-weight: 800; font-size: 16px; }
.btn small { font-family: var(--body); font-size: 13px; font-weight: 700; }
.btns { display: grid; gap: 10px; }
.btns.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.btns.one-two { grid-template-columns: 1fr 2fr; }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 6px 0 var(--ink), 0 0 0 0 rgba(255,201,74,.55); } 50% { box-shadow: 0 6px 0 var(--ink), 0 0 0 10px rgba(255,201,74,0); } }

.legal { margin: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--dim); line-height: 1.6; }
.legal a { color: inherit; }

/* Start screen */
.title { text-align: center; line-height: 1; margin-top: 2px; }
.title .a { font-family: var(--neon); font-size: 48px; transform: rotate(-3deg); }
.title .b { font-family: var(--neon); font-size: 28px; margin-top: 2px; }
.flicker { animation: flicker 4s steps(1) infinite; }
@keyframes flicker { 0%, 18%, 22%, 60%, 100% { opacity: 1; } 20%, 61% { opacity: .35; } }
.buzz { animation: buzz 3.4s steps(1) infinite; }
@keyframes buzz { 0%, 40%, 46%, 100% { opacity: 1; } 42%, 44% { opacity: .4; } }
.sal-stage { position: relative; width: 300px; height: 158px; align-self: center; }
.sal-stage .bubble { position: absolute; left: 0; top: 0; width: 150px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink); padding: 10px 12px; font-weight: 800; font-size: 14px; line-height: 1.3; transform-origin: 85% 100%; animation: bubble 4.5s cubic-bezier(.3,1.6,.5,1) infinite; }
@keyframes bubble { 0% { transform: rotate(-3deg) scale(.6); opacity: 0; } 8%, 92% { transform: rotate(-3deg) scale(1); opacity: 1; } 100% { transform: rotate(-3deg) scale(.9); opacity: 0; } }
.sal-stage svg { position: absolute; right: 0; bottom: -10px; width: 146px; height: 166px; transform-origin: 60% 100%; animation: sway 4.2s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-4px); } }
.squint { transform-box: fill-box; transform-origin: center; animation: squint 5s ease-in-out infinite; }
@keyframes squint { 0%, 86%, 100% { transform: scaleY(1); } 90%, 94% { transform: scaleY(.25); } }
.ember { animation: ember 1.6s ease-in-out infinite; }
@keyframes ember { 0%, 100% { fill: #FF6A2B; } 50% { fill: #FFD23F; } }
.smoke { animation: smoke 3.2s ease-out infinite; }
@keyframes smoke { 0% { transform: translate(0, 8px); opacity: 0; } 25% { opacity: .85; } 100% { transform: translate(-6px, -26px); opacity: 0; } }
.chip-float { position: absolute; z-index: -1; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--ink); opacity: 0; bottom: -30px; animation: float 7s linear infinite; }
.chip-float::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px dashed rgba(255,253,246,.85); }
@keyframes float { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10%, 90% { opacity: .75; } 100% { transform: translateY(-780px) rotate(360deg); opacity: 0; } }
.rule-card { background: var(--felt); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; transform: rotate(1deg); }
.rule-card .k { font-family: var(--neon); font-size: 14px; letter-spacing: .04em; }
.rule-card .t { font-family: var(--display); font-size: 26px; line-height: 1.05; color: var(--gold); }
.rule-card .d { font-weight: 700; font-size: 15px; }
.howto { background: var(--ink); border: 3px solid var(--tan); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.howto ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 700; line-height: 1.35; }

/* Menu */
.strip { display: flex; gap: 6px; }
.strip span { flex: 1; height: 8px; border-radius: 4px; background: #5E3A33; border: 2px solid var(--ink); }
.strip .w { background: var(--green); } .strip .l { background: var(--red); } .strip .p { background: var(--cream); } .strip .now { background: var(--gold); }
.section-label { font-family: var(--neon); font-size: 12px; color: var(--tan); letter-spacing: .06em; }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.door { position: relative; text-align: left; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 5px 0 var(--ink); padding: 12px; display: flex; flex-direction: column; gap: 6px; min-height: 104px; color: var(--ink); }
.door:nth-child(odd) { transform: rotate(-1.2deg); } .door:nth-child(even) { transform: rotate(1.2deg); }
.door b { font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1; }
.door span { font-size: 12px; font-weight: 700; line-height: 1.25; }
.door svg { width: 34px; height: 34px; }
.hot { position: absolute; top: -12px; right: -8px; background: var(--pink); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; padding: 2px 8px; font-family: var(--neon); font-size: 11px; transform: rotate(8deg); }
.loan-btn { min-height: 52px; background: var(--ink); color: var(--cream); border: 3px solid var(--pink); border-radius: 14px; font-weight: 800; font-size: 16px; }
.notice { background: var(--ink); border: 3px solid var(--pink); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }

/* Bet sheet */
.sheet { background: var(--felt); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 5px 6px 0 var(--ink); padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.amount { display: flex; align-items: center; justify-content: space-between; }
.amount .v { font-family: var(--display); font-size: 58px; line-height: 1; color: var(--gold); text-shadow: 4px 4px 0 var(--ink); }
.step { width: 56px; height: 56px; border-radius: 50%; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-family: var(--display); font-size: 30px; line-height: 1; padding: 0; }
.range { width: 100%; accent-color: var(--gold); height: 28px; }
.quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.quick button { min-height: 46px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); font-weight: 800; font-size: 13px; line-height: 1.1; padding: 0 2px; }
.opts { display: flex; gap: 6px; flex-wrap: wrap; }
.opts button { min-width: 48px; min-height: 40px; padding: 0 12px; border: 3px solid var(--ink); border-radius: 10px; background: var(--ink); color: var(--cream); font-weight: 800; }
.opts button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.info { background: var(--ink); border-radius: 16px; padding: 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.info b { color: var(--cyan); }
.sal-line { text-align: center; font-size: 14px; font-weight: 800; color: var(--tan); }

/* Chips */
.chip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 3px dashed var(--ink);
  box-shadow: 0 2px 0 var(--ink); color: var(--ink); font-weight: 800; font-size: 11px; padding: 0; }
.chip.c1 { background: #FFFDF6; } .chip.c5 { background: var(--red); } .chip.c25 { background: var(--green); } .chip.c100 { background: var(--ink); color: var(--cream); border-color: var(--cream); box-shadow: 0 0 0 2px var(--ink), 0 2px 0 var(--ink); }
.chip.c20 { background: var(--green); } .chip.cx { background: var(--gold); }
.rack { display: flex; align-items: center; gap: 8px; }
.rack .chip { width: 44px; height: 44px; font-size: 12px; }
.rack .chip[aria-pressed="true"] { transform: translateY(-6px); outline: 3px solid var(--gold); outline-offset: 2px; }
.mini { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; font-size: 8px; z-index: 1; border-width: 2px; }

/* Felt tables */
.felt { background: radial-gradient(ellipse at 50% 40%, var(--felt-hi) 0%, var(--felt) 60%, #174835 100%); border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.table-oval { border-radius: 150px 150px 28px 28px; box-shadow: inset 0 0 0 10px var(--wood), inset 0 0 0 13px var(--ink), 0 6px 0 var(--ink); padding: 30px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.label { font-family: var(--neon); font-size: 13px; color: #CFEBDD; letter-spacing: .06em; }
.hand { display: flex; justify-content: center; min-height: 100px; }
.hand .card + .card { margin-left: -26px; }
.card { position: relative; width: 70px; height: 98px; flex: none; background: #FFFDF6; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 3px 4px 0 var(--ink); color: var(--ink); }
.card.red { color: #D2343C; }
.card .r { position: absolute; left: 6px; top: 3px; font-family: var(--display); font-size: 22px; line-height: 1; }
.card .s { position: absolute; right: 7px; bottom: 5px; font-size: 32px; line-height: 1; }
.card.back { background-color: var(--red); background-image: repeating-linear-gradient(45deg, #C23A42 0 6px, transparent 6px 12px); }
.card.sm { width: 46px; height: 64px; } .card.sm .r { font-size: 16px; } .card.sm .s { font-size: 22px; }
.card.lg { width: 104px; height: 146px; } .card.lg .r { font-size: 30px; } .card.lg .s { font-size: 50px; }
.deal { animation: deal .5s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes deal { from { opacity: 0; transform: translate(140px, -200px) rotate(28deg); } }
.payline { font-family: var(--display); font-size: 17px; color: var(--gold); text-align: center; line-height: 1.2; }
.payline small { display: block; font-family: var(--body); font-weight: 700; font-size: 12px; color: #CFEBDD; }
.betspot { position: relative; width: 140px; height: 140px; border-radius: 50%; border: 4px dashed var(--gold); background: rgba(20,16,14,.25); padding: 0; flex: none; }
.betspot .tag { position: absolute; left: 0; right: 0; top: 4px; font-family: var(--neon); font-size: 11px; color: var(--gold); text-align: center; }
.betspot .stack { position: absolute; left: 50%; bottom: 38px; width: 64px; height: 64px; margin-left: -32px; }
.betspot .stack .chip { position: absolute; left: 0; width: 64px; height: 64px; font-size: 14px; border-width: 5px; }
.betspot .total { position: absolute; left: 0; right: 0; bottom: 8px; font-family: var(--display); font-size: 20px; color: var(--cream); text-shadow: 2px 2px 0 var(--ink); text-align: center; }

/* Result banner */
.result { align-self: center; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 8px 16px; text-align: center; box-shadow: 0 4px 0 var(--ink); animation: pop .45s cubic-bezier(.3,1.6,.5,1) both; }
.result.lose { background: var(--red); } .result.push { background: var(--cream); }
.result b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.05; }
.result span { font-weight: 800; font-size: 13px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* Roulette */
.wheel-wrap { width: 150px; height: 150px; flex: none; position: relative; }
.wheel-wrap svg { width: 150px; height: 150px; }
.wheel-spin { transform-box: fill-box; transform-origin: center; transition: transform 3.2s cubic-bezier(.15,.7,.2,1); }
.ball-orbit { transform-origin: 110px 110px; transition: transform 3.2s cubic-bezier(.2,.75,.25,1); }
.board { flex: 1; min-height: 0; background: var(--felt); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 5px 0 var(--ink); padding: 8px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 8px; }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(28px, 1fr); }
.sides { display: grid; grid-template-rows: 30px repeat(12, minmax(0, 1fr)); }
.spot { position: relative; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink); font-weight: 800; font-size: 15px; min-height: 28px; padding: 0; color: var(--cream); }
.spot.r { background: #D2343C; } .spot.k { background: #1B1A1F; } .spot.g { background: #1F8A55; grid-column: 1 / span 3; border-radius: 10px 10px 0 0; }
.spot.side { grid-row: span 2; border-radius: 8px; font-size: 13px; background: var(--felt-hi); }
.spot.side.r { background: #D2343C; } .spot.side.k { background: #1B1A1F; }
.spot.win { outline: 4px solid var(--gold); outline-offset: -4px; z-index: 2; }

/* Rocket */
.sky { position: relative; flex: 1; min-height: 300px; border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink); overflow: hidden;
  background-color: var(--night); background-image: radial-gradient(#FFF4DC 1px, transparent 1.5px), radial-gradient(#8FD3F5 1px, transparent 1.5px); background-size: 46px 46px, 73px 73px; background-position: 0 0, 20px 30px; }
.sky svg.curve { position: absolute; inset: 0; width: 100%; height: 100%; }
.rocket { position: absolute; width: 56px; height: 74px; transform: translate(-50%, -50%) rotate(32deg); }
.rocket.boom { display: none; }
.mult { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-family: var(--neon); font-size: 66px; line-height: 1; font-variant-numeric: tabular-nums; }
.mult small { display: block; font-family: var(--body); font-weight: 800; font-size: 15px; color: #CFEBF5; margin-top: 8px; text-shadow: none; }
.blast { position: absolute; width: 160px; height: 160px; transform: translate(-50%, -50%); animation: pop .4s cubic-bezier(.3,1.6,.5,1) both; }
.shake { animation: rshake .18s linear infinite; }
@keyframes rshake { 50% { translate: 1px -1px; } 100% { translate: -1px 1px; } }

/* Mines */
.minefield { background: var(--felt); border: 4px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); padding: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tile { aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 12px; background: #6B5BA8; box-shadow: inset 0 -5px 0 #4E4083; padding: 0; display: flex; align-items: center; justify-content: center; }
.tile.safe { background: var(--felt-hi); box-shadow: none; animation: pop .35s cubic-bezier(.3,1.6,.5,1) both; }
.tile.mine { background: var(--red); box-shadow: none; animation: pop .45s cubic-bezier(.3,1.6,.5,1) both, tshake .4s .45s 2; }
.tile.ghost { background: #2D2350; box-shadow: none; }
.tile svg { width: 60%; height: 60%; }
@keyframes tshake { 25% { transform: translateX(-4px) rotate(-4deg); } 75% { transform: translateX(4px) rotate(4deg); } }
.stats { display: flex; justify-content: space-between; align-items: center; background: var(--ink); border-radius: 14px; padding: 10px 14px; }
.stats .k { font-size: 12px; font-weight: 800; color: var(--tan); }
.stats .v { font-family: var(--display); font-size: 24px; color: var(--gold); }

/* Plinko */
.plinko { position: relative; background: var(--night); border: 4px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); padding: 6px 4px; }
.plinko svg { width: 100%; display: block; }

/* Slots */
.cabinet { position: relative; background: #8C1F2E; border: 4px solid var(--ink); border-radius: 28px 28px 18px 18px; box-shadow: 0 6px 0 var(--ink); padding: 14px 14px 16px; }
.reels { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.reel { position: relative; height: 210px; overflow: hidden; background: #FFFDF6; border: 3px solid var(--ink); border-radius: 10px; }
.reel .strip { display: flex; flex-direction: column; }
.reel .cell { height: 70px; display: flex; align-items: center; justify-content: center; }
.reel.spin .strip { animation: reel .45s linear infinite; }
@keyframes reel { to { transform: translateY(-420px); } }
.payline-bar { position: absolute; left: -6px; right: -6px; top: 103px; height: 4px; background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.paytable { background: var(--ink); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; font-size: 13px; font-weight: 700; }
.paytable b { color: var(--gold); text-align: right; }
.paytable .hit { background: var(--gold); color: var(--ink); border-radius: 4px; padding: 0 6px; }

/* Video poker */
.vp-cards { display: flex; justify-content: center; gap: 5px; }
.vp-card { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; }
.vp-card .card { width: 58px; height: 82px; }
.vp-card .held { font-family: var(--neon); font-size: 11px; color: var(--gold); min-height: 14px; }
.vp-card[aria-pressed="true"] .card { transform: translateY(-8px); }
.poker-pays { background: var(--ink); border: 3px solid var(--cyan); border-radius: 14px; padding: 8px; font-size: 13px; font-weight: 700; display: flex; flex-direction: column; gap: 1px; }
.poker-pays div { display: flex; justify-content: space-between; padding: 1px 8px; border-radius: 6px; }
.poker-pays .hit { background: var(--gold); color: var(--ink); }

/* Higher or lower */
.hist { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.flip { animation: flip .5s ease-out both; }
@keyframes flip { from { transform: rotateY(90deg); } }
.chance { font-family: var(--body); font-size: 13px; font-weight: 700; }

/* Loan + legs */
.iou { background: #F3E6C4; color: var(--ink); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 5px 5px 0 var(--ink); padding: 16px; font-family: 'Special Elite', 'Courier New', monospace; font-size: 15px; line-height: 1.5; transform: rotate(1deg); }
.speech { background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); padding: 12px 14px; font-weight: 800; font-size: 16px; line-height: 1.35; }
.legs-stage { position: relative; width: 340px; height: 400px; align-self: center; animation: quake 2.6s 1; }
.slam { transform-origin: 50% 50%; animation: slam 1.2s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes slam { 0% { transform: scale(.1) rotate(-20deg); opacity: 0; } 35% { transform: scale(1.15) rotate(3deg); opacity: 1; } 60%, 100% { transform: scale(1) rotate(0); } }
@keyframes quake { 14%, 22% { transform: translate(0, 0); } 16% { transform: translate(-6px, 3px); } 18% { transform: translate(6px, -3px); } 20% { transform: translate(-4px, 2px); } }
.orbit { transform-box: fill-box; transform-origin: center; animation: orbit 1.6s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* Results */
.big { font-family: var(--display); font-size: 52px; line-height: 1; color: var(--gold); text-shadow: 4px 4px 0 var(--ink); }
.panel { background: var(--felt); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 4px 5px 0 var(--ink); padding: 12px 12px 8px; }
.panel.dark { background: var(--ink); box-shadow: none; }
.draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: drawline 2.4s ease-out .3s forwards; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
.chips10 { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.chips10 span { display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 8px; border: 2px solid var(--ink); color: var(--ink); font-family: var(--neon); font-size: 9px; }
.bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: end; height: 76px; }
.bars span { background: #5E3A33; border-radius: 4px 4px 0 0; min-height: 3px; }
.bars span.you { background: var(--gold); border: 2px solid var(--cream); }
.bars-l { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; text-align: center; font-size: 10px; font-weight: 800; color: var(--dim); }
.top { display: flex; align-items: center; gap: 12px; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 5px 0 var(--ink); padding: 8px 12px; }
.countdown { background: var(--ink); border-radius: 14px; padding: 8px 10px; text-align: center; font-size: 12px; font-weight: 800; color: var(--tan); }
.countdown b { display: block; font-family: var(--neon); font-weight: 400; font-size: 18px; color: var(--cream); }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translateX(-50%); background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 10px 16px; font-weight: 800; box-shadow: 0 4px 0 var(--ink); z-index: 20; animation: pop .3s both; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .draw { stroke-dashoffset: 0; } .chip-float { display: none; } }
/* Finished rounds stay readable: no dimming on spent cards, spots and tiles. */
.spot:disabled, .vp-card:disabled, .tile:disabled { opacity: 1; cursor: default; }
