/* MayaSlot. Phone-first: one column that fills the screen, like an app.

   Two materials, kept apart on purpose.
   The machine: enamel cabinet colours, black glass, amber LED meters and fat
   painted lettering. Everything you play with looks like this.
   The receipt: white till paper with black ink and torn edges. Everything
   about real money is printed on this, wherever it turns up. */
:root {
  --floor: #0f1d15; --panel: #182a1f; --panel2: #213628; --line: #2f4a37; --text: #f7f1dc; --muted: #a9b9a3;
  --led: #ffbe2e; --brass: #c9a24b; --leaf: #3f9b4b; --leaf2: #2c7a39;
  --paper: #f6f6f1; --paper2: #e8e8e1; --ink: #151515; --ink2: #5d5f5b; --rule: #a9aaa4;
  --red: #c8102e; --green: #1f7a4d;
  --acc: #f6c23e; --acc-ink: #241802; --gold: #ffd45e; --cream: #f6e3b0;
  --cab1: #7a1f1b; --cab2: #47100e; --rim: #c9a24b; --cellbg: #f5efe2;
  --ok: #4fae7c; --bad: #e0574a; --warn: #e3a336;
  --disp: "Ultra", "Rockwell Extra Bold", "Rockwell", Georgia, serif;
  --ledf: "Doto", "Courier New", ui-monospace, monospace;
  --body: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
.t-dive { --cab1: #0f5d6b; --cab2: #07333c; --rim: #57b9c4; --acc: #7ee6d8; --acc-ink: #04262b; --cellbg: #e4f6f4; --gold: #c2fff6; --cream: #c9f1ee; }
.t-moon { --cab1: #332d82; --cab2: #17143f; --rim: #8a81ee; --acc: #cbbcff; --acc-ink: #150f3a; --cellbg: #eceaff; --gold: #ffe08a; --cream: #dcd6ff; }
.t-tiki { --cab1: #6b3416; --cab2: #2b1407; --rim: #e09a3c; --acc: #ffb347; --acc-ink: #2b1407; --cellbg: #fbe6cc; --gold: #ffd45e; --cream: #f6d9b6; }
.t-grove { --cab1: #2c6b2f; --cab2: #123516; --rim: #f6c23e; --acc: #f6c23e; --acc-ink: #241802; --cellbg: #fff7dc; --gold: #ffd45e; --cream: #f6e3b0; }
.t-scratch { --cab1: #b24a5e; --cab2: #4a1424; --rim: #ffd45e; --acc: #ffd45e; --acc-ink: #2b0712; --cellbg: #fff3e6; --gold: #fff3c4; --cream: #ffe1e6; }
.t-tide { --cab1: #0b6b74; --cab2: #04303a; --rim: #9ff0e4; --acc: #9ff0e4; --acc-ink: #03282c; --cellbg: #e9fbf7; --gold: #e9fff9; --cream: #c9f1ee; }
.t-reef { --cab1: #0d3e73; --cab2: #061a33; --rim: #ff8fa8; --acc: #ff8fa8; --acc-ink: #2b0712; --cellbg: #f2e6c9; --gold: #ffe08a; --cream: #d4e6ff; }
.t-lava { --cab1: #3a1511; --cab2: #120605; --rim: #ff7a2e; --acc: #ff7a2e; --acc-ink: #210803; --cellbg: #ffe4d1; --gold: #ffd45e; --cream: #ffd9c4; }
.t-peg { --cab1: #7b1f6b; --cab2: #3c0d35; --rim: #d477c6; --acc: #ffb3ee; --acc-ink: #2e0628; --cellbg: #ffe9fb; --gold: #ffe08a; --cream: #f6d3ee; }

* { box-sizing: border-box; }
html, body { margin: 0; background: #08110c; color: var(--text); }
body { font: 16px/1.4 var(--body); -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--led); outline-offset: 2px; }
p { margin: 0; }
svg { display: block; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  /* Pineapple skin: a faint criss-cross of gold lines over deep leaf green. */
  background: repeating-linear-gradient(45deg, #f6c23e0b 0 1px, transparent 1px 26px), repeating-linear-gradient(-45deg, #f6c23e0b 0 1px, transparent 1px 26px), var(--floor); }
.app.wide { max-width: 1040px; }
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); }
.screen.machine { background: var(--cab1) linear-gradient(180deg, transparent 35%, var(--cab2)); padding-bottom: env(safe-area-inset-bottom, 0px); user-select: none; -webkit-user-select: none; }
.grow { flex: 1; min-height: 12px; }
.pad { padding: 0 14px; }
.mono { font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); font-size: 14.5px; padding-top: 8px; padding-bottom: 8px; }
.error { color: #ffb3aa; font-size: 14.5px; min-height: 1.2em; margin: 6px 0; }
.loss { color: #ff9c90; }
.gain { color: #8fe0b3; }
.led { font-family: var(--ledf); font-weight: 900; color: var(--led); text-shadow: 0 0 9px #ffb00077; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- Receipt paper ---------- */
.slip, .sess, .stmt, .sheet, .card, .toast { background: var(--paper); color: var(--ink); font-variant-numeric: tabular-nums; }
.slip .loss, .sess .loss, .stmt .loss, .sheet .loss, .card .loss { color: var(--red); }
.slip .gain, .sess .gain, .stmt .gain, .sheet .gain, .card .gain { color: var(--green); }
/* Torn edges: a row of teeth cut out of the bottom, the top, or both. */
.slip, .sess, .stmt { --t: 5px; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--t)) 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--t)) 100%; }
.sheet { --t: 6px; -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--t)) 100%; mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--t)) 100%; }
.card { --t: 6px;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--t)) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--t)) 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--t)) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--t)) 51% repeat-x; }
/* The trouble level is a rubber stamp. */
.pill { display: inline-block; border: 2px solid; border-radius: 3px; padding: 0 7px; font-weight: 700; font-size: 12px; line-height: 1.5; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; transform: rotate(-3deg); }
.pill.l0 { color: #6fd3a0; } .pill.l1 { color: #c2cf6a; } .pill.l2 { color: #f0b25a; } .pill.l3 { color: #ff8a7e; } .pill.l4 { color: #ff5a6b; }
.slip .pill.l0, .stmt .pill.l0 { color: var(--green); } .slip .pill.l1, .stmt .pill.l1 { color: #5f6a17; } .slip .pill.l2, .stmt .pill.l2 { color: #a15c08; }
.slip .pill.l3, .stmt .pill.l3 { color: var(--red); } .slip .pill.l4, .stmt .pill.l4 { color: #8a0f1f; border-width: 3px; }

/* ---------- Top bars ---------- */
.top { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 16px 12px; gap: 8px; flex-wrap: wrap; }
.word { font-family: var(--disp); font-size: 21px; line-height: 1.1; }
.brand { display: inline-flex; align-items: center; gap: 6px; }
.brand .word { color: var(--acc); text-shadow: 0 2px 0 var(--leaf2); }
.brand .pine { width: 30px; height: 30px; flex: none; margin-top: -6px; }
.brand .pine svg { width: 100%; height: 100%; }
.brand.big { flex-direction: column; gap: 4px; }
.brand.big .pine { width: 74px; height: 74px; margin: 0; filter: drop-shadow(0 4px 10px #00000080); }
.brand.big .word { font-size: 40px; text-shadow: 0 3px 0 var(--leaf2), 0 6px 14px #0008; }
.chip { font-size: 14px; color: var(--muted); }
button.chip { text-decoration: underline; text-underline-offset: 3px; }
button.chip:hover { color: var(--text); }
.topacts { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; }
.mtop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 12px 12px 8px; gap: 8px; }
.mtop .back { font-weight: 600; color: var(--cream); font-size: 15px; justify-self: start; padding: 6px 4px; }
.mtop .name { font-family: var(--disp); color: var(--gold); font-size: 17px; line-height: 1.05; text-shadow: 0 2px 0 #0007; text-align: center; text-wrap: balance; }
.mtop.plain .name { font-family: var(--body); font-weight: 700; color: var(--text); text-shadow: none; font-size: 19px; }
.mtop .cred { justify-self: end; text-align: right; line-height: 1.1; background: #000; border-radius: 5px; padding: 4px 8px 3px; box-shadow: inset 0 0 0 1px #ffffff26; min-width: 74px; }
.mtop .cred b { display: block; font-size: 20px; transform-origin: right center; }
.mtop .cred i { font-style: normal; font-size: 12px; color: #d8d5cc; }
.mtop .cred.bump b { animation: credbump .45s ease-out 2; }
@keyframes credbump { 40% { transform: scale(1.18); color: #fff; text-shadow: 0 0 12px var(--led); } }
.sess { margin: 0 12px; padding: 6px 12px 12px; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.sess b { font-weight: 700; }

/* ---------- Tab bar ---------- */
.tabbar { position: sticky; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line); background: #0a150f; padding: 0 6px calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 5; }
.tabbar button { text-align: center; font-size: 14.5px; font-weight: 600; color: var(--muted); padding: 13px 2px 7px; position: relative; }
.tabbar button.on { color: var(--text); }
.tabbar button.on::before { content: ""; position: absolute; top: -1px; left: 18%; right: 18%; height: 3px; background: var(--acc); box-shadow: 0 0 8px #f6c23e88; }
.tabbar sup { background: var(--red); color: #fff; border-radius: 3px; padding: 0 5px; font-size: 11px; margin-left: 4px; }

/* ---------- Buttons ---------- */
.b { display: inline-block; border-radius: 6px; padding: 9px 14px; font-weight: 700; font-size: 15px; text-align: center; background: var(--acc); color: var(--acc-ink); }
.b.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text); }
.b.good { background: var(--ok); color: #06170e; }
.b.danger { background: transparent; box-shadow: inset 0 0 0 1.5px #7a2b24; color: #ffb3aa; }
.b.wide { display: block; width: 100%; padding: 12px 14px; font-size: 16px; margin-top: 8px; }
.b.flex { flex: 1; }
.b:disabled { opacity: .45; }
.link { font-weight: 600; font-size: 14.5px; color: var(--acc); padding: 2px 4px; text-decoration: underline; text-underline-offset: 3px; }
.sheet .b.ghost, .card .b.ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.sheet .b.dark, .card .b.dark { background: var(--ink); color: var(--paper); }

/* ---------- Lobby ---------- */
.meterbox { margin: 0 14px; background: #000; border-radius: 8px 8px 0 0; padding: 8px 14px 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; box-shadow: inset 0 0 0 1px #ffffff1f, inset 0 10px 18px #ffffff0a; }
.meterbox span { font-size: 14px; color: var(--muted); }
.meterbox .led { font-size: 46px; line-height: 1; }
.slip { display: block; width: calc(100% - 40px); margin: 0 20px; padding: 10px 14px 18px; font-size: 15px; }
.slip .row, .rows > div { display: flex; align-items: baseline; gap: 6px; }
.slip .row::after, .rows > div::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); }
.slip .row > :last-child, .rows > div > :last-child { order: 2; text-align: right; font-weight: 600; }
.slip .row { padding: 2px 0; }
.slip .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--rule); }
.slip u { font-size: 14px; color: var(--ink2); text-underline-offset: 3px; }
.acts { display: flex; gap: 8px; margin-top: 12px; }
.testnote { margin: 10px 14px 0; background: #000; color: var(--led); box-shadow: inset 0 0 0 1px var(--led); border-radius: 4px; padding: 6px 10px; font-size: 14px; font-weight: 600; text-align: center; }
.h { margin: 22px 16px 8px; font-size: 15px; font-weight: 600; color: var(--muted); }
.h.first { margin-top: 4px; }
.stmt .h { margin: 18px 0 0; color: var(--ink); font-weight: 700; }
.floor { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 6px; }
.cab { display: flex; flex-direction: column; gap: 8px; padding: 12px 10px 14px; border-radius: 12px 12px 3px 3px; background: var(--cab1) linear-gradient(180deg, transparent 45%, var(--cab2)); box-shadow: inset 0 0 0 2px #ffffff1c, inset 0 -7px 0 #0005; min-width: 0; }
.cab:active { transform: translateY(2px); }
.cab .plate { font-family: var(--disp); font-size: 18px; line-height: 1.08; color: var(--gold); text-shadow: 0 2px 0 #0007; min-height: 2.16em; }
.cab .win3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: #000; padding: 4px; border-radius: 6px; box-shadow: 0 0 0 2px var(--rim); }
.cab .win3 span { background: var(--cellbg); border-radius: 3px; aspect-ratio: 1; padding: 13%; }
.cab .win3 svg { width: 100%; height: 100%; }
.cab .tag { font-size: 14.5px; line-height: 1.25; color: #fff; }
.cab .facts { font-size: 13px; line-height: 1.4; color: var(--cream); }
.cab .waiting { align-self: flex-start; font-size: 13px; font-weight: 700; color: #000; background: var(--led); border-radius: 3px; padding: 0 7px; }

/* ---------- Boxes, forms, lists ---------- */
.box { margin: 0 14px 10px; background: var(--panel); border-radius: 6px; padding: 14px; }
button.box { display: block; width: calc(100% - 28px); }
.box .t, .head2 .t { font-weight: 700; font-size: 17px; }
.box h1 { margin: 0 0 4px; font-size: 22px; }
.m { font-size: 14px; color: var(--muted); }
.blocknote { background: #000; box-shadow: inset 0 0 0 1px var(--led); }
.blocknote .t { color: var(--led); }
.blocknote .m { color: var(--text); margin-top: 2px; }
.head2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.field { display: grid; gap: 4px; margin: 10px 0; min-width: 0; }
.field label, label.check { font-size: 14.5px; font-weight: 600; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--text); }
label.check input { width: 18px; height: 18px; accent-color: var(--acc); }
.hintline { font-size: 13.5px; color: var(--muted); }
.input { display: block; width: 100%; min-width: 0; background: #000; border: 1px solid var(--line); border-radius: 5px; padding: 10px 12px; font-size: 16px; margin-top: 8px; }
.field .input { margin-top: 0; }
.input.flex { flex: 1; width: auto; margin-top: 0; }
.acts .input { margin-top: 0; }
.input.light { background: #fff; color: var(--ink); border-color: var(--ink); }
textarea.input { resize: vertical; min-height: 44px; }
.amount { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; align-items: center; margin-top: 10px; }
.amount .v { text-align: center; background: #000; border-radius: 6px; padding: 6px 4px; }
.amount .v b { font-family: var(--ledf); font-weight: 900; font-size: 36px; color: var(--led); text-shadow: 0 0 9px #ffb00077; display: block; line-height: 1.05; }
.amount .v span { font-size: 14px; color: #d8d5cc; }
.chips { display: flex; gap: 6px; justify-content: center; margin: 10px 0 4px; flex-wrap: wrap; }
.chips button { box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 5px; padding: 4px 13px; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chips button.on { box-shadow: inset 0 0 0 2px var(--acc); color: var(--acc); }
.warn { border-left: 3px solid var(--warn); background: #2c2611; padding: 7px 10px; font-size: 14px; color: #f6deb0; margin-top: 6px; }
.warn.bad { border-color: var(--bad); background: #331513; color: #ffcbc4; }
.tags { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 7px; }
.tags span { font-size: 13.5px; color: var(--muted); }
.tags span.flag { color: #f3c56b; }
.tags span.live { color: #8fe0b3; }
.tags span.stop { color: #ff9c90; }
.quote { font-style: italic; font-size: 15px; margin-top: 5px; overflow-wrap: anywhere; }
.status { font-size: 14px; font-weight: 700; }
.status.pending { color: var(--led); }
.tl { margin: 0 16px; }
.tl > div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tl time { font-size: 13px; line-height: 1.35; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl b { display: block; font-size: 15px; font-weight: 600; }
.tl span { color: var(--muted); overflow-wrap: anywhere; }
.tl .ev-check b { color: #f3c56b; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 15px; margin-top: 8px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.setrow:last-child { border-bottom: 0; }
.acct { padding: 10px 0; border-bottom: 1px solid var(--line); }
.acct:last-child { border-bottom: 0; }
.pcard .m { margin-top: 4px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 800px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.box.paperbox { background: none; padding: 0; }

.screen.auth { justify-content: center; padding: 24px 0; }
.authbrand { text-align: center; margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; }
.authbrand p { color: var(--muted); font-size: 15px; margin-top: 6px; }
a.b { text-decoration: none; }
.blist { margin-top: 10px; }
.brow { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.brow b { display: block; font-size: 15px; font-weight: 600; }
.brow span { font-size: 13.5px; color: var(--muted); }
.join { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.join:empty { display: none; }

/* ---------- Machine ---------- */
.stage { padding: 12px 12px 0; }
.reelbox { position: relative; background: #000; border-radius: 10px; padding: 6px; box-shadow: 0 0 0 3px var(--rim), 0 0 0 5px #0006, inset 0 0 14px #000; transition: box-shadow .3s; }
.glow1 { box-shadow: 0 0 0 3px var(--gold), 0 0 16px 4px #ffcf6b88 !important; }
.glow2 { box-shadow: 0 0 0 3px var(--gold), 0 0 26px 6px #ffcf6bcc !important; }
.glow3 { animation: glowp .5s ease-in-out infinite alternate; }
@keyframes glowp { from { box-shadow: 0 0 0 3px var(--gold), 0 0 16px 4px #ffcf6b99; } to { box-shadow: 0 0 0 3px #fff3c4, 0 0 44px 12px #ffe08a; } }
.reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.reel { height: calc(var(--cell, 64px) * 3); overflow: hidden; background: var(--cellbg); border-radius: 4px; position: relative; }
.reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #0000002e, transparent 16%, transparent 84%, #0000002e); }
.strip { will-change: transform; }
.cell { height: var(--cell, 64px); display: grid; place-items: center; position: relative; transition: opacity .2s; }
.cell svg { width: 76%; height: 76%; }
.reels.showing .cell { opacity: .3; }
.reels.showing .cell.hit, .cell.pop { opacity: 1; }
.cell.hit::after { content: ""; position: absolute; inset: 3px; border: 3px solid var(--gold); border-radius: 5px; box-shadow: 0 0 10px #ffcf6b99; }
.cell.hit { z-index: 2; }
.cell.hit svg { animation: hitp .5s ease-in-out 3; }
@keyframes hitp { 50% { transform: scale(1.16) rotate(-3deg); } }
.cell.scatter::after { content: ""; position: absolute; inset: 3px; border: 3px solid #9fe3ff; border-radius: 5px; box-shadow: 0 0 12px #9fe3ffaa; }
.cell.pop { background: #fff; z-index: 2; animation: popc .5s ease-out both; }
.cell.pop::after { content: ""; position: absolute; inset: 2px; border: 3px solid var(--gold); border-radius: 6px; box-shadow: 0 0 14px var(--gold); }
@keyframes popc { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1.04); } }
.cell.gone { animation: gonec .22s ease-in both; }
@keyframes gonec { to { transform: scale(.1); opacity: 0; } }
.cell.drop { animation: dropc .34s cubic-bezier(.3, 0, .45, 1.25) both; }
@keyframes dropc { from { transform: translateY(calc(var(--cell, 64px) * var(--d, 1) * -1)); } to { transform: none; } }
.reels.lockmode .reel { background: var(--cab2); }
.reels.lockmode .reel::after { display: none; }
.cell.empty, .cell.coin { background: var(--cab2); box-shadow: inset 0 0 0 1px #ffffff14; }
.cell.coin svg { width: 90%; height: 90%; }
.cell.coin b { position: absolute; font-weight: 700; font-size: 15px; color: #4a3508; font-variant-numeric: tabular-nums; }
.cell.coin.named b { font-size: 11px; font-family: var(--disp); font-weight: 400; }
.cell.coin.fresh { animation: coinin .45s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes coinin { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.cell.coin.tally { animation: tallyc .3s ease-out; }
.cell.coin.tally svg { filter: drop-shadow(0 0 7px #ffe08a); }
.cell.coin.tally b { color: #000; }
@keyframes tallyc { 40% { transform: scale(1.14); } }
.cell.empty::after, .mc.rest::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #ffffff26; }
.cell.rolling { display: block; overflow: hidden; }
.cell.rolling::after { display: none; }
.mini { will-change: transform; }
.mc { height: var(--cell, 64px); display: grid; place-items: center; position: relative; box-shadow: inset 0 -1px 0 #ffffff14; }
.mc i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: .6; box-shadow: 0 0 6px 1px #c7b8ff; }
.mc svg { width: 90%; height: 90%; }
.pips.refill i { animation: pipin .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.pips.refill i:nth-child(2) { animation-delay: .08s; } .pips.refill i:nth-child(3) { animation-delay: .16s; }
@keyframes pipin { from { transform: scale(.2); } }
.lines { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); pointer-events: none; z-index: 3; }
.lines polyline { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; vector-effect: non-scaling-stroke; animation: linein .9s ease-out; filter: drop-shadow(0 0 4px #ffcf6b); }
@keyframes linein { 0% { opacity: 0; } 25% { opacity: 1; stroke: #fff; } 100% { opacity: .9; } }
.bigwin { position: absolute; inset: 0; display: grid; place-items: center; z-index: 6; pointer-events: none; background: #000000a6; border-radius: 10px; }
.bigwin div { font-family: var(--disp); color: #fff3c4; text-align: center; font-size: clamp(32px, 10.5vw, 52px); line-height: 1; text-shadow: 0 3px 0 #b06a0a, 0 6px 0 #000a, 0 0 34px #ffcf6b99; animation: bigp .5s cubic-bezier(.2, 1.6, .4, 1); padding: 0 8px; }
.bigwin small { display: block; font-family: var(--ledf); font-weight: 900; font-size: .46em; margin-top: 12px; color: var(--led); text-shadow: 0 0 10px #ffb00088; font-variant-numeric: tabular-nums; }
.bigwin.mega div { animation: bigp .5s cubic-bezier(.2, 1.6, .4, 1), megap .45s ease-in-out .5s infinite alternate; }
@keyframes bigp { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes megap { to { transform: scale(1.07); } }
.ladder { display: flex; justify-content: center; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
/* Deep Dive's chain badge, on the top edge of the glass. It grows with the chain. */
.chain { position: absolute; top: -16px; right: 8px; z-index: 5; pointer-events: none; display: flex; flex-direction: column; align-items: center; line-height: 1;
  background: var(--acc); color: var(--acc-ink); border-radius: 12px; padding: 5px 10px 4px; box-shadow: 0 0 0 3px #04262b, 0 6px 14px #000a; transform-origin: 70% 100%; }
.chain b { font-family: var(--disp); font-weight: 400; font-size: 22px; }
.chain span { font-size: 11.5px; font-weight: 700; margin-top: 2px; }
.chain.in { animation: chainin .45s cubic-bezier(.2, 1.7, .4, 1); }
.chain.lv3, .chain.lv4 { background: #ffd45e; box-shadow: 0 0 0 3px #04262b, 0 0 18px #ffd45e; }
.chain.lv5, .chain.lv6 { background: #fff3c4; box-shadow: 0 0 0 3px #04262b, 0 0 28px #ffd45e; }
.chain.lv3 b, .chain.lv4 b { font-size: 27px; } .chain.lv5 b, .chain.lv6 b { font-size: 32px; }
@keyframes chainin { from { transform: scale(.3) rotate(-14deg); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }
.chain:not(.in) { transform: rotate(-4deg); }
.reels.ripple { animation: ripple .65s ease-out; }
@keyframes ripple { 0% { filter: brightness(1.45) saturate(1.4); } 100% { filter: none; } }
.ladder span { font-weight: 700; font-size: 15px; padding: 3px 7px; border-radius: 4px; background: #000; color: var(--cream); opacity: .5; font-variant-numeric: tabular-nums; }
.ladder span.done { opacity: 1; }
.ladder span.on { opacity: 1; background: var(--acc); color: var(--acc-ink); box-shadow: 0 0 12px var(--acc); animation: ladderin .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes ladderin { from { transform: scale(1.5); } }
.bonusbar { margin-bottom: 10px; border-radius: 6px; padding: 7px 11px; background: #000; box-shadow: inset 0 0 0 1px var(--rim); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--cream); }
.bonusbar .t { font-family: var(--disp); font-weight: 400; color: var(--gold); font-size: 17px; line-height: 1.1; }
.bonusbar .who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bonusbar .sub2 { font-size: 14px; }
.bonusbar .tot { text-align: right; line-height: 1.05; }
.bonusbar .tot span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.bonusbar .tot b { display: inline-block; font-size: 28px; transform-origin: right center; }
.bonusbar.bump .tot b { animation: credbump .45s ease-out 2; }
/* While a bonus round is on, lights run round the glass. */
.machine.bonus .bonusbar { margin-bottom: 20px; }
.machine.bonus .ladder { margin-bottom: 8px; }
.machine.bonus .reelbox::before { content: ""; position: absolute; inset: -12px; border-radius: 16px; pointer-events: none; animation: bulbs .5s linear infinite;
  background: radial-gradient(circle, #ffd76b 2px, #0000 2.7px) 0 0 / 12px 6px repeat-x, radial-gradient(circle, #ffd76b 2px, #0000 2.7px) 0 100% / 12px 6px repeat-x,
    radial-gradient(circle, #ffd76b 2px, #0000 2.7px) 0 0 / 6px 12px repeat-y, radial-gradient(circle, #ffd76b 2px, #0000 2.7px) 100% 0 / 6px 12px repeat-y; }
@keyframes bulbs { to { background-position: 12px 0, -12px 100%, 0 -12px, 100% 12px; } }
.flashfx { position: absolute; inset: 0; background: #fff; border-radius: 10px; z-index: 7; pointer-events: none; animation: flashout .7s ease-out both; }
@keyframes flashout { from { opacity: .9; } to { opacity: 0; } }
.bigwin.intro div { font-size: clamp(34px, 11.5vw, 58px); animation: bigp .5s cubic-bezier(.2, 1.6, .4, 1), megap .45s ease-in-out .5s infinite alternate; }
.pips { display: flex; gap: 5px; align-items: center; }
.pips i { width: 12px; height: 12px; border-radius: 50%; background: var(--led); box-shadow: 0 0 6px #ffb00099; }
.pips i.off { background: #3a3320; box-shadow: none; }
.msg { margin: 12px 14px 0; text-align: center; min-height: 52px; display: grid; place-content: center; }
.msg .l1 { font-weight: 600; font-size: 17px; color: #fff; }
.msg .l1.win { font-family: var(--disp); font-weight: 400; color: var(--gold); font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #0008, 0 0 14px #ffcf6b55; }
.msg .l1.free { font-family: var(--disp); font-weight: 400; color: var(--gold); font-size: 19px; text-shadow: 0 2px 0 #0008; }
.msg .l2 { font-size: 14.5px; color: var(--cream); }
.hint { margin: 8px 18px 0; font-size: 14px; line-height: 1.35; color: var(--cream); text-align: center; opacity: .85; }
.dock { padding: 0 14px 16px; }
.betrow { display: grid; grid-template-columns: 50px 1fr 50px; gap: 8px; align-items: center; }
.rnd { width: 50px; height: 50px; border-radius: 50%; background: #000; box-shadow: inset 0 0 0 2px var(--rim); color: var(--acc); font-size: 26px; font-weight: 700; text-align: center; line-height: 1; }
.rnd:active:not(:disabled) { transform: translateY(2px); }
.rnd:disabled { opacity: .35; }
.betbox { background: #000; border-radius: 6px; box-shadow: inset 0 0 0 1px #ffffff26; text-align: center; padding: 5px 6px 6px; line-height: 1.15; }
.betbox i { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.betbox b { font-family: var(--ledf); font-weight: 900; color: var(--led); text-shadow: 0 0 9px #ffb00077; font-size: 26px; }
.betbox em { font-style: normal; font-size: 14px; color: #d8d5cc; margin-left: 6px; }
.spin { display: block; width: 100%; margin-top: 10px; min-height: 64px; border-radius: 14px; text-align: center; font-family: var(--disp); font-size: 25px; color: var(--acc-ink);
  background: var(--acc); box-shadow: inset 0 2px 0 #ffffff66, 0 6px 0 color-mix(in srgb, var(--acc) 50%, #000), 0 9px 12px #0006; transition: transform .08s, box-shadow .08s; }
.spin small { display: block; font: 600 13px var(--body); margin-top: -2px; }
.spin:active:not(:disabled) { transform: translateY(5px); box-shadow: inset 0 2px 0 #ffffff66, 0 1px 0 color-mix(in srgb, var(--acc) 50%, #000); }
.spin:disabled { filter: grayscale(.7) brightness(.6); }
.tools { display: flex; justify-content: space-between; margin-top: 16px; }
.tools button { font-size: 14.5px; font-weight: 600; color: var(--cream); padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #ffffff55; }
.speedrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.tgl:disabled { opacity: .45; }
.tgl { text-align: center; font-size: 15px; font-weight: 700; padding: 8px 6px; border-radius: 8px; background: #0007; color: var(--cream); box-shadow: inset 0 0 0 1.5px #ffffff22; }
.tgl b { font-weight: 800; }
.tgl.on { background: var(--acc); color: var(--acc-ink); box-shadow: none; }
.autochoices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.autochoices .b { padding: 14px 6px; font-size: 16px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #000; border-radius: 8px; padding: 3px; margin-bottom: 8px; }
.seg button { text-align: center; font-size: 15px; font-weight: 700; padding: 7px 0; border-radius: 5px; color: var(--cream); }
.seg button.on { background: var(--acc); color: var(--acc-ink); }
.blockbox { text-align: center; padding: 14px 12px; background: #000; box-shadow: inset 0 0 0 1px var(--led); border-radius: 8px; }
.blockbox h3 { margin: 0 0 4px; font-family: var(--disp); font-weight: 400; color: var(--led); font-size: 19px; }
.blockbox p { color: var(--text); font-size: 15px; }

.pegbox { position: relative; background: #00000073; border-radius: 10px; padding: 6px 2px 2px; box-shadow: 0 0 0 3px var(--rim), 0 0 0 5px #0006; transition: box-shadow .3s; }
.plinko { width: 100%; height: auto; }
.plinko .peg { fill: var(--cream); opacity: .85; transform-box: fill-box; transform-origin: center; }
.plinko .ball { fill: var(--gold); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 0 3px #ffe08a); transition: opacity .4s, fill .3s; }
.plinko .ball.lost { fill: #a99aae; stroke: #d9cfdc; opacity: .55; filter: none; }
.plinko .ball.even { opacity: .8; filter: none; }
.plinko .ball.out { opacity: 0; }
.plinko text { font-family: var(--body); text-anchor: middle; font-variant-numeric: tabular-nums; }
.plinko .mx { font-size: 9px; font-weight: 700; fill: #1c1308; }
.plinko .pc { font-size: 7px; fill: var(--cream); opacity: .9; }
.plinko .slot { transform-box: fill-box; transform-origin: center; }
.plinko .slot.hit { animation: sloth .5s ease-out; }
@keyframes sloth { 0% { filter: brightness(2.2); transform: translateY(3px) scale(1.15); } 100% { filter: none; transform: none; } }

/* ---------- Effects layer ---------- */
#fxRoot { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.p { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; will-change: transform, opacity; }
.p.coin { background: radial-gradient(circle at 35% 30%, #fff6c9, #ffcf6b 45%, #c9962f); box-shadow: inset 0 0 0 1.5px #a87a1f, 0 1px 2px #0006; }
.p.coin.big { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.p.bubble { background: radial-gradient(circle at 30% 30%, #ffffffee, #b7fff466 45%, #6fe0d222); box-shadow: inset 0 0 0 1px #d7fffaaa; }
.p.spark { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: #fff; box-shadow: 0 0 8px 2px #ffe08a; }
.floaty { position: absolute; font-family: var(--disp); font-size: 22px; color: #ffcf6b; text-shadow: 0 2px 0 #000c, 0 0 12px #ffcf6b88; white-space: nowrap; font-variant-numeric: tabular-nums; }
.floaty.sm { font-size: 14px; }
.floaty.hot { font-size: 26px; color: #fff3c4; }

/* ---------- Overlays: always receipt paper ---------- */
.overlay { position: fixed; inset: 0; background: #000000c4; z-index: 50; display: flex; justify-content: center; }
.overlay.k-center { align-items: center; padding: 16px; }
.overlay.k-sheet { align-items: flex-end; }
.sheet { width: 100%; max-width: 480px; padding: 26px 18px calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 92vh; overflow-y: auto; }
.card { width: 100%; max-width: 420px; padding: 26px 18px 24px; max-height: 92vh; overflow-y: auto; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--red); }
.eyebrow.calm { color: var(--ink2); font-weight: 600; }
.ttl { font-size: 23px; font-weight: 700; line-height: 1.2; margin: 2px 0 10px; }
.herorow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hero { font-family: var(--disp); font-size: 34px; line-height: 1.1; color: var(--ink); }
.hero.loss { color: var(--red); } .hero.gain { color: var(--green); }
.sub { font-size: 15px; color: var(--ink2); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 12px 0; border-top: 1px dashed var(--rule); border-left: 1px dashed var(--rule); }
.stats div { padding: 8px 10px; border-right: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); }
.stats b { display: block; font-size: 21px; font-weight: 700; line-height: 1.15; }
.stats span { font-size: 13.5px; color: var(--ink2); }
.txt { font-size: 15px; margin: 8px 0; }
.txt.soft { color: var(--ink2); }
.txt.small { font-size: 13.5px; }
.txt.center { text-align: center; }
.rows { font-size: 15px; border-top: 1px dashed var(--rule); margin-top: 12px; padding-top: 4px; }
.rows > div { padding: 5px 0; }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin: 12px 0 4px; }
.meter i { height: 10px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.meter i.on { background: var(--ink); }
.meter i.on:nth-child(4), .meter i.on:nth-child(5) { background: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.meterlab { display: grid; grid-template-columns: repeat(5, 1fr); font-size: 12px; color: var(--ink2); text-align: center; }
.meterlab b { color: var(--ink); }
.meterlab b.lv3, .meterlab b.lv4 { color: var(--red); }
.bars { display: flex; gap: 2px; position: relative; margin-top: 14px; }
.bars::before { content: ""; position: absolute; left: 0; right: 0; top: 28%; border-top: 1px solid var(--ink); }
.bars i { flex: 1; position: relative; }
.bars s { position: absolute; left: 0; right: 0; }
.bars s.dn { top: 28%; background: var(--red); }
.bars s.up { bottom: 72%; background: var(--green); }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); margin-top: 3px; }
.stmt { padding: 16px 16px 26px; }
.paytable { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 14px; margin: 8px 0; }
.pt { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--rule); font-size: 13.5px; line-height: 1.3; }
.pt span { width: 38px; height: 38px; flex: none; background: var(--paper2); border-radius: 4px; padding: 4px; }
.pt svg { width: 100%; height: 100%; }
.pt b { font-size: 15px; }
.pt.wide { grid-column: 1 / -1; }
.linemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; margin: 10px 0; }
.linemap figure { margin: 0; text-align: center; font-size: 12px; color: var(--ink2); }
.linemap svg { width: 100%; height: auto; background: var(--paper2); }
.linemap polyline { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tablewrap { overflow-x: auto; margin: 8px 0; }
.pegtable { border-collapse: collapse; font-size: 14px; width: 100%; font-variant-numeric: tabular-nums; }
.pegtable th, .pegtable td { padding: 5px 6px; border-bottom: 1px dashed var(--rule); text-align: right; white-space: nowrap; }
.pegtable th { font-weight: 600; }
.pegtable th:first-child { text-align: left; }
.pegtable thead th { font-size: 12.5px; color: var(--ink2); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); padding: 10px 18px; z-index: 60; font-weight: 600; font-size: 15.5px; max-width: calc(100% - 32px); box-shadow: 0 8px 24px #000c; text-align: center; }


/* ---------- Newer machines ---------- */
.speedrow.n2 { grid-template-columns: repeat(2, 1fr); }
.speedrow.n1 { grid-template-columns: 1fr; }
.twobtn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.twobtn.one { grid-template-columns: 1fr; }
.twobtn .spin { margin-top: 0; font-size: 20px; }
.spin.cash { background: #4fd18b; color: #04210f; box-shadow: inset 0 2px 0 #ffffff66, 0 6px 0 #1f7a4d, 0 9px 12px #0006; }
.spin.cash:active:not(:disabled) { box-shadow: inset 0 2px 0 #ffffff66, 0 1px 0 #1f7a4d; }
.slip.mini { width: auto; margin: 10px 4px 0; padding: 8px 12px 14px; font-size: 14.5px; }
.ptic { display: inline-block; width: 22px; height: 22px; vertical-align: middle; margin-right: 6px; }
.ptic svg { width: 100%; height: 100%; }
.pegtable th:first-child { text-align: left; }

/* Tiki Wheel */
.wheelbox { position: relative; background: radial-gradient(circle at 50% 45%, #6b3416, #1b0c04 70%); border-radius: 14px; padding: 8px 6px 4px; box-shadow: 0 0 0 3px var(--rim), 0 0 0 5px #0006; transition: box-shadow .3s; max-width: 420px; margin: 0 auto; }
.wheel { width: 100%; height: auto; display: block; }
.wheel .wl { font-family: var(--disp); font-size: 14px; text-anchor: middle; dominant-baseline: middle; }
.wheel .wl.big { font-size: 22px; }
.wheel .wl.bonusl { font-size: 9.5px; }
.wheel .rl { font-family: var(--body); font-weight: 700; font-size: 12px; text-anchor: middle; dominant-baseline: middle; }
.wheel path.won { filter: brightness(1.45) drop-shadow(0 0 6px #fff3c4); }
.wheelbox.bonusmode { box-shadow: 0 0 0 3px #7ccf6e, 0 0 26px 6px #7ccf6e99; }
.wheelbox.bonusmode .ringg { opacity: .35; }
.ringtag { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: var(--gold); color: var(--acc-ink); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 3px 12px; box-shadow: 0 0 0 2px #2b1407; white-space: nowrap; }

/* Pineapple Grove */
.ripe { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #000; border-radius: 6px; padding: 6px 10px; margin-bottom: 10px; font-size: 14px; color: var(--cream); box-shadow: inset 0 0 0 1px var(--rim); }
.ripe span:first-child { font-family: var(--disp); color: var(--gold); font-size: 15px; }
.ripe.hot { box-shadow: inset 0 0 0 2px var(--gold), 0 0 12px #ffd45e88; }
.pips3 { display: flex; gap: 5px; } .pips3 i { width: 13px; height: 13px; border-radius: 50%; background: #3a3320; } .pips3 i.on { background: var(--led); box-shadow: 0 0 6px #ffb00099; }
.grovebox { overflow: hidden; }
.grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.gc { aspect-ratio: 1; background: var(--cellbg); border-radius: 4px; padding: 3px; position: relative; display: grid; place-items: center; }
.gc svg { width: 100%; height: 100%; }
.gc.goldc { background: radial-gradient(circle, #fff6cf, #ffd45e); box-shadow: 0 0 12px 2px #ffd45e; z-index: 2; }
.gc .lvl { position: absolute; right: -3px; bottom: -4px; font-family: var(--disp); font-size: 12px; line-height: 1.2; color: var(--acc-ink); background: var(--gold); border-radius: 5px; padding: 0 4px; box-shadow: 0 0 0 2px #123516; }
.gc.grew .lvl { animation: credbump .45s ease-out 2; }
.gc.hitc { box-shadow: inset 0 0 0 3px var(--gold), 0 0 10px #ffd45e99; background: #fff; z-index: 2; }
.gc.pop { background: #fff; z-index: 3; animation: popc .5s ease-out both; box-shadow: inset 0 0 0 3px var(--gold), 0 0 12px var(--gold); }
.gc.burst { background: #fff3c4; box-shadow: inset 0 0 0 3px #ff9b3d, 0 0 16px #ff9b3d; z-index: 3; }
.gc.gone { animation: gonec .22s ease-in both; }
.gc.drop { animation: gdrop .36s cubic-bezier(.3, 0, .45, 1.25) both; }
@keyframes gdrop { from { transform: translateY(calc((100% + 3px) * var(--d, 1) * -1)); } to { transform: none; } }
.gc.land { animation: gland .42s cubic-bezier(.3, 0, .45, 1.2) both; }
@keyframes gland { from { transform: translateY(-260%); opacity: 0; } 40% { opacity: 1; } to { transform: none; } }

/* Tide Pools */
.ways { display: flex; align-items: baseline; justify-content: center; gap: 8px; color: var(--cream); font-size: 14px; margin-bottom: 8px; }
.ways .led { font-size: 30px; color: #9ff0e4; text-shadow: 0 0 9px #9ff0e477; min-width: 3ch; text-align: center; }
.ways.bump .led { animation: credbump .45s ease-out 2; }
.tidebox { padding: 6px; overflow: hidden; }
.treels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; height: min(330px, 78vw); }
.treel { overflow: hidden; background: var(--cellbg); border-radius: 4px; position: relative; }
.treel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #0000002e, transparent 14%, transparent 86%, #0000002e); }
.tstrip { will-change: transform; }
.tc { display: grid; place-items: center; overflow: hidden; padding: 2px 3px; box-sizing: border-box; }
.tc svg { height: 92%; width: auto; max-width: 100%; }
.treels.showing .tc { opacity: .4; }
.treels.showing .tc.hitc { opacity: 1; background: #fff; border-radius: 4px; box-shadow: inset 0 0 0 2.5px #0b6b74, 0 0 8px #9ff0e4; }
.treels.showing .tc.scatter { box-shadow: inset 0 0 0 2.5px #1d7f94, 0 0 10px #3fb0c8; }
.wave { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: radial-gradient(14px 10px at 14px 0, transparent 98%, #9ff0e440 100%) 0 0 / 28px 22px repeat-x; pointer-events: none; }
.tidebox.hightide { background: linear-gradient(180deg, #000 0%, #04303a 100%); }
.tidebox.hightide .wave { height: 44px; background-size: 28px 44px; animation: waves 1.6s linear infinite; }
@keyframes waves { to { background-position: 28px 0; } }

/* Coconut Cash */
.ticketbox { transition: box-shadow .3s; border-radius: 12px; }
.ticket { background: linear-gradient(160deg, #ffe9b0, #ffc6a0); border-radius: 12px; padding: 12px; color: #3a0f1c; box-shadow: 0 0 0 3px var(--rim), 0 8px 18px #0008; position: relative; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--cab1); }
.ticket::before { left: -9px; } .ticket::after { right: -9px; }
.tt { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tname { font-family: var(--disp); font-size: 24px; color: #b24a5e; text-shadow: 0 2px 0 #fff6; }
.tprice { font-weight: 700; font-size: 14px; }
.trule { font-size: 13.5px; margin: 2px 0 10px; }
.scgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; touch-action: none; }
.sc { aspect-ratio: 1; border-radius: 10px; position: relative; background: #fffaf0; box-shadow: inset 0 0 0 2px #e8c9a0; overflow: hidden; }
.sc .pic { position: absolute; inset: 10% 18% 30%; }
.sc .pic svg { width: 100%; height: 100%; }
.sc > b { position: absolute; bottom: 5%; left: 0; right: 0; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.sc canvas.foil { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; transition: opacity .35s; }
.sc canvas.foil.gone { opacity: 0; pointer-events: none; }
.sc.closed { background: repeating-linear-gradient(135deg, #d9dde3 0 6px, #b9bfc9 6px 9px), #cfd4db; box-shadow: inset 0 0 0 2px #9aa1ad; }
.sc.match { box-shadow: inset 0 0 0 3px #3f9b4b, 0 0 14px #3f9b4b; animation: popc .5s ease-out both; }
.tfoot { font-size: 12.5px; margin-top: 10px; text-align: center; }

/* Reef Diver */
.reefbox { position: relative; background: #021022; border-radius: 10px; padding: 8px; box-shadow: 0 0 0 3px var(--rim), 0 0 0 5px #0006; transition: box-shadow .3s; }
.reefbox.sting { box-shadow: 0 0 0 3px #c78bff, 0 0 30px 8px #a45ee8 !important; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tile { aspect-ratio: 1; border-radius: 8px; background: repeating-radial-gradient(circle at 30% 30%, #e8d39f 0 2px, #dcc285 2px 5px); box-shadow: inset 0 -4px 0 #b99a5a, 0 2px 0 #0008; display: grid; place-items: center; padding: 6px; transition: transform .15s, opacity .3s; }
.tile svg { width: 100%; height: 100%; }
.tile:not(:disabled):active { transform: translateY(2px); }
.tile:disabled { cursor: default; }
.tile.lift { transform: scale(.92); }
.tile.open { background: #0b2d52; box-shadow: inset 0 0 0 2px #ff8fa855; animation: flipin .32s ease-out; }
.tile.jelly { background: #2a0f45; box-shadow: inset 0 0 0 2px #c78bff88; }
.tile.hitj { box-shadow: inset 0 0 0 3px #c78bff, 0 0 16px #c78bff; }
.tile.dim { opacity: .45; }
.tile.wash { animation: flipin .3s ease-out both; }
@keyframes flipin { from { transform: rotateY(90deg) scale(.9); } to { transform: none; } }
.odds { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 4px 0; color: var(--cream); font-size: 15px; }
.odds .led { font-size: 30px; }

/* Lava Rise */
.hist { display: flex; gap: 5px; overflow: hidden; margin-bottom: 8px; min-height: 22px; }
.hist span { flex: none; font-size: 13px; font-weight: 700; border-radius: 4px; padding: 2px 7px; background: #0008; color: #ff9c90; font-variant-numeric: tabular-nums; }
.hist span.hi { color: #8fe0b3; }
.lavabox { position: relative; background: linear-gradient(180deg, #1a0705, #000); border-radius: 10px; box-shadow: 0 0 0 3px var(--rim), 0 0 0 5px #0006; overflow: hidden; transition: box-shadow .3s, background .3s; }
.lava { width: 100%; height: auto; display: block; }
.lava .axis text { font-size: 11px; fill: #ffd9c4; text-anchor: end; opacity: .7; }
.lava .trail { fill: none; stroke: #ff7a2e; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.lava .dot { fill: #ffd45e; stroke: #fff; stroke-width: 2; }
.lavabox.erupt { background: linear-gradient(180deg, #7a1a08, #1a0302); box-shadow: 0 0 0 3px #ff4f2e, 0 0 34px 10px #ff4f2e99; }
.lavabox.erupt .trail { stroke: #ff4f2e; }
.lavabox.erupt .dot { fill: #ff4f2e; }
.lavabox.safe .trail { stroke: #4fd18b; }
.bignum { position: absolute; left: 14px; top: 12px; }
.bignum .led { font-size: 52px; line-height: 1; color: #ffd45e; text-shadow: 0 0 14px #ff7a2e; font-variant-numeric: tabular-nums; }
.lavabox.erupt .bignum .led { color: #ffb3a3; }
.bignum span { display: block; color: var(--cream); font-size: 14px; margin-top: 2px; }
.autocash { margin-top: 10px; display: grid; gap: 4px; font-size: 14px; color: var(--cream); }
.seg.six { grid-template-columns: repeat(6, 1fr); margin-bottom: 0; }
.seg.six button { font-size: 14px; }
.p.ember { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: #ff7a2e; box-shadow: 0 0 8px 2px #ff4f2e; }

@media (prefers-reduced-motion: reduce) { .gc.pop, .gc.drop, .gc.land, .gc.gone, .gc.grew .lvl, .tile.open, .tile.wash, .sc.match, .ways.bump .led, .tidebox.hightide .wave, .chain.in, .reels.ripple, .machine.bonus .reelbox::before, .bigwin.intro div, .bonusbar.bump .tot b, .cell.pop, .cell.drop, .cell.gone, .cell.hit svg, .cell.coin.fresh, .cell.coin.tally, .bigwin div, .bigwin.mega div, .glow3, .lines polyline, .ladder span.on, .pips.refill i, .mtop .cred.bump b, .plinko .slot.hit { animation: none; } }
@media (prefers-reduced-motion: reduce) { .flashfx { display: none; } }
