/* DrawPack games A: Tower Climb, Coin Flip, 3D Dice, Keno, Scratch Cards, Mystery Boxes, Higher or Lower, Treasure Hunt, Lucky Slots (assets/arcade-games-a.js).
   Loaded after arcade.css. Every piece is coloured from the game's world (--g1 --g2 --g3 --g4, --g-ink); shared chrome lives in src/game.html.
   Local colours that are not world tokens are named at the top of each game block.
   Motion: only transform and opacity are animated; ambient loops are 2s or slower, at most two per stage. */
.center { display: grid; place-items: center; gap: 16px; min-height: 300px; }
@keyframes gaPop { 0% { transform: scale(.82); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes gaPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes gaBlink { 50% { opacity: .25; } }
@keyframes gaRing { 0% { transform: scale(.55); opacity: .95; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes gaEmber { 0% { transform: translateY(0) scale(1); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-130px) scale(.3); opacity: 0; } }
@keyframes gaRise { 0% { transform: translateY(26px) scale(.4); opacity: 0; } 60% { transform: translateY(-6px) scale(1.12); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
/* fine grain for felt, sand, paper and velvet (one tiny inline SVG, drawn here) */
.view { --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.view { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-q="low"] .view { --noise: none; --grain: none; }
/* stage effects spawned by G.puff, G.ring and G.float (arcade-games-a.js): small particles that fly once and are removed */
.fxp { position: absolute; z-index: 6; pointer-events: none; border-radius: 50%; background: var(--c); will-change: transform, opacity; }
.fxp.clod { border-radius: 42% 58% 46% 60%; box-shadow: inset -1px -2px 0 #0000004d, inset 1px 1px 0 #ffffff40; }
.fxp.spark { border-radius: 0; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.fxp.coin { background: radial-gradient(circle at 35% 30%, #fff6cf, var(--c) 58%, #b8780c); box-shadow: inset 0 0 0 1.5px #b8780c, 0 1px 0 #7a4a05; }
.fxp.chipp { background: repeating-conic-gradient(var(--c) 0 30deg, #fff 30deg 60deg); box-shadow: inset 0 0 0 2px var(--c), 0 1px 0 #0008; }
.fxp.ember { background: radial-gradient(circle, #fff 0 20%, var(--c) 50%, transparent 72%); }
.fxp.shard { border-radius: 2px; clip-path: polygon(0 0, 100% 20%, 70% 100%, 10% 80%); box-shadow: inset 0 2px 0 #ffffff59; }
.fxp.dust { background: radial-gradient(circle, var(--c) 0 30%, transparent 70%); opacity: .7; }
.fxp.conf { border-radius: 1.5px; }
.fxring { position: absolute; z-index: 6; pointer-events: none; border-radius: 50%; border: 3px solid var(--c); box-shadow: 0 0 12px var(--c), inset 0 0 12px var(--c); }
.fxnum { position: absolute; z-index: 7; pointer-events: none; white-space: nowrap; font: 800 22px/1 var(--font-display); font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 2px 0 #000000b3, 0 0 10px #000; }
.fxnum.gold { color: #ffe07a; text-shadow: 0 2px 0 #7a4a05, 0 0 12px #000; }
.fxnum.ok { color: var(--success); } .fxnum.bad { color: #ff9aa8; }
.fxnum.big { font-size: 34px; }
@keyframes gaShake { 0%, 100% { transform: translateX(0); } 15% { transform: translateX(-7px) rotate(-.6deg); } 30% { transform: translateX(6px) rotate(.5deg); } 45% { transform: translateX(-5px); } 60% { transform: translateX(4px); } 80% { transform: translateX(-2px); } }
@keyframes gaTwinkle { 0%, 100% { transform: scale(.35) rotate(0deg); opacity: .25; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes gaSquash { 0% { transform: translateY(34%) scale(.3, .3); opacity: 0; } 45% { transform: translateY(-18%) scale(.88, 1.18); opacity: 1; } 68% { transform: translateY(4%) scale(1.14, .88); } 84% { transform: translateY(-3%) scale(.97, 1.04); } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes gaBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes gaDrop { 0% { transform: translateY(-16px) scale(.9); opacity: 0; } 60% { transform: translateY(3px) scale(1.04, .96); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
/* pay rows in the control column: label left, multiple right, no box. The matched row takes the win colour */
.ptable { display: grid; gap: var(--sp-1); }
.ptable span { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.ptable i { flex: 1; min-width: 0; font-style: normal; }
.ptable b { font: 500 14px/20px var(--font-mono); font-variant-numeric: tabular-nums; color: var(--fg); }
.ptable span.on, .ptable span.on b { color: var(--success); }
.ptable svg { flex: none; width: 16px; height: 16px; }
/* felt tables (3D Dice, Higher or Lower): grain, a printed ring, a brass rail line and chip stacks */
.view[data-view="dice3d"] .game > .board, .view[data-view="hilo"] .game > .board { --brass: #e8b84a; }
.view[data-view="dice3d"] .game > .board, .view[data-view="hilo"] .game > .board { padding: 26px 24px; }
/* a stitched leather rail with a brass inlay round the baize */
.view[data-view="dice3d"] .game > .board::before, .view[data-view="hilo"] .game > .board::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 12px solid #5c3418; outline: 1.5px dashed #f1d3a0b3; outline-offset: -7.5px; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 0 1.5px #24120680, inset 0 0 0 3.5px var(--brass), inset 0 0 0 4.5px #fff3b066, inset 0 0 0 6px #00000059, inset 0 10px 24px -6px #000c, inset 0 0 80px -10px #000a; }
@media (max-width: 560px) { .view[data-view="dice3d"] .game > .board, .view[data-view="hilo"] .game > .board { padding: 20px 16px; } .view[data-view="dice3d"] .game > .board::before, .view[data-view="hilo"] .game > .board::before { border-width: 8px; outline-offset: -5.5px; } }
.felt { position: absolute; inset: 0; width: auto; pointer-events: none; border-radius: inherit; overflow: hidden; }
.felt::after { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .5; mix-blend-mode: overlay; }
/* an overhead lamp: a soft pool of light in the middle, darker toward the rail */
.felt { background: radial-gradient(58% 52% at 50% 40%, #ffffff24, transparent 72%), radial-gradient(120% 100% at 50% 44%, transparent 55%, #00000073); }
.felt::before { content: ""; position: absolute; left: 50%; top: 46%; width: min(640px, 92%); aspect-ratio: 2.1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #ffffff26; box-shadow: inset 0 0 0 7px #ffffff0a, inset 0 0 0 9px #ffffff1f, inset 0 0 80px #ffffff14; }
.cstack { position: absolute; left: 34px; bottom: 34px; display: grid; justify-items: center; filter: drop-shadow(0 10px 6px #0007); }
.cstack + .cstack { left: auto; right: 34px; }
.cstack i { display: block; width: 50px; height: 20px; margin-top: -13px; border-radius: 50%; background: repeating-linear-gradient(90deg, var(--cc) 0 9px, #fff 9px 14px); box-shadow: inset 0 0 0 1.5px #0003, 0 2px 0 color-mix(in srgb, var(--cc) 60%, #000), 0 4px 0 color-mix(in srgb, var(--cc) 60%, #000), 0 5px 0 #0008; }
.cstack i:first-child { margin-top: 0; background: radial-gradient(closest-side, var(--cc) 0 52%, #fff 54% 62%, transparent 64%), repeating-conic-gradient(var(--cc) 0 20deg, #fff 20deg 40deg); }
@media (max-width: 860px) { .cstack { left: 22px; bottom: 22px; transform: scale(.7); transform-origin: 0 100%; } .cstack + .cstack { right: 22px; transform-origin: 100% 100%; } }

/* ===== Tower Climb: a stone tower over lava on a dusk sky. Platforms go wood, stone, bronze, gold as you rise; a little climber hops up them ===== */
.view[data-view="tower"] .game > .board { gap: 12px; padding-bottom: 0; }
/* phones: a little less air over the multiplier, so the whole tower and Bet share one screen */
@media (max-width: 560px) { .view[data-view="tower"] .game > .board { padding-top: 8px; gap: 8px; } }
.tscn { position: absolute; inset: 0; width: auto; pointer-events: none; border-radius: inherit; overflow: hidden; background: linear-gradient(0deg, color-mix(in srgb, var(--g3) 46%, transparent), color-mix(in srgb, var(--g1) 14%, transparent) 30%, transparent 52%); }
.tscn > i { position: absolute; }
.tstars { inset: 0 0 40%; opacity: .9; animation: gaPulse 5s ease-in-out infinite;
  background: radial-gradient(2.4px 2.4px at 80% 50%, #fff 50%, transparent 51%), radial-gradient(2.4px 2.4px at 16% 56%, var(--g2) 50%, transparent 51%), radial-gradient(1.6px 1.6px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1.6px 1.6px at 24% 36%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 38% 15%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 62% 26%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 72% 64%, #fff 50%, transparent 51%), radial-gradient(1.6px 1.6px at 94% 74%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 6% 80%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 48% 7%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 30% 66%, #fff 50%, transparent 51%), radial-gradient(1.6px 1.6px at 88% 13%, var(--g2) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 44%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 3% 40%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 68% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 42% 52%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 97% 34%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 19% 6%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 84% 88%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 34% 90%, #fff 50%, transparent 51%); }
.tmoon { right: 9%; top: 34px; width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle at 62% 66%, #e8a03a55 0 9px, transparent 10px), radial-gradient(circle at 30% 58%, #e8a03a44 0 6px, transparent 7px), radial-gradient(circle at 56% 28%, #e8a03a44 0 5px, transparent 6px), radial-gradient(circle at 36% 30%, #fffbe6, var(--g2) 64%, #f0a83a);
  box-shadow: 0 0 0 14px color-mix(in srgb, var(--g2) 9%, transparent), 0 0 0 34px color-mix(in srgb, var(--g2) 5%, transparent), 0 0 70px 12px color-mix(in srgb, var(--g1) 40%, transparent); }
/* thin clouds drifting past the moon */
.tcl { left: -220px; top: 52px; width: 190px; height: 22px; border-radius: 99px; background: linear-gradient(180deg, #ffffff38, #ffffff12); box-shadow: 46px -11px 0 -3px #ffffff24, 96px 9px 0 -5px #ffffff1c, -30px 8px 0 -6px #ffffff17; animation: twCloud 70s linear infinite; }
.tcl.b { top: 112px; width: 130px; height: 15px; opacity: .7; animation-duration: 95s; animation-delay: -40s; }
@keyframes twCloud { to { transform: translateX(1300px); } }
.tmt, .tmt::before, .tmt::after { position: absolute; left: 0; right: 0; bottom: 0; }
.tmt { height: 52%; }
.tmt::before { content: ""; height: 100%; opacity: .6; background: linear-gradient(180deg, color-mix(in srgb, var(--g1) 34%, var(--g4)), color-mix(in srgb, var(--g3) 40%, var(--g4))); clip-path: polygon(0 62%, 8% 40%, 15% 55%, 24% 22%, 33% 52%, 40% 44%, 50% 70%, 60% 46%, 68% 58%, 78% 18%, 88% 50%, 94% 38%, 100% 56%, 100% 100%, 0 100%); }
.tmt::after { content: ""; height: 58%; background: linear-gradient(180deg, color-mix(in srgb, var(--g4) 82%, #000), color-mix(in srgb, var(--g3) 22%, #12062a)); clip-path: polygon(0 50%, 10% 22%, 20% 48%, 30% 30%, 42% 60%, 55% 34%, 66% 56%, 76% 28%, 86% 52%, 100% 20%, 100% 100%, 0 100%); }
/* a far, hazy ridge behind the other two */
.tmt.c { height: 66%; } .tmt.c::after { display: none; }
.tmt.c::before { opacity: .34; background: linear-gradient(180deg, color-mix(in srgb, var(--g1) 55%, var(--g4)), color-mix(in srgb, var(--g1) 20%, var(--g4))); clip-path: polygon(0 40%, 6% 30%, 13% 44%, 21% 12%, 29% 40%, 37% 26%, 46% 50%, 54% 20%, 63% 44%, 71% 30%, 82% 6%, 91% 38%, 100% 24%, 100% 100%, 0 100%); }
.thaze { left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(0deg, color-mix(in srgb, var(--g3) 40%, transparent), color-mix(in srgb, var(--g1) 16%, transparent) 46%, transparent); }
.tvg { inset: 0; background: radial-gradient(120% 100% at 50% 50%, transparent 55%, #0000008c); }
:root[data-q="low"] .tcl, :root[data-q="low"] .tstars { animation: none; }
.tread { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; }
.tread b { position: relative; font: 800 56px/1 var(--font-display); font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 4px 0 #0006, 0 0 34px color-mix(in srgb, var(--g1) 60%, transparent); }
.tread b.bump { animation: gaPop 320ms var(--ease-pop); }
.tread span { font: 700 11.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--g2); background: rgba(8, 9, 18, .66); border: 1px solid color-mix(in srgb, var(--g2) 40%, transparent); padding: 5px 12px; border-radius: var(--r-pill); }
.tread.won b { color: var(--success); animation: gaSquash 520ms var(--ease); } .tread.won span { color: var(--ink); background: var(--success); border-color: #fff; }
.tread span:empty { visibility: hidden; } .tread span:empty::before { content: "\00a0"; }
/* bust: the number shakes, cracks and drops */
.tread.lost b { color: var(--danger); transform: translateY(8px) rotate(-5deg); animation: twCrack 720ms ease; } .tread.lost span { color: #fff; background: color-mix(in srgb, var(--g3) 70%, #000); border-color: var(--danger); }
.tread.lost b::after { content: ""; position: absolute; inset: -4px 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34l34-8 22 12 30-16 26 14 34-10 24 8 30-6' fill='none' stroke='%231d1040' stroke-width='5' stroke-linejoin='round'/%3E%3Cpath d='M56 38l6 14M112 36l-8-22M146 26l10-16' fill='none' stroke='%231d1040' stroke-width='3.500' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
@keyframes twCrack { 0% { transform: none; } 12% { transform: translateX(-8px) rotate(-2deg); } 24% { transform: translateX(8px) rotate(2deg); } 36% { transform: translateX(-6px); } 48% { transform: translateX(5px); } 62% { transform: translateY(-4px) rotate(-2deg); } 100% { transform: translateY(8px) rotate(-5deg); } }
.board.tshake > .tbuild { animation: gaShake 420ms ease; }
.tbuild { --wall: color-mix(in srgb, var(--g1) 20%, var(--g4)); --wall-2: color-mix(in srgb, var(--g1) 42%, var(--g4)); --wall-3: color-mix(in srgb, var(--g1) 62%, var(--g4)); position: relative; z-index: 1; width: min(500px, 100%); margin: 0 auto; padding-top: 44px; }
.tflag { position: absolute; left: 50%; top: 2px; width: 4px; height: 46px; margin-left: -2px; border-radius: 2px; background: linear-gradient(90deg, #fff3b0, #b8791a); z-index: 1; }
.tflag::before { content: ""; position: absolute; left: 4px; top: 3px; width: 36px; height: 22px; background: linear-gradient(90deg, #00000026, transparent 30%, #ffffff40 55%, transparent 80%), linear-gradient(180deg, #ff9a7a, var(--g3) 55%, #c22a22); clip-path: polygon(0 0, 100% 50%, 0 100%); transform-origin: 0 50%; animation: twFlag 1.8s ease-in-out infinite; }
@keyframes twFlag { 0%, 100% { transform: skewY(-7deg) scaleX(1); } 50% { transform: skewY(7deg) scaleX(.9); } }
.tflag::after { content: ""; position: absolute; left: -4px; top: -7px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--g2) 60%, #b8791a); }
.tbuild.summit .tflag::before { width: 46px; height: 28px; background: linear-gradient(90deg, #00000026, transparent 30%, #ffffff66 55%, transparent 80%), linear-gradient(180deg, #fff8c8, var(--g2) 55%, #f0a020); animation: twRaise 600ms var(--ease-pop), twFlag .9s ease-in-out 600ms infinite; }
.tbuild.summit .tflag::after { box-shadow: 0 0 18px 6px var(--g2); }
@keyframes twRaise { 0% { transform: translateY(24px) scale(.4); } 100% { transform: none; } }
/* battlements: each merlon has a lit edge and a shaded edge */
.tcap { display: block; height: 24px; margin: 0 -8px; filter: drop-shadow(0 3px 0 #0006);
  background: linear-gradient(180deg, var(--wall-3), var(--wall-2) 40%) bottom / 100% 11px no-repeat, repeating-linear-gradient(90deg, var(--wall-3) 0 3px, var(--wall-2) 3px 25px, color-mix(in srgb, var(--wall) 70%, #000) 25px 30px, transparent 30px 48px) 9px 0 / 100% 14px no-repeat; }
/* the wall: bricks in mixed tones, mortar, moss and cracks, lit from the lava below */
.tower { position: relative; display: grid; gap: 9px; margin: 0 14px; padding: 14px 12px 18px;
  background: linear-gradient(0deg, color-mix(in srgb, var(--g1) 60%, transparent), color-mix(in srgb, var(--g3) 26%, transparent) 16%, transparent 44%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='330'%3E%3Cpath d='M40 60l8 14-6 12 10 16M190 210l-10 14 6 10-8 14 4 12' fill='none' stroke='%23000' stroke-opacity='.45' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M0 150c10-4 14 6 24 2s10 8 20 4v10c-10 4-12-6-22-2s-12-4-22 0zM170 44c8-6 16 2 24-2s14 4 22 0l4 10c-10 6-16-2-26 2s-16-2-24 2zM120 290c8-4 12 4 20 0s12 6 20 2v10c-8 4-14-4-22 0s-10-2-18 2z' fill='%233fa757' fill-opacity='.5'/%3E%3C/svg%3E") 0 0 / 240px 330px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='116' height='56'%3E%3Crect width='56' height='26' fill='%23fff' fill-opacity='.07'/%3E%3Crect x='58' width='58' height='26' fill='%23000' fill-opacity='.1'/%3E%3Crect x='29' y='28' width='56' height='26' fill='%23fff' fill-opacity='.03'/%3E%3Crect y='28' width='27' height='26' fill='%23000' fill-opacity='.16'/%3E%3Crect x='87' y='28' width='29' height='26' fill='%23fff' fill-opacity='.09'/%3E%3Cpath d='M0 27h116M0 55h116M57 0v26M28 28v26M86 28v26' stroke='%23000' stroke-opacity='.4' stroke-width='2'/%3E%3Cpath d='M0 1h56M58 1h58M29 29h56M0 29h27M87 29h29' stroke='%23fff' stroke-opacity='.12'/%3E%3C/svg%3E"),
    linear-gradient(180deg, color-mix(in srgb, var(--g2) 18%, var(--wall)), var(--wall) 45%, color-mix(in srgb, var(--g3) 30%, var(--wall)));
  box-shadow: inset 16px 0 20px -10px #000c, inset -16px 0 20px -10px #000c, inset 0 2px 0 #ffffff1f, 0 0 0 1px #0006, 0 24px 40px -18px #000; }
/* corner buttresses */
.tower::before, .tower::after { content: ""; position: absolute; top: -4px; bottom: 0; width: 16px; left: -15px; border-radius: 4px 4px 0 0; background: linear-gradient(0deg, color-mix(in srgb, var(--g1) 70%, transparent), transparent 40%), repeating-linear-gradient(0deg, transparent 0 30px, #00000059 30px 32px, #ffffff1a 32px 33px), linear-gradient(90deg, var(--wall-3), var(--wall-2) 35%, color-mix(in srgb, var(--wall) 80%, #000)); box-shadow: 0 0 0 1px #0006, 0 -3px 0 var(--wall-3); }
.tower::after { left: auto; right: -15px; background: linear-gradient(0deg, color-mix(in srgb, var(--g1) 70%, transparent), transparent 40%), repeating-linear-gradient(0deg, transparent 0 30px, #00000059 30px 32px, #ffffff1a 32px 33px), linear-gradient(90deg, var(--wall-2), var(--wall) 60%, color-mix(in srgb, var(--wall) 60%, #000)); }
/* wall torches on the buttresses */
.ttorch { position: absolute; left: -7px; top: 34%; z-index: 2; width: 9px; height: 26px; border-radius: 2px 2px 5px 5px; background: linear-gradient(90deg, #5a2a05, #c9914a 50%, #5a2a05); box-shadow: 0 0 0 1.5px #2a1203; transform: rotate(-12deg); }
.ttorch + .ttorch { left: auto; right: -7px; transform: rotate(12deg); }
.ttorch::before { content: ""; position: absolute; left: 50%; top: -22px; width: 20px; height: 26px; margin-left: -10px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 72%, #fff8c8 0 18%, #ffd23f 34%, #ff9a3d 58%, #ff5a4a 78%, transparent 80%); transform-origin: 50% 100%; animation: trFlame .8s ease-in-out infinite alternate; }
.ttorch::after { content: ""; position: absolute; left: 50%; top: -60px; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; background: radial-gradient(closest-side, #ff9a3d73, transparent); }
.tbuild.won .ttorch::after { background: radial-gradient(closest-side, #ffd23fb3, transparent); animation: gaPulse 1s ease-in-out infinite; }
.tbuild.lost .ttorch::before, .tbuild.lost .ttorch::after { opacity: .25; }
.tbase { display: block; position: relative; height: 40px; margin: 0 -40px; background: radial-gradient(52% 120% at 50% 110%, #fff3a8, var(--g2) 22%, var(--g1) 44%, color-mix(in srgb, var(--g3) 80%, transparent) 62%, transparent 76%); }
.tbase b { position: absolute; bottom: 8px; left: calc(8% + var(--i) * 15%); width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle, #fff 0 25%, var(--g2) 55%); box-shadow: 0 0 10px 3px var(--g1); opacity: 0; animation: gaEmber 3.6s linear infinite; animation-delay: calc(var(--i) * -.83s); }
.tbase b:nth-child(1) { --i: 0; } .tbase b:nth-child(2) { --i: 1; } .tbase b:nth-child(3) { --i: 2; } .tbase b:nth-child(4) { --i: 3; } .tbase b:nth-child(5) { --i: 4; } .tbase b:nth-child(6) { --i: 5; }
.tbase b:nth-child(even) { width: 4px; height: 4px; animation-duration: 4.4s; }
:root[data-q="low"] .tbase b { display: none; }
.tfloor { --fc: var(--g1); position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px; align-items: center; }
.tfloor:nth-child(1) { --fc: var(--g2); }
.tfloor:nth-child(2) { --fc: color-mix(in srgb, var(--g2) 86%, var(--g3)); }
.tfloor:nth-child(3) { --fc: color-mix(in srgb, var(--g2) 72%, var(--g3)); }
.tfloor:nth-child(4) { --fc: color-mix(in srgb, var(--g2) 58%, var(--g3)); }
.tfloor:nth-child(5) { --fc: color-mix(in srgb, var(--g2) 44%, var(--g3)); }
.tfloor:nth-child(6) { --fc: color-mix(in srgb, var(--g2) 30%, var(--g3)); }
.tfloor:nth-child(7) { --fc: color-mix(in srgb, var(--g2) 15%, var(--g3)); }
.tfloor:nth-child(8) { --fc: var(--g3); }
/* platform materials by height: wood, stone, bronze, gold */
.tfloor[data-m="0"] { --p1: #f0bd82; --p2: #c08040; --p3: #84501e; --pk: #3a2008; --ptex: repeating-linear-gradient(91deg, transparent 0 11px, #00000029 11px 12px, transparent 12px 23px, #ffffff24 23px 24px, transparent 24px 31px); }
.tfloor[data-m="1"] { --p1: #e2deef; --p2: #a39dc0; --p3: #625c86; --pk: #2a2644; --ptex: radial-gradient(2px 2px at 18% 30%, #00000040 50%, transparent 51%), radial-gradient(2px 2px at 72% 62%, #ffffff80 50%, transparent 51%), radial-gradient(3px 3px at 46% 74%, #00000033 50%, transparent 51%), radial-gradient(2px 2px at 86% 26%, #00000033 50%, transparent 51%), linear-gradient(118deg, transparent 60%, #00000038 61% 62.5%, transparent 63.5%); }
.tfloor[data-m="2"] { --p1: #ffd2a0; --p2: #e68a3c; --p3: #a04e14; --pk: #4a1e04; --ptex: linear-gradient(100deg, transparent 18%, #ffffff59 27%, transparent 38%, transparent 60%, #ffffff2e 67%, transparent 75%); }
.tfloor[data-m="3"] { --p1: #fff8cc; --p2: #ffd23f; --p3: #df980e; --pk: #7a4a05; --ptex: linear-gradient(100deg, transparent 16%, #ffffffa6 26%, transparent 38%, transparent 58%, #ffffff59 66%, transparent 74%); }
.tfloor > span { font: 700 12px var(--font-mono); color: color-mix(in srgb, var(--fc) 62%, #fff); text-align: center; background: rgba(8, 9, 18, .72); border: 1px solid color-mix(in srgb, var(--fc) 45%, transparent); border-radius: var(--r-pill); padding: 5px 2px; white-space: nowrap; box-shadow: inset 0 1px 0 #ffffff1f, 0 3px 6px -2px #000; }
.tfloor.top > span { color: var(--ink); background: linear-gradient(180deg, #fff3b0, var(--g2)); border-color: #fff3b0; }
.tfloor.cur > span { color: var(--ink); background: var(--fc); border-color: #fff; box-shadow: 0 0 14px color-mix(in srgb, var(--fc) 70%, transparent); }
.tfloor .trow { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
/* the shadow each row of platforms throws on the wall */
.tfloor .trow::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: -13px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, #000000a6, transparent); pointer-events: none; }
.tt { position: relative; height: 44px; border-radius: 9px; display: grid; place-items: center; z-index: 1;
  background: radial-gradient(circle at 10px 50%, #fff 0 1px, var(--p1) 1.5px 2.6px, var(--pk) 3.2px 4.2px, transparent 4.8px), radial-gradient(circle at calc(100% - 10px) 50%, #fff 0 1px, var(--p1) 1.5px 2.6px, var(--pk) 3.2px 4.2px, transparent 4.8px), var(--ptex), linear-gradient(180deg, var(--p1), var(--p2) 46%, var(--p3));
  box-shadow: inset 0 2px 0 #ffffff8c, inset 0 -3px 0 #00000038, inset 0 0 0 1px #00000026, 0 5px 0 var(--pk), 0 6px 0 #00000080, 0 12px 10px -4px #000c; transition: transform var(--t-press) var(--ease), filter var(--t-ui) var(--ease); }
/* the stud in the middle: a small faceted boss */
.tt::before { content: ""; width: 11px; height: 11px; border-radius: 2px; transform: rotate(45deg); background: conic-gradient(from 0deg, var(--p1) 0 25%, var(--p3) 0 50%, var(--pk) 0 75%, var(--p2) 0); box-shadow: 0 0 0 1.5px var(--pk), 1px 1px 0 1.5px #ffffff66; }
.tt.ok::before, .tt.bad::before { display: none; }
.tt:disabled { cursor: default; }
/* floors you have not reached wait in the dusk, during a climb and after it ends */
.tower.on .tfloor:not(.cur):not(.done) .tt, .tower.lost .tfloor:not(.done) .tt, .tower.won .tfloor:not(.done) .tt { filter: brightness(.5) saturate(.55); }
.tfloor.cur .trow::before { content: ""; position: absolute; inset: -9px -10px; border-radius: 18px; background: radial-gradient(closest-side, color-mix(in srgb, var(--g1) 85%, #fff), color-mix(in srgb, var(--g1) 50%, transparent) 60%, transparent); animation: gaPulse 2s ease-in-out infinite; pointer-events: none; }
.tfloor.cur .tt { filter: brightness(1.12); box-shadow: inset 0 2px 0 #ffffffcc, inset 0 -3px 0 #00000038, 0 5px 0 var(--pk), 0 0 0 2.5px #fff, 0 6px 0 2.5px #00000059, 0 12px 10px -4px #000c; }
@media (hover: hover) { .tfloor.cur .tt:hover { transform: translateY(-4px); filter: brightness(1.22); } }
.tfloor.cur .tt:active, .tt.press { transform: translateY(3px) scale(1.04, .88); }
.tt .tgem { width: 30px; height: auto; filter: drop-shadow(0 2px 0 #00000059); }
.tt .tfire { width: 26px; height: auto; margin-top: -8px; transform-origin: 50% 100%; animation: trFlame .7s ease-in-out infinite alternate; }
.tt .tfire .f2 { transform-origin: 50% 100%; animation: trFlame .5s ease-in-out infinite alternate-reverse; }
.tt.ok { background: radial-gradient(circle at 10px 50%, #fff 0 1px, #fff3b0 1.5px 2.6px, #a86a0c 3.2px 4.2px, transparent 4.8px), radial-gradient(circle at calc(100% - 10px) 50%, #fff 0 1px, #fff3b0 1.5px 2.6px, #a86a0c 3.2px 4.2px, transparent 4.8px), linear-gradient(105deg, transparent 0 16%, #ffffff80 16% 24%, transparent 24%), linear-gradient(180deg, #fff8c8, var(--g2) 55%, #f0a020); box-shadow: inset 0 2px 0 #fff, 0 5px 0 #a86a0c, 0 0 0 2px #fff3b0, 0 0 22px -2px var(--g2), 0 12px 10px -4px #000c; animation: gaPop 320ms var(--ease-pop); }
.tt.ok:not(.ghost) .tgem { animation: gaSquash 520ms var(--ease); }
/* a sprung trap: the platform glows red hot, splits and sags */
.tt.bad { background: linear-gradient(100deg, transparent 46%, #2a0408 47% 49%, transparent 50%), linear-gradient(80deg, transparent 26%, #2a040880 27% 28%, transparent 29%), radial-gradient(circle at 50% 100%, #ffd23f, transparent 60%), linear-gradient(180deg, #ff9a7a, var(--g3) 50%, #a81a16); box-shadow: inset 0 2px 0 #ffd0c0, 0 5px 0 #5e0c0a, 0 0 0 2px #ffb0a0, 0 0 26px 2px var(--g3); transform: rotate(-4deg) translateY(5px); animation: twBreak 520ms var(--ease); }
@keyframes twBreak { 0% { transform: scale(1.1); } 30% { transform: rotate(3deg) translateY(-3px) scale(1.06); } 60% { transform: rotate(-6deg) translateY(8px); } 100% { transform: rotate(-4deg) translateY(5px); } }
/* what the other platforms were hiding: glass copies */
.tt.ghost { animation: none; transform: none; filter: none; background: linear-gradient(115deg, transparent 20%, #ffffff33 28%, transparent 38%), linear-gradient(180deg, #ffffff38, #ffffff12); box-shadow: inset 0 0 0 1.5px #ffffff73, inset 0 2px 0 #ffffff59, 0 3px 0 #00000059; }
.tt.bad.ghost { background: linear-gradient(115deg, transparent 20%, #ffffff26 28%, transparent 38%), linear-gradient(180deg, color-mix(in srgb, var(--g3) 50%, transparent), color-mix(in srgb, var(--g3) 22%, transparent)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--g3) 70%, #fff), inset 0 2px 0 #ffffff40, 0 3px 0 #00000059; }
.tt.ghost .tgem, .tt.ghost .tfire { opacity: .8; transform: scale(.8); animation: none; } .tt.ghost .tfire .f2 { animation: none; }
/* the climber */
.tclimb { position: absolute; z-index: 4; width: 44px; height: 50px; margin: -45px 0 0 -22px; pointer-events: none; transform-origin: 50% 100%; }
.tclimb::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -4px; height: 9px; border-radius: 50%; background: radial-gradient(closest-side, #000000a6, transparent); z-index: -1; }
.tclimb i { display: block; transform-origin: 50% 100%; animation: twIdle 1.5s ease-in-out infinite; filter: drop-shadow(0 2px 0 #0006); }
.tclimb svg { display: block; width: 100%; height: auto; overflow: visible; }
.tclimb .e-x { display: none; } .tclimb .arm { transition: transform .2s var(--ease-pop); }
@keyframes twIdle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05, .93); } }
.tclimb.won i { animation: twCheer .46s ease-in-out infinite alternate; } .tclimb.won .arm.l { transform: translate(-1px, -15px); } .tclimb.won .arm.r { transform: translate(1px, -15px); }
@keyframes twCheer { 0% { transform: translateY(0) scale(1.1, .88); } 100% { transform: translateY(-16px) scale(.94, 1.08); } }
.tclimb.lost .e-ok { display: none; } .tclimb.lost .e-x { display: block; }
.tclimb.lost i { opacity: 0; animation: twFall 950ms ease-in; } .tclimb.lost::after { display: none; }
@keyframes twFall { 0% { transform: none; opacity: 1; } 18% { transform: translateY(-20px) rotate(-14deg) scale(1.1); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(18px, 240px) rotate(220deg) scale(.6); opacity: 0; } }
@media (max-width: 560px) { .tbuild { padding-top: 38px; } .tower { margin: 0 10px; padding: 10px 7px 14px; gap: 8px; } .tower::before, .tower::after { width: 11px; left: -10px; } .tower::after { left: auto; right: -10px; } .ttorch { left: -5px; width: 7px; height: 20px; } .ttorch + .ttorch { right: -5px; } .tfloor { grid-template-columns: 50px minmax(0, 1fr); gap: 5px; } .tfloor > span { font-size: 10.5px; letter-spacing: -.02em; padding: 5px 1px; } .tfloor .trow { gap: 5px; } .tt { height: 40px; } .tmoon { width: 54px; height: 54px; top: 20px; right: 6%; } .tbase { margin: 0 -18px; } .tread b { font-size: 40px; } .tclimb { width: 38px; height: 43px; margin: -39px 0 0 -19px; } .tt .tgem { width: 25px; } .tt .tfire { width: 22px; } }

/* ===== Coin Flip: a minted coin over teal felt with a sunburst. Heads is gold, tails is teal ===== */
.scene { position: relative; z-index: 1; display: grid; justify-items: center; gap: 16px; padding: 8px 0 6px; }
.cstage { position: relative; width: min(360px, 100%); height: 318px; perspective: 900px; }
/* the round felt mat the coin lands on */
.cmat { position: absolute; left: 50%; bottom: 4px; width: min(340px, 96%); height: 96px; transform: translateX(-50%); border-radius: 50%;
  background: var(--grain), radial-gradient(closest-side, color-mix(in srgb, var(--g2) 62%, var(--g4)), color-mix(in srgb, var(--g2) 34%, var(--g4)) 72%, color-mix(in srgb, var(--g2) 18%, var(--g4)));
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--g1) 85%, #fff), inset 0 0 0 5px #0000004d, inset 0 0 0 12px #ffffff14, inset 0 -14px 26px #0000008c, 0 5px 0 #6b4200, 0 9px 0 #00000059, 0 26px 34px -8px #000c; }
.cshadow { position: absolute; left: 50%; bottom: 38px; width: 170px; height: 28px; margin-left: -85px; border-radius: 50%; background: radial-gradient(closest-side, #000c, #0006 55%, transparent); }
.clift { position: absolute; left: 50%; top: 62px; width: 200px; height: 200px; margin-left: -100px; transform-style: preserve-3d; }
.scene.toss .clift { animation: gaToss 1.8s cubic-bezier(.3, .6, .4, 1); }
.scene.toss .cshadow { animation: gaTossS 1.8s cubic-bezier(.3, .6, .4, 1); }
@keyframes gaToss { 0% { transform: translateY(0) scale(1); } 42% { transform: translateY(-58px) scale(1.1); } 84% { transform: translateY(0) scale(1); } 91% { transform: translateY(-7px) scale(1); } 100% { transform: translateY(0) scale(1); } }
@keyframes gaTossS { 0%, 84%, 100% { transform: scale(1); opacity: 1; } 42% { transform: scale(.6); opacity: .45; } }
.cstage::after { content: ""; position: absolute; left: 50%; top: 62px; width: 200px; height: 200px; margin-left: -100px; border-radius: 50%; border: 4px solid var(--g1); opacity: 0; pointer-events: none; }
.scene.won .cstage::after { animation: gaRing 800ms var(--ease) 1; }
.coin3d { --c1: #fff6cf; --c2: var(--g1); --c3: #b8780c; --ci: #6b4200; --t1: #d6fff8; --t2: var(--g2); --t3: #0a7d70; --ti: #05403a;
  width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.coin3d .rim { position: absolute; inset: 0; border-radius: 50%; transform: translateZ(var(--z)); background: repeating-conic-gradient(var(--c3) 0 3deg, color-mix(in srgb, var(--c3) 62%, #000) 3deg 6deg); }
.coin3d .face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; transform: translateZ(8px); display: grid; place-content: center; justify-items: center; gap: 2px; color: var(--ci);
  background: repeating-conic-gradient(from 0deg, #00000014 0 2deg, transparent 2deg 4deg), radial-gradient(circle at 34% 28%, var(--c1), var(--c2) 58%, var(--c3)); box-shadow: inset 0 0 0 7px color-mix(in srgb, var(--c3) 75%, transparent), inset 0 0 0 10px color-mix(in srgb, var(--c1) 80%, transparent), inset 0 0 0 12px color-mix(in srgb, var(--c3) 40%, transparent), inset 0 -12px 20px #0003; }
.coin3d .face::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(120deg, transparent 28%, #ffffffb3 43%, transparent 55%, transparent 68%, #ffffff40 74%, transparent 80%); mix-blend-mode: soft-light; }
.coin3d .face.t { transform: rotateY(180deg) translateZ(8px); color: var(--ti); background: repeating-conic-gradient(from 0deg, #00000014 0 2deg, transparent 2deg 4deg), radial-gradient(circle at 34% 28%, var(--t1), var(--t2) 58%, var(--t3)); box-shadow: inset 0 0 0 7px color-mix(in srgb, var(--t3) 75%, transparent), inset 0 0 0 10px color-mix(in srgb, var(--t1) 80%, transparent), inset 0 0 0 12px color-mix(in srgb, var(--t3) 40%, transparent), inset 0 -12px 20px #0003; }
.coin3d.silver { --c1: #ffffff; --c2: #cfd9ff; --c3: #6a78c9; --ci: #232a66; --t1: #f3e8ff; --t2: var(--g3); --t3: #5b34b8; --ti: #2a1466; }
.coin3d.emerald { --c1: #d6ffe9; --c2: #2fe38c; --c3: #0a7a48; --ci: #06402a; --t1: #fff6cf; --t2: var(--g1); --t3: #b8780c; --ti: #6b4200; }
.coin-res { position: relative; min-width: 170px; text-align: center; font: 800 22px/1 var(--font-display); color: #fff; background: rgba(8, 9, 18, .66); border: 1px solid color-mix(in srgb, var(--g1) 45%, transparent); padding: 11px 20px; border-radius: var(--r-pill); box-shadow: 0 6px 16px -8px #000; }
.coin-res.h { color: var(--g1); border-color: var(--g1); animation: gaPop 320ms var(--ease-pop); }
.coin-res.t { color: var(--g2); border-color: var(--g2); animation: gaPop 320ms var(--ease-pop); }
@media (max-width: 860px) { .cstage { height: 262px; } .clift { width: 160px; height: 160px; margin-left: -80px; top: 50px; } .cstage::after { width: 160px; height: 160px; margin-left: -80px; top: 50px; }
  .cmat { height: 80px; } .cshadow { width: 140px; margin-left: -70px; bottom: 30px; } .scene { gap: 12px; padding: 0; } .scene.toss .clift { animation-name: gaTossP; } }
@keyframes gaTossP { 0% { transform: translateY(0) scale(1); } 42% { transform: translateY(-36px) scale(1.06); } 84% { transform: translateY(0) scale(1); } 91% { transform: translateY(-5px) scale(1); } 100% { transform: translateY(0) scale(1); } }

/* Coin Flip, detail pass: the coin rests leaning on the mat, is thrown high, comes down on its edge and rattles to a stop; the result is stamped on stage */
.clift { --ry: 46px; transform: translateY(var(--ry)) rotateX(46deg); }
.cstage::after { transform: translateY(46px) scaleY(.7); }
.cshadow { bottom: 26px; width: 200px; height: 40px; margin-left: -100px; }
.scene.toss .clift { animation: cfToss 1.8s linear; }
.scene.toss .cshadow { animation: cfTossS 1.8s linear; }
@keyframes cfToss { 0% { transform: translateY(var(--ry)) rotateX(46deg); } 7% { transform: translateY(calc(var(--ry) + 8px)) rotateX(54deg) scale(1.05, .93); animation-timing-function: cubic-bezier(.1, .6, .3, 1); } 42% { transform: translateY(-74px) rotateX(0deg) scale(1.1); animation-timing-function: cubic-bezier(.6, 0, .9, .55); } 77% { transform: translateY(var(--ry)) rotateX(46deg) scale(1.04, .96); animation-timing-function: ease-out; } 82% { transform: translateY(calc(var(--ry) - 22px)) rotateX(28deg); animation-timing-function: ease-in; }
  87% { transform: translateY(var(--ry)) rotateX(60deg) rotateZ(3deg); } 91% { transform: translateY(calc(var(--ry) - 3px)) rotateX(38deg) rotateZ(-2deg); } 95% { transform: translateY(var(--ry)) rotateX(52deg) rotateZ(1deg); } 98% { transform: translateY(var(--ry)) rotateX(43deg); } 100% { transform: translateY(var(--ry)) rotateX(46deg); } }
@keyframes cfTossS { 0%, 77%, 87%, 100% { transform: scale(1); opacity: 1; } 42% { transform: scale(.5); opacity: .35; } 82% { transform: scale(.85); opacity: .8; } }
.coin3d .rim { box-shadow: inset 0 0 0 1px #00000026; }
/* win: the coin hops and the rays speed up. Lose: a dull wobble, the coin and the rays drain of colour */
.scene.won .clift { animation: cfWin 620ms var(--ease); }
@keyframes cfWin { 0% { transform: translateY(var(--ry)) rotateX(46deg); } 35% { transform: translateY(calc(var(--ry) - 34px)) rotateX(24deg) scale(1.08); } 70% { transform: translateY(var(--ry)) rotateX(52deg) scale(1.04, .95); } 100% { transform: translateY(var(--ry)) rotateX(46deg); } }
.scene.lost .clift { animation: cfThud 520ms ease; }
@keyframes cfThud { 0%, 100% { transform: translateY(var(--ry)) rotateX(46deg); } 25% { transform: translateY(var(--ry)) rotateX(50deg) rotateZ(-5deg); } 55% { transform: translateY(var(--ry)) rotateX(44deg) rotateZ(4deg); } 80% { transform: translateY(var(--ry)) rotateX(47deg) rotateZ(-2deg); } }
.scene.lost .coin3d .face { filter: saturate(.4) brightness(.82); transition: filter .4s var(--ease); }
.scene.lost .cmat { filter: saturate(.5) brightness(.85); }
/* the result stamp */
.coin-res { display: grid; justify-items: center; gap: 5px; min-width: 200px; padding: 10px 22px 11px; border-radius: 18px; box-shadow: inset 0 1px 0 #ffffff26, 0 6px 16px -8px #000; }
.coin-res b { font: 800 20px/1 var(--font-display); }
.coin-res em { font: 800 34px/1 var(--font-display); font-style: normal; font-variant-numeric: tabular-nums; }
.coin-res em:empty { display: none; }
.coin-res:empty { visibility: hidden; min-height: 41px; }
.coin-res.win { background: linear-gradient(180deg, rgba(4, 30, 22, .9), rgba(4, 22, 16, .78)); border: 2px solid var(--success); box-shadow: inset 0 1px 0 #ffffff26, 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent), 0 0 34px 2px color-mix(in srgb, var(--success) 50%, transparent), 0 6px 16px -8px #000; animation: cfStamp 420ms var(--ease-pop); }
.coin-res.win em { color: var(--success); text-shadow: 0 3px 0 #0008; }
@keyframes cfStamp { 0% { transform: scale(1.9) rotate(-8deg); opacity: 0; } 60% { transform: scale(.94) rotate(1deg); opacity: 1; } 100% { transform: none; } }
.coin-res.lose { color: #c8cfdc; background: rgba(14, 16, 24, .8); border: 2px solid #5a6072; animation: gaShake 420ms ease; }
.coin-res.lose b { color: #c8cfdc; } .coin-res.lose em { font-size: 22px; color: var(--danger); }
/* streak flames, shown from two wins in a row */
.cstreak { position: absolute; left: 14px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: var(--r-pill); background: linear-gradient(180deg, rgba(40, 12, 4, .9), rgba(24, 8, 2, .8)); border: 1.5px solid #ff9a3d; box-shadow: 0 0 18px 0 #ff5a2a80, 0 6px 12px -6px #000; }
.cstreak[hidden] { display: none; }
.cstreak i { position: relative; width: 18px; height: 24px; margin-top: -8px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 74%, #fff8c8 0 18%, #ffd23f 36%, #ff9a3d 60%, #ff5a2a 80%, transparent 82%); transform-origin: 50% 100%; animation: trFlame .6s ease-in-out infinite alternate; }
.cstreak b { font: 800 13px/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: #ffd23f; }
.cstreak.hot i { width: 24px; height: 32px; margin-top: -14px; } .cstreak.hot { border-color: #ffd23f; box-shadow: 0 0 26px 2px #ff9a3db3, 0 6px 12px -6px #000; }
.cstreak.bump { animation: gaPop 360ms var(--ease-pop); }
@media (max-width: 860px) { .clift { --ry: 36px; } .cstage::after { transform: translateY(36px) scaleY(.7); } .cshadow { width: 160px; margin-left: -80px; bottom: 22px; height: 32px; } .scene.toss .clift { animation-name: cfTossP; } .coin-res em { font-size: 28px; } .cstreak { left: 6px; top: 4px; } }
@keyframes cfTossP { 0% { transform: translateY(var(--ry)) rotateX(46deg); } 7% { transform: translateY(calc(var(--ry) + 6px)) rotateX(54deg) scale(1.05, .93); animation-timing-function: cubic-bezier(.1, .6, .3, 1); } 42% { transform: translateY(-52px) rotateX(0deg) scale(1.08); animation-timing-function: cubic-bezier(.6, 0, .9, .55); } 77% { transform: translateY(var(--ry)) rotateX(46deg) scale(1.04, .96); animation-timing-function: ease-out; } 82% { transform: translateY(calc(var(--ry) - 16px)) rotateX(28deg); animation-timing-function: ease-in; }
  87% { transform: translateY(var(--ry)) rotateX(60deg) rotateZ(3deg); } 91% { transform: translateY(calc(var(--ry) - 2px)) rotateX(38deg) rotateZ(-2deg); } 95% { transform: translateY(var(--ry)) rotateX(52deg) rotateZ(1deg); } 100% { transform: translateY(var(--ry)) rotateX(46deg); } }

/* ===== 3D Dice: acrylic red dice with drilled ivory pips, thrown across green felt printed with the eight bets ===== */
.dice3 { --tx: 400px; --bump: 24px; position: relative; z-index: 2; display: flex; gap: 60px; justify-content: center; perspective: 1100px; padding: 40px 0 34px; }
.die { position: relative; transform-style: preserve-3d; }
/* contact shadow on the felt */
.dsh { position: absolute; left: -38%; right: -38%; bottom: -46%; height: 66%; border-radius: 50%; background: radial-gradient(closest-side, #000000b3, #00000073 45%, transparent); }
.dview { transform-style: preserve-3d; transform: rotateX(-34deg); transform-origin: 50% 100%; }
.cube { width: 84px; height: 84px; position: relative; transform-style: preserve-3d; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.die.b .cube { transition-duration: 1.32s; }
/* square faces (so no neighbour pokes out at a corner) with a rounded inner panel that reads as the bevel */
.cube .f { position: absolute; inset: 0; border-radius: 4px; transform-style: preserve-3d; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 13px;
  background: radial-gradient(circle at 28% 22%, #ffb0b8 0, transparent 34%), radial-gradient(circle at 78% 84%, #ff7a8866, transparent 46%), linear-gradient(150deg, #ff5a6a, var(--g1) 45%, #b8102c);
  box-shadow: inset 0 0 0 1.5px #7a0a1c, inset 0 0 0 3px #ffc2c873, inset 0 0 0 4.5px #c4183266, inset 0 0 16px 2px #ff8a9673, inset 0 -10px 14px -4px #6e061980; }
/* a solid core behind every face */
.cube .f::before { content: ""; position: absolute; inset: 1px; background: #a00f26; transform: translateZ(-3px); }
/* gloss, and the shade a face takes from where it rests: top lit, front mid, side dark */
.cube .f::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(135deg, #ffffff66 0, #ffffff1a 24%, transparent 40%); pointer-events: none; transition: background-color .5s var(--ease) .9s; }
.cube .f.lf::after { background-color: #5a041433; } .cube .f.ls::after { background-color: #3a020c73; }
.dice3.roll .cube .f::after { transition: none; background-color: transparent; }
.cube .f i { width: 15px; height: 15px; border-radius: 50%; place-self: center; background: radial-gradient(circle at 50% 78%, #fff, var(--g2) 46%, #cdb88a); box-shadow: inset 0 3.500px 3px #5a0612b3, inset 0 0 0 1px #8a0c2073, 0 1px 0 #ffb0b8cc, 0 0 0 1.5px #8a0c20; }
.cube .f1 { transform: translateZ(42px); } .cube .f6 { transform: rotateY(180deg) translateZ(42px); }
.cube .f3 { transform: rotateY(90deg) translateZ(42px); } .cube .f4 { transform: rotateY(-90deg) translateZ(42px); }
.cube .f5 { transform: rotateX(90deg) translateZ(42px); } .cube .f2 { transform: rotateX(-90deg) translateZ(42px); }
@media (min-width: 861px) { .dice3 { zoom: 1.3; } }
/* the throw: both dice fly in from the sides, bounce, knock into each other and settle */
.dice3.roll .die.a { animation: d3Xa 1.2s linear both; } .dice3.roll .die.b { animation: d3Xb 1.3s linear both; }
.dice3.roll .dview { animation: d3Y 1.2s linear both; } .dice3.roll .die.b .dview { animation-duration: 1.3s; }
.dice3.roll .dsh { animation: d3S 1.2s linear both; } .dice3.roll .die.b .dsh { animation-duration: 1.3s; }
@keyframes d3Xa { 0% { transform: translateX(calc(var(--tx) * -1)); } 32% { transform: translateX(calc(var(--tx) * -.26)); animation-timing-function: ease-out; } 64% { transform: translateX(var(--bump)); animation-timing-function: ease-out; } 84% { transform: translateX(-3px); } 100% { transform: none; } }
@keyframes d3Xb { 0% { transform: translateX(var(--tx)); } 32% { transform: translateX(calc(var(--tx) * .26)); animation-timing-function: ease-out; } 64% { transform: translateX(calc(var(--bump) * -1)); animation-timing-function: ease-out; } 84% { transform: translateX(3px); } 100% { transform: none; } }
@keyframes d3Y { 0% { transform: translateY(-64px) rotateX(-34deg); animation-timing-function: ease-in; } 32% { transform: translateY(0) rotateX(-34deg) scale(1.1, .86); animation-timing-function: ease-out; } 48% { transform: translateY(-44px) rotateX(-34deg) scale(.97, 1.04); animation-timing-function: ease-in; } 64% { transform: translateY(0) rotateX(-34deg) scale(1.07, .9); animation-timing-function: ease-out; } 74% { transform: translateY(-13px) rotateX(-34deg); animation-timing-function: ease-in; } 84% { transform: translateY(0) rotateX(-34deg) scale(1.03, .96); } 100% { transform: rotateX(-34deg); } }
@keyframes d3S { 0% { transform: scale(.5); opacity: .3; } 32%, 64%, 84%, 100% { transform: scale(1); opacity: 1; } 48% { transform: scale(.62); opacity: .45; } 74% { transform: scale(.88); opacity: .8; } }
.dice3.won .dsh { background: radial-gradient(closest-side, #000000b3, #00000073 45%, color-mix(in srgb, var(--success) 60%, transparent) 62%, transparent); }
.dice3.lost .cube .f::after { background-color: #1402085c; transition-delay: 0s; }
/* the rake sweeps the felt after a losing roll */
.drake { position: absolute; left: 50%; bottom: 4px; width: 150px; height: 12px; margin-left: -75px; opacity: 0; pointer-events: none; border-radius: 6px; background: linear-gradient(180deg, #e9bf74, #a8702c 60%, #6b4210); box-shadow: 0 0 0 1.5px #3a2408, 0 5px 6px #0008; }
.drake::before { content: ""; position: absolute; left: -14px; top: -16px; width: 18px; height: 40px; border-radius: 5px; background: linear-gradient(90deg, #c9914a, #6b4210); box-shadow: 0 0 0 1.5px #3a2408, 0 5px 6px #0008; }
.dice3.lost .drake { animation: d3Rake 820ms var(--ease) 120ms; }
@keyframes d3Rake { 0% { transform: translateX(280px); opacity: 0; } 18% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(-300px); opacity: 0; } }
.total { position: relative; z-index: 2; width: max-content; min-width: 132px; align-self: center; display: grid; justify-items: center; gap: 4px; text-align: center; font: 800 44px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--g2); background: linear-gradient(180deg, rgba(4, 22, 14, .8), rgba(4, 22, 14, .62)); border: 1px solid color-mix(in srgb, var(--brass, #e8b84a) 70%, transparent); border-radius: 18px; padding: 10px 22px 12px; box-shadow: inset 0 1px 0 #ffffff26, inset 0 0 0 3px #0000004d, 0 3px 0 #04160e, 0 10px 18px -8px #000; text-shadow: 0 3px 0 #0006; }
.total::before { content: "Total"; font: 700 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass, #e8b84a); text-shadow: none; }
.game:has(.gmsg.win) .total { color: var(--success); border-color: var(--success); box-shadow: inset 0 1px 0 #ffffff26, 0 3px 0 #04160e, 0 0 26px 2px color-mix(in srgb, var(--success) 60%, transparent); }
.game:has(.gmsg.lose) .total { color: #ffb0b8; }
.total.won { animation: gaSquash 520ms var(--ease); } .total.lost { animation: gaShake 420ms ease; }
/* the layout printed on the felt: one box per prediction, the chosen one inked in */
.dzones { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; align-self: center; width: min(520px, 100%); border-radius: 12px; box-shadow: 0 0 0 2px #ffffff59, 0 0 0 5px #ffffff14; overflow: hidden; }
.dzones span { display: grid; justify-items: center; gap: 3px; padding: 8px 4px 7px; box-shadow: inset 0 0 0 1px #ffffff40; color: #ffffffb3; transition: background var(--t-ui) var(--ease), color var(--t-ui) var(--ease); }
.dzones b { font: 800 12.5px/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.dzones small { font: 700 11px/1 var(--font-mono); color: var(--brass, #e8b84a); }
.dzones span.sel { color: #06281b; background: linear-gradient(180deg, #fffaf0, var(--g2)); box-shadow: inset 0 0 0 2px #fff, inset 0 -3px 0 #b89a5e; } .dzones span.sel small { color: #7a4a05; }
.dzones span.sel.won { background: linear-gradient(180deg, #a8ffd6, var(--success)); animation: gaPop 360ms var(--ease-pop) 2; }
.dzones span.sel.lost { color: #fff; background: linear-gradient(180deg, #ff7a88, color-mix(in srgb, var(--g1) 70%, #000)); } .dzones span.sel.lost small { color: #ffd0d4; }
/* the totals strip: lit totals win for the chosen prediction */
.dtrack { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; align-self: center; width: max-content; max-width: 100%; }
.dtrack i { font: 700 13px/30px var(--font-mono); font-style: normal; width: 36px; height: 32px; text-align: center; border-radius: 9px; color: #ffffffc4; background: rgba(4, 22, 14, .62); border: 1px solid #ffffff33; }
.dtrack i.half { color: var(--g2); border: 1.5px dashed var(--g2); }
.dtrack i.in { color: #06281b; font-weight: 800; background: linear-gradient(180deg, #fffaf0, var(--g2)); border-color: #fff; box-shadow: 0 2px 0 #b89a5e; }
.dtrack i.on { color: #fff; background: linear-gradient(180deg, #ff7a88, var(--g1)); border: 1px solid #fff; box-shadow: 0 0 0 2px #fff, 0 0 16px 2px var(--g1); transform: scale(1.14); animation: gaPop 320ms var(--ease-pop); }
.dtrack i.on.in, .dtrack i.on.half { color: var(--ink); background: linear-gradient(180deg, #a8ffd6, var(--success)); box-shadow: 0 0 0 2px #fff, 0 0 16px 2px var(--success); transform: scale(1.22); }
/* bigger chip stacks and the dealer's puck */
.view[data-view="dice3d"] .cstack { left: 40px; bottom: 44px; transform: scale(1.2); transform-origin: 0 100%; } .view[data-view="dice3d"] .cstack + .cstack { left: auto; right: 40px; transform-origin: 100% 100%; }
@media (max-width: 860px) { .dice3 { --tx: 260px; --bump: 14px; gap: 40px; padding: 30px 0 28px; } .view[data-view="dice3d"] .cstack { transform: scale(.8); left: 26px; bottom: 30px; } .view[data-view="dice3d"] .cstack + .cstack { right: 26px; } }
@media (max-width: 560px) { .view[data-view="dice3d"] .cstack { display: none; } .dtrack { gap: 3px; width: 100%; } .dtrack i { flex: 1; width: auto; min-width: 0; font-size: 12px; } .dzones b { font-size: 10px; letter-spacing: .02em; } .dzones small { font-size: 10px; } .dzones span { padding: 7px 2px 6px; } .drake { width: 110px; } }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-1); }
.opts .chip-btn { display: flex; justify-content: space-between; gap: var(--sp-2); height: 40px; padding: 0 var(--sp-3); font-family: var(--font-body); }
.opts .chip-btn small { font: 500 12px var(--font-mono); color: var(--muted); }
.opts .chip-btn[aria-pressed="true"] small { color: inherit; }

/* ===== Keno: numbered balls in a rack on navy. Picks are violet, hits burst yellow, misses sink to deep blue ===== */
.kinfo { position: relative; z-index: 1; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.kinfo span { font: 700 12px var(--font-mono); color: #fff; background: rgba(8, 9, 18, .6); border: 1px solid color-mix(in srgb, var(--g1) 45%, transparent); border-radius: var(--r-pill); padding: 6px 12px; }
.kinfo b { color: var(--g2); }
.kinfo i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--g3); font-style: normal; }
.kinfo i.h { background: var(--g2); }
.keno { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 9px; width: min(560px, 100%); margin: 0 auto; padding: 16px; border-radius: 24px;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--g1) 26%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--g1) 14%, var(--g4)), color-mix(in srgb, var(--g4) 70%, #02041c));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g1) 50%, transparent), inset 0 2px 0 #ffffff2e, inset 0 -10px 24px #00000080, 0 0 0 5px color-mix(in srgb, var(--g4) 80%, #000), 0 0 0 6px color-mix(in srgb, var(--g1) 35%, transparent), 0 22px 34px -16px #000; }
.kn { position: relative; aspect-ratio: 1; border-radius: 50%; font: 800 14px var(--font-mono); color: var(--g4);
  background: radial-gradient(circle at 30% 20%, #ffffffe6 0 5%, transparent 16%), radial-gradient(circle at 50% 52%, #f4f8ff 0 37%, #c8d6f0 39% 41%, transparent 43%), radial-gradient(circle at 50% 118%, #000000a6 0 30%, transparent 62%), radial-gradient(circle at 34% 26%, color-mix(in srgb, var(--g1) 62%, #fff), var(--g1) 46%, color-mix(in srgb, var(--g1) 52%, var(--g4)));
  box-shadow: inset 0 1px 0 #ffffff66, 0 3px 0 color-mix(in srgb, var(--g1) 22%, #03061c), 0 6px 8px -2px #000c; transition: transform var(--t-press) var(--ease); }
@media (hover: hover) { .kn:hover:not(:disabled) { transform: translateY(-3px) scale(1.04); } }
.kn:active { transform: translateY(1px); }
.kn.sel { color: #2a0f66; background: radial-gradient(circle at 30% 20%, #ffffffe6 0 5%, transparent 16%), radial-gradient(circle at 50% 52%, #fff 0 37%, #dcc6ff 39% 41%, transparent 43%), radial-gradient(circle at 50% 118%, #2a0f66a6 0 30%, transparent 62%), radial-gradient(circle at 34% 26%, #ecdcff, var(--g3) 46%, #7a48d6);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 2.5px #fff, 0 3px 0 2.5px #3c1d85, 0 0 18px 0 var(--g3); }
.kn.drawn { color: color-mix(in srgb, var(--g1) 62%, #fff); background: radial-gradient(circle at 50% 30%, #02041c, #070c38); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--g1) 55%, transparent), inset 0 5px 10px #000; animation: gaPop 320ms var(--ease-pop); }
.kn.hit { color: #5a3200; background: radial-gradient(circle at 30% 20%, #ffffffe6 0 5%, transparent 16%), radial-gradient(circle at 50% 52%, #fff 0 37%, #ffe9a0 39% 41%, transparent 43%), radial-gradient(circle at 50% 118%, #8a4a00a6 0 30%, transparent 62%), radial-gradient(circle at 34% 26%, #fff8c8, var(--g2) 46%, #f0a020);
  box-shadow: 0 0 0 2.5px #fff, 0 0 24px 4px var(--g2), 0 3px 0 2.5px #a86a0c; animation: gaPop 320ms var(--ease-pop); z-index: 1; }
/* a hit also gets a tick badge, so it never rests on colour alone */
.kn.hit::after { content: ""; position: absolute; right: -4px; top: -4px; width: 17px; height: 17px; border-radius: 50%; background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%230b0d14' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; box-shadow: 0 0 0 2px var(--g4); }
/* the draw rail: the ten drawn balls roll in, in order */
.krail { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; align-self: center; width: max-content; max-width: 100%; padding: 7px 12px 7px 14px; border-radius: var(--r-pill); background: rgba(8, 9, 18, .6); border: 1px solid color-mix(in srgb, var(--g1) 45%, transparent); box-shadow: inset 0 3px 8px #0009; }
.krail > div { display: flex; gap: 5px; }
.krail i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--font-mono); font-style: normal; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--g1) 45%, transparent), inset 0 3px 6px #000a; }
.krail i.miss { color: #fff; background: radial-gradient(circle at 34% 26%, color-mix(in srgb, var(--g1) 50%, #fff), color-mix(in srgb, var(--g1) 70%, var(--g4)) 50%, color-mix(in srgb, var(--g1) 30%, var(--g4))); box-shadow: inset 0 1px 0 #ffffff66, 0 2px 0 #03061c; animation: gaPop 320ms var(--ease-pop); }
.krail i.hit { color: #5a3200; background: radial-gradient(circle at 34% 26%, #fff8c8, var(--g2) 50%, #f0a020); box-shadow: 0 0 0 2px #fff, 0 0 12px 1px var(--g2); animation: gaPop 320ms var(--ease-pop); }
@media (max-width: 560px) { .keno { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; max-width: 340px; padding: 13px; } .kn { font-size: 15px; } .krail { gap: 6px; padding: 6px 8px 6px 10px; } .krail > div { gap: 3px; } .krail i { width: 24px; height: 24px; font-size: 10.5px; } }

/* ===== Scratch Cards: a pink ticket, holographic foil, loud prize cells ===== */
.swrap { position: relative; z-index: 1; width: min(366px, 100%); align-self: center; margin: 4px auto 6px; }
.sback { position: absolute; inset: 8px 4px; border-radius: 20px; box-shadow: inset 0 1px 0 #ffffff66, 0 16px 30px -14px #000; }
.sback::after { content: ""; position: absolute; inset: 14px; border-radius: 12px; border: 2px dashed #ffffff73; }
.sback.a { background: linear-gradient(150deg, #7df0e2, var(--g2) 50%, #0d8f84); transform: rotate(-8deg) translate(-34px, 8px); }
.sback.b { background: linear-gradient(150deg, #ffe89a, var(--g3) 50%, #d98a12); transform: rotate(7deg) translate(34px, 10px); }
.scoin { position: absolute; right: -74px; bottom: 26px; width: 62px; height: 62px; border-radius: 50%; transform: rotate(-18deg); background: radial-gradient(circle at 50% 50%, transparent 0 19px, #b8780c 19.5px 21px, transparent 21.5px), radial-gradient(circle at 34% 28%, #fff6cf, var(--g3) 58%, #b8780c); box-shadow: inset 0 0 0 4px #b8780c99, inset 0 -6px 10px #0003, 0 5px 0 #7a4a05, 0 14px 16px -6px #000c; }
.scoin::after { content: ""; position: absolute; inset: 20px; background: #b8780c; clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); }
.sticket { --foil: #cfd6e6; position: relative; padding: 14px 16px 12px; border-radius: 20px; color: #fff;
  background: radial-gradient(circle at 0 62px, var(--g4) 9px, transparent 10px), radial-gradient(circle at 100% 62px, var(--g4) 9px, transparent 10px), radial-gradient(#ffffff33 1.5px, transparent 2px) 0 0 / 16px 16px, radial-gradient(#ffffff1f 1.5px, transparent 2px) 8px 8px / 16px 16px, linear-gradient(150deg, #ff8ac0, var(--g1) 45%, #c02a78);
  box-shadow: inset 0 1px 0 #ffffff80, inset 0 0 0 2px #ffffff26, 0 6px 0 #7a1650, 0 24px 40px -16px #000; }
.sticket-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 12px; margin-bottom: 12px; border-bottom: 2px dashed #ffffff80; font: 800 21px/1 var(--font-display); color: var(--ink); text-shadow: 0 1px 0 #ffffff59; }
.sticket-h span::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 7px; vertical-align: -2px; background: var(--ink); clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); }
.sticket-h small { font: 700 11px var(--font-mono); letter-spacing: .04em; color: var(--ink); background: linear-gradient(180deg, #ffe89a, var(--g3)); border-radius: var(--r-pill); padding: 6px 10px; white-space: nowrap; box-shadow: 0 2px 0 #b8780c; text-shadow: none; }
.sticket-p { display: flex; align-items: center; gap: 4px; margin-top: 12px; padding: 5px 6px 5px 10px; border-radius: 10px; background: rgba(42, 16, 56, .86); font: 700 11px var(--font-mono); }
.sticket-p span { color: #fff; letter-spacing: .06em; text-transform: uppercase; margin-right: auto; }
.sticket-p i { font-style: normal; color: var(--ink); border-radius: 6px; padding: 3px 5px; background: linear-gradient(160deg, #ff9cc8, var(--g1)); }
.sticket-p i[data-v="2"], .sticket-p i[data-v="20"] { background: linear-gradient(160deg, #8df2e6, var(--g2)); }
.sticket-p i[data-v="5"], .sticket-p i[data-v="100"] { background: linear-gradient(160deg, #ffe89a, var(--g3)); }
.scard:has(.win[data-v="1"]) ~ .sticket-p i[data-v="1"], .scard:has(.win[data-v="2"]) ~ .sticket-p i[data-v="2"], .scard:has(.win[data-v="5"]) ~ .sticket-p i[data-v="5"], .scard:has(.win[data-v="10"]) ~ .sticket-p i[data-v="10"], .scard:has(.win[data-v="20"]) ~ .sticket-p i[data-v="20"], .scard:has(.win[data-v="100"]) ~ .sticket-p i[data-v="100"] { box-shadow: 0 0 0 2px #fff, 0 0 12px 2px var(--g3); animation: gaPop 320ms var(--ease-pop); }
.sticket-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; font: 700 10.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.sticket-f span { background: rgba(42, 16, 56, .86); border-radius: var(--r-pill); padding: 4px 10px; white-space: nowrap; }
.sticket-f i { width: 58px; height: 15px; opacity: .8; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 7px, var(--ink) 7px 10px, transparent 10px 12px); }
.scard { position: relative; width: 100%; aspect-ratio: 1; margin: 0 auto; border-radius: 14px; overflow: hidden; background: var(--g4); box-shadow: 0 0 0 3px var(--g3), 0 0 0 5px #b8780c, 0 4px 0 5px #0000004d, inset 0 0 0 1px #0006; }
.sgrid { position: absolute; inset: 10px; display: grid; grid-template: repeat(3, minmax(0, 1fr)) / repeat(3, minmax(0, 1fr)); gap: 8px; }
.sgrid div { border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: 5px; font: 800 21px var(--font-display); font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--g1) 60%, #fff); background: color-mix(in srgb, var(--g1) 24%, var(--g4)); box-shadow: inset 0 1px 0 #ffffff30, inset 0 -3px 0 #0004; transition: opacity var(--t-result) var(--ease); }
.sgrid div b { line-height: 1; }
.sgrid div i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, transparent 0 5px, #b8780c 5.5px 7px, transparent 7.5px), radial-gradient(circle at 34% 28%, #fff6cf, #ffc93d 58%, #c98a12); box-shadow: 0 2px 0 #7a4a05, 0 0 0 1.5px #ffffff80; }
.sgrid div[data-v] { color: var(--ink); background: linear-gradient(105deg, transparent 0 14%, #ffffff40 14% 22%, transparent 22%), linear-gradient(160deg, #ffb0d4, var(--g1)); box-shadow: inset 0 2px 0 #ffffff80, inset 0 -4px 0 #00000026; }
.sgrid div[data-v="2"], .sgrid div[data-v="20"] { background: linear-gradient(105deg, transparent 0 14%, #ffffff40 14% 22%, transparent 22%), linear-gradient(160deg, #a8fff4, var(--g2)); }
.sgrid div[data-v="5"], .sgrid div[data-v="100"] { background: linear-gradient(105deg, transparent 0 14%, #ffffff40 14% 22%, transparent 22%), linear-gradient(160deg, #fff0b0, var(--g3)); }
.sgrid.done:has(.win) div:not(.win) { opacity: .42; }
.sgrid.done:not(:has(.win)) div { opacity: .72; }
.sgrid div.win { box-shadow: inset 0 2px 0 #ffffff80, 0 0 0 3px #fff, 0 0 26px 4px var(--g3); animation: gaPop 320ms var(--ease-pop); z-index: 1; }
@media (max-width: 560px) { .sgrid div { font-size: 17px; gap: 3px; } .sgrid div i { width: 17px; height: 17px; } .sticket-h { font-size: 17px; } .sticket { padding: 12px 12px 10px; } .scoin { display: none; } .sback.a { transform: rotate(-4deg) translate(-8px, 6px); } .sback.b { transform: rotate(4deg) translate(8px, 8px); } .sticket-p { font-size: 10.5px; gap: 3px; } }
.scard canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }

/* ===== Mystery Boxes: three treasure chests (hammered bronze, brushed silver, polished gold) on pedestals. The lid flies open into a rarity-coloured beam ===== */
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.mbox { --gs: .92; position: relative; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr auto; align-items: start; gap: 12px; justify-items: center; text-align: center; color: #fff; border-color: color-mix(in srgb, var(--bc) 45%, transparent);
  background: radial-gradient(90% 46% at 50% 0%, color-mix(in srgb, var(--bc) 34%, transparent), transparent 72%), radial-gradient(60% 30% at 50% 44%, color-mix(in srgb, var(--bc) 14%, transparent), transparent 70%), radial-gradient(120% 90% at 50% 30%, transparent 55%, #00000073), linear-gradient(180deg, color-mix(in srgb, var(--g4) 76%, var(--g1)), var(--g4)); }
.mbox.t1 { --gs: 1; } .mbox.t2 { --gs: 1.1; }
.mbox::before { content: ""; position: absolute; inset: 0; background: radial-gradient(#ffffff14 1.5px, transparent 2px) 0 0 / 22px 22px; -webkit-mask: linear-gradient(180deg, #000, transparent 55%); mask: linear-gradient(180deg, #000, transparent 55%); pointer-events: none; }
.mbox::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 28%, #fff, var(--rc, #fff) 38%, transparent 76%); }
.mbox.flash::after { animation: bxFlash 800ms ease-out; }
@keyframes bxFlash { 0% { opacity: 0; } 12% { opacity: .95; } 100% { opacity: 0; } }
.mbox > :not(.fxp):not(.fxring):not(.fxnum) { position: relative; }
.mbox > .bxname { margin-top: 16px; font: 600 16px/20px var(--font-body); color: #fff; }
.mbox > .bxbtn { width: 100%; min-height: 44px; font-weight: 600; }
.gift { position: relative; width: calc(172px * var(--gs)); aspect-ratio: 160 / 150; margin-top: calc(50px * var(--gs)); margin-bottom: 14px; perspective: 700px; transform-origin: 50% 92%; }
.gift i, .gift svg, .gift .gloot { position: absolute; display: block; }
.gift svg { left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.gift .rays { left: 50%; top: 52%; width: 200%; aspect-ratio: 1; margin: -100% 0 0 -100%; border-radius: 50%; opacity: .3; background: repeating-conic-gradient(var(--rc, var(--bc)) 0 8deg, transparent 8deg 24deg); -webkit-mask: radial-gradient(closest-side, #000 18%, transparent 78%); mask: radial-gradient(closest-side, #000 18%, transparent 78%); animation: rays 40s linear infinite; }
.mbox.t2 .gift .rays { opacity: .5; }
/* the pedestal: a velvet-topped drum with a metal trim, a contact shadow and a floor glow */
.gift .ped { left: -12%; right: -12%; bottom: -15%; height: 31%; border-radius: 50%; background: radial-gradient(60% 46% at 50% 44%, #000000a6 0 55%, transparent 100%), radial-gradient(closest-side, color-mix(in srgb, var(--g1) 55%, #2a1458), color-mix(in srgb, var(--g1) 26%, #14082e) 82%, var(--bc) 84% 90%, color-mix(in srgb, var(--bl) 80%, #000) 92%);
  box-shadow: inset 0 2px 0 #ffffff40, 0 7px 0 color-mix(in srgb, var(--g1) 20%, #0d0524), 0 9px 0 var(--bl), 0 11px 0 #0d0524, 0 26px 26px -6px color-mix(in srgb, var(--rc, var(--bc)) 50%, transparent), 0 30px 24px -8px #000; }
.gift .gbody { filter: drop-shadow(0 6px 4px #0008); }
.gift .glid { transform-origin: 9% 51%; transition: transform .5s var(--ease-pop); filter: drop-shadow(0 3px 0 #0005); }
.gift .glock { transform-origin: 50% 50%; }
.gift .gsh { animation: bxShine 3.8s ease-in-out infinite; }
@keyframes bxShine { 0%, 55% { transform: translateX(0); } 100% { transform: translateX(230px); } }
.gift .gin { left: 15%; right: 15%; top: 42%; height: 17%; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, #fff, var(--rc, #fff) 45%, color-mix(in srgb, var(--rc, #fff) 30%, #0a0418) 100%); box-shadow: 0 0 0 3px #0a0418, 0 -6px 26px 6px var(--rc, #fff); transition: opacity .2s; }
.gift .gseam { left: 8%; right: 8%; top: 47.500%; height: 5%; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, #fff, var(--bh) 50%, transparent); box-shadow: 0 0 18px 6px var(--bh); }
.gift .gbeam { left: 12%; right: 12%; bottom: 50%; height: 150%; opacity: 0; transform-origin: 50% 100%; clip-path: polygon(20% 100%, 80% 100%, 108% 0, -8% 0); background: linear-gradient(90deg, transparent 0 18%, #ffffff59 24% 27%, transparent 34% 62%, #ffffff40 68% 72%, transparent 80%), linear-gradient(0deg, color-mix(in srgb, var(--rc, #fff) 80%, #fff), color-mix(in srgb, var(--rc, #fff) 45%, transparent) 45%, transparent); }
/* the item: a medallion in a metal rarity frame that flips over as it rises out of the chest */
.gift .gloot { left: 50%; top: -30%; width: 48%; aspect-ratio: 1; margin-left: -24%; z-index: 3; opacity: 0; transform-style: preserve-3d; }
.gloot .gq, .gloot .ge { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 5px solid transparent; color: var(--rc, #fff);
  background: radial-gradient(circle at 34% 26%, #ffffff59, transparent 44%) padding-box, radial-gradient(circle, color-mix(in srgb, var(--rc, #fff) 38%, #14082e), #14082e 74%) padding-box, conic-gradient(from 20deg, var(--rc, #fff), #fff, var(--rc, #fff), color-mix(in srgb, var(--rc, #fff) 45%, #000), var(--rc, #fff), #fff, color-mix(in srgb, var(--rc, #fff) 60%, #000), var(--rc, #fff)) border-box;
  box-shadow: inset 0 0 0 2px #14082e, inset 0 0 0 3px #ffffff59, 0 0 0 2.5px #14082e, 0 0 30px 6px var(--rc, #fff), 0 10px 14px #000a; }
.gloot .gq { transform: rotateY(180deg); font: 800 34px/1 var(--font-display); font-style: normal; color: #fff; text-shadow: 0 2px 0 #0008; }
.gloot .ge svg { position: static; width: 60%; height: 60%; filter: drop-shadow(0 2.5px 0 color-mix(in srgb, var(--rc, #fff) 40%, #000)) drop-shadow(0 -1px 0 #ffffffcc) drop-shadow(0 0 6px var(--rc, #fff)); }
/* anticipation: three wobbles, each bigger, with light building in the seam */
.mbox.shake .gift { animation: bxShake .98s ease-in-out; }
@keyframes bxShake { 0%, 30%, 63% { transform: none; } 10% { transform: rotate(-6deg) scale(1.04, .96); } 20% { transform: rotate(5deg) scale(.97, 1.05); } 43% { transform: rotate(-9deg) scale(1.07, .93) translateY(2%); } 53% { transform: rotate(8deg) scale(.95, 1.08) translateY(-3%); } 74% { transform: rotate(-11deg) scale(1.1, .9); } 86% { transform: rotate(10deg) scale(.93, 1.11) translateY(-6%); } 100% { transform: scale(1.14, .84); } }
.mbox.shake .gift .gseam { animation: bxSeam .98s ease-in forwards; }
@keyframes bxSeam { 0% { opacity: 0; transform: scaleX(.2); } 60% { opacity: .7; transform: scaleX(.8); } 100% { opacity: 1; transform: scaleX(1.1); } }
.mbox.shake .gift .glock { animation: bxRattle .3s ease-in-out 3; }
@keyframes bxRattle { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.mbox.shake .gift .rays { opacity: .6; animation-duration: 6s; }
.mbox.open .gift { animation: bxPop 520ms var(--ease-pop); }
@keyframes bxPop { 0% { transform: scale(1.14, .84); } 40% { transform: scale(.92, 1.12) translateY(-4%); } 70% { transform: scale(1.04, .97); } 100% { transform: none; } }
.mbox.open .gift .glid { transform: translate(-9%, -13%) rotate(-58deg); }
.mbox.open .gift .glock { opacity: 0; animation: bxLock 620ms ease-in; }
@keyframes bxLock { 0% { opacity: 1; transform: none; } 30% { opacity: 1; transform: translate(6%, -14%) rotate(20deg); } 100% { opacity: 0; transform: translate(14%, 60%) rotate(140deg); } }
.mbox.open .gift .gin { opacity: 1; }
.mbox.open .gift .gbeam { opacity: .8; animation: bxBeam 700ms var(--ease); }
@keyframes bxBeam { 0% { transform: scaleY(0) scaleX(.4); opacity: 1; } 60% { transform: scaleY(1.08); opacity: 1; } 100% { transform: none; opacity: .8; } }
.mbox.open .gift .rays { opacity: .95; animation-duration: 9s; }
.mbox.open .gift .gloot { opacity: 1; animation: bxRise 950ms var(--ease) both, gaBob 3.2s ease-in-out 950ms infinite; }
@keyframes bxRise { 0% { transform: translateY(150%) scale(.2) rotateY(180deg); opacity: 0; } 20% { opacity: 1; } 48% { transform: translateY(-20%) scale(1.16) rotateY(180deg); } 78% { transform: translateY(-8%) scale(1.06) rotateY(0deg); } 100% { transform: none; opacity: 1; } }
.mbox.open { border-color: var(--rc, var(--bc)); box-shadow: var(--shadow), 0 0 40px -10px var(--rc, var(--bc)); }
:root[data-q="low"] .gift .rays, :root[data-q="low"] .gift .gsh { animation: none; }
/* odds: a plain list behind an Odds toggle, closed until asked for */
.oddsl { width: 100%; font-size: 14px; line-height: 20px; text-align: left; }
.oddsl summary { width: max-content; margin: 0 auto; padding: var(--sp-1) var(--sp-2); border-radius: var(--r-sm); cursor: pointer; color: #ffffffcc; font-weight: 500; }
.oddsl summary:hover { color: #fff; }
.oddsl > span { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-1); padding: 0 var(--sp-1); color: #ffffffcc; }
.oddsl > span b { font: 500 14px/20px var(--font-mono); font-variant-numeric: tabular-nums; color: #fff; }
/* under the chests: the last find and one link to the collection */
.bfoot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 36px; margin-top: var(--sp-3); }
.bfoot .gmsg { flex: 0 1 auto; }
.bfoot a { position: relative; margin-left: auto; color: var(--fg-2); font: 500 14px var(--font-body); text-decoration: none; }
.bfoot a:hover { color: var(--fg); text-decoration: underline; }
@media (pointer: coarse), (max-width: 899px) { .bfoot a::after { content: ""; position: absolute; inset: -12px; } }
/* the copy of a new item that flies to the Collection link */
.cth { flex: none; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: var(--rc); background: radial-gradient(circle at 32% 24%, #ffffff40, transparent 46%), radial-gradient(circle, color-mix(in srgb, var(--rc) 30%, #14082e), #14082e 78%); box-shadow: inset 0 0 0 2px var(--rc), inset 0 0 0 3.5px #14082e, inset 0 -5px 8px #0007, 0 3px 0 #0006; }
.cth svg { width: 60%; height: 60%; filter: drop-shadow(0 1.5px 0 color-mix(in srgb, var(--rc) 40%, #000)) drop-shadow(0 -1px 0 #ffffff99); }
.cfly { position: fixed; z-index: 80; pointer-events: none; }
/* the shell's reveal card, while it shows a Mystery Boxes find: the same framed medallion as on the chest */
@media (max-width: 560px) { .mbox { --gs: .86; } .mbox.t1 { --gs: .94; } .mbox.t2 { --gs: 1.02; } }

/* ===== Higher or Lower: illustrated cream cards on green baize, a brass payout plate and a fanned discard pile ===== */
.fprint { position: absolute; left: 50%; top: 46%; width: min(640px, 92%); aspect-ratio: 2.1; height: auto; transform: translate(-50%, -50%); overflow: visible; }
.fprint text { font: 800 30px var(--font-display); letter-spacing: .3em; fill: #ffffff24; }
.hrail { position: relative; z-index: 1; display: flex; gap: 8px; justify-content: center; align-items: center; align-self: center; width: max-content; max-width: 100%; margin-top: 6px; }
/* the ladder sits in a brass rail */
.hrail > span { display: flex; gap: 3px; padding: 5px; border-radius: 12px; background: linear-gradient(180deg, #0a2a1c, #06180f); box-shadow: inset 0 2px 5px #000c, 0 0 0 1.5px #7a5a14, 0 0 0 4px var(--brass, #e8b84a), 0 0 0 5px #fff3b080, 0 0 0 6.5px #7a5a14, 0 8px 12px -4px #000a; }
.hrail i { width: 30px; height: 38px; border-radius: 6px; display: grid; place-items: center; font: 800 14px/1 var(--font-display); font-style: normal; color: #ffffffd9; background: linear-gradient(180deg, #ffffff1f, #ffffff0a); box-shadow: inset 0 0 0 1px #ffffff2e; transition: background var(--t-ui) var(--ease); }
.hrail i.hi { color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--g3) 78%, #fff), color-mix(in srgb, var(--g3) 62%, #04140d)); box-shadow: inset 0 1px 0 #ffffff80, inset 0 -2px 0 #0003; text-shadow: 0 1px 0 #0006; }
.hrail i.lo { color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--g1) 82%, #fff), color-mix(in srgb, var(--g1) 62%, #1c060a)); box-shadow: inset 0 1px 0 #ffffff80, inset 0 -2px 0 #0003; text-shadow: 0 1px 0 #0006; }
.hrail i.cur { color: #1b2140; background: linear-gradient(160deg, #fffaf0, #fff4dc 55%, #f1dcb2); box-shadow: 0 0 0 2px var(--g2), 0 5px 10px #0009; transform: translateY(-3px) scale(1.12); z-index: 1; }
.hrail i.cur.tick { animation: hlTick 380ms var(--ease-pop); }
@keyframes hlTick { 0% { transform: translateY(8px) scale(.7); } 60% { transform: translateY(-7px) scale(1.24); } 100% { transform: translateY(-3px) scale(1.12); } }
.hrail i.cur.good { box-shadow: 0 0 0 2.5px var(--success), 0 0 14px 1px var(--success); }
.hrail i.cur.miss { box-shadow: 0 0 0 2.5px var(--g1), 0 0 14px 1px var(--g1); }
.hrail b { display: inline-flex; align-items: center; gap: 5px; font: 700 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(4, 30, 19, .78); border-radius: var(--r-pill); padding: 7px 10px; box-shadow: inset 0 0 0 1px #ffffff26; white-space: nowrap; }
.hrail b u { text-decoration: none; color: var(--g2); }
.hrail b::before { content: ""; width: 0; height: 0; border: 5px solid transparent; }
.hrail b.lo::before { border-top: 7px solid var(--g1); border-bottom: 0; filter: brightness(1.35); }
.hrail b.hi { flex-direction: row-reverse; } .hrail b.hi::before { border-bottom: 7px solid var(--g3); border-top: 0; filter: brightness(1.25); }
.pcards { --card: #fff4dc; --pip: #1b2140; --pipr: #e0203c; --dx: -162px; position: relative; z-index: 1; display: flex; gap: 26px; justify-content: center; align-items: center; min-height: 216px; perspective: 900px; }
.pc { width: 136px; height: 192px; flex: none; border-radius: 14px; background: var(--grain), linear-gradient(160deg, #fffdf6, var(--card) 55%, #f3e0b8); color: var(--pip); position: relative; box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 5px var(--card), inset 0 0 0 6px #e3c98e, 0 3px 0 #cdb98c, 0 4px 0 #a8976e, 0 16px 26px -4px #000a; }
.pc.red { color: var(--pipr); }
.pc .pf { position: absolute; inset: 0; width: 100%; height: 100%; }
.pc .cn { position: absolute; top: 9px; left: 8px; width: 22px; display: grid; justify-items: center; gap: 1px; font: 800 19px/1 var(--font-display); letter-spacing: -.04em; }
.pc .cn .su { width: 14px; height: 14px; }
.pc .cn.r { top: auto; left: auto; bottom: 9px; right: 8px; transform: rotate(180deg); }
/* a card is dealt off the deck: it lifts, turns over and lands */
.pc.deal { animation: hlDeal 460ms var(--ease) both; }
@keyframes hlDeal { 0% { transform: translate(var(--dx), -6px) rotateY(88deg) scale(.98); } 50% { transform: translate(calc(var(--dx) * .3), -26px) rotateY(44deg) rotate(4deg) scale(1.05); } 82% { transform: translate(0, 3px) rotateY(0deg) scale(1.02, .98); } 100% { transform: none; } }
.pcards.dealt .pc.back { animation: hlDeck 300ms var(--ease); }
@keyframes hlDeck { 40% { transform: translate(-3px, 3px) rotate(-1.5deg); } }
.pc.good { box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 5px var(--card), inset 0 0 0 6px #e3c98e, 0 0 0 4px var(--success), 0 0 34px 4px var(--success), 0 16px 26px -4px #000a; }
.pc.good::after { content: ""; position: absolute; right: -12px; top: -12px; width: 34px; height: 34px; border-radius: 50%; background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.400l2.600 2.600L12 5.600' fill='none' stroke='%230b0d14' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; box-shadow: 0 0 0 3px #fff, 0 4px 8px #0008; animation: gaPop 320ms var(--ease-pop) 380ms both; }
/* a wrong card lands, cracks and goes grey */
.pc.miss { box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 5px var(--card), inset 0 0 0 6px #e3c98e, 0 0 0 4px var(--g1), 0 0 34px 4px var(--g1), 0 16px 26px -4px #000a; filter: grayscale(.7) brightness(.86); transform: rotate(3deg); }
.pc.miss.deal { animation: hlDeal 460ms var(--ease) both, hlMiss 500ms ease 460ms both; }
@keyframes hlMiss { 0% { transform: none; filter: none; } 20% { transform: translateX(-9px) rotate(-3deg); } 40% { transform: translateX(8px) rotate(3deg); } 60% { transform: translateX(-5px) rotate(-1deg); } 100% { transform: rotate(3deg); filter: grayscale(.7) brightness(.86); } }
.pc.miss::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M62 0l-8 22 9 14-16 24 10 18-14 26 8 16-6 20' fill='none' stroke='%231b2140' stroke-width='2.200' stroke-linejoin='round'/%3E%3Cpath d='M63 36l14 8M47 60l-18-4M57 78l16 10M43 104l-14 8' fill='none' stroke='%231b2140' stroke-width='1.300' stroke-linecap='round'/%3E%3Cpath d='M63.500 0l-8 22 9 14-16 24 10 18-14 26 8 16-6 20' fill='none' stroke='%23fff' stroke-opacity='.7' stroke-width='1'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.pc.miss::after { content: ""; position: absolute; right: -12px; top: -12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: var(--g1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%23fff' stroke-width='2.200' stroke-linecap='round'/%3E%3C/svg%3E") center / 80% no-repeat; box-shadow: 0 0 0 3px #fff, 0 4px 8px #0008; }
.board.hshake > .pcards { animation: gaShake 420ms ease; }
.pc.back { background: radial-gradient(circle at 50% 50%, transparent 0 40px, #ffffff2e 41px 43px, transparent 44px), repeating-linear-gradient(45deg, #0000 0 7px, #0002 7px 14px), repeating-linear-gradient(-45deg, #0000 0 7px, #0002 7px 14px), linear-gradient(160deg, #ff7a88, var(--g1) 50%, #b3122a); display: grid; place-items: center;
  box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 7px var(--g2), inset 0 0 0 9px #b3122a, inset 0 0 30px #0000004d, 1px 1px 0 #f3e8c8, 2px 2px 0 #b3a47c, 3px 3px 0 #f3e8c8, 4px 4px 0 #a8976e, 5px 5px 0 #e9dcb8, 6px 6px 0 #a8976e, 7px 7px 0 #e9dcb8, 8px 8px 0 #9a8960, 9px 9px 0 #d8caa2, 10px 10px 0 #8a7a54, 16px 24px 26px -4px #000a; }
.pc.back::before { content: ""; position: absolute; inset: 14px; border-radius: 7px; border: 1.5px solid #ffffff59; background: linear-gradient(115deg, transparent 30%, #ffffff40 42%, transparent 52%); }
.pc.back::after { content: ""; width: 48px; height: 48px; border-radius: 10px; transform: rotate(45deg); background: radial-gradient(circle at 50% 50%, #b3122a 0 6px, transparent 7px), linear-gradient(135deg, #fff0b0, var(--g2)); box-shadow: 0 0 0 4px var(--card), 0 0 0 6px #b3122a, 0 2px 8px #0006; }
/* before the deal: a card outline printed on the felt */
.pc.slot { background: linear-gradient(160deg, #ffffff14, #ffffff05); color: #ffffffd9; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; padding: 14px; box-shadow: inset 0 0 0 2px #ffffff80, inset 0 0 0 7px transparent, inset 0 0 0 8px #ffffff40, inset 0 0 40px #0000004d; }
.pc.slot i { width: 46px; height: 46px; opacity: .5; background: #fff; clip-path: polygon(50% 0, 96% 55%, 96% 74%, 78% 88%, 58% 78%, 64% 100%, 36% 100%, 42% 78%, 22% 88%, 4% 74%, 4% 55%); }
/* the brass plate: pot, multiplier and payout */
.hplate { --brass: #e8b84a; position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; align-self: center; width: max-content; max-width: 100%; min-height: 58px; padding: 7px 20px 7px 14px; border-radius: 14px; color: #3a2408;
  background: radial-gradient(3.5px 3.5px at 9px 9px, #7a5a14 50%, transparent 60%), radial-gradient(3.5px 3.5px at calc(100% - 9px) 9px, #7a5a14 50%, transparent 60%), radial-gradient(3.5px 3.5px at 9px calc(100% - 9px), #7a5a14 50%, transparent 60%), radial-gradient(3.5px 3.5px at calc(100% - 9px) calc(100% - 9px), #7a5a14 50%, transparent 60%), repeating-linear-gradient(90deg, #ffffff14 0 1px, transparent 1px 3px), linear-gradient(180deg, #fff3b0, var(--brass) 45%, #b8862a);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1.5px #7a5a14, inset 0 0 0 3px #fff3b066, 0 3px 0 #6b4a10, 0 12px 16px -6px #000c; }
.hplate > span { display: grid; gap: 3px; min-width: 84px; } .hplate > span + span { padding-left: 16px; border-left: 1.5px solid #7a5a1480; }
.hplate em { font: 700 10.5px/1 var(--font-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #5a3c08; }
.hplate b { font: 800 26px/1 var(--font-display); font-variant-numeric: tabular-nums; color: #2a1803; text-shadow: 0 1px 0 #ffffff99; }
.hpot { position: relative; width: 46px; height: 44px; flex: none; }
.hpot::before { content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, #0000008c, transparent); }
.hpot i { position: absolute; left: 3px; bottom: calc(var(--i) * 4.500px); width: 40px; height: 16px; border-radius: 50%; background: repeating-linear-gradient(90deg, var(--cc) 0 7px, #fff 7px 11px); box-shadow: inset 0 0 0 1.5px #0003, inset 0 2px 0 #ffffff80, 0 2px 0 color-mix(in srgb, var(--cc) 60%, #000), 0 3px 0 #0008; }
.hpot i.new { animation: gaDrop 380ms var(--ease-pop) 300ms both; }
.hplate.bump b { animation: gaPop 320ms var(--ease-pop); }
.hplate.won { animation: gaPop 420ms var(--ease-pop); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1.5px #7a5a14, 0 3px 0 #6b4a10, 0 0 0 3px var(--success), 0 0 30px 4px var(--success); }
.hplate.won span + span b { color: #06512e; }
.hplate.lost { filter: saturate(.3) brightness(.82); } .hplate.lost b { color: #8a0f24; }
/* the discard pile: earlier cards fanned out, each marked hit or miss */
.hfan { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; min-height: 66px; padding: 0 20px; }
.hfan .pc.sm { width: 40px; height: 56px; margin: 0 -5px; border-radius: 7px; display: grid; place-items: center; align-content: center; gap: 2px; font: 800 17px/1 var(--font-display); transform: translateY(var(--y, 0)) rotate(var(--a, 0deg)); transform-origin: 50% 120%; background: linear-gradient(160deg, #fffdf6, #fff4dc 55%, #f1dcb2); color: #1b2140; box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 2.5px #fff4dc, inset 0 0 0 3.5px #e3c98e, 0 2px 0 #cdb98c, 0 6px 8px #0007; animation: none; }
.hfan .pc.sm.red { color: #e0203c; }
.hfan .pc.sm .su { width: 13px; height: 13px; }
.hfan .pc.sm.good::after, .hfan .pc.sm.miss::after { content: ""; position: absolute; right: -4px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 1.5px #fff, 0 2px 3px #0008; }
.hfan .pc.sm.miss::after { background: var(--g1); }
.hfan .pc.sm.miss, .hfan .pc.sm.good { filter: none; } .hfan .pc.sm.miss::before { display: none; }
.hfan .pc.sm.new { animation: hlFan 420ms var(--ease) both; }
@keyframes hlFan { 0% { transform: translate(40px, -150px) rotate(0deg) scale(1.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(var(--y, 0)) rotate(var(--a, 0deg)); opacity: 1; } }
/* the two guesses: flat, one height with or without the odds line, so the column never jumps */
#hilo-hi, #hilo-lo { height: 56px; flex-direction: column; gap: var(--sp-1); padding: 0 var(--sp-2); font-family: var(--font-body); }
.hl-w { display: inline-flex; align-items: center; gap: var(--sp-2); font: 600 14px/1 var(--font-body); }
.hl-w::before { content: ""; width: 0; height: 0; border: 6px solid transparent; border-bottom: 9px solid currentColor; border-top: 0; }
#hilo-lo .hl-w::before { border-top: 9px solid currentColor; border-bottom: 0; }
#hilo-hi small, #hilo-lo small { font: 500 12px/1 var(--font-mono); color: var(--fg-2); }
@media (max-width: 860px) { .pc { width: 108px; height: 152px; } .pc .cn { font-size: 16px; top: 7px; left: 5px; width: 20px; } .pc .cn.r { bottom: 7px; right: 5px; } .pc .cn .su { width: 12px; height: 12px; } .pcards { --dx: -128px; gap: 20px; min-height: 166px; } .hfan .pc.sm { width: 34px; height: 48px; font-size: 15px; } .hfan { min-height: 56px; } .pc.slot i { width: 36px; height: 36px; }
  /* on a phone the guess buttons are the main control: they sit right under Bet / Cash out, above the bet field */
  .view[data-view="hilo"] .ctrl > .chips { order: -1; } }
@media (max-width: 560px) { .hrail { width: 100%; gap: 0; margin-top: 10px; } .hrail b { display: none; } .hrail > span { flex: 1; gap: 2px; padding: 4px; } .hrail i { flex: 1; width: auto; min-width: 0; height: 32px; font-size: 12px; border-radius: 5px; } .hrail i.cur { transform: translateY(-2px) scale(1.08); } .fprint text { font-size: 22px; }
  .hplate { gap: 10px; padding: 6px 14px 6px 10px; } .hplate b { font-size: 21px; } .hplate > span { min-width: 70px; } .hplate > span + span { padding-left: 10px; } .view[data-view="hilo"] .cstack { display: none; } }

/* ===== Treasure Hunt: dig tiles on a map. Island sits in a lagoon, Jungle in a clearing under the canopy, Tomb in a torch-lit chamber ===== */
.view[data-view="treasure"] .game > .board { --sea: var(--g2); gap: 12px; }
.view[data-view="treasure"] .game > .board[data-map="jungle"] { --sea: #1d6b3a; }
.view[data-view="treasure"] .game > .board[data-map="tomb"] { --sea: #8a4fd6; }
.tsea { position: absolute; inset: 0; width: auto; pointer-events: none; border-radius: inherit; overflow: hidden;
  background: radial-gradient(64% 58% at 50% 52%, color-mix(in srgb, var(--sea) 58%, #dffdf6), color-mix(in srgb, var(--sea) 70%, #fff 6%) 46%, transparent 78%), linear-gradient(180deg, color-mix(in srgb, var(--sea) 62%, var(--g4)), color-mix(in srgb, var(--sea) 30%, var(--g4))); }
.tsea > i, .tsea > div { position: absolute; }
/* rolling wave crests: two pattern layers that slide past each other */
.twave { inset: 0 -92px 0 0; background: radial-gradient(circle at 50% 0, transparent 8px, #ffffff3d 9px 10.5px, transparent 11.5px) 0 0 / 46px 24px, radial-gradient(circle at 50% 0, transparent 8px, #ffffff1f 9px 10.5px, transparent 11.5px) 23px 12px / 46px 24px; animation: trWave 9s linear infinite; }
.twave::after { content: ""; position: absolute; inset: 0; background: radial-gradient(18px 2.5px at 50% 50%, #ffffffb3, transparent) 0 0 / 92px 72px, radial-gradient(12px 2px at 50% 50%, #ffffff80, transparent) 40px 34px / 92px 72px; animation: trWave 14s linear infinite reverse; }
@keyframes trWave { to { transform: translateX(-92px); } }
/* a cloud shadow drifting over the water */
.tcloud { left: -40%; top: 8%; width: 46%; height: 44%; border-radius: 50%; background: radial-gradient(closest-side, #04202a59, #04202a26 60%, transparent); animation: trCloud 46s linear infinite; }
@keyframes trCloud { to { transform: translateX(420%); } }
.tvig { inset: 0; z-index: 3; border-radius: inherit; background: radial-gradient(120% 95% at 50% 46%, transparent 52%, #00000073); box-shadow: inset 0 0 0 1px #ffffff14; transition: opacity var(--t-result) var(--ease); opacity: .8; }
.board:has(.thaul.lost) .tvig { opacity: 1; background: radial-gradient(100% 80% at 50% 46%, transparent 40%, #000000b3); }
:root[data-q="low"] .twave, :root[data-q="low"] .twave::after, :root[data-q="low"] .tcloud { animation: none; }
.tsea .boat { position: absolute; right: 3.5%; bottom: 40px; width: 70px; height: auto; transform: rotate(4deg); filter: drop-shadow(0 4px 0 #0000004d); animation: gaBob 4s ease-in-out infinite; }
.tsea .palm { position: absolute; left: 0; bottom: 4px; width: 120px; height: auto; filter: drop-shadow(0 6px 0 #0000004d); }
.tsea .compass { position: absolute; right: 2%; top: 20px; width: 74px; height: auto; transform: rotate(-12deg); filter: drop-shadow(0 4px 0 #0000004d) drop-shadow(0 10px 10px #0006); }
/* jungle: dark undergrowth, light shafts, canopy leaves hanging over the frame, a ruin and a parrot */
.board[data-map="jungle"] .tsea { background: linear-gradient(112deg, transparent 22%, #e6ffb01f 27%, transparent 36%, transparent 52%, #e6ffb017 58%, transparent 66%), radial-gradient(26px 18px at 12% 82%, #2f9e4a80, transparent), radial-gradient(34px 22px at 88% 88%, #2f9e4a66, transparent), radial-gradient(30px 20px at 80% 20%, #2f9e4a59, transparent), radial-gradient(60% 55% at 50% 50%, #3fbf5f59, transparent 76%), linear-gradient(180deg, #12492a, #082615); }
.tjung, .ttomb { inset: 0; display: none; }
.board[data-map="jungle"] .tjung, .board[data-map="tomb"] .ttomb { display: block; }
.board[data-map="jungle"] .twave, .board[data-map="jungle"] .tcloud, .board[data-map="jungle"] .palm, .board[data-map="jungle"] .boat, .board[data-map="jungle"] .compass,
.board[data-map="tomb"] .twave, .board[data-map="tomb"] .tcloud, .board[data-map="tomb"] .palm, .board[data-map="tomb"] .boat, .board[data-map="tomb"] .compass { display: none; }
.tjung svg, .ttomb svg { position: absolute; height: auto; }
.tcan { left: -14px; top: -14px; width: 168px; z-index: 4; filter: drop-shadow(0 6px 0 #00000059); }
.tcan + .tcan { left: auto; right: -14px; transform: scaleX(-1); }
.tcan + .tcan + .tcan { right: auto; left: -18px; top: auto; bottom: -18px; width: 112px; transform: scaleY(-1); }
.tcan + .tcan + .tcan + .tcan { left: auto; right: -18px; transform: scale(-1); }
.tvine { left: 8.5%; top: -8px; width: 30px; z-index: 4; filter: drop-shadow(0 4px 0 #0000004d); transform-origin: 50% 0; animation: trSway 6s ease-in-out infinite; }
.tvine + .tvine { left: auto; right: 9.5%; width: 26px; animation-duration: 7.5s; animation-direction: reverse; }
@keyframes trSway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.truin { left: 1%; bottom: 74px; width: 82px; filter: drop-shadow(0 6px 8px #0008); }
.tparrot { right: 1.5%; top: 37%; width: 84px; filter: drop-shadow(0 6px 6px #0008); transform-origin: 50% 70%; animation: trSway 5s ease-in-out infinite; }
.tjung::after { content: ""; position: absolute; inset: 0; background: radial-gradient(3px 3px at 9% 46%, #f4ffb0, transparent), radial-gradient(2.5px 2.5px at 93% 22%, #f4ffb0, transparent), radial-gradient(3px 3px at 90% 74%, #f4ffb0, transparent), radial-gradient(2px 2px at 5% 22%, #f4ffb0, transparent), radial-gradient(2.5px 2.5px at 12% 64%, #f4ffb0, transparent); animation: gaPulse 3s ease-in-out infinite; }
/* tomb: block walls, torch light, cobwebs, a sarcophagus and drifted sand */
.board[data-map="tomb"] .tsea { background: radial-gradient(38% 46% at 6% 30%, #ff9a3d73, transparent 70%), radial-gradient(38% 46% at 94% 30%, #ff9a3d73, transparent 70%), repeating-linear-gradient(0deg, transparent 0 38px, #00000059 38px 40px, #ffffff0f 40px 41px), repeating-linear-gradient(90deg, transparent 0 78px, #00000040 78px 80px), linear-gradient(180deg, color-mix(in srgb, var(--sea) 40%, #1a0b3a), color-mix(in srgb, var(--sea) 14%, #0d0620)); }
.tweb { left: 0; top: 0; width: 120px; }
.tweb + .tweb { left: auto; right: 0; transform: scaleX(-1); }
.tsarc { left: 1.2%; bottom: 14px; width: 82px; transform: rotate(-5deg); filter: drop-shadow(0 8px 8px #000a); }
.tpile { left: -30px; bottom: -34px; width: 190px; height: 80px; border-radius: 50%; background: radial-gradient(3px 3px at 62% 26%, #ffe07a, transparent), radial-gradient(4px 4px at 44% 20%, #fff3b0, transparent), radial-gradient(3px 3px at 74% 36%, #ffd23f, transparent), radial-gradient(closest-side at 50% 0, #ffffff59, transparent 40%), linear-gradient(180deg, #e9bf74, #a8702c); box-shadow: inset 0 3px 0 #ffffff59, 0 -2px 0 #3a1a05; }
.tpile + .tpile { left: auto; right: -40px; width: 230px; height: 96px; }
.tsea .torch { display: none; top: 24%; left: 4.5%; width: 16px; height: 70px; border-radius: 3px 3px 8px 8px; background: linear-gradient(90deg, #5a2a05, #b9793a 50%, #5a2a05); box-shadow: 0 0 0 1.5px #2a1203; }
.tsea .torch + .torch { left: auto; right: 4.5%; }
.tsea .torch::before { content: ""; position: absolute; left: 50%; top: -34px; width: 30px; height: 40px; margin-left: -15px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 72%, #fff8c8 0 18%, #ffd23f 34%, #ff9a3d 58%, #ff5a4a 78%, transparent 80%); transform-origin: 50% 100%; animation: trFlame .9s ease-in-out infinite alternate; }
@keyframes trFlame { 0% { transform: scale(1, 1) rotate(-3deg); } 50% { transform: scale(.9, 1.12) rotate(2deg); } 100% { transform: scale(1.06, .94) rotate(-1deg); } }
.tsea .torch::after { content: ""; position: absolute; left: 50%; top: -84px; width: 180px; height: 180px; margin-left: -90px; border-radius: 50%; background: radial-gradient(closest-side, #ff9a3d8c, transparent); animation: gaPulse 2.6s ease-in-out infinite; }
.board[data-map="tomb"] .tsea .torch { display: block; }
/* header: a parchment name tag and the shovels you have left */
.thead { position: relative; z-index: 5; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.thead > span { display: inline-flex; gap: 10px; align-items: center; padding: 4px 12px 4px 14px; border-radius: var(--r-pill); background: linear-gradient(180deg, rgba(8, 9, 18, .78), rgba(8, 9, 18, .62)); border: 1px solid color-mix(in srgb, var(--g1) 55%, transparent); box-shadow: inset 0 1px 0 #ffffff26, 0 6px 12px -6px #000; }
.thead em { font: 700 11px var(--font-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
#tr-digs { display: inline-flex; gap: 3px; }
#tr-digs i { display: grid; color: #e9f2fa; transition: opacity var(--t-ui) var(--ease), transform var(--t-ui) var(--ease); filter: drop-shadow(0 2px 0 #000a); }
#tr-digs svg { width: 30px; height: 30px; }
#tr-digs i.used { opacity: .3; transform: translateY(3px) rotate(38deg) scale(.86); }
#tr-digs i.use { animation: trUse 520ms var(--ease); }
@keyframes trUse { 0% { transform: none; opacity: 1; } 30% { transform: translate(-3px, -9px) rotate(-24deg) scale(1.25); opacity: 1; } 60% { transform: translate(2px, 6px) rotate(30deg) scale(1.1); opacity: 1; } 100% { transform: translateY(3px) rotate(38deg) scale(.86); opacity: .3; } }
/* the map itself */
.tmap { --m1: #ffe6a0; --m2: #e3a83c; --m3: var(--g2); --m4: #a8702c; position: relative; z-index: 1; display: grid; gap: 7px; width: min(476px, 100%); margin: 0 auto; padding: 16px; border-radius: 30px 26px 34px 24px;
  background: var(--grain), radial-gradient(90% 70% at 30% 10%, #ffffff40, transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--m1) 72%, #a8702c), color-mix(in srgb, var(--m2) 70%, #6b3f10));
  box-shadow: inset 0 3px 0 #ffffff80, inset 0 -6px 12px #00000059, 0 0 0 4px #fffffff2, 0 0 0 9px color-mix(in srgb, var(--m3) 55%, #ffffff 45%), 0 0 0 17px color-mix(in srgb, var(--m3) 62%, transparent), 0 0 0 28px color-mix(in srgb, var(--m3) 26%, transparent), 0 24px 34px -4px #000a; }
/* foam washing round the island */
.tmap[data-map="island"]::before { content: ""; position: absolute; inset: -24px; border-radius: 48px 44px 52px 42px; border: 3px dashed #ffffffb3; pointer-events: none; animation: trFoam 3.6s ease-in-out infinite; }
@keyframes trFoam { 0%, 100% { transform: scale(.985); opacity: .25; } 50% { transform: scale(1.015); opacity: .8; } }
.tmap[data-map="jungle"] { border-radius: 22px; box-shadow: inset 0 3px 0 #ffffff59, inset 0 -6px 12px #00000073, 0 0 0 3px #1c3b12, 0 0 0 9px #8a5a22, 0 0 0 10px #c9914a, 0 0 0 12px #3a2408, 0 0 0 18px #2f9e4a80, 0 24px 34px -4px #000c; }
.tmap[data-map="tomb"] { border-radius: 16px; box-shadow: inset 0 3px 0 #ffffff59, inset 0 -6px 12px #00000059, 0 0 0 4px var(--m3), 0 0 0 7px #5a2a05, 0 0 0 9px color-mix(in srgb, var(--m3) 60%, #fff), 0 0 40px 6px color-mix(in srgb, var(--m3) 45%, transparent), 0 24px 34px -4px #000a; }
.tmap.bust { animation: gaShake 420ms ease; }
.tm { position: relative; min-width: 0; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font: 700 11.5px var(--font-mono); color: #fff;
  background: radial-gradient(70% 54% at 50% 40%, #ffffff66, transparent 72%), radial-gradient(circle at 24% 16%, #ffffffa6, transparent 34%), radial-gradient(2.5px 2.5px at 70% 28%, #0000002e 50%, transparent 51%), radial-gradient(2px 2px at 36% 70%, #0000002e 50%, transparent 51%), radial-gradient(2px 2px at 62% 80%, #ffffff8c 50%, transparent 51%), radial-gradient(2px 2px at 18% 48%, #00000026 50%, transparent 51%), radial-gradient(3px 3px at 82% 62%, #00000021 50%, transparent 51%), linear-gradient(180deg, var(--m1), var(--m2));
  box-shadow: inset 0 2px 0 #ffffffb3, inset 0 -5px 6px -2px color-mix(in srgb, var(--m4) 60%, transparent), inset 0 -3px 0 #00000024, 0 4px 0 color-mix(in srgb, var(--m2) 55%, #000), 0 8px 8px -3px #000c; transition: transform var(--t-press) var(--ease), filter var(--t-ui) var(--ease); }
.tm .td, .tm .pit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tm .d1 { fill: none; stroke: #9a622480; stroke-width: 1.6; stroke-linecap: round; } .tm .l1 { fill: none; stroke: #ffffffa6; stroke-width: 1.4; stroke-linecap: round; }
/* X marks the spot: a faint stitched cross, inked in only while you can dig */
.tm .tx { fill: none; stroke: #8a3a12; stroke-width: 2.6; stroke-dasharray: 3.4 3.4; stroke-linecap: round; opacity: 0; transition: opacity var(--t-ui) var(--ease); }
.tm:not(:disabled) .tx { opacity: .62; }
.tmap[data-map="jungle"] .tm .tx { stroke: #0b4a22; }
.tmap[data-map="jungle"] .tm { background: radial-gradient(70% 54% at 50% 40%, #ffffff40, transparent 72%), radial-gradient(circle at 24% 16%, #ffffff80, transparent 34%), repeating-linear-gradient(100deg, transparent 0 5px, #0000000f 5px 6px), radial-gradient(2px 2px at 62% 80%, #ffffff8c 50%, transparent 51%), radial-gradient(2px 2px at 18% 48%, #00000026 50%, transparent 51%), radial-gradient(3px 3px at 82% 62%, #00000021 50%, transparent 51%), linear-gradient(180deg, var(--m1), var(--m2)); }
.tmap[data-map="tomb"] .tm { border-radius: 7px; background: radial-gradient(circle at 24% 16%, #ffffff73, transparent 40%), var(--grain), linear-gradient(180deg, var(--m1), var(--m2)); box-shadow: inset 0 2px 0 #ffffff99, inset 0 0 0 3px #ffffff1f, inset 0 0 0 4px #3a1a6a33, inset 0 -3px 0 #00000033, 0 4px 0 color-mix(in srgb, var(--m2) 50%, #000), 0 8px 8px -3px #000c; }
.tm .cd, .tm .cl { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tm .cd { stroke: #3a1a6a8c; transition: stroke var(--t-ui) var(--ease); } .tm .cl { stroke: #ffffff8c; }
.tmap.on[data-map="tomb"] .tm:not(:disabled) .cd { stroke: #2a0c5c; }
.tm .chp { fill: #2a1450; } .tm .crk { fill: none; stroke: #3a1a6a80; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* a shovel leans in when you point at a tile */
.tm:not(:disabled)::after { content: ""; position: absolute; right: -8%; top: -16%; width: 58%; aspect-ratio: 1; opacity: 0; transform: translate(8px, -8px) rotate(-14deg); transition: opacity var(--t-ui) var(--ease), transform var(--t-ui) var(--ease-pop); pointer-events: none; filter: drop-shadow(0 3px 0 #0006);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cg transform='rotate(90 14 14)'%3E%3Cpath d='M7.500 7.500l10 10' stroke='%232a1203' stroke-width='6.500' stroke-linecap='round'/%3E%3Cpath d='M3.500 8.500l5-5' stroke='%232a1203' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M13.500 18.500l5-5c5.500 2 8 6 7.500 12.500-6.500.5-10.500-2-12.500-7.500z' fill='%23e9f2fa' stroke='%232a1203' stroke-width='2.500' stroke-linejoin='round'/%3E%3Cpath d='M7.500 7.500l10 10' stroke='%23d9944a' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M3.500 8.500l5-5' stroke='%23d9944a' stroke-width='4.500' stroke-linecap='round'/%3E%3Cpath d='M17 17l6 7' stroke='%238aa0b8' stroke-width='1.500' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
@media (hover: hover) { .tm:not(:disabled):hover { transform: translateY(-3px) rotate(-1.5deg); filter: brightness(1.06); } .tm:not(:disabled):hover::after { opacity: 1; transform: none; } .tm:not(:disabled):hover .tx { opacity: 1; } }
.tm:not(:disabled):focus-visible::after { opacity: 1; transform: none; }
.tm:not(:disabled):active { transform: translateY(2px) scale(.96, .94); }
.tm:disabled { cursor: default; }
/* a dug tile: trampled ground round a real pit, with a dirt lip, clods and whatever was down there */
.tm.dug { background: radial-gradient(circle at 24% 16%, #ffffff40, transparent 34%), linear-gradient(180deg, color-mix(in srgb, var(--m1) 62%, var(--m4)), color-mix(in srgb, var(--m2) 62%, var(--m4))); box-shadow: inset 0 2px 0 #ffffff59, inset 0 -3px 0 #0000002e, 0 2px 0 color-mix(in srgb, var(--m2) 45%, #000), 0 5px 6px -3px #000c; transform: translateY(2px); }
.tm.dug.fresh { animation: trDig 380ms var(--ease-pop); }
@keyframes trDig { 0% { transform: translateY(5px) scale(.9, .86); } 55% { transform: translateY(0) scale(1.05, 1.07); } 100% { transform: translateY(2px) scale(1); } }
.pit .plip { fill: color-mix(in srgb, var(--m4) 55%, var(--m1)); } .pit .plip2 { fill: color-mix(in srgb, var(--m4) 86%, #000); }
.pit .phole { fill: color-mix(in srgb, var(--m4) 26%, #0a0503); } .pit .prim { fill: #000; opacity: .6; }
.pit .pcl { fill: color-mix(in srgb, var(--m4) 80%, var(--m1)); stroke: #00000059; stroke-width: .8; }
.tm span { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1px; line-height: 1; width: 100%; }
.tm .art { width: 58%; height: auto; aspect-ratio: 1; display: block; filter: drop-shadow(0 2px 0 #0006); }
.tm b { font: 700 11px/1 var(--font-mono); color: #fff; background: rgba(8, 9, 18, .78); border-radius: var(--r-pill); padding: 2.5px 6px; }
.tm.prize:not(.dim) b { color: var(--ink); background: linear-gradient(180deg, #fff3b0, var(--g1)); box-shadow: 0 1.5px 0 #8a5a0a, inset 0 1px 0 #fff; }
.tm.dug.prize:not(.dim) { box-shadow: inset 0 2px 0 #ffffff59, 0 0 0 2px #fff3b0, 0 0 0 4px color-mix(in srgb, var(--g1) 80%, #7a4a05), 0 0 20px 2px var(--g1); z-index: 1; }
.tm.dug.prize.fresh span { animation: gaSquash 620ms var(--ease) both; transform-origin: 50% 80%; }
.tm.dug.prize.top:not(.dim) { background: repeating-conic-gradient(from 0deg at 50% 46%, #ffd23f73 0 12deg, transparent 12deg 30deg), radial-gradient(circle at 50% 50%, #8a5a1a, #2a1608); box-shadow: inset 0 0 0 2.5px #fff, 0 0 0 3px var(--g1), 0 0 30px 6px var(--g1); }
.tm.dug.prize.top:not(.dim) .pit { opacity: .5; }
.tm .glint { position: absolute; z-index: 2; right: 12%; top: 10%; width: 22%; aspect-ratio: 1; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: gaTwinkle 1.9s ease-in-out infinite; }
.tm .glint.b { right: auto; left: 12%; top: 42%; width: 15%; animation-delay: -.9s; }
.tm .tshov { position: absolute; z-index: 3; right: -6%; top: -30%; width: 66%; display: grid; color: #e9f2fa; opacity: 0; pointer-events: none; filter: drop-shadow(0 3px 0 #0008); animation: trShov 460ms ease-out; }
.tm .tshov svg { width: 100%; height: auto; transform: rotate(90deg); }
@keyframes trShov { 0% { transform: translate(40%, -50%) rotate(-34deg); opacity: 1; } 40% { transform: translate(-6%, 26%) rotate(14deg); opacity: 1; } 62% { transform: translate(4%, 6%) rotate(-12deg); opacity: 1; } 100% { transform: translate(26%, -30%) rotate(-30deg); opacity: 0; } }
/* tiles you did not dig are turned over at the end: a shallow ghost of what was under them */
.tmap .tm.dim { animation: trTurn 360ms var(--ease) both; animation-delay: var(--d, 0ms); background: linear-gradient(180deg, color-mix(in srgb, var(--m1) 50%, var(--m4)), color-mix(in srgb, var(--m2) 55%, var(--m4))); box-shadow: inset 0 2px 4px #00000059, inset 0 0 0 1.5px #0000002e; transform: none; }
@keyframes trTurn { 0% { transform: scale(.82) rotate(-4deg); opacity: .2; } 100% { transform: none; opacity: 1; } }
.tm.dim .pit { opacity: .45; } .tm.dim .art { opacity: .62; filter: saturate(.55) drop-shadow(0 2px 0 #0006); } .tm.dim b { opacity: .85; }
.tmap .tm.dim.top { box-shadow: inset 0 2px 4px #00000059, inset 0 0 0 2px #fff3b0a6, 0 0 14px 0 #fff3b073; z-index: 1; }
.tm.dim.top .art { opacity: .85; filter: saturate(.75) drop-shadow(0 2px 0 #0006); }
.tm em { position: absolute; z-index: 2; left: 50%; top: -7px; transform: translateX(-50%) rotate(-4deg); font: 800 9.5px/1 var(--font-display); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(180deg, #ff7a8c, #c4213f); border-radius: 5px; padding: 3px 6px; box-shadow: 0 2px 0 #5e0c1c, 0 0 0 1.5px #fff; white-space: nowrap; }
/* the haul: a chest on a brass plate that counts up what you have found */
.thaul { position: relative; z-index: 5; display: flex; align-items: center; gap: 12px; align-self: center; width: max-content; max-width: 100%; margin-top: 16px; padding: 7px 18px 7px 10px; border-radius: 18px; color: #fff;
  background: radial-gradient(4px 4px at 8px 8px, #fff3b0 40%, #7a4a05 60%, transparent 70%), radial-gradient(4px 4px at calc(100% - 8px) 8px, #fff3b0 40%, #7a4a05 60%, transparent 70%), radial-gradient(4px 4px at 8px calc(100% - 8px), #fff3b0 40%, #7a4a05 60%, transparent 70%), radial-gradient(4px 4px at calc(100% - 8px) calc(100% - 8px), #fff3b0 40%, #7a4a05 60%, transparent 70%), linear-gradient(180deg, rgba(20, 12, 6, .88), rgba(10, 6, 3, .8));
  box-shadow: inset 0 0 0 2px #c9914a, inset 0 0 0 3px #fff3b040, inset 0 3px 8px #000, 0 4px 0 #3a2408, 0 12px 18px -6px #000c; }
.tchest { display: grid; width: 52px; flex: none; filter: drop-shadow(0 3px 0 #0008); transform-origin: 50% 90%; }
.tchest .art { width: 100%; height: auto; }
.thl { display: grid; gap: 3px; } .thl em { font: 700 10.5px/1 var(--font-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #e9c98a; }
.thl b { font: 800 28px/1 var(--font-display); font-variant-numeric: tabular-nums; color: #ffe07a; text-shadow: 0 2px 0 #7a4a05; }
.thaul strong { font: 700 13px/1 var(--font-mono); color: #fff; background: #ffffff1f; border-radius: var(--r-pill); padding: 7px 11px; white-space: nowrap; }
.thaul.bump .tchest { animation: trBump 380ms var(--ease-pop); } .thaul.bump .thl b { animation: gaPop 320ms var(--ease-pop); }
@keyframes trBump { 0% { transform: scale(1); } 35% { transform: scale(1.18, .84); } 70% { transform: scale(.92, 1.12); } 100% { transform: scale(1); } }
.thaul.won { box-shadow: inset 0 0 0 2px #fff3b0, inset 0 3px 8px #000, 0 4px 0 #3a2408, 0 0 0 3px var(--g1), 0 0 34px 4px var(--g1); animation: gaPop 420ms var(--ease-pop); }
.thaul.won .tchest { width: 62px; margin: -8px 0; animation: gaSquash 620ms var(--ease); }
.thaul.won strong { color: var(--ink); background: linear-gradient(180deg, #a8ffd6, var(--success)); font-size: 15px; font-weight: 800; }
.thaul.lost { filter: saturate(.35); box-shadow: inset 0 0 0 2px #8a8f9a, inset 0 3px 8px #000, 0 4px 0 #20242c; }
.thaul.lost .tchest { animation: gaShake 420ms ease; } .thaul.lost .thl b { color: #c8cfdc; text-shadow: 0 2px 0 #20242c; } .thaul.lost strong { color: #ffb0b8; }
@media (max-width: 1100px) { .tsea .palm { width: 92px; } .tsea .compass { width: 60px; right: 1%; top: 14px; } .tsea .boat { width: 52px; right: 2%; } .tsea .torch { left: 2.5%; } .tsea .torch + .torch { right: 2.5%; } .tcan { width: 130px; } .tcan + .tcan + .tcan { width: 104px; } .truin { width: 66px; } .tparrot { width: 62px; } .tsarc { width: 62px; } .tvine { left: 10%; } .tvine + .tvine { right: 9%; } }
@media (max-width: 860px) { .tsea .palm, .tsea .compass, .tsea .boat, .board[data-map="tomb"] .tsea .torch, .truin, .tparrot, .tsarc, .tvine { display: none; } .tcan { width: 92px; left: -12px; top: -12px; } .tcan + .tcan { right: -12px; } .tcan + .tcan + .tcan { width: 74px; left: -12px; bottom: -12px; } .tcan + .tcan + .tcan + .tcan { right: -12px; } .tweb { width: 84px; } .tpile { width: 120px; height: 56px; bottom: -30px; } .tpile + .tpile { width: 150px; height: 64px; }
  .tmap { padding: 12px; gap: 6px; border-radius: 24px 22px 26px 20px; box-shadow: inset 0 3px 0 #ffffff80, inset 0 -6px 12px #00000059, 0 0 0 3px #fffffff2, 0 0 0 7px color-mix(in srgb, var(--m3) 55%, #ffffff 45%), 0 0 0 13px color-mix(in srgb, var(--m3) 62%, transparent), 0 20px 28px -4px #000a; } .tmap[data-map="island"]::before { inset: -17px; border-radius: 38px; } .tmap[data-map="jungle"] { border-radius: 18px; box-shadow: inset 0 3px 0 #ffffff59, inset 0 -6px 12px #00000073, 0 0 0 3px #1c3b12, 0 0 0 7px #8a5a22, 0 0 0 8px #c9914a, 0 0 0 10px #3a2408, 0 20px 28px -4px #000c; }
  .tm { border-radius: 10px; } .tm b { font-size: 10px; padding: 2px 4px; } .tmap[data-map="tomb"] { gap: 5px; padding: 10px; border-radius: 14px; box-shadow: inset 0 3px 0 #ffffff59, inset 0 -6px 12px #00000059, 0 0 0 3px var(--m3), 0 0 0 5px #5a2a05, 0 0 0 7px color-mix(in srgb, var(--m3) 60%, #fff), 0 0 30px 4px color-mix(in srgb, var(--m3) 45%, transparent), 0 20px 28px -4px #000a; } .tmap[data-map="tomb"] .tm .art { width: 52%; }
  #tr-digs svg { width: 26px; height: 26px; } .thaul { margin-top: 14px; gap: 9px; padding: 6px 12px 6px 8px; } .tchest { width: 44px; } .thl b { font-size: 23px; } .thaul strong { font-size: 12px; padding: 6px 9px; } }

/* ===== Lucky Slots: velvet cabinet, gold frame, marquee bulbs, cream reel windows ===== */
.slots { --cream: #fff4dc; --gold-d: #b8791a; position: relative; z-index: 1; display: grid; gap: 12px; justify-items: center; width: max-content; max-width: calc(100% - 20px); align-self: center; margin: 12px auto; padding: 14px 18px 14px; border-radius: 28px; border: 12px solid transparent;
  background: var(--grain) padding-box, radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--g1) 85%, #fff), transparent 70%) padding-box, linear-gradient(180deg, color-mix(in srgb, var(--g1) 62%, var(--g4)), color-mix(in srgb, var(--g1) 22%, var(--g4))) padding-box, linear-gradient(135deg, #fff3b0, var(--g2) 26%, var(--gold-d) 50%, var(--g2) 74%, #fff3b0) border-box;
  box-shadow: inset 0 0 0 2px #00000059, inset 0 6px 14px #0000008c, 0 0 0 2px #7a4a05, 0 8px 0 2px #4a0a22, 0 28px 44px -12px #000; }
/* chasing bulbs on the gold frame */
.bulbs, .bulbs::before, .bulbs::after { position: absolute; inset: -12px; border-radius: 28px; pointer-events: none; }
.bulbs::before, .bulbs::after { content: ""; inset: 0; --b: radial-gradient(circle, #fff 0 1.5px, #fff3b0 2px 2.6px, #7a4a05 3.2px 3.8px, transparent 4.2px);
  background: var(--b) 12px 2px / 28px 8px repeat-x, var(--b) 12px calc(100% - 2px) / 28px 8px repeat-x, var(--b) 2px 12px / 8px 28px repeat-y, var(--b) calc(100% - 2px) 12px / 8px 28px repeat-y; -webkit-mask: linear-gradient(#000 0 0) top / 100% 12px no-repeat, linear-gradient(#000 0 0) bottom / 100% 12px no-repeat, linear-gradient(#000 0 0) left / 12px 100% no-repeat, linear-gradient(#000 0 0) right / 12px 100% no-repeat; mask: linear-gradient(#000 0 0) top / 100% 12px no-repeat, linear-gradient(#000 0 0) bottom / 100% 12px no-repeat, linear-gradient(#000 0 0) left / 12px 100% no-repeat, linear-gradient(#000 0 0) right / 12px 100% no-repeat; animation: gaBlink 2s steps(1) infinite; }
.bulbs::after { background-position: 26px 2px, 26px calc(100% - 2px), 2px 26px, calc(100% - 2px) 26px; animation-delay: -1s; }
.slots.spin .bulbs::before, .slots.spin .bulbs::after, .slots.win3 .bulbs::before, .slots.win3 .bulbs::after { animation-duration: 2s; animation-timing-function: steps(1); }
.marq { position: relative; width: 100%; text-align: center; font: 800 20px/1 var(--font-display); letter-spacing: .04em; color: var(--ink); background: linear-gradient(180deg, #fffbe0, #fff3b0 30%, var(--g2) 70%, #f0b020); border-radius: 14px 14px 8px 8px; padding: 14px 12px; box-shadow: inset 0 2px 0 #fff, inset 0 -4px 0 var(--gold-d), 0 0 0 2px #7a4a05, 0 4px 0 2px #0000004d; }
.marq span { display: inline-flex; align-items: center; gap: 10px; text-shadow: 0 1px 0 #ffffff99; }
.marq span::before, .marq span::after { content: ""; width: 18px; height: 18px; background: var(--g1); clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); }
.reels { position: relative; display: flex; gap: 10px; justify-content: center; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #120414, color-mix(in srgb, var(--g4) 80%, #000)); box-shadow: inset 0 0 0 2px var(--gold-d), inset 0 0 0 3px #fff3b066, inset 0 6px 14px #000, 0 2px 0 #ffffff26; }
/* the win line: neon blue, with a pointer at each end */
.reels::after { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: var(--g3); box-shadow: 0 0 10px var(--g3); opacity: .75; pointer-events: none; z-index: 2; }
.reels::before { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 20px; margin-top: -10px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, #fff 0 100%) left / 10px 100% no-repeat, linear-gradient(90deg, #fff 0 100%) right / 10px 100% no-repeat; clip-path: polygon(0 0, 10px 50%, 0 100%, 0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 100% 0); filter: drop-shadow(0 0 4px var(--g3)); }
.reelw { position: relative; width: 96px; height: 288px; overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #c9ad78, var(--cream) 22%, #fffaf0 50%, var(--cream) 78%, #c9ad78); box-shadow: 0 0 0 2px #e3c98e, 0 0 0 3px #7a4a05; }
/* drum shading and glass glare over the symbols */
.reelw::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, #2a0a2e99 0, #2a0a2e33 9%, transparent 24%, transparent 76%, #2a0a2e33 91%, #2a0a2e99 100%), linear-gradient(100deg, #ffffff73 0 7%, #ffffff1f 16%, transparent 30%); box-shadow: inset 0 0 0 1px #ffffff80; }
.sym { height: 96px; display: grid; place-items: center; color: var(--sc); }
@media (min-width: 861px) { .reelw { width: 112px; height: 336px; } .sym { height: 112px; } .marq { font-size: 24px; } }
@media (max-width: 420px) { .reelw { width: 76px; height: 228px; } .sym { height: 76px; } .slots { padding: 10px 10px 10px; border-width: 10px; } .bulbs { inset: -10px; } .reels { gap: 7px; padding: 8px; } }
/* the reel strip; not the lobby .strip (that one is scoped to .row and .gmore) */
.reelw .strip { will-change: transform; }
/* while a reel runs at full speed (class set by spinReel in arcade-games-a.js) */
.reelw .strip.fast { filter: blur(2.5px); }
.reelw .strip.fast .sym { transform: scaleY(1.15); }
.sym span { width: 80%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, color-mix(in srgb, var(--sc) 30%, transparent), color-mix(in srgb, var(--sc) 12%, transparent) 62%, transparent 74%); }
.sym .art { width: 84%; height: 84%; filter: drop-shadow(0 3px 0 #2a0a2e40); }
.sbase { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 8px 12px; border-radius: 10px; background: linear-gradient(180deg, #120414, color-mix(in srgb, var(--g4) 70%, #000)); box-shadow: inset 0 0 0 1.5px var(--gold-d), inset 0 3px 8px #000; font: 700 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--g2); }
.sbase i { width: 26px; height: 8px; border-radius: 4px; background: #000; box-shadow: inset 0 0 0 1.5px var(--gold-d), 0 1px 0 #ffffff33; }
/* the lever: swings when a spin starts */
.lever { position: absolute; right: -52px; top: 34%; width: 30px; height: 150px; }
.lever::before { content: ""; position: absolute; left: -12px; bottom: 0; width: 34px; height: 44px; border-radius: 6px 12px 12px 6px; background: linear-gradient(90deg, var(--gold-d), var(--g2) 45%, #fff3b0 60%, var(--gold-d)); box-shadow: 0 0 0 2px #7a4a05, 0 4px 0 2px #4a0a22; }
.lever b { position: absolute; left: 8px; bottom: 22px; width: 9px; height: 112px; border-radius: 5px; background: linear-gradient(90deg, #8a93b8, #fff 40%, #c8cfe6 60%, #6a7396); box-shadow: 0 0 0 1.5px #2a0a2e; transform-origin: 50% 100%; }
.lever b::after { content: ""; position: absolute; left: 50%; top: -22px; width: 32px; height: 32px; margin-left: -16px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff 0 8%, #ff8a9c 20%, var(--g1) 55%, #9c0f28); box-shadow: 0 0 0 2px #2a0a2e, 0 4px 6px #0008; }
.slots.pull .lever b { animation: gaPull .7s var(--ease); }
@keyframes gaPull { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(58deg); } }
@media (max-width: 700px) { .lever { display: none; } }
.slots.win3, .slots.win2 { box-shadow: inset 0 0 0 2px #00000059, inset 0 6px 14px #0000008c, 0 0 0 2px #7a4a05, 0 8px 0 2px #4a0a22, 0 0 60px 6px var(--g2); }
.slots.win3 .reels::after, .slots.win2 .reels::after { height: 5px; margin-top: -2.5px; opacity: 1; background: #fff; box-shadow: 0 0 8px 2px var(--g3), 0 0 22px 6px var(--g3); }
.slots.win3 .strip .sym:nth-child(2) span, .slots.win2 .strip .sym.chy:nth-child(2) span { animation: gaPop 520ms var(--ease-pop) 3; background: radial-gradient(closest-side, #fff 0 58%, color-mix(in srgb, var(--g3) 60%, #fff) 66%, transparent 76%); }
.slots.win3 .strip .sym:not(:nth-child(2)) span, .slots.win2 .strip .sym:not(.chy:nth-child(2)) span { opacity: .62; }
#slots-table svg { flex: none; }
/* Lucky Slots, detail pass: the cabinet stands on a casino floor with a coin tray; the pay line runs behind the reels and wins light the symbols themselves */
.view[data-view="slots"] .game > .board::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 90% at 50% 40%, transparent 50%, #00000099), radial-gradient(46% 60% at 50% 0%, #ffd23d2e, transparent 70%), linear-gradient(74deg, transparent 30%, #ffffff0f 40%, transparent 50%), linear-gradient(106deg, transparent 50%, #ffffff0f 60%, transparent 70%),
    radial-gradient(18px 18px at 8% 22%, #ffd23d40, transparent), radial-gradient(26px 26px at 92% 16%, #3ad0ff33, transparent), radial-gradient(14px 14px at 14% 58%, #ff2e4d4d, transparent), radial-gradient(22px 22px at 88% 52%, #ffd23d33, transparent), radial-gradient(12px 12px at 4% 40%, #3ad0ff33, transparent), radial-gradient(16px 16px at 96% 36%, #ff6ac140, transparent),
    repeating-conic-gradient(from 45deg at 50% 50%, #00000033 0 25%, transparent 0 50%) 0 100% / 44px 44px, linear-gradient(0deg, color-mix(in srgb, var(--g1) 30%, #1a0420) 0 18%, transparent 18%); -webkit-mask: linear-gradient(#000, #000); }
.slots { margin-bottom: 46px; }
/* the base: a plinth and a coin tray under the cabinet */
.stray { position: absolute; left: 8%; right: 8%; bottom: -44px; height: 32px; border-radius: 6px 6px 16px 16px; background: radial-gradient(60% 90% at 50% 0%, #000 0 60%, transparent 62%), linear-gradient(90deg, var(--gold-d), var(--g2) 20%, #fff3b0 50%, var(--g2) 80%, var(--gold-d)); box-shadow: inset 0 -4px 0 #7a4a05, 0 0 0 2px #7a4a05, 0 6px 0 2px #4a0a22, 0 18px 22px -6px #000; }
.stray::before { content: ""; position: absolute; left: 24%; right: 24%; top: 3px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 20% 60%, #ffd23d 0 5px, transparent 6px), radial-gradient(circle at 42% 40%, #ffe07a 0 5px, transparent 6px), radial-gradient(circle at 62% 64%, #ffd23d 0 5px, transparent 6px), radial-gradient(circle at 80% 44%, #ffb52e 0 5px, transparent 6px); opacity: 0; transition: opacity .3s .3s; }
.slots.win3 .stray::before, .slots.win2 .stray::before { opacity: 1; }
.stray::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -16px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, #000000b3, transparent); z-index: -1; }
/* the pay line sits behind the reel windows: you see it in the gaps and at the two pointers */
.reelw { z-index: 1; }
.reels::after { z-index: 0; left: 0; right: 0; opacity: 1; }
.reels::before { z-index: 3; }
.slots.win3 .reels::after, .slots.win2 .reels::after { height: 3px; margin-top: -1.5px; background: #fff; box-shadow: 0 0 8px 2px var(--g3); }
/* the middle window of each reel: a quiet frame that lights up round a winning symbol */
.reelw::before { content: ""; position: absolute; left: 4px; right: 4px; top: calc(33.333% + 3px); height: calc(33.333% - 6px); border-radius: 12px; z-index: 2; pointer-events: none; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--g3) 55%, transparent); opacity: .7; }
.slots.win3 .reelw::before, .slots.win2 .reelw:has(.sym.chy:nth-child(2))::before { opacity: 1; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--g2), 0 0 0 7.5px #7a4a05, 0 0 26px 8px var(--g2), inset 0 0 20px color-mix(in srgb, var(--g2) 50%, transparent); animation: slFrame .5s ease-in-out 6 alternate; }
@keyframes slFrame { from { opacity: .55; } to { opacity: 1; } }
.slots.win3 .strip .sym:nth-child(2) .art, .slots.win2 .strip .sym.chy:nth-child(2) .art { animation: slSym .6s var(--ease) 3; }
@keyframes slSym { 0%, 100% { transform: none; } 40% { transform: scale(1.18) rotate(-5deg); } 70% { transform: scale(1.1) rotate(4deg); } }
.slots.lost .reelw::after { background: linear-gradient(180deg, #2a0a2eb3 0, #2a0a2e59 12%, #2a0a2e33 30%, #2a0a2e33 70%, #2a0a2e59 88%, #2a0a2eb3 100%), linear-gradient(100deg, #ffffff73 0 7%, #ffffff1f 16%, transparent 30%); }
/* the display under the reels */
.sbase span { min-width: 15ch; text-align: center; font-variant-numeric: tabular-nums; }
.slots.win3 .sbase, .slots.win2 .sbase { box-shadow: inset 0 0 0 1.5px var(--g2), inset 0 3px 8px #000, 0 0 18px 0 var(--g2); } .slots.win3 .sbase span, .slots.win2 .sbase span { color: #fff; font-size: 14px; text-shadow: 0 0 10px var(--g2); }
.slots.lost .sbase span { color: color-mix(in srgb, var(--g2) 50%, #8a7a8a); }
/* jackpot: the bulbs race and the marquee flashes */
.slots.jack .bulbs::before, .slots.jack .bulbs::after { animation-duration: .4s; }
.slots.jack .marq { animation: gaPulse .5s ease-in-out 8; }
.slots.win3 { animation: slHop 480ms var(--ease-pop); }
@keyframes slHop { 30% { transform: translateY(-8px) scale(1.015); } 60% { transform: translateY(2px) scale(.995, 1.005); } }
@media (max-width: 420px) { .stray { bottom: -40px; height: 28px; } }
/* Keno, detail pass: a lit draw hall, a ball blower feeding the rail, balls that fly to their numbers */
.view[data-view="keno"] .game > .board::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 95% at 50% 46%, transparent 50%, #00000099), linear-gradient(78deg, transparent 22%, #ffffff0d 32%, transparent 42%), linear-gradient(102deg, transparent 58%, #ffffff0d 68%, transparent 78%), radial-gradient(50% 40% at 50% 0%, color-mix(in srgb, var(--g1) 40%, transparent), transparent 70%),
    radial-gradient(20px 20px at 6% 18%, #ffd93d40, transparent), radial-gradient(30px 30px at 94% 24%, #c08cff40, transparent), radial-gradient(16px 16px at 10% 70%, #3aa0ff4d, transparent), radial-gradient(24px 24px at 92% 78%, #ffd93d33, transparent), radial-gradient(12px 12px at 3% 46%, #c08cff40, transparent), radial-gradient(14px 14px at 97% 52%, #3aa0ff40, transparent),
    radial-gradient(#ffffff0f 1.5px, transparent 2px) 0 0 / 26px 26px; }
.kinfo span { box-shadow: inset 0 1px 0 #ffffff1f, 0 4px 10px -6px #000; }
.kinfo span.bump { animation: gaPop 300ms var(--ease-pop); }
.kinfo .kp.on { color: var(--ink); background: linear-gradient(180deg, #fff3b0, var(--g2)); border-color: #fff; } .kinfo .kp.on b { color: var(--ink); }
.board.kwon .kinfo .kp { animation: gaPop 420ms var(--ease-pop); box-shadow: 0 0 0 2px #fff, 0 0 20px 2px var(--g2); }
.board.klost .keno { filter: saturate(.7) brightness(.9); transition: filter .4s var(--ease); }
/* rack detail: screws in the corners and a glass glare */
.keno::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(3px 3px at 9px 9px, #fff 0 30%, #8fb8ff 50%, #0b1245 80%, transparent), radial-gradient(3px 3px at calc(100% - 9px) 9px, #fff 0 30%, #8fb8ff 50%, #0b1245 80%, transparent), radial-gradient(3px 3px at 9px calc(100% - 9px), #fff 0 30%, #8fb8ff 50%, #0b1245 80%, transparent), radial-gradient(3px 3px at calc(100% - 9px) calc(100% - 9px), #fff 0 30%, #8fb8ff 50%, #0b1245 80%, transparent), linear-gradient(112deg, transparent 12%, #ffffff12 20%, transparent 30%); }
.kn.hit { animation: knHit 420ms var(--ease-pop); }
@keyframes knHit { 0% { transform: scale(.6); } 45% { transform: scale(1.28); } 70% { transform: scale(.94); } 100% { transform: scale(1); } }
.kn.drawn { animation: knSink 300ms var(--ease); }
@keyframes knSink { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }
/* the machine: a glass globe of tumbling balls with a chute to the rail */
.kmach { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; align-self: center; width: max-content; max-width: 100%; }
.kglobe { position: relative; flex: none; width: 76px; height: 76px; margin-right: -12px; z-index: 1; border-radius: 50%; background: radial-gradient(circle at 32% 24%, #ffffffb3 0 6%, #ffffff33 14%, transparent 30%), radial-gradient(circle at 50% 50%, #ffffff0d 0 56%, #ffffff26 64%, color-mix(in srgb, var(--g1) 50%, transparent) 72%); box-shadow: inset 0 0 0 2.5px #ffffff8c, inset 0 -10px 16px #00000073, 0 0 0 3px #0b1245, 0 0 0 5px var(--g2), 0 0 0 6.5px #7a4a05, 0 10px 14px -4px #000c; }
.kglobe::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -13px; height: 14px; border-radius: 3px 3px 8px 8px; background: linear-gradient(90deg, #b8791a, var(--g2) 45%, #fff3b0 60%, #b8791a); box-shadow: 0 0 0 1.5px #7a4a05, 0 4px 6px #0008; z-index: -1; }
.kglobe i { position: absolute; left: calc(14% + var(--x) * 1%); top: calc(48% + var(--y) * 1%); width: 17px; height: 17px; border-radius: 50%; background: radial-gradient(circle at 34% 26%, #fff, var(--c) 52%, color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 1px 0 #0006; animation: knTumble 2.4s ease-in-out infinite; animation-delay: calc(var(--d) * -1s); }
.kglobe i:nth-child(1) { --x: 4; --y: 22; --c: var(--g1); --d: 0; } .kglobe i:nth-child(2) { --x: 28; --y: 26; --c: var(--g2); --d: .4; } .kglobe i:nth-child(3) { --x: 50; --y: 20; --c: var(--g3); --d: .9; } .kglobe i:nth-child(4) { --x: 16; --y: 6; --c: #fff; --d: 1.3; }
.kglobe i:nth-child(5) { --x: 40; --y: 6; --c: var(--g1); --d: 1.7; } .kglobe i:nth-child(6) { --x: 28; --y: -12; --c: var(--g3); --d: .6; } .kglobe i:nth-child(7) { --x: 8; --y: -8; --c: var(--g2); --d: 2; }
@keyframes knTumble { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2px, -3px); } }
.kmach.run .kglobe i { animation: knBlow .42s ease-in-out infinite alternate; }
@keyframes knBlow { 0% { transform: translate(-6px, 8px) rotate(0); } 50% { transform: translate(9px, -26px) rotate(90deg); } 100% { transform: translate(-3px, -12px) rotate(180deg); } }
.kmach.run .kglobe { animation: gaShake .5s linear infinite; }
.krail { padding-left: 24px; border-radius: 12px var(--r-pill) var(--r-pill) 12px; background: linear-gradient(180deg, #ffffff1f, transparent 30%), rgba(8, 9, 18, .66); box-shadow: inset 0 3px 8px #0009, inset 0 0 0 1px #ffffff14, 0 6px 12px -6px #000; }
.kfly { position: absolute; z-index: 6; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; pointer-events: none; font: 800 13px var(--font-mono); font-style: normal; color: #fff; background: radial-gradient(circle at 34% 26%, #fff, var(--g1) 46%, color-mix(in srgb, var(--g1) 50%, var(--g4))); box-shadow: 0 0 0 2px #fff, 0 0 16px 2px var(--g1), 0 6px 8px #0008; }
.kfly.hit { color: #5a3200; background: radial-gradient(circle at 34% 26%, #fff8c8, var(--g2) 50%, #f0a020); box-shadow: 0 0 0 2px #fff, 0 0 18px 4px var(--g2), 0 6px 8px #0008; }
@media (max-width: 560px) { .kglobe { width: 54px; height: 54px; margin-right: -9px; } .kglobe i { width: 12px; height: 12px; } .krail { padding-left: 16px; } .kfly { width: 28px; height: 28px; font-size: 11px; } }
/* Scratch Cards, detail pass: the ticket is dealt in, winners light up, a losing ticket fades */
.view[data-view="scratch"] .game > .board::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 95% at 50% 46%, transparent 48%, #00000099), radial-gradient(50% 44% at 50% 46%, #ffffff1f, transparent 70%), repeating-linear-gradient(90deg, transparent 0 58px, #0000002e 58px 60px, #ffffff0a 60px 61px), repeating-linear-gradient(90deg, #ffffff05 0 3px, transparent 3px 7px), linear-gradient(180deg, color-mix(in srgb, #8a4a1a 46%, var(--g4)), color-mix(in srgb, #5a2a0a 40%, var(--g4))); }
.sticket.deal { animation: scDeal 420ms var(--ease-pop); }
@keyframes scDeal { 0% { transform: translateY(-40px) rotate(-5deg) scale(.94); opacity: .3; } 70% { transform: translateY(4px) rotate(1deg); opacity: 1; } 100% { transform: none; } }
.sticket.won { box-shadow: inset 0 1px 0 #ffffff80, inset 0 0 0 2px #ffffff26, 0 6px 0 #7a1650, 0 0 0 3px #fff3b0, 0 0 44px 6px var(--g3), 0 24px 40px -16px #000; animation: gaPop 420ms var(--ease-pop); }
.sticket.lost { filter: saturate(.6) brightness(.9); transition: filter .4s var(--ease); }
.sgrid div.win i { animation: gaTwinkle 1.2s ease-in-out infinite; animation-name: scCoin; }
@keyframes scCoin { 0%, 100% { transform: none; } 50% { transform: translateY(-4px) scale(1.2) rotate(12deg); } }
/* a holographic sheen that slides over the unscratched foil */
.scard::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 34%, #ffffff8c 46%, transparent 58%); animation: scSheen 4.5s ease-in-out infinite; opacity: .5; }
@keyframes scSheen { 0%, 40% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.sgrid.done ~ canvas { pointer-events: none; }
.scard:has(.sgrid.done)::after { display: none; }
.scoin { animation: gaBob 3.4s ease-in-out infinite; }
/* phones: one toast at a time in these games, so a stack never covers the controls */
@media (max-width: 699px) { body:has(.view:is([data-view="tower"], [data-view="coinflip"], [data-view="dice3d"], [data-view="keno"], [data-view="scratch"], [data-view="boxes"], [data-view="hilo"], [data-view="treasure"], [data-view="slots"]):not([hidden])) #toasts .toast:not(:last-child) { display: none; } }
/* phones: the notice docks under the top bar, so it never hides the stuck Bet / Cash out button (chat open keeps its own slot) */
@media (max-width: 699px) { body:has(.view:is([data-view="tower"], [data-view="coinflip"], [data-view="dice3d"], [data-view="keno"], [data-view="scratch"], [data-view="boxes"], [data-view="hilo"], [data-view="treasure"], [data-view="slots"]):not([hidden])):not(:has(.chat:not([hidden]))) #toasts { bottom: auto; top: calc(var(--top-h) + 8px + env(safe-area-inset-top, 0px)); } }

/* ================= Detail pass, round 2 ================= */
/* shared stage pieces: floating numbers keep their own width, a stamped result plate, confetti, smoke */
.game > .board > .fxnum, .game > .board > .fxban { width: auto; }
.fxp.smoke { background: radial-gradient(circle, var(--c) 0 25%, transparent 70%); opacity: .6; }
.fxp.card { border-radius: 2px; clip-path: polygon(0 12%, 86% 0, 100% 74%, 34% 100%); background: linear-gradient(135deg, #fffdf6, var(--c)); box-shadow: inset 0 0 0 1px #e3c98e; }
.fxp.curl { border-radius: 60% 30% 55% 35%; background: linear-gradient(120deg, #f4f6fa, var(--c) 55%, #6f7686); box-shadow: inset -1px -1px 0 #0000004d; }
.fxban { position: absolute; z-index: 8; pointer-events: none; transform: translate(-50%, -50%); display: grid; place-items: center; }
.fxb-r { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; opacity: .0; background: repeating-conic-gradient(#fff3b000 0deg, #fff3b0b3 5deg, #fff3b000 10deg, #fff3b000 20deg); -webkit-mask: radial-gradient(closest-side, #000 26%, transparent 78%); mask: radial-gradient(closest-side, #000 26%, transparent 78%); }
.fxban.t2 .fxb-r, .fxban.t3 .fxb-r { opacity: .75; animation: rays 18s linear infinite; }
.fxban.t3 .fxb-r { width: 620px; height: 620px; margin: -310px 0 0 -310px; opacity: .95; }
.fxb-p { position: relative; display: grid; justify-items: center; gap: 5px; padding: 11px 30px 13px; border-radius: 14px; color: #3a2203; white-space: nowrap; transform: rotate(-3deg); animation: fxBan 520ms var(--ease-pop) both;
  background: radial-gradient(4px 4px at 10px 10px, #fff8c8 35%, #7a4a05 62%, transparent 72%), radial-gradient(4px 4px at calc(100% - 10px) 10px, #fff8c8 35%, #7a4a05 62%, transparent 72%), radial-gradient(4px 4px at 10px calc(100% - 10px), #fff8c8 35%, #7a4a05 62%, transparent 72%), radial-gradient(4px 4px at calc(100% - 10px) calc(100% - 10px), #fff8c8 35%, #7a4a05 62%, transparent 72%), linear-gradient(104deg, transparent 22%, #ffffff8c 30%, transparent 40%, transparent 62%, #ffffff40 68%, transparent 76%), linear-gradient(180deg, #fffbe0, #ffd95a 42%, #f0a020 78%, #c97a0c);
  box-shadow: inset 0 2px 0 #fff, inset 0 0 0 2px #7a4a05, inset 0 0 0 4px #fff3b099, inset 0 -5px 0 #b8780c80, 0 5px 0 #7a4a05, 0 7px 0 #3a2203, 0 0 0 4px #1a0b0bb3, 0 22px 34px -8px #000, 0 0 60px 6px #ffd23f73; }
.fxb-p small { font: 800 15px/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; margin-right: -.16em; color: #5a3200; text-shadow: 0 1px 0 #ffffffb3; }
.fxb-p b { font: 800 40px/1 var(--font-display); font-variant-numeric: tabular-nums; color: #2a1500; text-shadow: 0 2px 0 #fff3b0, 0 -1px 0 #7a4a0566; }
.fxb-p em { font: 700 11.5px/1 var(--font-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #3a2203; border-radius: var(--r-pill); padding: 4px 10px; }
.fxban.t1 .fxb-p { padding: 9px 22px 10px; } .fxban.t1 .fxb-p small { font-size: 12.5px; } .fxban.t1 .fxb-p b { font-size: 30px; }
.fxban.t3 .fxb-p { padding: 15px 40px 18px; border-radius: 18px; } .fxban.t3 .fxb-p small { font-size: 20px; } .fxban.t3 .fxb-p b { font-size: 58px; }
.fxban.t3 .fxb-p::after { content: ""; position: absolute; inset: -9px; border-radius: 24px; border: 3px dotted #fff8c8; animation: gaBlink .5s steps(1) infinite; }
/* a rubber stamp for the losing beat */
.fxban.lose .fxb-p { transform: rotate(-8deg); color: #ffd0d6; background: linear-gradient(180deg, rgba(60, 8, 20, .88), rgba(36, 4, 12, .82)); box-shadow: inset 0 0 0 3px #ff7a8c, inset 0 0 0 5px #3c0814, inset 0 0 0 6.5px #ff7a8c99, 0 10px 22px -8px #000; animation-name: fxStamp; }
.fxban.lose .fxb-p small { color: #ff9aa8; text-shadow: none; font-size: 22px; } .fxban.lose .fxb-p em { background: #ff7a8c33; color: #ffd0d6; }
@keyframes fxBan { 0% { transform: rotate(-12deg) scale(.2); opacity: 0; } 55% { transform: rotate(-1deg) scale(1.12); opacity: 1; } 78% { transform: rotate(-4deg) scale(.97); } 100% { transform: rotate(-3deg) scale(1); opacity: 1; } }
@keyframes fxStamp { 0% { transform: rotate(-8deg) scale(2.2); opacity: 0; } 55% { transform: rotate(-8deg) scale(.92); opacity: 1; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }
@media (max-width: 560px) { .fxb-p { padding: 9px 20px 11px; } .fxb-p b { font-size: 30px; } .fxb-p small { font-size: 12.5px; } .fxban.t3 .fxb-p { padding: 12px 24px 14px; } .fxban.t3 .fxb-p b { font-size: 40px; } .fxban.t3 .fxb-p small { font-size: 15px; } .fxban.t1 .fxb-p b { font-size: 25px; } .fxb-r, .fxban.t3 .fxb-r { width: 330px; height: 330px; margin: -165px 0 0 -165px; } }
/* on wide screens one notice at a time sits over the search box in these games (same slot the original games use), clear of the stage, the balance and the game header */
@media (min-width: 700px) { body:has(.view:is([data-view="tower"], [data-view="coinflip"], [data-view="dice3d"], [data-view="keno"], [data-view="scratch"], [data-view="boxes"], [data-view="hilo"], [data-view="treasure"], [data-view="slots"]):not([hidden])) #toasts { top: calc(6px + env(safe-area-inset-top, 0px)); bottom: auto; align-items: start; }
  body:has(.view:is([data-view="tower"], [data-view="coinflip"], [data-view="dice3d"], [data-view="keno"], [data-view="scratch"], [data-view="boxes"], [data-view="hilo"], [data-view="treasure"], [data-view="slots"]):not([hidden])) #toasts { right: auto; left: calc(var(--side-w, 248px) + 16px); width: min(366px, calc(100vw - 28px)); }
  body:has(.view:is([data-view="tower"], [data-view="coinflip"], [data-view="dice3d"], [data-view="keno"], [data-view="scratch"], [data-view="boxes"], [data-view="hilo"], [data-view="treasure"], [data-view="slots"]):not([hidden])) #toasts .toast:not(:last-child) { display: none; } }
/* narrower top bars (no sidebar): the notice stays left of the level chip and balance, over the search box, or over the logo when there is no search box */
@media (min-width: 900px) and (max-width: 1099px) { body:has(.view:is([data-view="tower"], [data-view="coinflip"], [data-view="dice3d"], [data-view="keno"], [data-view="scratch"], [data-view="boxes"], [data-view="hilo"], [data-view="treasure"], [data-view="slots"]):not([hidden])) #toasts { left: 177px; width: min(366px, calc(100vw - 560px)); } }
@media (min-width: 700px) and (max-width: 899px) { body:has(.view:is([data-view="tower"], [data-view="coinflip"], [data-view="dice3d"], [data-view="keno"], [data-view="scratch"], [data-view="boxes"], [data-view="hilo"], [data-view="treasure"], [data-view="slots"]):not([hidden])) #toasts { left: 64px; width: min(366px, calc(100vw - 447px)); } }
/* word buttons in the control column use the body face; mono is for numbers */
#keno-quick, #keno-clear, #scratch-all { font-family: var(--font-body); }
/* under the board Reveal all stays next to Buy card */
@media (max-width: 860px) { .view[data-view="scratch"] .ctrl > #scratch-all { order: -2; } }

/* ===== Coin Flip, round 2: a coin table under a brass lamp. Papered wall, wood top, felt dish with a spring pad, coin stacks, an engraved tally ===== */
.view { --wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .22' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.5 -.5'/%3E%3C/filter%3E%3Crect width='600' height='300' filter='url(%23w)' opacity='.5'/%3E%3C/svg%3E"); }
:root[data-q="low"] .view { --wood: none; }
.cbg { position: absolute; inset: 0; width: auto; pointer-events: none; border-radius: inherit; overflow: hidden; }
.cbg > i { position: absolute; }
.cwall { inset: 0 0 44%; background: var(--grain), radial-gradient(60% 90% at 50% 0%, #ffe9b033, transparent 70%), repeating-linear-gradient(45deg, transparent 0 21px, #7df0e21a 21px 22px), repeating-linear-gradient(-45deg, transparent 0 21px, #7df0e21a 21px 22px), radial-gradient(circle at 15.5px 15.5px, #ffcf3d40 0 1.6px, transparent 2.2px) 0 0 / 31.1px 31.1px, linear-gradient(180deg, #0d4a52, #0a3a41 60%, #072c32); }
/* the chair rail and wainscot under the paper */
.cwall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(180deg, #caa06a 0 2px, #7a4a22 2px 9px, #3a2010 9px 11px, transparent 11px), repeating-linear-gradient(90deg, #00000000 0 118px, #00000059 118px 120px, #ffffff14 120px 121px), linear-gradient(180deg, #5a3418, #432410); box-shadow: 0 -6px 14px #0006; }
.cframe { left: 6%; top: 11%; width: 84px; height: 104px; border-radius: 4px; opacity: .8; background: radial-gradient(circle at 50% 46%, #ffe07a 0 15px, #b8780c 15.5px 17px, #0a3a41 17.500px 21px, transparent 21.500px), radial-gradient(circle at 50% 46%, transparent 0 26px, #ffcf3d59 26.500px 27.500px, transparent 28px), linear-gradient(160deg, #134f57, #0a3138); box-shadow: inset 0 0 0 2px #06262b, inset 0 0 14px #000a, 0 0 0 5px #b8862a, 0 0 0 6px #fff3b080, 0 0 0 8px #6b4a10, 0 10px 14px -2px #0009; }
.cframe.b { left: auto; right: 6%; top: 15%; width: 96px; height: 78px; background: radial-gradient(circle at 34% 54%, #7df0e2 0 13px, #0a7d70 13.500px 15px, transparent 15.500px), radial-gradient(circle at 64% 44%, #ffe07a 0 15px, #b8780c 15.500px 17px, transparent 17.500px), linear-gradient(160deg, #134f57, #0a3138); }
.ctable { left: 0; right: 0; bottom: 0; height: 44%; background: radial-gradient(54% 78% at 50% 46%, #ffe9b06b, transparent 72%), var(--wood) 0 0 / 600px 300px, repeating-linear-gradient(90deg, transparent 0 148px, #0000004d 148px 150px, #ffffff12 150px 151px), linear-gradient(180deg, #9a6236, #7a4a26 40%, #55301a); box-shadow: inset 0 2px 0 #ffd9a080, inset 0 5px 0 #c08a52, inset 0 7px 0 #3a2010, inset 0 26px 30px -14px #000a, inset 0 -40px 50px -20px #000c; }
/* the lamp: a cord, a brass shade, the bulb's glow and a soft cone of light */
.clamp { left: 50%; top: -4px; width: 124px; height: 50px; margin-left: -62px; clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%); background: linear-gradient(90deg, #6b4a10, #e8b84a 26%, #fff3b0 44%, #e8b84a 58%, #8a6418 82%, #4a320a); box-shadow: inset 0 -5px 0 #5a3c08; }
.ccone { left: 50%; top: 40px; width: 96%; height: 78%; margin-left: -48%; background: conic-gradient(from 148deg at 50% 0%, #fff3c000 0deg, #fff3c038 16deg, #fff3c05c 32deg, #fff3c038 48deg, #fff3c000 64deg); -webkit-mask: linear-gradient(180deg, #000 20%, transparent 96%); mask: linear-gradient(180deg, #000 20%, transparent 96%); transition: opacity .5s var(--ease); }
.cmote::before { content: ""; position: absolute; left: 50%; top: -14%; width: 240px; height: 110px; margin-left: -120px; border-radius: 50%; background: radial-gradient(closest-side, #fffbe0e6, #ffe9b073 34%, transparent); }
.cmote { inset: 12% 22% 40%; opacity: .8; animation: gaBob 9s ease-in-out infinite; background: radial-gradient(2px 2px at 20% 30%, #fff8c8, transparent), radial-gradient(1.5px 1.5px at 62% 18%, #fff8c8, transparent), radial-gradient(2px 2px at 78% 56%, #fff8c8b3, transparent), radial-gradient(1.5px 1.5px at 36% 72%, #fff8c8b3, transparent), radial-gradient(1.5px 1.5px at 50% 44%, #fff8c8, transparent), radial-gradient(1px 1px at 12% 62%, #fff8c8, transparent), radial-gradient(1px 1px at 88% 30%, #fff8c8, transparent); }
.cvg { inset: 0; background: radial-gradient(110% 92% at 50% 44%, transparent 46%, #000000a6); }
.board:has(.scene.lost) .ccone { opacity: .45; }
:root[data-q="low"] .cmote { animation: none; }
/* the dish: a turned wooden tray with a brass band, stitched felt and a flash when the coin lands */
.cmat { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--g1) 85%, #fff), inset 0 0 0 5px #0000004d, inset 0 0 0 12px #ffffff14, inset 0 -14px 26px #0000008c, 0 0 0 2px #6b4200, 0 0 0 9px #8a5630, 0 -2px 0 9px #c08a52, 0 0 0 11px #3a2010, 0 9px 0 10px #2a1608, 0 30px 30px -4px #000c; outline: 1.5px dashed #d6fff859; outline-offset: -17px; }
.cmat::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, #ffffff00 52%, #fffbe0 84%, #ffffff00 100%); }
.cmat.hit::after { animation: cfRim 520ms ease-out; } .scene.won .cmat::after { animation: cfRim 620ms ease-out 3; }
@keyframes cfRim { 0% { opacity: 1; transform: scale(.86); } 100% { opacity: 0; transform: scale(1.12); } }
/* the spring pad that throws the coin */
.cpad { position: absolute; left: calc(50% + 138px); bottom: 54px; width: 40px; height: 18px; border-radius: 4px; background: radial-gradient(2.5px 2.5px at 7px 50%, #fff8c8 30%, #5a3c08 60%, transparent 70%), radial-gradient(2.5px 2.5px at calc(100% - 7px) 50%, #fff8c8 30%, #5a3c08 60%, transparent 70%), linear-gradient(180deg, #fff3b0, #e8b84a 45%, #9a6c1a); box-shadow: 0 0 0 1.5px #3a2408, 0 4px 0 #5a3c08, 0 8px 8px #000a; }
.cpad b { position: absolute; right: 12px; bottom: 12px; width: 78px; height: 9px; border-radius: 5px 3px 3px 5px; transform-origin: 100% 50%; transform: rotate(14deg); background: linear-gradient(180deg, #fff, #c8cfe6 45%, #6a7396); box-shadow: 0 0 0 1.5px #20264a, 0 5px 5px #0008; }
.cpad b::before { content: ""; position: absolute; left: -9px; top: -6px; width: 22px; height: 21px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff 0 10%, #ff8a9c 24%, #ff3b5c 56%, #9c0f28); box-shadow: 0 0 0 1.5px #3a0612, 0 3px 4px #0008; }
.scene.toss .cpad b { animation: cfPad 620ms var(--ease-pop); }
@keyframes cfPad { 0% { transform: rotate(14deg); } 10% { transform: rotate(-5deg); } 22% { transform: rotate(52deg); } 55% { transform: rotate(4deg); } 78% { transform: rotate(18deg); } 100% { transform: rotate(14deg); } }
/* coin stacks and loose coins on the table */
.cpile { position: absolute; left: calc(50% - 262px); bottom: 34px; display: grid; justify-items: center; filter: drop-shadow(0 12px 6px #0009); }
.cpile.b { left: calc(50% - 212px); bottom: 12px; } .cpile.c { left: calc(50% + 208px); bottom: 26px; }
.cpile i { display: block; width: 54px; height: 20px; margin-top: -13px; border-radius: 50%; background: radial-gradient(60% 50% at 38% 34%, #fffbe0, transparent 70%), radial-gradient(closest-side, #ffe07a 0 56%, #c98a12 60% 66%, #ffd95a 70%); box-shadow: inset 0 0 0 1.5px #b8780c, 0 1.5px 0 #f0a020, 0 3px 0 #b8780c, 0 4.5px 0 #f0a020, 0 6px 0 #8a5a06, 0 7px 0 #0008; }
.cpile i:first-child { margin-top: 0; } .cpile i:nth-child(odd) { transform: translateX(2px); } .cpile i:nth-child(3n) { transform: translateX(-3px); }
.cpile.c i { background: radial-gradient(60% 50% at 38% 34%, #f0fffc, transparent 70%), radial-gradient(closest-side, #8df2e6 0 56%, #0a7d70 60% 66%, #1fd6c1 70%); box-shadow: inset 0 0 0 1.5px #0a7d70, 0 1.5px 0 #1fd6c1, 0 3px 0 #0a7d70, 0 4.5px 0 #1fd6c1, 0 6px 0 #05403a, 0 7px 0 #0008; }
.cloose { position: absolute; left: calc(50% - 176px); bottom: -8px; width: 50px; height: 22px; border-radius: 50%; transform: rotate(-8deg); background: radial-gradient(60% 50% at 38% 34%, #fffbe0, transparent 70%), radial-gradient(closest-side, #ffe07a 0 56%, #c98a12 60% 66%, #ffd95a 70%); box-shadow: inset 0 0 0 1.5px #b8780c, 0 3px 0 #b8780c, 0 4px 0 #6b4200, 0 8px 6px #0009; }
.cloose.b { left: calc(50% + 150px); bottom: -2px; width: 44px; height: 18px; transform: rotate(10deg); }
@media (max-width: 1100px) { .cpile { left: calc(50% - 226px); } .cpile.b { left: calc(50% - 190px); } .cpile.c { left: calc(50% + 176px); } .cframe { display: none; } }
@media (max-width: 860px) { .cpile, .cpile.b { left: 0; bottom: 84px; transform: scale(.72); transform-origin: 0 100%; } .cpile.b { left: 32px; bottom: 70px; } .cpile.c { left: auto; right: 0; bottom: 84px; transform: scale(.72); transform-origin: 100% 100%; } .cpad, .cloose { display: none; } .clamp { width: 96px; margin-left: -48px; height: 40px; } .ccone { top: 32px; } }
/* the faces: minted relief in the coin's own metal */
.coin3d .face { overflow: hidden; --e1: var(--c1); --e2: var(--c2); --e3: var(--c3); --ei: var(--ci); --ej: #ff4d6a; }
.coin3d .face.t { --e1: var(--t1); --e2: var(--t2); --e3: var(--t3); --ei: var(--ti); }
.coin3d .face .cface { position: absolute; inset: 0; width: 100%; height: 100%; }
.cface .ce-m { fill: var(--e2); stroke: var(--ei); stroke-width: 2.4; stroke-linejoin: round; } .cface .ce-d { fill: var(--ei); stroke: var(--ei); stroke-linejoin: round; opacity: .5; } .cface .ce-l { fill: #fff; stroke: #fff; stroke-linejoin: round; opacity: .85; }
.cface .ce-bd circle { fill: var(--e1); stroke: var(--e3); stroke-width: .9; }
.cface .ce-ln { fill: none; stroke: var(--e3); stroke-width: 1.7; } .cface .ce-ln2 { fill: none; stroke: var(--ei); stroke-width: 1.2; stroke-dasharray: .1 4; stroke-linecap: round; opacity: .6; }
.cface .ce-t { font: 800 22px var(--font-display); letter-spacing: 6px; fill: var(--ei); paint-order: stroke; stroke: #ffffff99; stroke-width: 1.4px; stroke-linejoin: round; } .cface .ce-t.s { font-size: 10.5px; letter-spacing: 3.2px; stroke-width: 1px; }
.cface .ce-w ellipse { fill: var(--e2); stroke: var(--ei); stroke-width: 1.3; } .cface .ce-j { fill: var(--ej); stroke: var(--ei); stroke-width: 1.8; }
.cface .ce-i { fill: var(--ei); opacity: .82; } .cface .ce-hl { fill: none; stroke: #fff; stroke-opacity: .75; stroke-width: 3.4; stroke-linecap: round; }
.cface .ce-fd { fill: #000; opacity: .2; } .cface .ce-fl { fill: #fff; opacity: .38; } .cface .ce-o { fill: none; stroke: var(--ei); stroke-width: 2.4; stroke-linejoin: round; }
/* a glint that travels across the face now and then */
.cgl { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; }
.cgl::before { content: ""; position: absolute; left: 0; top: -30%; width: 34%; height: 160%; background: linear-gradient(90deg, transparent, #ffffffd9 46%, #ffffff 50%, #ffffffd9 54%, transparent); transform: translateX(-160%) rotate(24deg); animation: cfGlint 4.6s ease-in-out infinite; }
@keyframes cfGlint { 0%, 62% { transform: translateX(-160%) rotate(24deg); } 100% { transform: translateX(420%) rotate(24deg); } }
:root[data-q="low"] .cgl::before { animation: none; }
.scene.lost .cgl { display: none; }
/* the blur of a spinning coin in the air */
.cblur { position: absolute; left: 50%; top: 0; width: 150px; height: 270px; margin-left: -75px; opacity: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 11px, #fff6cf33 11px 12.500px, transparent 12.500px 19px), radial-gradient(closest-side, color-mix(in srgb, var(--g1) 55%, transparent), transparent); -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); mask: radial-gradient(closest-side, #000 30%, transparent); }
.scene.toss .cblur { animation: cfBlur 1.8s linear; }
@keyframes cfBlur { 0%, 4% { opacity: 0; transform: translateY(40px) scaleY(.5); } 20% { opacity: .9; transform: translateY(0) scaleY(1); } 60% { opacity: .8; } 77%, 100% { opacity: 0; transform: translateY(40px) scaleY(.6); } }
.board.cshake > .scene .cstage { animation: gaShake 420ms ease; }
/* result plates: a gold plaque for a win, stitched oxblood leather for a loss */
.coin-res { background: linear-gradient(180deg, rgba(6, 30, 34, .9), rgba(4, 20, 24, .82)); border: 0; box-shadow: inset 0 1px 0 #ffffff33, inset 0 0 0 1.5px color-mix(in srgb, var(--g1) 60%, transparent), 0 4px 0 #021214, 0 12px 18px -8px #000; }
.coin-res.win { color: #3a2203; border: 0; background: linear-gradient(104deg, transparent 20%, #ffffff8c 30%, transparent 40%), linear-gradient(180deg, #fffbe0, #ffd95a 42%, #f0a020 80%, #c97a0c); box-shadow: inset 0 2px 0 #fff, inset 0 0 0 2px #7a4a05, inset 0 0 0 4px #fff3b099, 0 5px 0 #7a4a05, 0 7px 0 #3a2203, 0 0 44px 4px #ffd23f80, 0 18px 24px -8px #000; }
.coin-res.win.t { background: linear-gradient(104deg, transparent 20%, #ffffff8c 30%, transparent 40%), linear-gradient(180deg, #f0fffc, #7df0e2 42%, #1fd6c1 80%, #0a9a8a); box-shadow: inset 0 2px 0 #fff, inset 0 0 0 2px #05403a, inset 0 0 0 4px #d6fff899, 0 5px 0 #05403a, 0 7px 0 #021f1c, 0 0 44px 4px #1fd6c180, 0 18px 24px -8px #000; }
.coin-res.win b { color: #5a3200; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; text-shadow: 0 1px 0 #ffffffb3; } .coin-res.win.t b { color: #05403a; }
.coin-res.win em { color: #2a1500; font-size: 40px; text-shadow: 0 2px 0 #fff3b0; } .coin-res.win.t em { color: #032a26; text-shadow: 0 2px 0 #d6fff8; }
.coin-res.lose { color: #ffd0d6; border: 0; background: linear-gradient(180deg, rgba(74, 12, 26, .92), rgba(44, 6, 16, .88)); box-shadow: inset 0 1px 0 #ffffff26, inset 0 0 0 1.5px #1c0308, 0 0 0 0 #000, 0 4px 0 #1c0308, 0 12px 18px -8px #000; outline: 1.5px dashed #ff9aa880; outline-offset: -6px; }
.coin-res.lose b { color: #ffb0ba; } .coin-res.lose em { font-size: 26px; color: #ff7a8c; }


/* ===== Lucky Slots, round 2: a chrome and velvet cabinet on a casino floor, shaded symbols, a lit pay line and a payout that pours ===== */
.view[data-view="slots"] .game > .board::before { background: radial-gradient(120% 90% at 50% 40%, transparent 50%, #00000099), radial-gradient(50% 62% at 50% 0%, #ffd23d38, transparent 70%), linear-gradient(74deg, transparent 30%, #ffffff0f 40%, transparent 50%), linear-gradient(106deg, transparent 50%, #ffffff0f 60%, transparent 70%),
    radial-gradient(circle at 17px 17px, #ffd23d24 0 2px, transparent 3px) 0 0 / 34px 34px, radial-gradient(circle at 17px 17px, #ff6ac11f 0 1.5px, transparent 2.5px) 17px 17px / 34px 34px, repeating-linear-gradient(90deg, #ffffff08 0 34px, transparent 34px 68px), linear-gradient(180deg, color-mix(in srgb, var(--g1) 24%, #200524), color-mix(in srgb, var(--g1) 10%, #14031a)); }
.sroom { position: absolute; inset: 0; width: auto; pointer-events: none; border-radius: inherit; overflow: hidden; }
.sroom > i { position: absolute; }
/* carpet and skirting */
.sroom::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 19%; background: radial-gradient(60% 120% at 50% 0%, #ffd23d2e, transparent 70%), repeating-linear-gradient(62deg, #ffd23d2b 0 2px, transparent 2px 34px), repeating-linear-gradient(-62deg, #ffd23d2b 0 2px, transparent 2px 34px), radial-gradient(circle at 50% 50%, #ff6ac133 0 3px, transparent 4px) 0 0 / 36px 32px, linear-gradient(180deg, #6a1238, #2e0718); box-shadow: inset 0 3px 0 #e8b84a, inset 0 5px 0 #7a4a05, inset 0 7px 0 #1a040e, inset 0 34px 30px -18px #000c; }
.sroom::after { content: ""; position: absolute; left: 0; right: 0; bottom: 19%; height: 16px; background: linear-gradient(180deg, #5a2a3a, #3a1424 60%, #1a040e); box-shadow: inset 0 1px 0 #ffffff33; }
/* two neighbouring machines, out of focus */
.sn { left: 2.5%; bottom: 15%; width: 150px; height: 58%; border-radius: 22px 22px 6px 6px; opacity: .8; filter: blur(2.5px); background: radial-gradient(60% 9% at 50% 9%, #fff3b0, transparent), linear-gradient(180deg, #3c2a8a, #1c1248); box-shadow: inset 0 0 0 5px #8a7ad6, 0 14px 20px #000a; }
.sn b { position: absolute; left: 16%; right: 16%; top: 21%; height: 36%; border-radius: 8px; background: linear-gradient(90deg, #fff4dc 0 30%, #1c1248 30% 35%, #fff4dc 35% 65%, #1c1248 65% 70%, #fff4dc 70%); box-shadow: 0 0 24px 4px #8a7ad6, inset 0 0 0 3px #1c1248; animation: gaPulse 4.4s ease-in-out infinite; }
.sn::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 12%; height: 9%; border-radius: 5px; background: #ff6ac1; box-shadow: 0 0 16px 2px #ff6ac1; }
.sn.b { left: auto; right: 2.5%; height: 52%; width: 138px; background: radial-gradient(60% 9% at 50% 9%, #d6fff8, transparent), linear-gradient(180deg, #0f6a72, #062e36); box-shadow: inset 0 0 0 5px #3ad0ff, 0 14px 20px #000a; }
.sn.b b { box-shadow: 0 0 24px 4px #3ad0ff, inset 0 0 0 3px #062e36; animation-delay: -2s; } .sn.b::after { background: #ffd23d; box-shadow: 0 0 16px 2px #ffd23d; }
/* a string of warm lights across the wall */
.srope { left: 0; right: 0; top: 0; height: 60px; opacity: .9; background: radial-gradient(circle at 50% 50%, #fff8c8 0 2.5px, #ffd23d80 3.5px, transparent 9px) 0 6px / 62px 40px repeat-x, radial-gradient(circle at 50% 50%, #ffb0d8 0 2px, #ff6ac166 3px, transparent 8px) 31px 16px / 62px 40px repeat-x; -webkit-mask: linear-gradient(90deg, #000 0 22%, transparent 34% 66%, #000 78%); mask: linear-gradient(90deg, #000 0 22%, transparent 34% 66%, #000 78%); }
.svg { inset: 0; background: radial-gradient(110% 90% at 50% 46%, transparent 52%, #000000a6); }
:root[data-q="low"] .sn b { animation: none; } :root[data-q="low"] .sn { filter: none; opacity: .5; }
@media (max-width: 860px) { .sn { display: none; } }
/* the cabinet: screws in the face, chrome side pillars with a neon inlay, an arched topper */
.slots { --sh: 96px; margin-top: 62px; margin-bottom: 52px;
  background: radial-gradient(4px 4px at 9px 9px, #fff 0 30%, #c8cfe6 45%, #2a0a2e 75%, transparent 85%) padding-box, radial-gradient(4px 4px at calc(100% - 9px) 9px, #fff 0 30%, #c8cfe6 45%, #2a0a2e 75%, transparent 85%) padding-box, radial-gradient(4px 4px at 9px calc(100% - 9px), #fff 0 30%, #c8cfe6 45%, #2a0a2e 75%, transparent 85%) padding-box, radial-gradient(4px 4px at calc(100% - 9px) calc(100% - 9px), #fff 0 30%, #c8cfe6 45%, #2a0a2e 75%, transparent 85%) padding-box,
    linear-gradient(112deg, transparent 8%, #ffffff17 14%, transparent 22%) padding-box, var(--grain) padding-box, radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--g1) 85%, #fff), transparent 70%) padding-box, linear-gradient(180deg, color-mix(in srgb, var(--g1) 62%, var(--g4)), color-mix(in srgb, var(--g1) 22%, var(--g4))) padding-box, linear-gradient(135deg, #fff3b0, var(--g2) 26%, var(--gold-d) 50%, var(--g2) 74%, #fff3b0) border-box;
  box-shadow: inset 0 0 0 2px #00000059, inset 0 6px 14px #0000008c, 0 0 0 2px #7a4a05, 0 0 0 4px #dfe6f7, 0 0 0 5px #5a648c, 0 9px 0 5px #4a0a22, 0 12px 0 5px #1a040e, 0 34px 44px -10px #000; }
@media (min-width: 861px) { .slots { --sh: 120px; } .reelw { width: 120px; height: 360px; } .sym { height: 120px; } }
@media (max-width: 420px) { .slots { --sh: 76px; } }
.sdefs { position: absolute; }
.sside { position: absolute; top: 34px; bottom: -10px; left: -40px; width: 26px; border-radius: 12px 3px 3px 16px; z-index: -1;
  background: radial-gradient(3.5px 3.5px at 50% 12px, #fff 0 30%, #5a648c 60%, transparent 75%), radial-gradient(3.5px 3.5px at 50% calc(100% - 12px), #fff 0 30%, #5a648c 60%, transparent 75%), linear-gradient(90deg, transparent 38%, color-mix(in srgb, var(--g1) 90%, #fff) 44% 56%, transparent 62%) 0 26px / 100% calc(100% - 52px) no-repeat, linear-gradient(90deg, #4a5478, #dfe6f7 22%, #fff 34%, #8a93b8 60%, #c8cfe6 80%, #4a5478);
  box-shadow: 0 0 0 2px #1a0420, 0 0 16px 0 color-mix(in srgb, var(--g1) 60%, transparent), 0 14px 16px -4px #000c; }
.sside.r { left: auto; right: -40px; border-radius: 3px 12px 16px 3px; }
.stop { position: absolute; left: 50%; bottom: 100%; width: 190px; height: 58px; margin: 0 0 9px -95px; border-radius: 95px 95px 6px 6px / 58px 58px 6px 6px; display: grid; place-items: center; z-index: -1;
  background: radial-gradient(circle at 50% 100%, transparent 0 60px, #7a4a05 60.500px 62px, transparent 62.500px), linear-gradient(104deg, transparent 22%, #ffffff8c 32%, transparent 42%), linear-gradient(180deg, #fffbe0, var(--g2) 45%, var(--gold-d)); box-shadow: inset 0 2px 0 #fff, inset 0 0 0 2px #7a4a05, 0 0 0 2px #dfe6f7, 0 0 0 3.5px #5a648c, 0 0 34px 2px #ffd23d59; }
.stop::before { content: ""; position: absolute; inset: 5px 8px 3px; border-radius: inherit; border: 3px dotted #fff8c8; border-bottom: 0; filter: drop-shadow(0 0 3px #fff3b0); animation: gaBlink 1.6s steps(1) infinite; }
.stop b { position: relative; margin-top: 10px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 32px/1 var(--font-display); color: #fff; background: radial-gradient(circle at 34% 28%, #ff9aa8, var(--g1) 55%, #8a0c20); box-shadow: inset 0 0 0 2px #fff3b0, 0 0 0 2.5px #7a4a05, 0 3px 6px #0008; text-shadow: 0 2px 0 #5e0c1c, 0 0 10px #fff3b0; }
.slots.jack .stop b, .slots.win3 .stop b { animation: gaPop 500ms var(--ease-pop) 4; }
/* glass over the reel windows */
.sglass { position: absolute; inset: 8px; z-index: 4; border-radius: 13px; pointer-events: none; background: linear-gradient(104deg, transparent 0 6%, #ffffff3d 6% 11%, transparent 11% 14%, #ffffff1c 14% 27%, transparent 27% 78%, #ffffff12 78% 84%, transparent 84%), linear-gradient(180deg, #ffffff24, transparent 16%, transparent 86%, #ffffff14); box-shadow: inset 0 0 0 1px #ffffff40, inset 0 0 22px #0006; }
/* the pay line: a quiet rule at rest, a lit bar across the three symbols on a win */
.spay { position: absolute; left: 3px; right: 3px; top: 50%; height: var(--sh); margin-top: calc(var(--sh) / -2); z-index: 3; pointer-events: none; opacity: 0; overflow: hidden; border-radius: 10px; border-top: 4px solid #fff; border-bottom: 4px solid #fff; background: linear-gradient(180deg, #ffd23d73, #ffd23d14 26%, #ffd23d14 74%, #ffd23d73); box-shadow: 0 0 0 2px var(--g2), 0 0 26px 6px var(--g2), inset 0 0 22px #ffd23d80; }
.spay::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(100deg, transparent, #ffffffd9 50%, transparent); transform: translateX(-120%); }
.slots.win3 .spay, .slots.win2 .spay { opacity: 1; animation: slPay .34s steps(1) 7; }
.slots.win3 .spay::after, .slots.win2 .spay::after { animation: slSweep .9s ease-in-out .2s 3; }
@keyframes slPay { 0% { opacity: 1; } 50% { opacity: .25; } } @keyframes slSweep { to { transform: translateX(460%); } }
.sym span { width: 92%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sc) 34%, transparent), color-mix(in srgb, var(--sc) 12%, transparent) 60%, transparent 72%); } .sym .art { width: 86%; height: 86%; filter: drop-shadow(0 3px 0 #2a0a2e59) drop-shadow(0 6px 4px #2a0a2e33); overflow: visible; }
.reelw .strip.fast .sym .art { filter: none; }
/* base: a coin slot with a brass bezel, the display and a credit lamp */
.sbase { padding: 9px 12px; background: linear-gradient(180deg, #ffffff14, transparent 30%), linear-gradient(180deg, #120414, color-mix(in srgb, var(--g4) 70%, #000)); }
.sbase i { width: 36px; height: 22px; border-radius: 6px; background: linear-gradient(180deg, #000 0 100%) center / 20px 4px no-repeat, linear-gradient(180deg, #fff3b0, #e8b84a 50%, #9a6c1a); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px #7a4a05, 0 2px 0 #3a2203, 0 0 0 1.5px #0008; }
.sbase i:last-child { width: 22px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #ffb0ba 0 10%, #c4183a 40%, #5e0c1c); box-shadow: inset 0 0 0 1.5px #2a0a2e, 0 0 0 2.5px #dfe6f7, 0 0 0 3.5px #5a648c; }
.slots.win3 .sbase i:last-child, .slots.win2 .sbase i:last-child { background: radial-gradient(circle at 34% 28%, #fff, #7dffb0 30%, #17c47a); box-shadow: inset 0 0 0 1.5px #06281b, 0 0 0 2.5px #dfe6f7, 0 0 0 3.5px #5a648c, 0 0 16px 4px #2fe38c; }
.sbase span { font-size: 12px; text-shadow: 0 0 8px color-mix(in srgb, var(--g2) 70%, transparent); }
/* a bigger lever on a chrome housing */
.lever { right: -88px; top: 22%; width: 40px; height: 210px; }
.lever::before { left: -22px; width: 46px; height: 62px; border-radius: 6px 16px 16px 6px; background: linear-gradient(180deg, #000 0 100%) 58% 50% / 8px 34px no-repeat, linear-gradient(90deg, #4a5478, #dfe6f7 30%, #fff 46%, #8a93b8 70%, #4a5478); box-shadow: 0 0 0 2px #1a0420, inset 0 0 0 1px #fff8, 0 6px 0 2px #1a040e, 0 14px 14px #000a; }
.lever b { left: 5px; bottom: 30px; width: 12px; height: 150px; border-radius: 6px; }
.lever b::after { top: -30px; width: 44px; height: 44px; margin-left: -22px; background: radial-gradient(circle at 34% 26%, #fff 0 7%, #ffb0ba 16%, var(--g1) 52%, #8a0c20 86%, #5e0c1c); box-shadow: 0 0 0 2px #2a0a2e, inset -4px -6px 8px #5e0c1c99, 0 6px 8px #0009; }
.slots.pull .lever b { animation: slPull .9s var(--ease); }
@keyframes slPull { 0%, 100% { transform: rotate(0) scaleY(1); } 14% { transform: rotate(-6deg) scaleY(1.03); } 42% { transform: rotate(70deg) scaleY(.94); } 55% { transform: rotate(66deg) scaleY(.94); } 80% { transform: rotate(-8deg); } }
@media (max-width: 1100px) { .lever { right: -70px; height: 170px; } .lever b { height: 116px; } .sside { display: none; } }
/* tray: coins heap up in it after a win */
.stray { height: 36px; bottom: -50px; }
.stray u { position: absolute; left: 14%; right: 14%; bottom: 14px; height: 30px; transform: scaleY(0); transform-origin: 50% 100%; transition: transform .7s var(--ease-pop) .5s; background: radial-gradient(11px 6px at 12% 78%, #ffe07a 0 60%, #b8780c 64% 90%, transparent), radial-gradient(11px 6px at 26% 62%, #ffd23d 0 60%, #b8780c 64% 90%, transparent), radial-gradient(11px 6px at 38% 80%, #ffe07a 0 60%, #b8780c 64% 90%, transparent), radial-gradient(11px 6px at 50% 50%, #fff3b0 0 60%, #b8780c 64% 90%, transparent), radial-gradient(11px 6px at 60% 74%, #ffd23d 0 60%, #b8780c 64% 90%, transparent), radial-gradient(11px 6px at 72% 60%, #ffe07a 0 60%, #b8780c 64% 90%, transparent), radial-gradient(11px 6px at 86% 80%, #ffd23d 0 60%, #b8780c 64% 90%, transparent), radial-gradient(11px 6px at 44% 30%, #ffe07a 0 60%, #b8780c 64% 90%, transparent), radial-gradient(11px 6px at 58% 26%, #ffd23d 0 60%, #b8780c 64% 90%, transparent); }
.slots.win3 .stray u, .slots.win2 .stray u { transform: scaleY(1); } .slots.win2 .stray u { transform: scaleY(.6); } .stray::before { display: none; }

/* ===== Scratch Cards, round 2: a ticket on a lamp-lit wooden counter, printed cards fanned behind it, silver latex and a coin to scratch with ===== */
.view[data-view="scratch"] .game > .board::before { background: radial-gradient(120% 95% at 50% 46%, transparent 44%, #000000b3), radial-gradient(46% 52% at 50% 40%, #ffe9b052, transparent 72%), var(--wood) 0 0 / 600px 300px, repeating-linear-gradient(0deg, transparent 0 96px, #00000059 96px 98px, #ffffff14 98px 99px), linear-gradient(180deg, #8a5a30, #6a3f1e 55%, #4a2a12); }
.swrap::before { content: ""; position: absolute; left: -8%; right: -8%; bottom: -34px; height: 70px; border-radius: 50%; background: radial-gradient(closest-side, #000000b3, #00000059 50%, transparent); }
/* the two cards fanned behind: printed faces with a title band and a silver panel */
.sback { overflow: hidden; }
.sback b { position: absolute; left: 0; right: 0; top: 0; padding: 15px 0 12px; text-align: center; font: 800 17px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: #06262b; background: linear-gradient(180deg, #ffffff66, #ffffff1f); border-bottom: 2px dashed #ffffff99; text-shadow: 0 1px 0 #ffffff80; }
.sback::before { content: ""; position: absolute; left: 18px; right: 18px; top: 62px; aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle, #eceef3 0 26%, #a9afbb 27% 33%, transparent 34%) 0 0 / 33.34% 33.34%, linear-gradient(160deg, #0a5a52, #06332e); box-shadow: inset 0 0 0 2px #ffffff59, 0 0 0 3px #ffffff40; }
.sback::after { inset: 7px; border-radius: 15px; border: 1.5px solid #ffffff59; }
.sback.a { background: radial-gradient(#ffffff2e 1.5px, transparent 2px) 0 0 / 14px 14px, linear-gradient(150deg, #7df0e2, var(--g2) 50%, #0d8f84); }
.sback.b { background: repeating-linear-gradient(45deg, #ffffff2e 0 6px, transparent 6px 16px), linear-gradient(150deg, #ffe89a, var(--g3) 50%, #d98a12); }
.sback.b b { color: #4a2a05; } .sback.b::before { background: radial-gradient(circle, #eceef3 0 26%, #a9afbb 27% 33%, transparent 34%) 0 0 / 33.34% 33.34%, linear-gradient(160deg, #8a5a0a, #4a2a05); }
/* the ticket: a slight curl of light and, after a miss, a slump */
.sticket::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(118deg, #ffffff38 0, transparent 22%, transparent 74%, #0000002e); }
.sticket.lost { animation: scSlump 520ms var(--ease) both; }
@keyframes scSlump { 0% { transform: none; } 30% { transform: translateY(-6px) rotate(-1deg); } 100% { transform: translateY(8px) rotate(1.8deg); } }
/* the foil's sheen: a slow double band, as if the lamp caught it */
.scard::after { background: linear-gradient(115deg, transparent 30%, #ffffff73 42%, #ffffffd9 46%, #ffffff73 50%, transparent 60%, transparent 66%, #ffffff59 70%, transparent 76%); opacity: .6; mix-blend-mode: soft-light; animation-duration: 5.5s; }
.scard.live canvas { cursor: none; }
@media (hover: none) { .scard.live canvas { cursor: auto; } }
/* the coin: a milled gold piece that rests by the card and becomes the scratching tool */
.scoin { right: -84px; bottom: 30px; width: 70px; height: 70px; z-index: 6; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 0 21px, #b8780c 21.500px 23px, transparent 23.500px), repeating-conic-gradient(#00000000 0 4deg, #7a4a0540 4deg 8deg), radial-gradient(circle at 34% 28%, #fff6cf, var(--g3) 58%, #b8780c); box-shadow: inset 0 0 0 4px #b8780c99, inset 0 0 0 5.500px #fff6cf80, inset 0 -6px 10px #0003, 0 5px 0 #7a4a05, 0 16px 16px -6px #000c; }
.scoin::after { inset: 23px; }
.scoin::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(120deg, transparent 30%, #ffffffb3 44%, transparent 56%); }
.scoin.tool { display: block; left: 0; top: 0; right: auto; bottom: auto; margin: -62px 0 0 -8px; width: 62px; height: 62px; animation: none; transform-origin: 8px 62px; box-shadow: inset 0 0 0 4px #b8780c99, inset 0 0 0 5.500px #fff6cf80, inset 0 -6px 10px #0003, 0 3px 0 #7a4a05, 10px 20px 14px -6px #000a; }
.scoin.tool::after { inset: 20px; }

/* ===== Tower Climb, round 2: a bigger climber with limbs who stands on the platform's front lip, clearer floors, a trap that burns, a gold cash-out plate ===== */
.tt { height: 50px; }
.tclimb { width: 54px; height: 68px; margin: -64px 0 0 -27px; }
.tclimb::after { left: 6px; right: 6px; bottom: -3px; height: 10px; }
.tclimb .blink { transform-box: fill-box; transform-origin: 50% 50%; animation: twBlink 4.2s infinite; }
@keyframes twBlink { 0%, 91%, 100% { transform: none; } 94%, 96% { transform: scaleY(.08); } }
.tclimb .arm { transform-origin: 17px 37px; transition: transform .22s var(--ease-pop); } .tclimb .arm.r { transform-origin: 39px 37px; }
.tclimb.on .arm.l { animation: twArm 1.5s ease-in-out infinite; } .tclimb.on .arm.r { animation: twArm 1.5s ease-in-out -.75s infinite reverse; }
@keyframes twArm { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(10deg); } }
@keyframes twIdle { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.04, .95); } }
.tclimb.won .arm.l { transform: rotate(104deg); animation: none; } .tclimb.won .arm.r { transform: rotate(-104deg); animation: none; }
.tclimb.won i { animation: twCheer .42s ease-in-out infinite alternate; }
@keyframes twCheer { 0% { transform: translateY(0) scale(1.12, .86); } 100% { transform: translateY(-22px) scale(.94, 1.08) rotate(4deg); } }
.tclimb.lost .arm.l { transform: rotate(120deg); } .tclimb.lost .arm.r { transform: rotate(-80deg); }
:root[data-q="low"] .tclimb .blink, :root[data-q="low"] .tclimb.on .arm { animation: none; }
/* floors still to come keep their metal: a light dusk tint, not mud */
.tower.on .tfloor:not(.cur):not(.done) .tt, .tower.lost .tfloor:not(.done) .tt, .tower.won .tfloor:not(.done) .tt { filter: brightness(.8) saturate(.95); }
/* clouds drift lower, behind the tower, so the read-out stays clear */
.tcl { top: 36%; } .tcl.b { top: 49%; }
.tread b { text-shadow: 0 4px 0 #0008, 0 0 18px #1d1040, 0 0 34px color-mix(in srgb, var(--g1) 60%, transparent); }
.tread.lost b::before { content: ""; position: absolute; inset: -8px -22px; z-index: -1; border-radius: 16px; background: radial-gradient(closest-side, #1d1040e6, #1d104000); }
.tread.won span { font: 800 17px/1 var(--font-display); letter-spacing: .06em; font-variant-numeric: tabular-nums; color: #3a2203; padding: 10px 20px; border: 0; background: linear-gradient(104deg, transparent 20%, #ffffff8c 30%, transparent 40%), linear-gradient(180deg, #fffbe0, #ffd95a 45%, #f0a020); box-shadow: inset 0 2px 0 #fff, inset 0 0 0 1.5px #7a4a05, 0 4px 0 #7a4a05, 0 0 30px 2px #ffd23f80, 0 12px 16px -6px #000; animation: fxBan 520ms var(--ease-pop) both; }
/* found jewels and traps read at a glance */
.tt .tgem { width: 36px; filter: drop-shadow(0 2px 0 #00000073) drop-shadow(0 0 6px #ffffffb3); }
.tt .tfire { width: 34px; margin-top: -18px; filter: drop-shadow(0 0 6px #ffd23f); }
.tt .tfire .f1 { transform-origin: 50% 100%; animation: twFl1 .46s ease-in-out infinite alternate; } .tt .tfire .f2 { animation: twFl2 .34s ease-in-out infinite alternate; } .tt .tfire .f3 { transform-origin: 50% 100%; animation: twFl2 .27s ease-in-out infinite alternate-reverse; }
@keyframes twFl1 { 0% { transform: scale(1, 1) skewX(-5deg); } 50% { transform: scale(.9, 1.18) skewX(4deg); } 100% { transform: scale(1.08, .9) skewX(-2deg); } }
@keyframes twFl2 { 0% { transform: scale(.86, 1.1) translateX(-1px); } 100% { transform: scale(1.1, .88) translateX(1px); } }
/* what the other platforms hid: the same platform, in shade, with its jewel or flame in full colour */
.tt.ghost { background: linear-gradient(#1d104099, #1d104099), var(--ptex), linear-gradient(180deg, var(--p1), var(--p2) 46%, var(--p3)); box-shadow: inset 0 0 0 1.5px #ffffff66, inset 0 2px 0 #ffffff40, 0 3px 0 var(--pk), 0 6px 8px -3px #000c; }
.tt.bad.ghost { background: linear-gradient(#7a101499, #3a0408b3), var(--ptex), linear-gradient(180deg, var(--p1), var(--p2) 46%, var(--p3)); box-shadow: inset 0 0 0 1.5px #ff9a8a, inset 0 2px 0 #ffffff40, 0 3px 0 #3a0408, 0 6px 8px -3px #000c; }
.tt.ghost .tgem, .tt.ghost .tfire { opacity: 1; transform: scale(.82); } .tt.ghost .tfire { margin-top: -10px; } .tt.ghost .tfire .f1, .tt.ghost .tfire .f3 { animation: none; }
/* the sprung trap scorches the wall round it and lights the bricks */
.tt.bad:not(.ghost)::after { content: ""; position: absolute; inset: -34px -26px -22px; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, #ff9a3d8c, #ff5a2a40 34%, #0a0408cc 52%, #0a040873 70%, transparent); animation: gaPulse 1.1s ease-in-out infinite; }
.tt.bad:not(.ghost) { z-index: 3; }
@media (max-width: 560px) { .tt { height: 44px; } .tclimb { width: 46px; height: 58px; margin: -55px 0 0 -23px; } .tt .tgem { width: 29px; } .tt .tfire { width: 27px; margin-top: -12px; } .tread.won span { font-size: 14px; padding: 8px 14px; } }

/* ===== 3D Dice, round 2: lighter cubes to draw (flat faces, hidden backs), drilled pips, contact shadows, a payout plate, a leather cup and a throw trail ===== */
.cube .f { transform-style: flat; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 9px;
  background: radial-gradient(circle at 9% 9%, #ffd0d6 0 4%, transparent 13%), radial-gradient(circle at 91% 9%, #ffb0b873 0 3%, transparent 11%), radial-gradient(circle at 9% 91%, #ffb0b859 0 3%, transparent 11%), radial-gradient(circle at 28% 22%, #ffb0b8 0, transparent 34%), radial-gradient(circle at 78% 84%, #ff7a8866, transparent 46%), linear-gradient(150deg, #ff5a6a, var(--g1) 45%, #b8102c);
  box-shadow: inset 0 0 0 1.5px #7a0a1c, inset 0 0 0 3px #ffc2c873, inset 0 0 0 4.500px #c4183266, inset 0 0 16px 2px #ff8a9673, inset 0 -10px 14px -4px #6e061980; }
.cube .f::before { display: none; }
.cube .f::after { border-radius: 9px; }
.cube::before { content: ""; position: absolute; inset: 3px; background: #a00f26; transform: translateZ(0); }
.cube .f i { width: 16px; height: 16px; background: radial-gradient(circle at 50% 86%, #fff 0 18%, var(--g2) 44%, #b8a070 78%); box-shadow: inset 0 5px 4px #3a040cd9, inset 0 0 0 1px #8a0c2099, inset 0 -1.500px 0 #ffffffcc, 0 1.500px 0 #ffb0b8e6, 0 0 0 1.500px #7a0a1c; }
/* keep the dice lit after a losing roll: only the resting shade per face */
.dice3.lost .cube .f::after { background-color: transparent; } .dice3.lost .cube .f.lf::after { background-color: #5a041433; } .dice3.lost .cube .f.ls::after { background-color: #3a020c73; }
/* a soft cast shadow with a tight dark contact patch under each die */
.dsh { left: -30%; right: -46%; bottom: -44%; height: 70%; background: radial-gradient(closest-side, #000000c7 0 30%, #0000007a 62%, transparent); }
.dsh::after { content: ""; position: absolute; left: 12%; right: 26%; top: 6%; bottom: 30%; border-radius: 50%; background: radial-gradient(closest-side, #000000f2, #000000b3 62%, transparent); }
.dice3.won .dsh { background: radial-gradient(closest-side, #000000c7 0 30%, #0000007a 62%, transparent); }
/* the trail a thrown die leaves on the felt */
.dtr { position: absolute; top: 28%; height: 70%; right: 60%; width: 190%; opacity: 0; pointer-events: none; border-radius: 50%; background: linear-gradient(90deg, transparent, #ffffff26 40%, #ff8a9680); -webkit-mask: linear-gradient(180deg, transparent, #000 30% 70%, transparent); mask: linear-gradient(180deg, transparent, #000 30% 70%, transparent); }
.die.b .dtr { right: auto; left: 60%; transform: scaleX(-1); }
.dice3.roll .dtr { animation: d3Tr 1.2s linear both; }
@keyframes d3Tr { 0% { opacity: 0; } 8% { opacity: 1; } 40% { opacity: .5; } 66%, 100% { opacity: 0; } }
/* total and payout sit side by side */
.dres { position: relative; z-index: 2; display: flex; gap: 12px; justify-content: center; align-items: stretch; }
.dpay { --brass: #e8b84a; display: grid; align-content: center; justify-items: center; gap: 6px; min-width: 150px; padding: 8px 20px 10px; border-radius: 14px; color: #3a2408;
  background: radial-gradient(3.500px 3.500px at 9px 9px, #7a5a14 50%, transparent 60%), radial-gradient(3.500px 3.500px at calc(100% - 9px) 9px, #7a5a14 50%, transparent 60%), radial-gradient(3.500px 3.500px at 9px calc(100% - 9px), #7a5a14 50%, transparent 60%), radial-gradient(3.500px 3.500px at calc(100% - 9px) calc(100% - 9px), #7a5a14 50%, transparent 60%), repeating-linear-gradient(90deg, #ffffff14 0 1px, transparent 1px 3px), linear-gradient(180deg, #fff3b0, var(--brass) 45%, #b8862a);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1.500px #7a5a14, inset 0 0 0 3px #fff3b066, 0 3px 0 #6b4a10, 0 12px 16px -6px #000c; }
.dpay em { font: 700 11px/1 var(--font-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #5a3c08; }
.dpay b { font: 800 30px/1 var(--font-display); font-variant-numeric: tabular-nums; color: #2a1803; text-shadow: 0 1px 0 #ffffff99; }
.dpay.won { box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1.500px #7a5a14, 0 3px 0 #6b4a10, 0 0 0 3px var(--success), 0 0 30px 4px var(--success); animation: gaSquash 520ms var(--ease); } .dpay.won b { color: #06512e; font-size: 34px; }
.dpay.bump b { animation: gaPop 320ms var(--ease-pop); }
.dpay.lost { filter: saturate(.45) brightness(.86); animation: gaShake 420ms ease; } .dpay.lost b { color: #8a0f24; }
/* totals strip: the rolled total lifts instead of growing over its neighbour */
.dtrack { gap: 7px; }
.dtrack i.on, .dtrack i.on.in, .dtrack i.on.half { transform: translateY(-5px); animation: d3On 360ms var(--ease-pop); }
@keyframes d3On { 0% { transform: translateY(8px) scale(.8); } 60% { transform: translateY(-9px); } 100% { transform: translateY(-5px); } }
/* props: taller chip stacks, a bigger puck and the dice cup, which tips over on a throw */
.view[data-view="dice3d"] .cstack { transform: scale(1.25); left: 30px; bottom: 40px; } .view[data-view="dice3d"] .cstack + .cstack { right: 30px; }
.dcup { position: absolute; left: 48px; top: 20%; width: 78px; height: 96px; transform: rotate(-22deg); transform-origin: 50% 100%; border-radius: 10px 10px 22px 22px / 8px 8px 26px 26px; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  background: repeating-linear-gradient(90deg, transparent 0 18px, #00000033 18px 19px), linear-gradient(180deg, #2a1203 0 12px, #e9bf74 12px 14px, transparent 14px), linear-gradient(90deg, #5a2a0c, #b86a2a 30%, #d98a44 44%, #8a4a18 72%, #4a2208); filter: drop-shadow(0 12px 8px #0009); }
.dcup b { position: absolute; left: 8%; right: 8%; top: 20px; height: 0; border-top: 2px dashed #ffe0b0b3; }
.dcup::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 10px; height: 0; border-top: 2px dashed #ffe0b080; }
.board:has(.dice3.roll) .dcup { animation: d3Cup 1.1s var(--ease); }
@keyframes d3Cup { 0% { transform: rotate(-22deg); } 16% { transform: translate(30px, -16px) rotate(64deg); } 30% { transform: translate(34px, -10px) rotate(84deg) scale(1.04, .96); } 60% { transform: translate(10px, 0) rotate(20deg); } 100% { transform: rotate(-22deg); } }
@media (max-width: 1100px) { .dcup { display: none; } }
@media (max-width: 860px) { .view[data-view="dice3d"] .cstack { transform: scale(.9); } }
@media (max-width: 560px) { .dres { gap: 8px; } .dpay { min-width: 0; flex: 1; padding: 8px 10px 10px; } .dpay b { font-size: 24px; } .dpay.won b { font-size: 26px; } .total { min-width: 104px; font-size: 38px; } .dtrack { gap: 3px; } }

/* ===== Keno, round 2: a draw hall with spotlights, a big blower full of numbered balls, a chrome rack, sockets for misses and a proper win ===== */
.kbg { position: absolute; inset: 0; width: auto; pointer-events: none; border-radius: inherit; overflow: hidden; }
.kbg > i { position: absolute; }
.kwall { inset: 0 0 20%; background: repeating-linear-gradient(90deg, transparent 0 86px, #00000040 86px 88px, #ffffff0d 88px 89px), linear-gradient(180deg, transparent 60%, #00000059); }
.kwall::before { content: "40"; position: absolute; left: 3%; top: 16%; font: 800 150px/1 var(--font-display); color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--g1) 34%, transparent); transform: rotate(-8deg); }
.kwall::after { content: "10"; position: absolute; right: 3%; top: 36%; font: 800 130px/1 var(--font-display); color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--g3) 34%, transparent); transform: rotate(7deg); }
.kspot { left: 8%; top: -4%; width: 46%; height: 96%; background: conic-gradient(from 150deg at 30% 0%, #ffffff00 0deg, color-mix(in srgb, var(--g1) 30%, transparent) 12deg, #ffffff26 22deg, color-mix(in srgb, var(--g1) 30%, transparent) 32deg, #ffffff00 44deg); -webkit-mask: linear-gradient(180deg, #000 10%, transparent 92%); mask: linear-gradient(180deg, #000 10%, transparent 92%); }
.kspot.b { left: auto; right: 8%; transform: scaleX(-1); background: conic-gradient(from 150deg at 30% 0%, #ffffff00 0deg, color-mix(in srgb, var(--g3) 30%, transparent) 12deg, #ffffff26 22deg, color-mix(in srgb, var(--g3) 30%, transparent) 32deg, #ffffff00 44deg); }
.kfloor { left: 0; right: 0; bottom: 0; height: 20%; background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--g1) 34%, transparent), transparent 70%), repeating-linear-gradient(90deg, transparent 0 58px, #ffffff12 58px 60px), linear-gradient(180deg, color-mix(in srgb, var(--g1) 20%, #050a2c), #02041c); box-shadow: inset 0 2px 0 color-mix(in srgb, var(--g1) 60%, #fff), inset 0 4px 0 #02041c, inset 0 30px 30px -16px #000c; }
@media (max-width: 860px) { .kwall::before, .kwall::after { display: none; } }
/* the rack: a chrome bezel with bolts along it */
.keno { border: 9px solid transparent; padding: 14px;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--g1) 26%, transparent), transparent 70%) padding-box, linear-gradient(180deg, color-mix(in srgb, var(--g1) 14%, var(--g4)), color-mix(in srgb, var(--g4) 70%, #02041c)) padding-box,
    radial-gradient(circle, #fff 0 1px, #0b1245 1.500px 2.400px, transparent 3px) 0 0 / 46px 9px repeat-x border-box, radial-gradient(circle, #fff 0 1px, #0b1245 1.500px 2.400px, transparent 3px) 0 100% / 46px 9px repeat-x border-box, radial-gradient(circle, #fff 0 1px, #0b1245 1.500px 2.400px, transparent 3px) 0 0 / 9px 46px repeat-y border-box, radial-gradient(circle, #fff 0 1px, #0b1245 1.500px 2.400px, transparent 3px) 100% 0 / 9px 46px repeat-y border-box,
    linear-gradient(135deg, #f4f8ff, #8fa6d6 22%, #dfe9ff 40%, #5a6ea8 62%, #c8d6f0 82%, #6a7eb8) border-box;
  box-shadow: inset 0 0 0 1.500px #02041c, inset 0 4px 10px #000a, inset 0 -10px 24px #00000080, 0 0 0 2px #02041c, 0 0 0 4px color-mix(in srgb, var(--g1) 55%, transparent), 0 6px 0 2px #02041c, 0 26px 34px -14px #000, 0 0 50px -6px color-mix(in srgb, var(--g1) 60%, transparent); }
.keno::before { inset: -9px; }
/* a miss drops into its socket: a dark hole with a lit rim */
.kn.drawn { color: color-mix(in srgb, var(--g1) 70%, #fff); background: radial-gradient(circle at 50% 24%, #000 0 30%, #050a2c 70%); box-shadow: inset 0 6px 9px #000, inset 0 -2px 0 color-mix(in srgb, var(--g1) 50%, #fff), inset 0 0 0 2px #02041c, inset 0 0 0 3.500px color-mix(in srgb, var(--g1) 45%, #0b1245), 0 1px 0 #ffffff40; text-shadow: 0 1px 0 #000; }
/* after a losing draw only the numbers that missed fade; picks and hits keep their colour */
.board.klost .keno { filter: none; }
.board.klost .kn:not(.sel):not(.hit):not(.drawn), .board.kwon .kn:not(.sel):not(.hit):not(.drawn) { opacity: .5; transition: opacity .4s var(--ease); }
.board.klost .kn.sel:not(.hit) { opacity: .78; }
.board.kwon .kn.hit { animation: knPulse 620ms var(--ease) calc(var(--k, 1) * 130ms) 3; }
@keyframes knPulse { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.26) translateY(-3px); } 70% { transform: scale(.95); } }
.board.kbig .keno { box-shadow: inset 0 0 0 1.500px #02041c, inset 0 4px 10px #000a, 0 0 0 2px #02041c, 0 0 0 4px var(--g2), 0 6px 0 2px #02041c, 0 26px 34px -14px #000, 0 0 70px 4px var(--g2); }
/* the blower: a big glass globe on a chrome stand, a chute to the rail */
.kmach { gap: 0; margin-top: 4px; }
.kglobe { width: 132px; height: 132px; margin-right: 0; overflow: hidden; background: radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--g1) 50%, transparent), transparent 60%), radial-gradient(circle at 50% 50%, #ffffff0d 0 56%, #ffffff26 66%, color-mix(in srgb, var(--g1) 50%, transparent) 72%), #050a2c99; box-shadow: inset 0 0 0 3px #ffffff8c, inset 0 -14px 22px #00000073, inset 0 10px 18px #ffffff26, 0 0 0 3px #0b1245, 0 0 0 6px #c8d6f0, 0 0 0 7.500px #5a6ea8, 0 0 0 9px #02041c, 0 14px 18px -4px #000c, 0 0 40px -4px var(--g1); }
.kglobe::after { display: none; }
.kglobe i { left: var(--x); top: var(--y); width: 27px; height: 27px; display: grid; place-items: center; font: 800 10.500px/1 var(--font-mono); font-style: normal; color: #0b1245; background: radial-gradient(circle at 50% 52%, #fff 0 38%, transparent 40%), radial-gradient(circle at 34% 26%, #fff, var(--c) 46%, color-mix(in srgb, var(--c) 50%, #000)); box-shadow: inset 0 -2px 3px #0005, 0 2px 2px #0006; animation: knTumble 3.4s ease-in-out infinite; }
@keyframes knTumble { 0%, 100% { transform: translate(0, 0) rotate(var(--r)); } 50% { transform: translate(2px, -5px) rotate(calc(var(--r) + 24deg)); } }
.kmach.run .kglobe i { animation: knBlow .5s ease-in-out infinite alternate; }
@keyframes knBlow { 0% { transform: translate(-14px, 16px) rotate(var(--r)); } 35% { transform: translate(18px, -44px) rotate(calc(var(--r) + 140deg)); } 70% { transform: translate(-22px, -64px) rotate(calc(var(--r) + 250deg)); } 100% { transform: translate(10px, -20px) rotate(calc(var(--r) + 360deg)); } }
.kglobe .kgl { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 30% 22%, #ffffffd9 0 5%, #ffffff40 12%, transparent 28%), radial-gradient(circle at 72% 80%, #ffffff26 0 8%, transparent 20%), linear-gradient(120deg, transparent 38%, #ffffff1f 46%, transparent 54%); }
.kmach.run .kglobe { animation: knShake .16s linear infinite; }
@keyframes knShake { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(1.500px, -1px); } 75% { transform: translate(-1.500px, 1px); } }
.kchute { flex: none; width: 46px; height: 34px; margin: 0 -8px 0 -4px; z-index: 0; border-radius: 4px; background: linear-gradient(180deg, #ffffff66 0 12%, #ffffff14 30%, #00000033 70%, #ffffff33 92%), color-mix(in srgb, var(--g1) 30%, #050a2c); box-shadow: inset 0 0 0 1.500px #c8d6f0, 0 0 0 1.500px #02041c, 0 6px 8px #0008; }
.krail { z-index: 1; padding: 9px 14px 9px 16px; } .krail i { width: 34px; height: 34px; font-size: 13px; }
.kfly { width: 38px; height: 38px; font-size: 14px; } .kfly.ghost { box-shadow: none; }
.kinfo .kp { font-size: 13px; }
@media (max-width: 560px) { .keno { border-width: 7px; padding: 10px; } .keno::before { inset: -7px; } .kglobe { width: 78px; height: 78px; } .kglobe i { width: 17px; height: 17px; font-size: 0; } .kchute { width: 20px; height: 22px; margin: 0 -5px 0 -3px; } .krail { padding: 6px 8px 6px 10px; } .krail i { width: 24px; height: 24px; font-size: 10.500px; } .kfly { width: 30px; height: 30px; font-size: 11px; } }
/* phones: a slightly narrower rack (balls stay 44px or more), so the whole board and Draw share one screen; the blower and the ten sockets share the width, so the last socket is never cut off */
@media (max-width: 560px) { .keno { max-width: 300px; } .kmach { width: 100%; } .kglobe { width: 64px; height: 64px; } .kglobe i { width: 14px; height: 14px; } .krail { flex: 1 1 0; min-width: 0; } .krail > div { flex: 1; min-width: 0; gap: 2px; justify-content: space-between; } .krail i { flex: 1 1 0; min-width: 0; max-width: 24px; width: auto; height: auto; aspect-ratio: 1; font-size: 10px; } }

/* ===== Higher or Lower, round 2: a dealer's shoe and discard tray, betting spots, bigger cards, a lit flip and a real payout ===== */
.hpot:empty { display: none; }
.hshoe { position: absolute; left: 40px; top: 104px; width: 92px; height: 66px; transform: rotate(-14deg); border-radius: 8px 8px 8px 22px; background: linear-gradient(180deg, #ffffff40 0 3px, transparent 3px), linear-gradient(100deg, #1a1e2a, #3a4056 40%, #232838 70%, #10131c); box-shadow: inset 0 0 0 1.500px #0008, inset 0 -8px 12px #0008, 0 4px 0 #0a0c12, 0 16px 16px -4px #000c; }
.hshoe::before { content: ""; position: absolute; right: -9px; top: 9px; bottom: 9px; width: 30px; border-radius: 3px; background: repeating-linear-gradient(90deg, #fffdf6 0 2px, #cdb98c 2px 3px), #fff4dc; box-shadow: inset 0 0 0 1px #a8976e, 3px 4px 6px #0008; transform: skewY(-8deg); }
.hshoe b { position: absolute; left: 12px; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #ffc93d 0 5px, transparent 6px), radial-gradient(circle, transparent 0 11px, #e8b84a 11.500px 13.500px, transparent 14px); opacity: .9; }
.htray { position: absolute; right: 40px; top: 100px; width: 96px; height: 70px; transform: rotate(10deg); border-radius: 9px; background: linear-gradient(180deg, #5a1820, #3a0c12); box-shadow: inset 0 0 0 3px #e8b84a, inset 0 0 0 4.500px #7a5a14, inset 0 10px 14px #000a, 0 4px 0 #2a060a, 0 16px 16px -4px #000c; }
.htray b { position: absolute; left: 18px; top: 9px; width: 38px; height: 52px; border-radius: 5px; background: repeating-linear-gradient(45deg, #0000 0 4px, #0002 4px 8px), linear-gradient(160deg, #ff7a88, var(--g1) 50%, #b3122a); box-shadow: inset 0 0 0 2px #fff4dc, 0 2px 3px #0008; transform: rotate(-9deg); }
.htray b + b { left: 30px; transform: rotate(5deg); } .htray b + b + b { left: 42px; top: 11px; transform: rotate(16deg); }
@media (max-width: 1100px) { .hshoe, .htray { display: none; } }
@media (min-width: 1101px) { .pc { width: 156px; height: 220px; border-radius: 16px; } .pcards { --dx: -186px; gap: 30px; min-height: 240px; } .pc .cn { font-size: 22px; top: 10px; left: 9px; width: 25px; } .pc .cn.r { bottom: 10px; right: 9px; } .pc .cn .su { width: 16px; height: 16px; } .hfan .pc.sm { width: 40px; height: 56px; border-radius: 7px; } .hfan .pc.sm .su { width: 13px; height: 13px; } }
/* a right guess: light runs across the card as it lands */
.pc.good::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: linear-gradient(112deg, transparent 18%, #ffffffe6 38%, #a8ffd6b3 50%, transparent 68%); }
.pc.good.deal::before { animation: hlSweep 560ms ease-out 400ms both; }
@keyframes hlSweep { 0% { opacity: 0; transform: scaleX(.3); } 35% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }
.pcards { filter: drop-shadow(0 18px 14px #0006); }
.hfan .pc.sm.good::after, .hfan .pc.sm.miss::after { animation: none; }
.hplate.won span + span b { font-size: 30px; }

/* ===== Mystery Boxes, round 2: bigger chests with room to open, a lit interior full of loot, a shaped burst for the best finds, a slower turn of the medallion ===== */
.mbox { --gs: 1.14; } .mbox.t1 { --gs: 1.22; } .mbox.t2 { --gs: 1.3; }
.gift { margin-top: calc(84px * var(--gs)); margin-bottom: 20px; }
.gift .ginner { transition: opacity .2s; }
.gift .ginner .gglow { fill: var(--rc, #fff3b0); opacity: .0; }
.mbox.open .gift .ginner .gglow { opacity: .55; }
.gift .gin { left: 12%; right: 12%; top: 26%; height: 28%; border-radius: 50%; background: radial-gradient(closest-side, #ffffffcc, color-mix(in srgb, var(--rc, #fff) 70%, transparent) 46%, transparent); box-shadow: none; mix-blend-mode: screen; }
.mbox.open .gift .gin { opacity: .75; animation: gaPulse 1.6s ease-in-out infinite; }
/* the lid swings back on its hinge and stays inside the card */
.mbox.open .gift .glid { transform: translate(-5%, -7%) rotate(-50deg); }
.gift .gloot { top: -40%; }
/* the medallion comes up showing its "?", hangs for a beat, then turns over */
.mbox.open .gift .gloot { animation: bxRise2 1350ms var(--ease) both, gaBob 3.2s ease-in-out 1350ms infinite; }
@keyframes bxRise2 { 0% { transform: translateY(170%) scale(.2) rotateY(180deg); opacity: 0; } 12% { opacity: 1; } 32% { transform: translateY(-16%) scale(1.14) rotateY(180deg); } 42% { transform: translateY(0) scale(1) rotateY(180deg); } 60% { transform: translateY(-4%) scale(1.04) rotateY(180deg); } 84% { transform: translateY(-10%) scale(1.12) rotateY(0deg); } 100% { transform: none; opacity: 1; } }
/* Epic and better: a star of light bursts from the chest, inside the stage only */
.mbox::after { inset: auto; left: 50%; top: calc(150px * var(--gs)); width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; background: repeating-conic-gradient(#ffffff00 0deg, #ffffffe6 4deg, var(--rc, #fff) 8deg, #ffffff00 13deg, #ffffff00 22.500deg); -webkit-mask: radial-gradient(closest-side, #000 14%, #000000b3 34%, transparent 72%); mask: radial-gradient(closest-side, #000 14%, #000000b3 34%, transparent 72%); }
.mbox.flash::after { animation: bxFlash2 1100ms ease-out; }
@keyframes bxFlash2 { 0% { opacity: 0; transform: scale(.2) rotate(0deg); } 14% { opacity: 1; transform: scale(.9) rotate(8deg); } 100% { opacity: 0; transform: scale(1.25) rotate(40deg); } }
.mbox > .oddsl, .mbox > .bxbtn, .mbox > .bxname { z-index: 6; }
/* the card's one column never grows past the card: a chest wider than a narrow card overhangs evenly, and the button stays whole */
.mbox { grid-template-columns: minmax(0, 1fr); }
/* and a chest never outgrows its card: on a narrow card it scales down, so the pedestal is not cut by the card edge */
.mbox { container-type: inline-size; }
.gift { width: min(calc(172px * var(--gs)), 76cqw); }
@media (max-width: 560px) { .mbox { --gs: 1; } .mbox.t1 { --gs: 1.08; } .mbox.t2 { --gs: 1.16; } }
/* the shell's reveal card grows with the rarity of a Mystery Boxes find */
.bx-rev.bx-r3 .amodal.reveal .rframe { transform: scale(1.1); }
.bx-rev.bx-r4 .amodal.reveal, .bx-rev.bx-r5 .amodal.reveal { width: min(440px, calc(100vw - 28px)); max-width: none; }
.bx-rev.bx-r4 .amodal.reveal .rstage { height: 250px; } .bx-rev.bx-r4 .amodal.reveal .rframe { transform: scale(1.3); }
.bx-rev.bx-r5 .amodal.reveal { width: min(500px, calc(100vw - 28px)); box-shadow: 0 0 0 2px var(--rc), 0 0 90px 10px var(--rc), 0 30px 60px #000; }
.bx-rev.bx-r5 .amodal.reveal .rstage { height: 290px; } .bx-rev.bx-r5 .amodal.reveal .rframe { transform: scale(1.55); }
.bx-rev.bx-r4 .amodal.reveal h3, .bx-rev.bx-r5 .amodal.reveal h3 { font-size: 28px; } .bx-rev.bx-r5 .amodal.reveal .rr { font-size: 15px; padding: 7px 16px; }


/* ===== Treasure Hunt, round 2: deeper water with a sand spit and sun glints, a fuller jungle, carved sandstone in the tomb, bracketed torches, brighter finds and a chest that opens ===== */
.view[data-view="treasure"] .board:not([data-map="jungle"]):not([data-map="tomb"]) .tsea { background: radial-gradient(96% 84% at 50% 52%, transparent 44%, #06405ea6 78%, #042a44d9), radial-gradient(64% 58% at 50% 52%, color-mix(in srgb, var(--sea) 58%, #dffdf6), color-mix(in srgb, var(--sea) 70%, #fff 6%) 46%, transparent 78%), linear-gradient(180deg, color-mix(in srgb, var(--sea) 62%, var(--g4)), color-mix(in srgb, var(--sea) 30%, var(--g4))); }
.tglint { inset: 0; animation: gaPulse 3.2s ease-in-out infinite; background: radial-gradient(9px 2px at 14% 22%, #fff, transparent), radial-gradient(7px 2px at 82% 30%, #fff, transparent), radial-gradient(10px 2px at 90% 68%, #fff, transparent), radial-gradient(6px 1.500px at 20% 58%, #fff, transparent), radial-gradient(8px 2px at 68% 90%, #fff, transparent), radial-gradient(7px 1.500px at 34% 8%, #fff, transparent), radial-gradient(6px 1.500px at 8% 40%, #ffffffb3, transparent), radial-gradient(9px 2px at 94% 46%, #ffffffb3, transparent); }
/* the sand spit the palm grows on, with foam round it, and a smaller bar by the boat */
.tspit { left: -46px; bottom: -40px; width: 230px; height: 118px; border-radius: 50%; background: var(--grain), radial-gradient(60% 50% at 44% 30%, #fff6d0, transparent 70%), radial-gradient(closest-side, #ffe6a0 0 58%, #e9c070 76%, #d9a850 90%); box-shadow: 0 0 0 4px #ffffffd9, 0 0 0 9px #ffffff59, 0 0 0 16px #ffffff24, inset 0 -10px 18px #a8702c59; }
.tspit.b { left: auto; right: -70px; bottom: -58px; width: 190px; height: 100px; }
.tsea .palm { left: 14px; bottom: 16px; width: 132px; z-index: 1; } .tsea .boat { bottom: 84px; z-index: 1; }
.tmap[data-map="island"]::before { border: 0; box-shadow: 0 0 0 3px #ffffffcc, 0 0 0 9px #ffffff40, 0 0 18px 10px #ffffff38; }
.board[data-map="jungle"] .tglint, .board[data-map="tomb"] .tglint, .board[data-map="jungle"] .tspit, .board[data-map="tomb"] .tspit { display: none; }
/* jungle: shafts of light through the canopy, bushes in the midground, a taller ruin and a bigger parrot */
.tshaft { position: absolute; inset: -10% 0 0; background: conic-gradient(from 196deg at 22% 0%, #f4ffb000 0deg, #f4ffb038 7deg, #f4ffb000 14deg, #f4ffb000 22deg, #f4ffb02e 30deg, #f4ffb000 40deg), conic-gradient(from 150deg at 84% 0%, #f4ffb000 0deg, #f4ffb02e 8deg, #f4ffb000 17deg, #f4ffb000 26deg, #f4ffb024 33deg, #f4ffb000 42deg); -webkit-mask: linear-gradient(180deg, #000 30%, transparent 96%); mask: linear-gradient(180deg, #000 30%, transparent 96%); animation: gaPulse 7s ease-in-out infinite; }
.tbush { left: -22px; bottom: 150px; width: 170px; filter: drop-shadow(0 8px 6px #0009) brightness(.82); }
.tbush + .tbush { left: auto; right: -30px; bottom: 30px; width: 190px; transform: scaleX(-1); }
.truin { left: 1.500%; bottom: 40px; width: 112px; } .tparrot { right: 2%; top: 26%; width: 108px; }
/* tomb: carved sandstone slabs in violet lamplight, chipped at the corners */
.tmap[data-map="tomb"] { background: var(--grain), linear-gradient(160deg, #6a5470, #3a2a4a); }
.tmap[data-map="tomb"] .tm { border-radius: 6px; background: linear-gradient(200deg, #b98cff38, transparent 46%), radial-gradient(circle at 22% 14%, #ffffff80, transparent 42%), radial-gradient(2.500px 2px at 72% 30%, #00000038 50%, transparent 51%), radial-gradient(2px 2px at 30% 76%, #00000033 50%, transparent 51%), radial-gradient(3px 2px at 60% 86%, #ffffff73 50%, transparent 51%), radial-gradient(2px 2px at 84% 62%, #00000029 50%, transparent 51%), var(--noise), linear-gradient(165deg, var(--m1), var(--m2));
  box-shadow: inset 0 2px 0 #ffffffb3, inset 2px 0 0 #ffffff4d, inset 0 -4px 0 #00000052, inset -2px 0 0 #00000038, inset 0 0 0 5px #ffffff14, inset 0 0 0 6px #3a244033, 0 4px 0 #2a1c38, 0 5px 0 #00000080, 0 9px 8px -3px #000c; }
.tm .cd { stroke: #3a2440a6; stroke-width: 2.600; } .tm .cl { stroke: #ffffffb3; }
.tmap.on[data-map="tomb"] .tm:not(:disabled) .cd { stroke: #2a1634; }
.tm .chp { fill: #2a1c38; stroke: #ffffff8c; stroke-width: 1; stroke-linejoin: round; paint-order: stroke; } .tm .crk { stroke: #2a1c38a6; stroke-width: 1.600; }
/* torches: an iron bracket and bowl on the wall, a living flame, sparks */
.tsea .torch { top: 30%; width: 34px; height: 60px; border-radius: 0; box-shadow: none; background: radial-gradient(ellipse 17px 9px at 50% 9px, #5a5f6e 0 96%, transparent), linear-gradient(180deg, #2a2d38, #2a2d38) 50% 9px / 34px 4px no-repeat, linear-gradient(90deg, #1a1c24, #5a5f6e 45%, #1a1c24) 50% 16px / 8px 26px no-repeat, linear-gradient(180deg, #3a3e4c, #1a1c24) 50% 40px / 22px 18px no-repeat, radial-gradient(circle, #8a90a0 0 2px, transparent 2.500px) 50% 45px / 22px 8px no-repeat; filter: drop-shadow(0 4px 3px #000a); }
.tsea .torch::before { top: -40px; width: 34px; height: 48px; margin-left: -17px; background: radial-gradient(circle at 50% 78%, #fff 0 12%, #fff8c8 22%, #ffd23f 38%, #ff9a3d 60%, #ff5a2a 78%, transparent 80%); animation: trFlame .5s ease-in-out infinite alternate; }
.tsea .torch::after { top: -104px; width: 240px; height: 240px; margin-left: -120px; background: radial-gradient(closest-side, #ffb04da6, #ff9a3d40 46%, transparent); }
.tsea .torch b { position: absolute; left: 50%; top: -30px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #fff3b0; box-shadow: 0 0 6px 2px #ff9a3d; opacity: 0; animation: gaEmber 2.2s linear infinite; }
.tsea .torch b:nth-child(2) { margin-left: -9px; animation-duration: 2.900s; animation-delay: -.8s; } .tsea .torch b:nth-child(3) { margin-left: 6px; animation-duration: 3.400s; animation-delay: -1.700s; }
:root[data-q="low"] .tsea .torch b, :root[data-q="low"] .tglint, :root[data-q="low"] .tshaft { animation: none; }
/* X marks the spot, faintly, until you point at it */
.tm:not(:disabled) .tx { opacity: .3; stroke-width: 2.200; }
/* finds: bigger art; the top prize sits on a bright gold sunburst */
.tm .art { width: 68%; } .tm.prize:not(.dim) b { font-size: 12.500px; padding: 3px 7px; }
.tm.dug.prize.top:not(.dim) { background: repeating-conic-gradient(from 0deg at 50% 46%, #ffffff00 0deg, #ffffffcc 7deg, #ffffff00 14deg, #ffffff00 30deg), radial-gradient(circle at 50% 46%, #fffbe0, #ffd95a 46%, #f0a020); box-shadow: inset 0 0 0 2.500px #fff, inset 0 0 0 4px #b8780c, 0 0 0 3px var(--g1), 0 0 0 5px #7a4a05, 0 0 34px 8px var(--g1); }
.tm.dug.prize.top:not(.dim) .pit { opacity: 0; } .tm.dug.prize.top:not(.dim) .art { width: 80%; filter: drop-shadow(0 3px 0 #7a4a0599) drop-shadow(0 0 8px #fff); }
/* at the end the other tiles keep their ground and show a small ghost of what lay under them, so your own pits stand out */
.tmap .tm.dim { background: radial-gradient(circle at 24% 16%, #ffffff73, transparent 36%), radial-gradient(2px 2px at 36% 70%, #0000002e 50%, transparent 51%), radial-gradient(2px 2px at 70% 28%, #0000002e 50%, transparent 51%), linear-gradient(180deg, color-mix(in srgb, var(--m1) 82%, var(--m4)), color-mix(in srgb, var(--m2) 82%, var(--m4))); box-shadow: inset 0 2px 0 #ffffff80, inset 0 -3px 0 #00000024, 0 3px 0 color-mix(in srgb, var(--m2) 55%, #000), 0 6px 6px -3px #000a; }
.tm.dim .pit { opacity: .16; } .tm.dim .art { width: 52%; opacity: .8; filter: saturate(.8) drop-shadow(0 2px 0 #0006); } .tm.dim.top .art { width: 58%; opacity: 1; }
.tm.dug:not(.dim) { z-index: 1; }
/* the haul plate: the chest opens, glows and hops as the coins fly */
.tchest { width: 60px; margin: -6px 0; }
.thaul.won .tchest { width: 92px; margin: -30px 0 -10px -8px; filter: drop-shadow(0 4px 0 #0008) drop-shadow(0 0 14px #ffd23fb3); }
.thaul.won .tchest .clid { transform-box: fill-box; transform-origin: 50% 100%; animation: trLid 620ms var(--ease-pop) both; }
@keyframes trLid { 0% { transform: scaleY(.25) translateY(10%); } 60% { transform: scaleY(1.14); } 100% { transform: none; } }
.thaul.won .tchest .cglow { animation: gaPulse 1.200s ease-in-out infinite; }
.tchest.pop { animation: trBump 360ms var(--ease-pop); }
.thaul.won .thl b { font-size: 32px; } .thaul.won strong { font-size: 18px; padding: 9px 14px; box-shadow: 0 0 0 2px #fff, 0 0 18px 2px var(--success); }
@media (max-width: 1100px) { .truin { width: 78px; } .tparrot { width: 70px; } .tbush { width: 120px; } .tbush + .tbush { width: 130px; } .tspit { width: 170px; height: 90px; } .tsea .palm { width: 100px; } }
@media (max-width: 860px) { .tspit, .tbush { display: none; } .thaul.won .tchest { width: 70px; margin: -20px 0 -6px -4px; } .thaul.won .thl b { font-size: 24px; } .thaul.won strong { font-size: 14px; padding: 7px 10px; } }
/* phones: the title bar, the whole board and the primary button fit above the bottom nav (top bar 52 + title bar, board, gap, 48px button, nav 56).
   Only the frame scales: Tower floors get shorter, Keno lays its 40 balls out 8 across like on desktop, the slot cabinet is zoomed down. */
@media (max-width: 699px) {
  .view[data-view="tower"] .tt { height: clamp(26px, calc((100svh - 544px) / 8), 44px); }
  .view[data-view="keno"] .keno { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; max-width: none; }
  .view[data-view="keno"] .kn { font-size: 13px; }
}
@media (max-width: 699px) and (max-height: 800px) {
  .view[data-view="tower"] .tbuild { padding-top: 26px; }
  .view[data-view="tower"] .tread b { font-size: 34px; }
  .view[data-view="tower"] .tt .tgem { width: 22px; } .view[data-view="tower"] .tt .tfire { width: 21px; margin-top: -8px; }
}
@media (max-width: 699px) and (max-height: 800px) { .view[data-view="slots"] .slots { zoom: .84; } }
@media (max-width: 699px) and (max-height: 700px) { .view[data-view="slots"] .slots { zoom: .74; } }
/* Slots: the pay list waits behind a Pays toggle, closed until asked for */
.pdet > summary { width: max-content; cursor: pointer; font-size: 14px; line-height: 20px; color: var(--muted); border-radius: var(--r-sm); }
.pdet > summary:hover { color: var(--fg); }
.pdet[open] > summary { margin-bottom: var(--sp-2); }
/* Scratch: the ticket title stays on one line on the narrowest phones */
.sticket-h span { white-space: nowrap; }
@media (max-width: 380px) { .sticket-h { font-size: 15px; } }

/* ===== Play dock: the buttons that play each game sit on the board, at the bottom of the stage.
   The control column keeps only the setup (bet, difficulty, price, prediction). ===== */
.gdock { position: relative; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 10px; width: 100%; flex: none; }
.gdock .big-btn { flex: 0 1 320px; width: auto; min-width: 0; min-height: 54px; padding: 8px 22px; border-radius: 14px; font: 700 17px/1.15 var(--font-body); box-shadow: 0 10px 22px -10px #000d, inset 0 -3px 0 #0000002e; }
.gdock .big-btn:disabled { background: rgba(8, 9, 18, .7); color: #ffffff8c; box-shadow: inset 0 0 0 1px #ffffff26; }
.gdock .big-btn.cash:not(:disabled) { background: var(--success); color: var(--ink); }
.gdock .chip-btn { flex: 0 0 auto; height: auto; min-height: 54px; padding: 0 18px; border-radius: 14px; font: 600 15px var(--font-body); color: #fff; background: rgba(8, 9, 18, .72); box-shadow: inset 0 0 0 1px #ffffff2e; }
.gdock .chip-btn:hover:not(:disabled) { background: rgba(8, 9, 18, .86); }
@media (max-width: 860px) {
  .gdock { gap: 8px; }
  .gdock .big-btn { flex: 1 1 auto; min-height: 52px; font-size: 16.5px; padding: 8px 14px; }
  .gdock .chip-btn { min-height: 52px; padding: 0 14px; font-size: 14.5px; }
}
@media (max-width: 380px) { .gdock .chip-btn { padding: 0 11px; } }
/* Tower: the dock sits on the lava under the tower; on desktop the floors give up a little height so the board still fits a 900px screen */
.view[data-view="tower"] .game > .board { padding-bottom: 14px; }
@media (min-width: 700px) { .view[data-view="tower"] .tt { height: clamp(36px, calc((100vh - 580px) / 8), 50px); } }
/* Higher or Lower: Lower and Higher flank the cards (under them on a phone); Bet / Cash out is in the dock */
.hlrow { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 22px; }
.hlrow > .pcards { flex: 0 1 auto; min-width: 0; }
.board.hshake .hlrow > .pcards { animation: gaShake 420ms ease; }
.view[data-view="hilo"] :is(#hilo-hi, #hilo-lo) { flex: 0 0 136px; height: 78px; border-radius: 14px; gap: 6px; color: var(--g-ink); background: var(--g1); box-shadow: 0 10px 22px -10px #000d, inset 0 -3px 0 #0000002e; }
.view[data-view="hilo"] :is(#hilo-hi, #hilo-lo):hover:not(:disabled) { background: var(--g1); filter: brightness(1.08); }
.view[data-view="hilo"] :is(#hilo-hi, #hilo-lo) .hl-w { font-size: 17px; font-weight: 700; }
.view[data-view="hilo"] :is(#hilo-hi, #hilo-lo) small { color: inherit; opacity: .85; }
.view[data-view="hilo"] :is(#hilo-hi, #hilo-lo):disabled { color: #ffffff80; background: rgba(8, 9, 18, .6); box-shadow: inset 0 0 0 1px #ffffff26; }
@media (max-width: 860px) {
  .hlrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; }
  .hlrow > .pcards { grid-column: 1 / -1; grid-row: 1; }
  .view[data-view="hilo"] :is(#hilo-hi, #hilo-lo) { height: 56px; }
  .view[data-view="hilo"] .game > .board { gap: 10px; }
}
/* Scratch Cards: while a card is live, Reveal all is the main button and Buy card steps back */
.view[data-view="scratch"] .board:not(:has(.scard.live)) #scratch-all { opacity: .55; }
.view[data-view="scratch"] .board:has(.scard.live) #scratch-all { flex: 0 1 220px; color: var(--g-ink); background: var(--g1); }
.view[data-view="scratch"] .board:has(.scard.live) #scratch-buy { flex: 0 0 auto; color: #fff; background: rgba(8, 9, 18, .72); box-shadow: inset 0 0 0 1px #ffffff2e; }
@media (max-width: 860px) { .view[data-view="scratch"] .board:has(.scard.live) #scratch-all { flex: 1 1 auto; } }
