/* Jackloot logo letters: Unbounded 900 (OFL), only J A C K L T, embedded so the logo never waits for or falls back from another font */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 900; font-display: block; src: url(data:font/woff2;base64,d09GMgABAAAAAAQwABAAAAAACAgAAAPVAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhYbgW4cLgZgP1NUQVQqAFQRCAqDOIJSCxIAATYCJAMgBCAFhEoHIAwHG3QGyAQe6DurV9UdaffAXE4aiNmsGblzEv4kZuaszhH18/vz81vojEIpW21Xw92Z097OhA84gSWTCW5KcKn/GVsiVvQN/eyLANwoqkSIYA0fA072owNtZCy8hK02H1rKcIbMRiOXQh8Y+GP0SEdLOewp9z11HNgRzRKwy1Aa3fscjsCGbZ58HVvPVp+qj0rqV+psGU9Sn4P8ArNHqd+Byo2q+gZntXojhxfD3AvqB8SP1OczBAtsFxG3akgsOeiMNUusaACWUVEro9oDOMB3OyYEmOW5k9ajnYBljDxNrgCm453FOprESpzMNUjWYptr6chgBIY+Rogl2mfKBUW9JoJgEBe/+ppR9ssahtDOyIhD2CocvxPy4HjCEDpTTMm5tRMeC0EbFdVGo87AYzLKr9IJMcgwYZacW5Q0U9eor9Rj6lF1v7pjtaDTWyCUwseDPVT80gOQvc4sqKAoSGZQlqA7F9t328qu23R9vUt3plVTyoNb3rNceFiXdKdcCXf68LfgD5ynzcyIY2dnXadXq0vdVz0x4zztrbc4plp1nT775C6rXRyTtgvNI48ZeL7L4tGXxT3G6uVRdxqe4cNrSXt0dyqAv9v8s/bnP0G3I8133n+nTfgZzCNfVi9H8hPmXHn4kDx87oRJ57Wjrphx6aNLjzjp2Y252w46iPsnz2486YhHlxqXumLaSb+Hd2rpWrTP/vPa2vYPL9q3qyW8w++n4D74363mtYdHhrpH+66Rt0TXX3LjYqN43fLVVyXpqbHnQJthepebR654+II9zT3oNY8ol+u+fKjGbkfJo6XHDH4ZROHfxgN3Vi6Yqr663tfzm13TvuYqfNR/1jNe9vGa3Rf+f8v/N9hO0t8CsD4rnyHelDPZrvz/ln8HbCc91efBrmXo0T5X/2l3E9I68GhH06N56NEm2Jrvd+1v52psLHjTpzhR/c0PH/X2JHUH5m4RwTwjCG7NwSbx8rNNo4nHZuv9NgvLSNmsBAlbvbSxTT+h48YJTHopDJFhI5tJs5woSeIkMPzhBgXKdFEvXVRmMyWSFDBQ1pkEXp+hjjwl4tQznzHCLCXHJvJUyLGFKMw+cG1lGZRmPTVPjhCN1NFOA410EyeGwal5MuC6mgbq6GxtooO6dXofRCv7E19RbaITZSfOXbvC4UQYJEL3GZRFGKdSXqg0zjskhxELHMq2IGVkiCYaaKLpL7JvEkQJzZcL+N55UkTZPAMHqVDKyFq7TIh96MU4yd7mCpuo4zFPtoURIuMyRomRxsiH+n1m2A/2/Q9RdT11BU04Pe8T6sTb9DMBAA==) format('woff2'); unicode-range: U+41, U+43, U+4A-4C, U+54; }
:root {
  --bg: #0a0e1a;
  --bg2: #0f1526;
  --card: #141b2e;
  --card2: #1a2340;
  --line: #243052;
  --text: #eef1f8;
  --muted: #8e98b3;
  --pick: #4f7cff;
  --pick2: #7b5cff;
  --drawn: #f7c948;
  --hit: #2ee27a;
  --danger: #ff5d5d;
  --radius: 16px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* ball colours by tens: 1–10, 11–20 … 71–80 */
  --b1: #ef4444; --b2: #f97316; --b3: #eab308; --b4: #22c55e;
  --b5: #06b6d4; --b6: #3b82f6; --b7: #8b5cf6; --b8: #ec4899;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text); min-height: 100vh;
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Ethiopic", sans-serif;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(79,124,255,.18), transparent 60%),
    radial-gradient(700px 400px at 110% 10%, rgba(247,201,72,.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
}
h1, h2, h3 { margin: 0; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
em { color: var(--muted); font-style: normal; font-size: 13px; }
small { color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
button { font: inherit; color: inherit; }
svg { display: block; }

/* ------------------------------------------------------------------ Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(10,14,26,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(36,48,82,.6);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; cursor: pointer; }
.logo-h { height: 26px; width: auto; display: block; }
.top-right { display: flex; align-items: center; gap: 8px; }
.balance-pill {
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
}
.balance-pill div { display: flex; flex-direction: column; line-height: 1.1; }
.balance-pill small { font-size: 10px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balance-pill b { font-size: 16px; font-variant-numeric: tabular-nums; }
.balance-pill b.bump { animation: bump .6s ease; }
.coin {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #f7c948 50%, #c28f0c);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.25);
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn svg.line { fill: none; stroke-width: 1.9; }
.icon-btn .snd-off { display: none; }
.icon-btn.muted .snd-on { display: none; }
.icon-btn.muted .snd-off { display: block; color: var(--muted); }

/* ---------------------------------------------------------------- Round bar */
.round-bar {
  display: flex; align-items: center; gap: 12px; max-width: 1100px; margin: 12px auto 0; padding: 10px 14px;
  background: linear-gradient(135deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius);
  width: calc(100% - 24px);
}
.ring { position: relative; width: 58px; height: 58px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: var(--line); }
.ring-arc { stroke: var(--drawn); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 0; transition: stroke-dashoffset .25s linear, stroke .3s; }
.ring span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums;
}
.ring.closing .ring-arc { stroke: var(--danger); }
.ring.closing span { color: var(--danger); }
.ring.live .ring-arc { stroke: var(--hit); }
.round-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.round-text b { font-size: 16px; }
.round-text small { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round-stats { display: flex; gap: 14px; }
.round-stats div { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.round-stats b { font-size: 16px; font-variant-numeric: tabular-nums; }
.round-stats small { font-size: 11px; }

/* ------------------------------------------------------------------- Layout */
main { max-width: 1100px; margin: 0 auto; padding: 12px; }
.tab { display: flex; flex-direction: column; gap: 12px; animation: fadeUp .25s ease; }
#tab-tickets, #tab-results, #tab-stats, #tab-info { max-width: 720px; margin: 0 auto; width: 100%; }
.play-grid { display: grid; gap: 12px; }
.play-main, .play-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 960px) {
  .play-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .play-side { position: sticky; top: 76px; }
}
.card {
  background: linear-gradient(180deg, var(--card2), var(--card) 40%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.card > h2 { margin-bottom: 10px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 4px -2px; }
.fine { text-align: center; color: var(--muted); font-size: 12px; margin: 4px 0; }

/* -------------------------------------------------------------------- Balls */
.ball {
  --bc: var(--b1);
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45);
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.85), rgba(255,255,255,0) 32%),
    radial-gradient(circle at 50% 120%, rgba(0,0,0,.35), rgba(0,0,0,0) 60%),
    var(--bc);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.c1 { --bc: var(--b1); } .c2 { --bc: var(--b2); } .c3 { --bc: var(--b3); } .c4 { --bc: var(--b4); }
.c5 { --bc: var(--b5); } .c6 { --bc: var(--b6); } .c7 { --bc: var(--b7); } .c8 { --bc: var(--b8); }
.ball.sm { width: 24px; height: 24px; font-size: 10.5px; }
.ball.hit { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--hit), 0 0 14px rgba(46,226,122,.6); }
.ball.dim { --bc: #2a3558; color: var(--muted); text-shadow: none; background: #222c4a; box-shadow: none; }
.ball.new { animation: slotIn .55s cubic-bezier(.2,1.4,.4,1); }

/* -------------------------------------------------------------------- Stage */
.stage { overflow: hidden; position: relative; }
.stage::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,201,72,.12), transparent 65%); pointer-events: none;
}
.stage-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; position: relative; }
.big-ball {
  --bc: var(--drawn);
  flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.9), rgba(255,255,255,0) 30%),
    radial-gradient(circle at 50% 120%, rgba(0,0,0,.4), rgba(0,0,0,0) 60%),
    var(--bc);
  box-shadow: 0 12px 28px rgba(0,0,0,.45), inset 0 -6px 14px rgba(0,0,0,.2);
}
.big-ball span {
  width: 56%; height: 56%; border-radius: 50%; background: #fff; color: #111827; display: grid; place-items: center;
  font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; box-shadow: inset 0 -2px 4px rgba(0,0,0,.15);
}
.big-ball.idle { --bc: #26314f; box-shadow: inset 0 0 0 2px var(--line); }
.big-ball.idle span { background: #1a2340; color: var(--muted); box-shadow: none; }
.big-ball.drop { animation: drop .8s cubic-bezier(.3,1.25,.5,1); }
.big-ball.drop span { animation: spinIn .8s ease-out; }
.big-ball.is-hit::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--hit);
  animation: ringOut .9s ease-out forwards;
}
.stage-info { min-width: 0; }
.stage-title { font-weight: 800; font-size: 17px; }
.stage-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.stage-sub b { color: var(--hit); }
.tray { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.tray .slot {
  aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed #2c3860; display: grid; place-items: center;
}
.tray .ball { width: 100%; height: auto; aspect-ratio: 1; font-size: clamp(10px, 2.6vw, 13px); }

/* -------------------------------------------------------------------- Board */
.board-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.legend { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.sw.pick { background: var(--pick); } .sw.drawn { background: var(--drawn); } .sw.hit { background: var(--hit); }
.board { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.board .gap { grid-column: 1 / -1; height: 3px; margin: 2px 0; border-top: 1px dashed var(--line); }
.cell {
  aspect-ratio: 1; border: 1px solid #253156; border-radius: 10px; background: linear-gradient(180deg, #1c2645, #172039);
  color: #cdd5ea; font-weight: 700; font-size: clamp(12px, 3.4vw, 17px); cursor: pointer; padding: 0;
  font-variant-numeric: tabular-nums; transition: transform .1s, background .2s, box-shadow .2s;
}
.cell:active { transform: scale(.92); }
@media (hover: hover) { .cell:hover { border-color: var(--pick); color: #fff; } }
.cell.pick {
  background: linear-gradient(145deg, var(--pick), var(--pick2)); border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(79,124,255,.4);
}
.cell.pick.just { animation: pickPop .3s ease; }
.cell.drawn {
  background: radial-gradient(circle at 35% 30%, #fff2c2, var(--drawn) 60%, #d49b10); color: #3a2a00; border-color: transparent;
}
.cell.drawn.pick {
  background: radial-gradient(circle at 35% 30%, #b8ffd5, var(--hit) 60%, #16a653); color: #032b14;
  box-shadow: 0 0 0 2px rgba(46,226,122,.35), 0 0 16px rgba(46,226,122,.45);
}
.cell.last { animation: flip .6s ease; }

/* --------------------------------------------------------------------- Slip */
.slip { display: flex; flex-direction: column; gap: 12px; }
.slip-head { display: flex; justify-content: space-between; align-items: center; }
.slip-count { color: var(--muted); font-size: 13px; }
.slip-count b { color: var(--text); font-size: 18px; }
.slip-numbers { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; align-items: center; }
.row { display: flex; gap: 8px; align-items: center; }
.row .btn:first-child { flex: 1; }
.stake { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stake .label { color: var(--muted); font-size: 13px; }
.stepper { display: flex; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; flex: 1; max-width: 220px; }
.stepper input { border: 0; background: transparent; text-align: center; font-weight: 800; font-size: 17px; padding: 9px 4px; min-width: 0; }
.step { width: 44px; height: 42px; border: 0; background: #1c2645; cursor: pointer; font-weight: 800; flex: none; }
.step:active { background: #26325a; }
input, select {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--text); font: inherit;
}
input:focus, select:focus { outline: 2px solid var(--pick); outline-offset: -1px; }
select { width: auto; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  flex: 1; min-width: 52px; padding: 7px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: #1c2645; cursor: pointer; font-weight: 800; font-size: 13px;
}
.chip.on { border-color: var(--drawn); color: var(--drawn); background: rgba(247,201,72,.08); }
.mini-pay { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mini-pay::-webkit-scrollbar { display: none; }
.mini-pay .mp {
  flex: none; padding: 6px 10px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line);
  font-size: 12px; color: var(--muted); display: flex; flex-direction: column; align-items: center; line-height: 1.2;
}
.mini-pay .mp b { color: var(--text); font-size: 13px; }
.mini-pay .mp.top { border-color: rgba(247,201,72,.5); }
.mini-pay .mp.top b { color: var(--drawn); }
.btn {
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #1c2645;
  font-weight: 700; cursor: pointer; white-space: nowrap; transition: transform .1s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn.sm { padding: 7px 10px; font-size: 13px; margin-top: 10px; width: 100%; }
.btn.ghost { background: transparent; }
.btn.primary {
  border: 0; color: #2b1d00;
  background: linear-gradient(180deg, #ffe07a, var(--drawn) 45%, #e0a916);
  box-shadow: 0 6px 18px rgba(247,201,72,.3), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn.primary:disabled { filter: grayscale(.8) brightness(.6); box-shadow: none; cursor: not-allowed; }
.btn.big { width: 100%; padding: 15px; font-size: 17px; font-weight: 900; }
.msg { min-height: 18px; font-size: 13px; text-align: center; margin-top: -4px; }
.msg.err { color: var(--danger); } .msg.ok { color: var(--hit); }
.link { background: none; border: 0; color: var(--pick); cursor: pointer; font-size: 13px; font-weight: 700; padding: 0; }

/* ------------------------------------------------------------------ Tickets */
.tickets { display: flex; flex-direction: column; gap: 8px; }
.ticket {
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 13px;
  background: var(--card); position: relative; overflow: hidden;
}
.ticket::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); }
.ticket.open::before { background: var(--pick); }
.ticket.live::before { background: var(--drawn); animation: blink 1s infinite; }
.ticket.won::before { background: var(--hit); }
.ticket.won { border-color: rgba(46,226,122,.45); background: linear-gradient(90deg, rgba(46,226,122,.08), var(--card) 60%); }
.t-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin-bottom: 8px; gap: 8px; }
.t-head b { color: var(--text); }
.t-nums { display: flex; flex-wrap: wrap; gap: 5px; }
.ticket .win { color: var(--hit); font-weight: 900; font-size: 15px; }
.ticket .x { background: rgba(255,93,93,.1); border: 1px solid rgba(255,93,93,.35); border-radius: 8px; color: var(--danger); cursor: pointer; font-size: 12px; padding: 3px 8px; font-weight: 700; }
.tag { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); }
.tag.live { color: var(--drawn); border-color: rgba(247,201,72,.4); }
.empty { text-align: center; color: var(--muted); padding: 18px 8px; font-size: 14px; border: 1px dashed var(--line); border-radius: 14px; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 8px; }
.summary div { display: flex; flex-direction: column; }
.summary small { font-size: 12px; }
.summary b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pos { color: var(--hit); } .neg { color: var(--danger); }

/* ------------------------------------------------------------------ History */
.history { display: flex; flex-direction: column; gap: 8px; }
.h-row { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.h-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; font-size: 13px; color: var(--muted); }
.h-top b { color: var(--text); font-size: 15px; margin-right: 6px; }
.h-nums { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.h-nums .ball { width: 100%; height: auto; aspect-ratio: 1; font-size: clamp(9.5px, 2.5vw, 12px); }
.h-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.h-foot .topwin { color: var(--drawn); }

/* -------------------------------------------------------------------- Stats */
.hc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc-title { font-weight: 800; margin-bottom: 8px; font-size: 14px; }
.hc-title.hot { color: #ff8a5c; } .hc-title.cold { color: #7cc7ff; }
.hc-list { display: flex; flex-direction: column; gap: 5px; }
.hc-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.hc-item .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--bg2); overflow: hidden; }
.hc-item .bar i { display: block; height: 100%; border-radius: 3px; }
.hot-bar { background: linear-gradient(90deg, #ff6b3d, #ffb13d); }
.cold-bar { background: linear-gradient(90deg, #3da2ff, #7cc7ff); }
.heat { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.heat div {
  aspect-ratio: 1; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: clamp(10px, 2.6vw, 13px); font-weight: 800; line-height: 1;
}
.heat div small { font-size: 8.5px; font-weight: 600; opacity: .75; color: inherit; }
.heat-scale { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.heat-scale i { flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1d2a50, #3a5bd9, #f7c948, #ff6b3d); }
.splits { display: flex; flex-direction: column; gap: 12px; }
.split-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.split-label b { color: var(--text); }
.split-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--bg2); }
.split-bar i:first-child { background: var(--pick); } .split-bar i:last-child { background: var(--drawn); }
.leaders { margin: 0; padding: 0; list-style: none; counter-reset: lb; display: flex; flex-direction: column; gap: 6px; }
.leaders li {
  counter-increment: lb; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--bg2);
}
.leaders li::before {
  content: counter(lb); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: #26314f; flex: none;
}
.leaders li:nth-child(1)::before { background: linear-gradient(145deg, #ffe07a, #d99f10); color: #2b1d00; }
.leaders li:nth-child(2)::before { background: linear-gradient(145deg, #eef1f8, #9aa6c2); color: #1a2030; }
.leaders li:nth-child(3)::before { background: linear-gradient(145deg, #ffb27a, #b8651f); color: #2b1400; }
.leaders li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaders li.me { outline: 1px solid var(--pick); }
.leaders li b { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------- Info */
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.steps b { color: var(--text); }
.spot-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.spot-chips button { width: 36px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #1c2645; cursor: pointer; font-weight: 800; }
.spot-chips button.on { background: linear-gradient(145deg, var(--pick), var(--pick2)); border-color: transparent; }
.paytable { width: 100%; border-collapse: collapse; font-size: 14px; }
.paytable td, .paytable th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.paytable th { color: var(--muted); font-weight: 600; font-size: 12px; }
.paytable td:last-child, .paytable th:last-child { text-align: right; }
.paytable tr.top td { color: var(--drawn); font-weight: 800; }

/* --------------------------------------------------------------------- Home */
#tab-home { max-width: 720px; margin: 0 auto; width: 100%; }
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 18px 18px 16px;
  background: radial-gradient(120% 120% at 100% 0%, rgba(247,201,72,.28), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(79,124,255,.35), transparent 60%), linear-gradient(145deg, #1c2a55, #121a33);
  border: 1px solid rgba(247,201,72,.3); box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  border: 18px solid rgba(247,201,72,.08); pointer-events: none;
}
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hero-top small { color: rgba(255,255,255,.7); font-size: 13px; font-weight: 600; }
.hero-top h1 { font-size: 22px; font-weight: 900; margin-top: 2px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-wallet {
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px;
  padding: 7px 14px; font-weight: 800; font-size: 13px; cursor: pointer; position: relative; z-index: 1;
}
.hero-bal { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; }
.coin.big { width: 46px; height: 46px; box-shadow: inset 0 0 0 4px rgba(255,255,255,.25), 0 6px 18px rgba(247,201,72,.35); }
.hero-bal div { display: flex; flex-direction: column; line-height: 1.1; }
.hero-bal small { color: rgba(255,255,255,.7); font-size: 12px; }
.hero-bal b { font-size: 36px; font-weight: 900; font-variant-numeric: tabular-nums; color: #ffe07a; }
.hero-bal span { font-size: 12px; color: rgba(255,255,255,.55); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-stats div { background: rgba(0,0,0,.2); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.hero-stats small { font-size: 11px; color: rgba(255,255,255,.6); }
.hero-stats b { font-size: 16px; font-variant-numeric: tabular-nums; }

.games { display: flex; flex-direction: column; gap: 10px; }
.gcard {
  display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 12px; padding: 10px; border-radius: 20px;
  text-align: left; cursor: pointer; color: #fff; border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform .12s; box-shadow: 0 10px 26px rgba(0,0,0,.3);
}
.gcard:active { transform: scale(.98); }
.g-art { width: 92px; height: 92px; border-radius: 16px; display: grid; place-items: center; position: relative; overflow: hidden; }
.g-art svg { width: 100%; height: 100%; }
.g-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.g-info b { font-size: 19px; font-weight: 900; letter-spacing: .02em; }
.g-info small { font-size: 12.5px; color: rgba(255,255,255,.7); line-height: 1.3; }
.g-status { font-size: 12.5px; font-weight: 700; margin-top: 3px; display: block; }
.g-status b { color: #fff; font-size: inherit; font-weight: 900; letter-spacing: 0; }
.g-chips { display: flex; gap: 4px; overflow: hidden; margin-top: 3px; }
.g-chips .cr-chip { padding: 2px 7px; font-size: 10.5px; }
.g-play {
  align-self: center; padding: 9px 14px; border-radius: 999px; font-weight: 900; font-size: 13px; letter-spacing: .04em;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e; display: inline-block; margin-right: 5px; vertical-align: 1px; animation: blink 1s infinite; }
/* each game card keeps its own game's look */
.g-crash { background: linear-gradient(135deg, #0a3348, #03121c 70%); border-color: rgba(45,226,230,.3); }
.g-crash .g-art { background: linear-gradient(180deg, #0b4466, #031520); }
.g-crash .g-status { color: #8ff3f5; }
.g-crash .g-play { background: linear-gradient(180deg, #6affd0, #1fd6a0); color: #02231a; }
.g-bingo { background: linear-gradient(135deg, #3d1a5f, #1a0b2e 70%); border-color: rgba(255,61,139,.4); }
.g-bingo .g-art { background: radial-gradient(circle at 50% 30%, #5a2685, #22103a); gap: 2px; grid-template-columns: 1fr 1fr; padding: 10px; }
.g-bingo .g-status { color: #ffc2d8; }
.g-bingo .g-play { background: linear-gradient(180deg, #ff7aa8, #ff3d8b); color: #fff; }
.g-keno { background: linear-gradient(135deg, #1d2a55, #0d1428 70%); border-color: rgba(247,201,72,.35); }
.g-keno .g-art { background: radial-gradient(circle at 50% 30%, #243466, #111a33); gap: 2px; grid-template-columns: 1fr 1fr; padding: 10px; }
.g-keno .g-status { color: #ffe07a; }
.g-keno .g-play { background: linear-gradient(180deg, #ffe07a, #f7c948 45%, #e0a916); color: #2b1d00; }
.g-art .ball { width: 32px; height: 32px; font-size: 12px; }

.feed { display: flex; flex-direction: column; gap: 6px; }
.feed-row, .led-row {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--line);
}
.f-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: rgba(255,255,255,.06); }
.feed-row.g-crash .f-ic { background: rgba(45,226,230,.12); }
.feed-row.g-bingo .f-ic { background: rgba(255,61,139,.14); }
.feed-row.g-keno .f-ic { background: rgba(247,201,72,.14); }
.f-main { display: flex; flex-direction: column; min-width: 0; }
.f-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-main small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-win { color: var(--hit); font-weight: 900; font-variant-numeric: tabular-nums; }
.home-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.home-links button {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px; border-radius: 16px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 12px; text-align: center;
}
.home-links button span { font-size: 20px; }
.balance-pill { cursor: pointer; }

/* Home promo slider (swipe + auto-advance) */
.promo-slider { position: relative; }
.ps-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.ps-track::-webkit-scrollbar { display: none; }
.ps-slide {
  flex: 0 0 100%; scroll-snap-align: start; height: 176px; position: relative; overflow: hidden; cursor: pointer;
  display: grid; grid-template-columns: 1fr 42%; align-items: center; padding: 16px 0 16px 18px; color: #fff;
}
.ps-text { display: flex; flex-direction: column; gap: 5px; position: relative; z-index: 1; min-width: 0; }
.ps-tag { align-self: flex-start; font-size: 10.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.16); }
.ps-text b { font-size: 22px; font-weight: 900; line-height: 1.1; }
.ps-text small { font-size: 12.5px; color: rgba(255,255,255,.8); }
.ps-cta { align-self: flex-start; margin-top: 4px; padding: 7px 14px; border-radius: 999px; font-weight: 900; font-size: 13px; background: #fff; color: #111; }
.ps-art { height: 100%; display: grid; place-items: center; }
.ps-art svg { width: 100%; height: 100%; }
.ps-emoji { font-size: 74px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); animation: float 3s ease-in-out infinite; }
.ps-balls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; transform: rotate(-8deg); }
.ps-balls .ball { width: 46px; height: 46px; font-size: 17px; }
.ps-balls .ball:last-child { grid-column: 1 / -1; justify-self: center; }
.ps-fruits { display: flex; gap: 4px; padding: 8px; border-radius: 16px; background: linear-gradient(180deg, #fff9ec, #ffe0a8); transform: rotate(-6deg); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.ps-fruits .sl-sym { width: 44px; font-size: 28px; border-radius: 10px; }
.ps-crash { background: radial-gradient(120% 120% at 100% 0%, #0f5a7a, transparent 60%), linear-gradient(135deg, #0a3348, #02101a); }
.ps-crash .ps-cta { background: #6affd0; color: #02231a; }
.ps-slots { background: radial-gradient(120% 120% at 100% 0%, rgba(184,255,60,.35), transparent 60%), linear-gradient(135deg, #1e4a14, #07140c); }
.ps-slots .ps-cta { background: var(--lime); color: #102400; }
.ps-free { background: radial-gradient(120% 120% at 100% 0%, rgba(255,210,80,.5), transparent 60%), linear-gradient(135deg, #b8410b, #5a1a05); }
.ps-free .ps-cta { background: #ffe07a; color: #3a2200; }
.ps-bingo { background: radial-gradient(120% 120% at 100% 0%, rgba(255,61,139,.45), transparent 60%), linear-gradient(135deg, #3d1a5f, #1a0b2e); }
.ps-bingo .ps-cta { background: #ff3d8b; color: #fff; }
.ps-invite { background: radial-gradient(120% 120% at 100% 0%, rgba(79,124,255,.55), transparent 60%), linear-gradient(135deg, #243e8f, #0e1638); }
.ps-invite .ps-cta { background: #9ab6ff; color: #0b1640; }
.ps-keno { background: radial-gradient(120% 120% at 100% 0%, rgba(247,201,72,.4), transparent 60%), linear-gradient(135deg, #1d2a55, #0d1428); }
.ps-keno .ps-cta { background: #f7c948; color: #2b1d00; }
/* Banners from admin (Marketing → Banners): a colour theme, or a picture with a dark fade behind the text */
.ps-custom { grid-template-columns: 1fr; padding-right: 18px; background-size: cover; background-position: center; }
.ps-custom .ps-text { max-width: 78%; }
.ps-custom.has-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.35) 55%, rgba(0,0,0,0)); }
.ps-custom.has-img .ps-text { text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.ps-t-gold:not(.has-img) { background: radial-gradient(120% 120% at 100% 0%, rgba(247,201,72,.55), transparent 60%), linear-gradient(135deg, #5a3d05, #1a1203); }
.ps-t-gold .ps-cta { background: #f7c948; color: #2b1d00; }
.ps-t-purple:not(.has-img) { background: radial-gradient(120% 120% at 100% 0%, rgba(190,110,255,.55), transparent 60%), linear-gradient(135deg, #4a1f7a, #150828); }
.ps-t-purple .ps-cta { background: #d7b0ff; color: #2a0b4a; }
.ps-t-blue:not(.has-img) { background: radial-gradient(120% 120% at 100% 0%, rgba(79,160,255,.55), transparent 60%), linear-gradient(135deg, #1a3f8f, #07142e); }
.ps-t-blue .ps-cta { background: #9ac8ff; color: #0b1f40; }
.ps-t-green:not(.has-img) { background: radial-gradient(120% 120% at 100% 0%, rgba(46,226,122,.5), transparent 60%), linear-gradient(135deg, #0f5a35, #04160d); }
.ps-t-green .ps-cta { background: #7cf0ae; color: #03260f; }
.ps-t-pink:not(.has-img) { background: radial-gradient(120% 120% at 100% 0%, rgba(255,61,139,.55), transparent 60%), linear-gradient(135deg, #7a1245, #1e0512); }
.ps-t-pink .ps-cta { background: #ff8fbd; color: #3d0520; }
.ps-t-dark:not(.has-img) { background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.14), transparent 60%), linear-gradient(135deg, #22262f, #0a0b0e); }
.ps-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.ps-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.25); transition: width .25s, background .25s; }
.ps-dots i.on { width: 20px; background: #fff; }

/* In-game bar: How to play / Results / Stats for that game only */
.game-bar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.game-bar::-webkit-scrollbar { display: none; }
.game-bar button {
  flex: none; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer;
}
.sub-head { display: flex; align-items: center; gap: 10px; }
.sub-head button { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 7px 12px; font-weight: 800; cursor: pointer; }
.sub-head b { font-size: 16px; }

/* Promotions */
#tab-promos, #tab-support { max-width: 720px; margin: 0 auto; width: 100%; }
.promo-card {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--card); box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.pc-art { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; }
.pc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pc-body > b { font-size: 17px; }
.pc-body small { font-size: 13px; line-height: 1.35; }
.pc-status { font-size: 13px; color: var(--text); margin-top: 2px; }
.pc-btn {
  border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 900; cursor: pointer; color: #2b1d00;
  background: linear-gradient(180deg, #ffe07a, #f7c948 45%, #e0a916); box-shadow: 0 6px 16px rgba(247,201,72,.3);
}
.pc-btn:disabled { filter: grayscale(.8) brightness(.6); box-shadow: none; cursor: not-allowed; }
/* VIP card: the level's own metal colour */
#pVip:not(:empty) { margin-bottom: 12px; }
.pc-vip { display: flex; flex-direction: column; align-items: stretch; gap: 12px; --vip: #cd7f32; --vip2: rgba(205,127,50,.22);
  background: radial-gradient(110% 130% at 100% 0%, var(--vip2), transparent 60%), var(--card); border-color: color-mix(in srgb, var(--vip) 55%, transparent); }
.vip-l1 { --vip: #c9d3e0; --vip2: rgba(201,211,224,.2); }
.vip-l2 { --vip: #f7c948; --vip2: rgba(247,201,72,.26); }
.vip-l3 { --vip: #7fe3ff; --vip2: rgba(127,227,255,.22); }
.vip-l4 { --vip: #c79bff; --vip2: rgba(199,155,255,.3); }
.vip-top { display: flex; align-items: center; gap: 12px; }
.vip-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 32px; background: color-mix(in srgb, var(--vip) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vip) 45%, transparent); }
.vip-top .pc-body { flex: 1; }
.vip-top .pc-body b { font-size: 22px; color: var(--vip); }
.vip-pts { text-align: right; display: flex; flex-direction: column; }
.vip-pts b { font-size: 20px; }
.vip-pts small, .vip-perks small, .vip-top .pc-body small { font-size: 11.5px; color: var(--muted); }
.vip-bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.vip-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--vip) 60%, #fff 0%), var(--vip)); box-shadow: 0 0 12px var(--vip2); transition: width .6s ease; }
.vip-next { font-size: 13px; color: var(--muted); margin-top: -4px; }
.vip-next b { color: var(--vip); }
.vip-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vip-perks > div { background: rgba(255,255,255,.05); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.vip-perks b { font-size: 16px; }
.pc-vip .pc-btn { align-self: stretch; }
.vip-levels summary { cursor: pointer; font-size: 13px; font-weight: 800; color: var(--muted); }
.vip-levels table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.vip-levels th, .vip-levels td { padding: 6px 4px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
.vip-levels tr.on td { color: var(--vip); font-weight: 800; }
.vip-levels > small { font-size: 12px; color: var(--muted); }
#pGifts { display: flex; flex-direction: column; gap: 12px; }
#pGifts:not(:empty) { margin-bottom: 12px; }
.pc-gift { background: radial-gradient(100% 140% at 100% 0%, rgba(247,201,72,.3), transparent 60%), var(--card); border-color: rgba(247,201,72,.55); box-shadow: 0 0 0 1px rgba(247,201,72,.15), 0 10px 26px rgba(0,0,0,.3); }
.pc-gift .pc-art { background: rgba(247,201,72,.16); animation: giftWiggle 2.4s ease-in-out infinite; }
@keyframes giftWiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-9deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .pc-gift .pc-art { animation: none; } }
.pc-code { grid-template-columns: 56px 1fr; }
.pc-code .pc-art { background: rgba(170,120,255,.14); }
.pc-code input { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.pc-spins { background: radial-gradient(100% 120% at 100% 0%, rgba(255,154,31,.22), transparent 60%), var(--card); border-color: rgba(255,154,31,.35); }
.pc-spins .pc-art { background: rgba(255,154,31,.15); }
.pc-invite { grid-template-columns: 56px 1fr; background: radial-gradient(100% 120% at 100% 0%, rgba(79,124,255,.25), transparent 60%), var(--card); border-color: rgba(79,124,255,.35); }
.pc-invite .pc-art { background: rgba(79,124,255,.15); align-self: start; }
.pc-welcome { grid-template-columns: 56px 1fr; }
.pc-welcome .pc-art { background: rgba(46,226,122,.12); }
.pc-link { display: flex; gap: 6px; margin-top: 8px; }
.pc-link input { font-size: 12.5px; padding: 9px 10px; }
.pc-link button { border: 1px solid var(--line); background: var(--card2); color: var(--text); border-radius: 12px; padding: 0 14px; font-weight: 800; cursor: pointer; }
.pc-actions { margin-top: 8px; }
.pc-actions .pc-btn { width: 100%; color: #fff; background: linear-gradient(180deg, #7aa0ff, var(--pick) 50%, #3558d6); box-shadow: 0 6px 16px rgba(79,124,255,.3); }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; text-align: center; }
.pc-stats div { background: var(--bg2); border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; }
.pc-stats b { font-size: 17px; }
.pc-stats small { font-size: 11px; }

/* Support chat + FAQ */
.chat { border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.chat-list { height: 46vh; min-height: 240px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-hello { margin: auto; text-align: center; color: var(--muted); font-size: 14px; max-width: 260px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.4; }
.bubble p { margin: 0; word-wrap: break-word; }
.bubble small { display: block; font-size: 10.5px; margin-top: 3px; opacity: .7; color: inherit; }
.bubble.me { align-self: flex-end; background: linear-gradient(145deg, var(--pick), var(--pick2)); color: #fff; border-bottom-right-radius: 5px; }
.bubble.them { align-self: flex-start; background: var(--card2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--bg2); }
.chat-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; border-radius: 14px; padding: 10px 12px; font: inherit; }
.chat-form button { width: 46px; border: 0; border-radius: 14px; background: var(--pick); cursor: pointer; display: grid; place-items: center; }
.chat-form svg { width: 22px; height: 22px; fill: #fff; }
.faq { display: flex; flex-direction: column; gap: 6px; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 12px 14px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* Slots: free spins banner */
.sl-free {
  width: 100%; border: 1px dashed rgba(255,154,31,.6); border-radius: 16px; padding: 10px 14px; cursor: pointer; text-align: left;
  background: rgba(255,154,31,.1); color: #ffe2b8; font-size: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
}
.sl-free small { color: rgba(255,226,184,.65); font-size: 12px; margin-left: auto; }
.sl-free.on { border-style: solid; background: linear-gradient(90deg, rgba(255,154,31,.3), rgba(255,79,163,.2)); color: #fff; box-shadow: 0 0 20px rgba(255,154,31,.25); }

/* Game logos: Keno is a number board, Bingo is a paper card (they should never look alike) */
.g-keno .g-art, .g-bingo .g-art { display: grid; place-items: center; padding: 6px; grid-template-columns: 1fr; }
.keno-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; width: 100%; }
.keno-mini i {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 4px; font-style: normal; font-size: 9px; font-weight: 800;
  background: #1c2645; color: #8e98b3; border: 1px solid #2a3760;
}
.keno-mini i.d { background: radial-gradient(circle at 35% 30%, #fff2c2, #f7c948 60%, #d49b10); color: #3a2a00; border-color: transparent; }
.keno-mini i.p { background: linear-gradient(145deg, #4f7cff, #7b5cff); color: #fff; border-color: transparent; }
.keno-mini i.h { background: radial-gradient(circle at 35% 30%, #b8ffd5, #2ee27a 60%, #16a653); color: #032b14; border-color: transparent; box-shadow: 0 0 6px rgba(46,226,122,.6); }
.bingo-mini {
  display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; background: #fff8e8; border-radius: 7px; overflow: hidden;
  border: 2px solid #2a1740; box-shadow: 0 4px 10px rgba(0,0,0,.35); transform: rotate(-4deg);
}
.bingo-mini b { font-size: 8.5px; font-weight: 900; text-align: center; color: #fff; background: var(--bc); padding: 1px 0; }
.bingo-mini b.bb2 { color: #111827; background: #d9dce6; }
.bingo-mini i {
  aspect-ratio: 1; display: grid; place-items: center; font-style: normal; font-size: 8.5px; font-weight: 800; color: #2a1740;
  border-right: 1px solid #e3d6b8; border-bottom: 1px solid #e3d6b8; position: relative;
}
.bingo-mini i.on::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: rgba(232,38,94,.8); mix-blend-mode: multiply; }
.bingo-mini i.f { color: #ff3d8b; background: #ffe9f1; }
.ps-art .keno-mini { width: 120px; transform: rotate(-5deg); box-shadow: 0 10px 24px rgba(0,0,0,.4); padding: 5px; border-radius: 10px; background: #111a33; }
.ps-art .keno-mini i { font-size: 10px; }
.ps-art .bingo-mini { width: 118px; }
.ps-art .bingo-mini b, .ps-art .bingo-mini i { font-size: 10px; }

/* A game paused by the owner (or by the risk limits) */
.paused-note { border-radius: 14px; padding: 11px 14px; font-size: 14px; background: rgba(255,93,93,.12); border: 1px solid rgba(255,93,93,.45); color: #ffd0d0; }
.gcard.paused { filter: grayscale(.7); opacity: .75; }
.gcard.paused .g-status::after { content: ' · Paused'; color: #ff8a8a; font-weight: 800; }

/* Happy hour */
.hh-ribbon {
  border-radius: 14px; padding: 9px 14px; font-size: 14px; color: #fff; display: flex; align-items: center; gap: 6px;
  background: linear-gradient(90deg, #ff3d8b, #ff9a1f); box-shadow: 0 6px 20px rgba(255,90,80,.35); animation: glow 1.4s ease-in-out infinite;
}
.hh-ribbon span { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.ps-happy { background: radial-gradient(120% 120% at 100% 0%, rgba(255,210,80,.55), transparent 60%), linear-gradient(135deg, #d4145a, #6b0f3a); }
.ps-happy .ps-cta { background: #ffe07a; color: #3a0f00; }
.pc-happy { background: radial-gradient(100% 120% at 100% 0%, rgba(255,61,139,.22), transparent 60%), var(--card); border-color: rgba(255,61,139,.35); grid-template-columns: 56px 1fr; }
.pc-happy .pc-art { background: rgba(255,61,139,.15); }

/* Daily reward calendar */
.pc-streak { display: flex; flex-direction: column; align-items: stretch; gap: 12px; background: radial-gradient(100% 120% at 100% 0%, rgba(46,226,122,.18), transparent 60%), var(--card); border-color: rgba(46,226,122,.3); }
.pc-top { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.pc-streak .pc-art { background: rgba(46,226,122,.13); }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.sd {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--line);
}
.sd small { font-size: 9.5px; }
.sd b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sd.done { background: rgba(46,226,122,.14); border-color: rgba(46,226,122,.45); }
.sd.done b { color: var(--hit); }
.sd.today { border-color: var(--drawn); background: rgba(247,201,72,.14); box-shadow: 0 0 14px rgba(247,201,72,.35); animation: pulseBig 1.6s ease-in-out infinite; }
.sd.today b { color: var(--drawn); }
.sd.next { border-style: dashed; }
.sd.big { background: linear-gradient(180deg, rgba(247,201,72,.2), rgba(247,201,72,.05)); }
.sd.big b { color: #ffe07a; }
.streak-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------- Wallet */
.wallet-card {
  border-radius: 22px; padding: 16px; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, rgba(247,201,72,.25), transparent 55%), linear-gradient(145deg, #1c2a55, #121a33);
  border: 1px solid rgba(247,201,72,.3); box-shadow: 0 14px 34px rgba(0,0,0,.3);
}
.wc-top { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.65); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.wc-top span:last-child { text-transform: none; letter-spacing: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-bal { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 14px; }
.wc-bal b { font-size: 38px; font-weight: 900; color: #ffe07a; font-variant-numeric: tabular-nums; }
.wallet-card .summary div { background: rgba(0,0,0,.2); border-radius: 12px; padding: 8px; }
.tab-inner { display: flex; flex-direction: column; gap: 12px; }
.ledger-list { display: flex; flex-direction: column; gap: 6px; }
.led-amt { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.led-amt small { font-size: 11px; }

/* -------------------------------------------------------------------- Bingo */
/* Bingo has its own look, separate from Keno: a neon bingo hall (purple and pink), a jackpot sign with
   light bulbs, a ball caller with a glass tube, cream paper cards with ink daubers and a bulb flashboard. */
:root { --pink: #ff3d8b; --teal: #19e3c5; --bulb: #ffd76a; --paper: #fff8e8; --plum: #2a1245; --plum2: #1a0b2e; }
body.bingo-mode {
  background:
    radial-gradient(800px 480px at 0% -10%, rgba(255,61,139,.24), transparent 60%),
    radial-gradient(700px 500px at 110% 25%, rgba(25,227,197,.13), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.055) 1px, transparent 0) 0 0 / 22px 22px,
    #160a26;
  background-attachment: fixed;
}
body.bingo-mode .topbar { background: rgba(22,10,38,.86); border-bottom-color: rgba(255,61,139,.25); }
body.bingo-mode .tabbar { background: rgba(24,11,40,.95); border-top-color: rgba(255,61,139,.3); }
body.bingo-mode .tabbar button.active { color: var(--pink); }
body.bingo-mode .tabbar button.active::before { background: var(--pink); }
body.bingo-mode .balance-pill, body.bingo-mode .icon-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }

/* Classic bingo ball colours by column: B blue, I red, N white, G green, O orange */
.bb0 { --bc: #3b82f6; } .bb1 { --bc: #ef4444; } .bb3 { --bc: #22c55e; } .bb4 { --bc: #f59e0b; }
.bb2 { --bc: #e8ecf5; color: #111827; text-shadow: none; }

#tab-bingo { gap: 14px; }
#tab-bingo h2 { color: rgba(255,255,255,.72); }
#tab-bingo .link { color: var(--teal); }
#tab-bingo .btn.primary { color: #fff; background: linear-gradient(180deg, #ff7aa8, var(--pink) 50%, #d81b60); box-shadow: 0 6px 18px rgba(255,61,139,.35), inset 0 1px 0 rgba(255,255,255,.4); }
#tab-bingo .msg.ok { color: var(--teal); }

/* Jackpot sign */
.marquee {
  position: relative; border-radius: 24px; padding: 20px 16px 14px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #4a1f75, #22103a 70%);
  border: 2px solid rgba(255,61,139,.6);
  box-shadow: 0 0 0 5px rgba(255,61,139,.08), 0 14px 40px rgba(0,0,0,.45), inset 0 0 40px rgba(255,61,139,.15);
}
.marquee::before {
  content: ""; position: absolute; inset: 7px; border-radius: 17px; pointer-events: none;
  border: 4px dotted var(--bulb); opacity: .9; animation: bulbs 1.1s steps(2) infinite;
}
.mq-title {
  font-weight: 900; font-size: 32px; letter-spacing: .3em; margin-left: .3em; color: #fff; line-height: 1;
  text-shadow: 0 0 6px #fff, 0 0 14px var(--pink), 0 0 30px rgba(255,61,139,.8);
}
.mq-title span { font-size: 13px; letter-spacing: .06em; color: rgba(255,255,255,.65); text-shadow: none; vertical-align: middle; font-weight: 700; }
.mq-jackpot {
  margin: 12px auto 12px; display: inline-flex; flex-direction: column; align-items: center; padding: 8px 26px 6px;
  border-radius: 14px; background: #0c0514; border: 1px solid rgba(255,215,106,.35); box-shadow: inset 0 0 18px rgba(0,0,0,.7);
}
.mq-jackpot small { font-size: 10px; letter-spacing: .32em; margin-left: .32em; text-transform: uppercase; color: var(--bulb); font-weight: 800; }
.mq-jackpot b {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 38px; font-weight: 900; line-height: 1.1;
  color: var(--bulb); text-shadow: 0 0 10px rgba(255,215,106,.75); font-variant-numeric: tabular-nums;
}
.mq-jackpot b.bump { animation: bump .6s ease; }
.mq-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; max-width: 100%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.mq-pill b {
  min-width: 54px; padding: 5px 10px; border-radius: 999px; background: var(--teal); color: #062a24;
  font-weight: 900; font-variant-numeric: tabular-nums; flex: none;
}
.mq-pill.closing b { background: var(--pink); color: #fff; animation: blink 1s infinite; }
.mq-pill.live b { background: var(--pink); color: #fff; }
.mq-pill.waiting b { background: var(--bulb); color: #3a2600; }
.mq-pill small { color: rgba(255,255,255,.88); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); margin: 12px 10px 0; overflow: hidden; }
.mq-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--pink)); transition: width .25s linear; }
.mq-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; line-height: 1.2; }
.mq-stats b { display: block; font-size: 17px; color: #fff; font-variant-numeric: tabular-nums; }
.mq-stats small { font-size: 11px; color: rgba(255,255,255,.6); }

/* Ball caller */
.caller, .booth, .flash {
  border-radius: 22px; padding: 16px; border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(160deg, var(--plum), var(--plum2)); box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.caller-main { display: flex; align-items: center; gap: 16px; }
.cball.idle { --bc: #5a4a7a; }
.cball {
  flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.95), rgba(255,255,255,0) 28%),
    radial-gradient(circle at 50% 120%, rgba(0,0,0,.45), rgba(0,0,0,0) 60%),
    var(--bc);
  box-shadow: 0 16px 30px rgba(0,0,0,.5), inset 0 -8px 16px rgba(0,0,0,.2);
}
.cball span {
  width: 60%; height: 60%; border-radius: 50%; background: #fff; color: #1a1033; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-weight: 900; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.15);
}
.cball span small { font-size: 12px; color: #7a6a99; font-weight: 900; }
.cball.idle span { background: rgba(255,255,255,.14); color: rgba(255,255,255,.6); box-shadow: none; }
.cball.roll { animation: rollIn .75s cubic-bezier(.25,1.2,.4,1); }
.cball.is-hit::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 3px solid var(--pink);
  animation: ringOut .9s ease-out forwards;
}
.caller-call { font-size: 36px; font-weight: 900; color: #fff; letter-spacing: .04em; line-height: 1; text-shadow: 0 0 16px rgba(255,61,139,.6); }
.caller-sub { color: rgba(255,255,255,.72); font-size: 13px; margin-top: 8px; }
.caller-sub b { color: var(--teal); }
.tube {
  margin-top: 14px; height: 46px; border-radius: 23px; padding: 5px 8px; display: flex; align-items: center; gap: 6px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.02) 60%);
  border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 3px 10px rgba(0,0,0,.55);
}
.tube .ball { width: 34px; height: 34px; font-size: 12.5px; }
.tube .ball:first-child { animation: tubeIn .5s ease; }
.tube:empty::after { content: "Called balls roll in here"; color: rgba(255,255,255,.4); font-size: 12px; margin: auto; }
.b-winner { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.bw-row {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-size: 14px;
  background: linear-gradient(90deg, rgba(255,215,106,.18), rgba(255,215,106,.03)); border: 1px solid rgba(255,215,106,.4);
}
.bw-row .win { margin-left: auto; color: var(--hit); font-weight: 900; }
.bw-row.me { border-color: var(--hit); background: linear-gradient(90deg, rgba(46,226,122,.18), rgba(46,226,122,.03)); }

/* Paper bingo card with ink daubers */
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.bcards:empty { display: none; }
.bcards .empty { color: rgba(255,255,255,.65); border-color: rgba(255,255,255,.18); }
.bcard {
  background: var(--paper); color: #2a1740; border-radius: 14px; padding: 8px 8px 10px; position: relative;
  box-shadow: 0 10px 24px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.06); transition: box-shadow .3s, filter .3s;
}
.bc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; font-size: 13px; gap: 6px; }
.bc-top b { font-size: 14px; white-space: nowrap; letter-spacing: .02em; }
.bc-tag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #efe4cc; color: #6a5a7a; white-space: nowrap; }
.bc-tag.near { background: var(--pink); color: #fff; animation: blink 1s infinite; }
.bc-tag.won { background: #16a34a; color: #fff; }
.bc-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 2px solid #2a1740; border-radius: 8px; overflow: hidden; background: #fffdf6; }
.bc-grid .l { text-align: center; font-weight: 900; font-size: 14px; padding: 4px 0; color: #fff; background: var(--bc); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.bc-grid .l.bb2 { color: #111827; text-shadow: none; background: #d9dce6; }
.bc-grid .c {
  aspect-ratio: 1; display: grid; place-items: center; position: relative; color: #2a1740;
  border-right: 1px solid #e3d6b8; border-bottom: 1px solid #e3d6b8;
  font-weight: 800; font-size: clamp(12px, 3.4vw, 15px); font-variant-numeric: tabular-nums;
}
.bc-grid .c:nth-child(5n) { border-right: 0; }
.bc-grid .c:nth-child(n+26) { border-bottom: 0; }
.bc-grid .c.on::after, .bc-grid .c.win::after {
  content: ""; position: absolute; inset: 11%; border-radius: 50%; mix-blend-mode: multiply;
  background: radial-gradient(circle at 38% 34%, rgba(255,110,160,.8), rgba(232,38,94,.9));
}
.bc-grid .c.win { background: #e3f8ea; }
.bc-grid .c.win::after { background: radial-gradient(circle at 38% 34%, rgba(74,222,128,.85), rgba(22,163,74,.95)); }
.bc-grid .c.free { color: var(--pink); background: #ffe9f1; font-size: 16px; }
.bc-grid .c.free.win { color: #14532d; }
.bc-grid .c.just::after { animation: stamp .45s cubic-bezier(.2,1.6,.4,1); }
.bcard.near { animation: wiggle 1.3s ease-in-out infinite; box-shadow: 0 0 0 3px var(--pink), 0 10px 30px rgba(255,61,139,.4); }
.bcard.won { box-shadow: 0 0 0 3px #22c55e, 0 10px 30px rgba(34,197,94,.45); }
.bcard.lost { filter: grayscale(.45) brightness(.8); }
.bcard .bc-actions { margin-top: 8px; display: flex; gap: 6px; }
.bcard .bc-actions .btn { flex: 1; padding: 7px 8px; font-size: 13px; }
.btn.danger-ghost { background: rgba(255,93,93,.08); border-color: rgba(255,93,93,.35); color: var(--danger); }
.bcard .btn.danger-ghost { background: #fbe3ea; border-color: #f3b7c8; color: #c81e4f; }

/* Card picker: round chips 1–100 */
.b-pick-info { font-size: 13px; color: rgba(255,255,255,.65); margin: -4px 0 12px; }
.b-pick-info b { color: #fff; }
.bgrid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.bgrid button {
  aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.07); color: #f3e9ff;
  cursor: pointer; padding: 0; font-weight: 800; font-size: clamp(10.5px, 2.9vw, 14px); font-variant-numeric: tabular-nums; transition: transform .1s;
}
.bgrid button:active { transform: scale(.9); }
.bgrid button.taken { background: transparent; color: rgba(255,255,255,.22); border-style: dashed; text-decoration: line-through; }
.bgrid button.mine {
  background: radial-gradient(circle at 35% 30%, #ff9cc0, var(--pink) 60%, #c81e5f); color: #fff; border-color: transparent;
  box-shadow: 0 3px 10px rgba(255,61,139,.45);
}
.bgrid button.sel { outline: 2px solid var(--teal); outline-offset: 1px; background: rgba(25,227,197,.2); color: #fff; }
.bgrid button.mine.sel { background: radial-gradient(circle at 35% 30%, #ff9cc0, var(--pink) 60%, #c81e5f); }
.b-preview { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.b-preview .bcard { max-width: 290px; width: 100%; margin: 0 auto; }
.b-preview:empty { display: none; }
.b-hint { text-align: center; color: rgba(255,255,255,.55); font-size: 13px; }
.bcard .b-hint { color: #8a7a99; }

/* Flashboard of called numbers: bulbs light up */
.flash { background: linear-gradient(160deg, #1b0c2e, #10061c); }
.bboard { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.bboard .l { display: grid; place-items: center; font-weight: 900; font-size: 12px; border-radius: 5px; color: #fff; background: var(--bc); }
.bboard .l.bb2 { color: #111827; }
.bboard .n {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: clamp(8px, 2.3vw, 11px); font-weight: 700;
  color: #4d3a66; background: #1f1033; font-variant-numeric: tabular-nums; text-shadow: none;
}
.bboard .n.on { color: #3a2600; background: radial-gradient(circle at 40% 35%, #fff6c9, var(--bulb) 55%, #e0a916); box-shadow: 0 0 8px rgba(255,215,106,.65); }
.bboard .n.last { animation: slotIn .5s cubic-bezier(.2,1.4,.4,1); box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(255,215,106,.9); }

@keyframes bulbs { 50% { opacity: .45; } }
@keyframes rollIn { 0% { transform: translateX(180px) rotate(320deg); opacity: 0; } 70% { transform: translateX(-6px) rotate(-10deg); opacity: 1; } 100% { transform: none; } }
@keyframes tubeIn { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1.2deg); } 75% { transform: rotate(1.2deg); } }
@keyframes stamp { 0% { transform: scale(1.8); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* -------------------------------------------------------------------- Crash */
/* Crash has its own look: a deep-sea submarine dive (dark ocean, teal sonar glow, bioluminescent green).
   The scene itself is drawn on the canvas in app.js (crashFrame). */
:root { --sea: #2de2e6; --bio: #54ffb0; --amber: #ffb020; --flame: #ff7a2b; --go: #1fd6a0; }
body.crash-mode {
  background: radial-gradient(900px 600px at 50% -20%, rgba(45,226,230,.12), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(84,255,176,.06), transparent 60%), #020a12;
  background-attachment: fixed;
}
body.crash-mode .topbar { background: rgba(2,10,18,.88); border-bottom-color: rgba(45,226,230,.18); }
body.crash-mode .tabbar { background: rgba(3,12,20,.95); border-top-color: rgba(45,226,230,.22); }
body.crash-mode .tabbar button.active { color: var(--sea); }
body.crash-mode .tabbar button.active::before { background: var(--sea); }
#tab-crash { gap: 12px; max-width: 760px; margin: 0 auto; width: 100%; }

.cr-recent { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.cr-recent::-webkit-scrollbar { display: none; }
.cr-chip {
  flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: rgba(45,226,230,.1); color: #8ff3f5; border: 1px solid rgba(45,226,230,.25);
}
.cr-chip.mid { background: rgba(84,255,176,.1); color: var(--bio); border-color: rgba(84,255,176,.35); }
.cr-chip.high { background: rgba(255,176,32,.16); color: var(--amber); border-color: rgba(255,176,32,.45); }
.cr-chip.new { animation: slotIn .5s cubic-bezier(.2,1.4,.4,1); }

/* The dive window */
.cr-sky {
  position: relative; height: 310px; border-radius: 26px; overflow: hidden; background: #03101c;
  border: 3px solid #1d3444; box-shadow: 0 0 0 1px rgba(45,226,230,.25), 0 16px 40px rgba(0,0,0,.55), inset 0 0 40px rgba(0,0,0,.6);
}
.cr-sky::after { /* porthole rim shine */
  content: ""; position: absolute; inset: 0; border-radius: 23px; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.05), inset 0 20px 30px -20px rgba(255,255,255,.12);
}
.cr-sky.shake { animation: shake .5s ease; }
.cr-sky.boom { border-color: #5a1a22; box-shadow: 0 0 0 1px rgba(255,77,94,.4), 0 16px 40px rgba(0,0,0,.55); }
#crCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cr-center { position: absolute; left: 0; right: 0; top: 16%; text-align: center; pointer-events: none; z-index: 1; }
.cr-mult {
  font-size: 56px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; line-height: 1; letter-spacing: -.01em;
  text-shadow: 0 0 18px rgba(45,226,230,.6), 0 4px 18px rgba(0,0,0,.7);
}
.cr-mult.mid { color: #c9ffe6; text-shadow: 0 0 22px rgba(84,255,176,.75), 0 4px 18px rgba(0,0,0,.7); }
.cr-mult.high { color: var(--amber); text-shadow: 0 0 24px rgba(255,176,32,.8), 0 4px 18px rgba(0,0,0,.7); }
.cr-mult.idle { color: #0b2a40; text-shadow: 0 2px 12px rgba(255,255,255,.6); font-size: 44px; background: none; }
/* A dark halo behind the number while diving, so sea life passing behind it never hides it */
.cr-mult:not(.idle) { display: inline-block; padding: 10px 34px 6px; background: radial-gradient(closest-side, rgba(1,8,14,.62), rgba(1,8,14,.35) 60%, rgba(1,8,14,0)); }
.cr-mult:not(.idle) + .cr-sub { display: table; margin: 2px auto 0; padding: 2px 12px; border-radius: 999px; background: rgba(1,8,14,.45); }
.cr-mult.crashed { color: #ff4d5e; text-shadow: 0 0 22px rgba(255,77,94,.85), 0 4px 18px rgba(0,0,0,.7); animation: pickPop .4s ease; }
.cr-sub {
  margin-top: 6px; font-size: 13px; font-weight: 700; color: rgba(210,250,255,.85); letter-spacing: .06em;
  text-shadow: 0 2px 8px rgba(0,0,0,.8); font-variant-numeric: tabular-nums;
}
.cr-mult.idle + .cr-sub { color: #0b2a40; text-shadow: none; text-transform: uppercase; letter-spacing: .12em; }
.cr-sub.crashed { color: #ff8a95; }
.cr-bar { width: 180px; height: 5px; border-radius: 3px; background: rgba(11,42,64,.25); margin: 10px auto 0; overflow: hidden; }
.cr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #0b7fa8, #0b2a40); transition: width .25s linear; }
.cr-round { position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: rgba(160,230,255,.45); font-weight: 700; }
.cr-zone {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%); white-space: nowrap; pointer-events: none; z-index: 2; /* top edge: clear of the sub and the number */
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bio); background: rgba(2,16,24,.7); border: 1px solid rgba(84,255,176,.4); opacity: 0;
}
.cr-zone.show { animation: zoneIn 2.8s ease forwards; }

/* Two bet panels: submarine console */
.cr-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .cr-panels { grid-template-columns: 1fr; } }
.cr-panel {
  border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 9px;
  background: linear-gradient(180deg, #0b2230, #071821); border: 1px solid rgba(45,226,230,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.cr-panel.active { border-color: rgba(255,176,32,.55); box-shadow: 0 0 0 1px rgba(255,176,32,.2), 0 0 24px rgba(255,176,32,.12); }
.cr-panel.won { border-color: rgba(84,255,176,.6); }
.cr-amt { display: flex; align-items: center; background: #031018; border: 1px solid rgba(45,226,230,.15); border-radius: 12px; overflow: hidden; }
.cr-amt input { border: 0; background: transparent; text-align: center; font-weight: 900; font-size: 18px; padding: 8px 2px; min-width: 0; color: #dffcff; }
.cr-amt button { width: 40px; height: 40px; border: 0; background: rgba(45,226,230,.08); font-size: 20px; font-weight: 900; cursor: pointer; color: #9ff6f8; flex: none; }
.cr-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.cr-chips button {
  padding: 6px 0; border-radius: 9px; border: 1px solid rgba(45,226,230,.14); background: rgba(45,226,230,.05);
  color: #bff8fa; font-weight: 800; font-size: 12.5px; cursor: pointer;
}
.cr-auto { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(210,250,255,.75); cursor: pointer; }
.cr-auto input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--sea); margin: 0; }
.cr-auto input[type=number] {
  width: 84px; margin-left: auto; padding: 6px 8px; border-radius: 9px; text-align: center; font-weight: 800;
  background: #031018; border: 1px solid rgba(45,226,230,.15); color: #dffcff;
}
.cr-auto input[type=number]:disabled { opacity: .4; }
.cr-btn {
  border: 0; border-radius: 14px; padding: 13px 10px; cursor: pointer; color: #02231a; font-weight: 900; font-size: 17px; line-height: 1.15;
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform .1s, filter .2s;
  background: linear-gradient(180deg, #6affd0, var(--go) 50%, #0f9e76); box-shadow: 0 6px 18px rgba(31,214,160,.3);
}
.cr-btn small { font-size: 12px; font-weight: 700; color: inherit; opacity: .8; } /* the global small colour is too pale on the green button */
.cr-btn:active { transform: scale(.97); }
.cr-btn:disabled { filter: grayscale(.8) brightness(.6); cursor: not-allowed; box-shadow: none; }
.cr-btn.cancel { color: #fff; background: linear-gradient(180deg, #ff6b7a, #e5384d); box-shadow: 0 6px 18px rgba(229,56,77,.3); }
.cr-btn.cash { background: linear-gradient(180deg, #ffd166, var(--amber) 45%, var(--flame)); color: #2b1300; box-shadow: 0 6px 22px rgba(255,140,40,.45); animation: glow 1s ease-in-out infinite; }
.cr-btn.cash b { font-size: 20px; font-variant-numeric: tabular-nums; }
.cr-btn.queued { color: #cfefff; background: linear-gradient(180deg, #1d4a63, #143648); box-shadow: none; }
.cr-btn.won { background: linear-gradient(180deg, #10432f, #0b3124); color: var(--bio); box-shadow: none; }
.cr-btn.lost { background: #0e1f2a; color: #6f8a99; box-shadow: none; }

/* Bets this round */
.cr-bets { border-radius: 18px; padding: 12px; background: #051420; border: 1px solid rgba(45,226,230,.1); }
.cr-bets-head { display: flex; justify-content: space-between; font-size: 13px; color: rgba(210,250,255,.6); margin-bottom: 8px; }
.cr-bets-head b { color: #fff; }
.cr-bets-list { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow: auto; }
.cr-bet { display: grid; grid-template-columns: 1fr auto 64px 70px; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 10px; background: rgba(45,226,230,.04); font-size: 13px; }
.cr-bet .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-bet .m { text-align: center; font-weight: 800; color: rgba(255,255,255,.35); }
.cr-bet .w { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.cr-bet.won { background: rgba(84,255,176,.09); }
.cr-bet.won .m, .cr-bet.won .w { color: var(--bio); }
.cr-bet.me { outline: 1px solid rgba(255,176,32,.45); }
.cr-bet.lost .w { color: #ff4d5e; }
.cr-empty { text-align: center; color: rgba(210,250,255,.45); font-size: 13px; padding: 12px; }

@keyframes shake { 15% { transform: translate(-8px, 4px); } 30% { transform: translate(7px, -5px); } 45% { transform: translate(-6px, 3px); } 60% { transform: translate(5px, -2px); } 80% { transform: translate(-2px, 1px); } }
@keyframes glow { 50% { filter: brightness(1.15); box-shadow: 0 6px 30px rgba(255,140,40,.7); } }
@keyframes zoneIn { 0% { opacity: 0; transform: translate(-50%, 10px); } 12% { opacity: 1; transform: translate(-50%, 0); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* -------------------------------------------------------------------- Slots */
/* Fruit Blender has its own look: a neon juice bar (lime, orange and pink on dark green). */
:root { --lime: #b8ff3c; --juice: #ff9a1f; --straw: #ff4fa3; --bar: #07140c; }
body.slots-mode {
  background:
    radial-gradient(700px 480px at 0% -10%, rgba(184,255,60,.16), transparent 60%),
    radial-gradient(700px 520px at 110% 30%, rgba(255,154,31,.14), transparent 60%),
    radial-gradient(circle at 12px 12px, rgba(184,255,60,.06) 2px, transparent 3px) 0 0 / 26px 26px,
    #050d08;
  background-attachment: fixed;
}
body.slots-mode .topbar { background: rgba(5,13,8,.88); border-bottom-color: rgba(184,255,60,.18); }
body.slots-mode .tabbar { background: rgba(6,16,10,.95); border-top-color: rgba(184,255,60,.22); }
body.slots-mode .tabbar button.active { color: var(--lime); }
body.slots-mode .tabbar button.active::before { background: var(--lime); }
#tab-slots { max-width: 560px; margin: 0 auto; width: 100%; gap: 12px; }

.sl-machine {
  border-radius: 26px; padding: 12px; position: relative;
  background: linear-gradient(180deg, #13301c, #0a1d11 60%, #081409);
  border: 2px solid rgba(184,255,60,.45);
  box-shadow: 0 0 0 4px rgba(184,255,60,.07), 0 0 40px rgba(184,255,60,.14), 0 18px 40px rgba(0,0,0,.5);
}
.sl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sl-logo {
  font-weight: 900; font-size: 20px; letter-spacing: .06em; line-height: .95; color: var(--lime);
  text-shadow: 0 0 10px rgba(184,255,60,.7);
}
.sl-logo span { display: block; color: var(--juice); font-size: 15px; letter-spacing: .18em; text-shadow: 0 0 10px rgba(255,154,31,.7); }
.sl-blender { display: flex; align-items: center; gap: 8px; }
.sl-jar { width: 34px; height: 44px; flex: none; }
.sl-jar svg { width: 100%; height: 100%; }
.sl-blender.whirl .sl-jar { animation: jarShake .12s linear infinite; }
.sl-blender.whirl #slBlade { transform-origin: 20px 33px; animation: spinBlade .12s linear infinite; }
.sl-mults { display: flex; gap: 4px; }
.sl-mults span {
  min-width: 34px; padding: 5px 4px; border-radius: 9px; text-align: center; font-weight: 900; font-size: 13px;
  color: rgba(220,255,200,.45); background: rgba(0,0,0,.35); border: 1px solid rgba(184,255,60,.18);
  font-variant-numeric: tabular-nums; transition: background .08s, color .08s;
}
.sl-mults span.lit { color: #0b1a05; background: var(--lime); box-shadow: 0 0 14px rgba(184,255,60,.8); }
.sl-mults span.won { color: #2b1300; background: var(--juice); box-shadow: 0 0 18px rgba(255,154,31,.9); animation: pickPop .4s ease; }

.sl-window {
  position: relative; border-radius: 18px; padding: 6px; overflow: hidden;
  background: linear-gradient(180deg, #fff9ec, #ffeccc); box-shadow: inset 0 3px 10px rgba(0,0,0,.25), 0 0 0 3px #0b1f10;
}
.sl-reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.sl-reel { position: relative; overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #fff, #fff4df); }
.sl-reel::before, .sl-reel::after { /* shading at the top and bottom of each reel */
  content: ""; position: absolute; left: 0; right: 0; height: 18%; z-index: 2; pointer-events: none;
}
.sl-reel::before { top: 0; background: linear-gradient(180deg, rgba(60,40,10,.22), transparent); }
.sl-reel::after { bottom: 0; background: linear-gradient(0deg, rgba(60,40,10,.22), transparent); }
.sl-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.sl-strip.blur .sl-sym { filter: blur(1.6px); }
.sl-cell { display: grid; place-items: center; }
.sl-sym {
  width: 84%; aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-size: clamp(26px, 8vw, 40px); line-height: 1;
  background: radial-gradient(circle at 50% 40%, var(--sg, #ffe3e3), transparent 70%); position: relative;
}
.sl-sym.s0 { --sg: rgba(255,80,100,.28); } .sl-sym.s1 { --sg: rgba(255,230,60,.35); } .sl-sym.s2 { --sg: rgba(255,150,40,.32); }
.sl-sym.s3 { --sg: rgba(150,80,255,.26); } .sl-sym.s4 { --sg: rgba(80,210,90,.3); } .sl-sym.s5 { --sg: rgba(255,210,40,.45); }
.sl-sym.s6 { --sg: rgba(255,40,70,.3); }
.sl-sym i {
  font-style: normal; font-weight: 900; font-size: 1.15em; font-family: Impact, "Arial Black", system-ui, sans-serif;
  background: linear-gradient(180deg, #ff8a8a, #e3001b 55%, #7a000f); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #fff) drop-shadow(0 3px 3px rgba(0,0,0,.35));
}
.sl-cell.win .sl-sym { animation: winBounce .6s ease-in-out infinite; box-shadow: 0 0 0 3px var(--juice), 0 0 18px rgba(255,154,31,.8); background: radial-gradient(circle, #fff6d8, #ffd37a); }
.sl-cell.dim .sl-sym { opacity: .35; filter: grayscale(.6); }
.sl-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sl-lines path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; filter: drop-shadow(0 0 4px rgba(0,0,0,.4)); }
.sl-winbar {
  margin-top: 10px; display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-radius: 14px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(184,255,60,.2); min-height: 44px;
}
.sl-winbar span { font-size: 13px; color: rgba(220,255,200,.8); font-weight: 700; }
.sl-winbar b { font-size: 22px; font-weight: 900; color: var(--lime); font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(184,255,60,.6); }
.sl-winbar b.pop { animation: pickPop .35s ease; }

.sl-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.sl-bet {
  display: flex; align-items: center; justify-content: space-between; border-radius: 16px; overflow: hidden;
  background: #0b1d10; border: 1px solid rgba(184,255,60,.25);
}
.sl-bet button { width: 36px; height: 52px; border: 0; background: rgba(184,255,60,.08); color: var(--lime); font-size: 22px; font-weight: 900; cursor: pointer; }
.sl-bet button:disabled { opacity: .35; }
.sl-bet div { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.sl-bet small { font-size: 10px; color: rgba(220,255,200,.6); text-transform: uppercase; letter-spacing: .1em; }
.sl-bet b { font-size: 18px; font-variant-numeric: tabular-nums; }
.sl-spin {
  width: 86px; height: 86px; border-radius: 50%; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: #102400; font-weight: 900; font-size: 13px; letter-spacing: .08em;
  background: radial-gradient(circle at 35% 30%, #efffc4, var(--lime) 55%, #6fb800);
  box-shadow: 0 0 0 5px rgba(184,255,60,.18), 0 0 28px rgba(184,255,60,.55), inset 0 -5px 10px rgba(0,0,0,.2);
  transition: transform .1s;
}
.sl-spin svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sl-spin:active { transform: scale(.94); }
.sl-spin:disabled { filter: grayscale(.7) brightness(.7); cursor: not-allowed; }
.sl-spin.busy svg { animation: spinBlade .6s linear infinite; }
.sl-spin.stop { background: radial-gradient(circle at 35% 30%, #ffc2d9, var(--straw) 55%, #b8165f); color: #fff; box-shadow: 0 0 0 5px rgba(255,79,163,.2), 0 0 28px rgba(255,79,163,.55); }
.sl-side { display: flex; gap: 8px; justify-content: flex-end; }
.sl-tool {
  width: 56px; height: 52px; border-radius: 14px; border: 1px solid rgba(184,255,60,.25); background: #0b1d10; color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 18px; line-height: 1;
}
.sl-tool small { font-size: 10px; margin-top: 3px; color: rgba(220,255,200,.7); }
.sl-tool.on { background: rgba(255,154,31,.18); border-color: var(--juice); box-shadow: 0 0 14px rgba(255,154,31,.35); }
.sl-tool.on small { color: var(--juice); }
.sl-autopick { border-radius: 16px; padding: 12px; background: #0b1d10; border: 1px solid rgba(184,255,60,.2); display: flex; flex-direction: column; gap: 10px; }
.sl-autorow { display: flex; align-items: center; gap: 6px; }
.sl-autorow span { font-size: 13px; color: rgba(220,255,200,.75); margin-right: auto; }
.sl-autorow button { min-width: 48px; padding: 8px; border-radius: 10px; border: 1px solid rgba(184,255,60,.3); background: rgba(184,255,60,.08); color: var(--lime); font-weight: 900; cursor: pointer; }
.sl-check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(220,255,200,.75); }
.sl-check input { accent-color: var(--lime); width: 18px; height: 18px; margin: 0; }
.sl-links { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sl-links button { padding: 10px; border-radius: 12px; border: 1px solid rgba(184,255,60,.18); background: #0b1d10; color: #e8ffd8; font-weight: 700; cursor: pointer; }

/* Paytable and fairness sheets */
.sl-sheet { max-width: 480px; width: 100%; max-height: 85vh; overflow: auto; }
.sl-pay { width: 100%; border-collapse: collapse; font-size: 14px; }
.sl-pay td, .sl-pay th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: center; }
.sl-pay th { font-size: 12px; color: var(--muted); font-weight: 600; }
.sl-pay .sl-sym { width: 40px; font-size: 24px; margin: 0 auto; }
.sl-note { font-size: 13px; color: var(--muted); margin: 10px 0; }
.sl-linegrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sl-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; padding: 3px; border-radius: 6px; background: var(--bg2); position: relative; }
.sl-mini i { aspect-ratio: 1; background: #26314f; border-radius: 2px; }
.sl-mini i.on { background: var(--juice); }
.sl-mini b { position: absolute; top: -6px; left: -4px; font-size: 9px; background: var(--card2); border-radius: 4px; padding: 0 3px; }
.sl-fair dt { color: var(--muted); font-size: 12px; margin-top: 10px; }
.sl-fair dd { margin: 3px 0 0; }
.sl-fair .row { margin-top: 6px; }
.sl-fair input { font-family: ui-monospace, Menlo, Consolas, monospace; }
.sl-vlist { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 240px; overflow: auto; font-size: 13px; }
.sl-vlist div { display: flex; justify-content: space-between; padding: 6px 8px; background: var(--bg2); border-radius: 8px; }

/* Big win celebration */
.sl-big { position: fixed; inset: 0; z-index: 48; display: grid; place-items: center; cursor: pointer; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(255,154,31,.35), rgba(5,13,8,.92) 65%); }
.sl-big-rays {
  position: absolute; width: 180vmax; height: 180vmax; left: 50%; top: 45%; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(rgba(255,210,80,.14) 0 10deg, transparent 10deg 20deg); animation: rays 12s linear infinite;
}
.sl-big-card { position: relative; text-align: center; animation: winIn .6s cubic-bezier(.2,1.5,.4,1); }
.sl-big-label {
  font-size: 44px; font-weight: 900; letter-spacing: .06em; line-height: 1; font-family: Impact, "Arial Black", system-ui, sans-serif;
  background: linear-gradient(180deg, #fffbe0, var(--lime) 45%, #58a800); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #0b3a04) drop-shadow(0 0 20px rgba(184,255,60,.6));
}
.sl-big.mega .sl-big-label { background-image: linear-gradient(180deg, #fff3d6, var(--juice) 45%, #b85a00); filter: drop-shadow(0 4px 0 #4a2200) drop-shadow(0 0 22px rgba(255,154,31,.7)); }
.sl-big.epic .sl-big-label { background-image: linear-gradient(180deg, #ffe3f1, var(--straw) 45%, #a3004f); filter: drop-shadow(0 4px 0 #4a0024) drop-shadow(0 0 26px rgba(255,79,163,.8)); animation: pulseBig .8s ease-in-out infinite; }
.sl-big-amount { font-size: 56px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; margin-top: 8px; text-shadow: 0 0 20px rgba(255,210,80,.8), 0 4px 0 rgba(0,0,0,.4); }
.sl-big-sub { font-size: 14px; font-weight: 700; color: #ffe9b8; margin-top: 4px; }
.sl-big small { display: block; margin-top: 14px; color: rgba(255,255,255,.5); font-size: 12px; }
.fruit-rain i {
  position: absolute; top: -40px; font-style: normal; font-size: 28px;
  animation: fall var(--d, 2.4s) cubic-bezier(.25,.6,.5,1) forwards;
}

@keyframes winBounce { 50% { transform: scale(1.1) rotate(-4deg); } }
@keyframes jarShake { 25% { transform: translate(-1px, 1px) rotate(-2deg); } 75% { transform: translate(1px, -1px) rotate(2deg); } }
@keyframes spinBlade { to { transform: rotate(360deg); } }
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes pulseBig { 50% { transform: scale(1.08); } }

/* Home card */
.g-slots { background: linear-gradient(135deg, #1e4a14, #07140c 70%); border-color: rgba(184,255,60,.35); }
.g-slots .g-art { background: linear-gradient(180deg, #fff9ec, #ffe0a8); grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 6px; }
.g-slots .g-art .sl-sym { width: 100%; font-size: 20px; border-radius: 8px; }
.g-slots .g-status { color: var(--lime); }
.g-slots .g-play { background: linear-gradient(180deg, #efffc4, var(--lime)); color: #102400; }
.feed-row.g-slots .f-ic { background: rgba(184,255,60,.14); }

/* Results tab switch */
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 9px; cursor: pointer; font-weight: 800; color: var(--muted); }
.seg button.on { background: linear-gradient(145deg, var(--pick), var(--pick2)); color: #fff; }
.h-nums.b15 { grid-template-columns: repeat(15, 1fr); gap: 3px; }
.h-nums.b15 .ball { font-size: clamp(8px, 2.2vw, 10.5px); }


/* ------------------------------------------------------------------ Tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; justify-content: center;
  padding: 6px 8px calc(6px + var(--safe-b));
  background: rgba(12,17,32,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(36,48,82,.8);
}
.tabbar button {
  flex: 1; max-width: 130px; position: relative; border: 0; background: none; cursor: pointer; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 12px;
  font-size: 11px; font-weight: 700;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.active { color: var(--drawn); }
.tabbar button.active::before {
  content: ""; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--drawn);
}
.badge {
  position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--pick); color: #fff; font-size: 10px; font-style: normal; font-weight: 800; display: grid; place-items: center;
}
.badge.live { background: var(--danger); font-size: 8.5px; letter-spacing: .04em; }
.ticket .t-head:last-child { margin-bottom: 0; }
.ticket[data-goto="bingo"] { cursor: pointer; }
.live-pill {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 14;
  border: 1px solid rgba(247,201,72,.5); background: rgba(20,27,46,.95); border-radius: 999px;
  padding: 6px 14px 6px 6px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.live-pill .ball { width: 28px; height: 28px; }
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }

/* ----------------------------------------------------------------- Overlays */
.overlay { position: fixed; inset: 0; background: rgba(5,8,15,.82); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 40; padding: 16px; }
.join-card { max-width: 380px; width: 100%; display: flex; flex-direction: column; gap: 14px; text-align: center; padding: 24px 20px; }
/* Jackloot stacked logo (the letters use Unbounded 900, loaded in index.html) */
.join-logo { margin: 0; line-height: 0; display: flex; justify-content: center; }
.join-logo svg { width: 180px; height: auto; }
.join-card p, .join-card small { color: var(--muted); margin: 0; }
.join-balls { display: flex; justify-content: center; gap: 8px; }
.join-balls .ball { width: 42px; height: 42px; font-size: 16px; animation: float 3s ease-in-out infinite; }
.join-balls .ball:nth-child(2) { animation-delay: .4s; } .join-balls .ball:nth-child(3) { animation-delay: .8s; } .join-balls .ball:nth-child(4) { animation-delay: 1.2s; }
.join-fields { display: flex; flex-direction: column; gap: 12px; }
.btn.tg { background: #229ed9; border-color: #229ed9; color: #fff; text-decoration: none; text-align: center; }
.verify-card { max-width: 560px; width: 100%; }
.verify-card p { color: var(--muted); font-size: 13px; }
.verify-card dt { color: var(--muted); font-size: 12px; margin-top: 10px; }
.verify-card dd { margin: 2px 0 0; }
.verify-card .btn { margin-top: 16px; }
.ok-text { color: var(--hit); font-weight: 700; } .bad-text { color: var(--danger); font-weight: 700; }

.toast {
  position: fixed; left: 50%; top: calc(70px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 50;
  background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); font-weight: 700; max-width: calc(100% - 32px); animation: fadeDown .25s ease;
}
.toast.win { border-color: var(--hit); color: var(--hit); }

/* Win celebration */
.win-pop { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(5,8,15,.55); cursor: pointer; }
.win-card {
  text-align: center; padding: 26px 36px; border-radius: 24px; min-width: 240px;
  background: radial-gradient(circle at 50% 0%, rgba(247,201,72,.35), transparent 70%), var(--card2);
  border: 1px solid rgba(247,201,72,.6); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 60px rgba(247,201,72,.2);
  animation: winIn .6s cubic-bezier(.2,1.5,.4,1);
}
.win-label { font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--drawn); }
.win-amount {
  font-size: 52px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 6px 0;
  background: linear-gradient(180deg, #fff, #ffe07a); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.win-sub { color: var(--muted); font-size: 13px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 46; overflow: hidden; }
.confetti i {
  position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px;
  animation: fall var(--d, 2.4s) cubic-bezier(.25,.6,.5,1) forwards;
}

/* --------------------------------------------------------------- Animations */
@keyframes drop {
  0% { transform: translateY(-120px) scale(.5); opacity: 0; }
  55% { transform: translateY(8px) scale(1.06, .94); opacity: 1; }
  75% { transform: translateY(-6px) scale(.98, 1.02); }
  100% { transform: none; }
}
@keyframes spinIn { from { transform: rotate(-200deg) scale(.4); } to { transform: none; } }
@keyframes slotIn { 0% { transform: scale(0) rotate(-160deg); } 100% { transform: none; } }
@keyframes ringOut { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
@keyframes flip { 0% { transform: rotateY(90deg) scale(1.2); } 60% { transform: rotateY(-10deg) scale(1.1); } 100% { transform: none; } }
@keyframes pickPop { 50% { transform: scale(1.15); } }
@keyframes bump { 30% { transform: scale(1.25); color: var(--hit); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes winIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--x, 0), 105vh) rotate(var(--r, 540deg)); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---------------------------------------------------------------- Small phones */
@media (max-width: 420px) {
  .logo-h { height: 22px; }
  .icon-btn { width: 38px; height: 38px; }
}
@media (max-width: 340px) {
  .round-stats { gap: 10px; }
  .ring { width: 52px; height: 52px; }
  .big-ball { width: 78px; height: 78px; }
  .big-ball span { font-size: 22px; }
  .card { padding: 12px; }
  main { padding: 10px; }
}

/* ================================================================ Mines: "Crystal Cavern"
   Its own look: dark basalt stone lit by a warm lantern, emerald and amethyst gems, glowing lava. */
:root { --mn-amber: #ffb547; --mn-emerald: #2ee59d; --mn-amethyst: #b77cff; --mn-lava: #ff5a1f; --mn-rock: #0f0c0a; }
body.mines-mode {
  background:
    radial-gradient(620px 420px at 50% -8%, rgba(255,181,71,.2), transparent 62%),
    radial-gradient(500px 400px at -10% 80%, rgba(183,124,255,.1), transparent 60%),
    radial-gradient(500px 400px at 110% 90%, rgba(46,229,157,.08), transparent 60%),
    #0f0c0a;
  background-attachment: fixed;
}
body.mines-mode .topbar { background: rgba(15,12,10,.9); border-bottom-color: rgba(255,181,71,.18); }
body.mines-mode .tabbar { background: rgba(18,14,11,.96); border-top-color: rgba(255,181,71,.2); }
body.mines-mode .game-bar button { border-color: rgba(255,181,71,.25); background: rgba(255,181,71,.06); }

.mn-cave {
  position: relative; overflow: hidden; border-radius: 24px; padding: 14px; margin-top: 10px;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255,181,71,.16), transparent 60%), linear-gradient(180deg, #1d1814, #110d0b);
  border: 1px solid rgba(255,181,71,.2); box-shadow: inset 0 0 40px rgba(0,0,0,.6), 0 16px 36px rgba(0,0,0,.45);
}
.mn-cave::before { /* the lantern's light, breathing slowly */
  content: ''; position: absolute; inset: -30% -10% auto; height: 70%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,190,90,.14), transparent); animation: mnLantern 5s ease-in-out infinite;
}
@keyframes mnLantern { 0%, 100% { opacity: .75; transform: translateX(-3%); } 50% { opacity: 1; transform: translateX(3%); } }
.mn-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; position: relative; }
.mn-mult small, .mn-next small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,225,180,.6); }
.mn-mult b { font-size: 34px; font-weight: 900; color: var(--mn-amber); text-shadow: 0 0 18px rgba(255,181,71,.45); display: inline-block; }
.mn-mult b.bump { animation: mnBump .35s ease; }
@keyframes mnBump { 40% { transform: scale(1.15); } }
.mn-next { text-align: right; }
.mn-next b { font-size: 18px; color: #ffe2b0; }

.mn-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; position: relative; }
.mn-tile {
  aspect-ratio: 1; border: 0; border-radius: 14px; cursor: pointer; position: relative; padding: 0; color: inherit;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.13), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,.25) 1px, transparent 2px) 0 0 / 9px 9px,
    radial-gradient(circle at 20% 60%, rgba(255,255,255,.06) 1px, transparent 2px) 0 0 / 7px 7px,
    linear-gradient(160deg, #57504a, #35302b 55%, #25211e);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.14), inset 0 -4px 0 rgba(0,0,0,.4), 0 5px 10px rgba(0,0,0,.45);
  transition: transform .12s, filter .2s;
}
.mn-tile:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.12); }
.mn-tile:not(:disabled):active { transform: translateY(1px) scale(.97); }
.mn-tile.idle { filter: brightness(.7) saturate(.8); cursor: default; }
.mn-tile:disabled { cursor: default; }
.mn-face { position: absolute; inset: 14%; display: grid; place-items: center; }
.mn-face svg { width: 100%; height: 100%; }
.mn-tile.crack { animation: mnCrack .2s linear infinite; }
.mn-tile.crack::after { content: ''; position: absolute; inset: 20%; background:
  linear-gradient(35deg, transparent 46%, rgba(0,0,0,.7) 48%, transparent 51%), linear-gradient(-50deg, transparent 47%, rgba(0,0,0,.6) 49%, transparent 52%); }
@keyframes mnCrack { 25% { transform: translate(1px, -1px) rotate(1deg); } 75% { transform: translate(-1px, 1px) rotate(-1deg); } }
.mn-tile.open { background: radial-gradient(circle at 50% 45%, #1a1512, #0c0908); box-shadow: inset 0 3px 8px rgba(0,0,0,.8); filter: none; }
.mn-tile.gem .mn-face { animation: mnGemIn .45s cubic-bezier(.2,1.4,.4,1); }
.mn-tile.gE .mn-face { filter: drop-shadow(0 0 8px rgba(46,229,157,.7)); }
.mn-tile.gA .mn-face { filter: drop-shadow(0 0 8px rgba(183,124,255,.75)); }
@keyframes mnGemIn { from { transform: scale(.2) rotate(-25deg); opacity: 0; } }
.mn-tile.lava.hit { background: radial-gradient(circle at 50% 50%, rgba(255,90,31,.6), #2a0d05 70%); box-shadow: 0 0 22px rgba(255,90,31,.7), inset 0 0 12px rgba(255,200,120,.5); animation: mnLavaPulse .9s ease-in-out infinite; }
.mn-tile.lava .mn-face { filter: drop-shadow(0 0 6px rgba(255,106,31,.8)); }
@keyframes mnLavaPulse { 50% { box-shadow: 0 0 34px rgba(255,90,31,.95), inset 0 0 16px rgba(255,220,150,.6); } }
.mn-tile.dim { opacity: .38; }
.mn-tile.dim .mn-face { animation: none; }

.mn-msg { margin-top: 12px; text-align: center; font-size: 14px; color: #f3e3cc; min-height: 20px; position: relative; }
.mn-msg.win { color: #9dffcf; }
.mn-msg.lost { color: #ffab8a; }
.mn-cave.shake { animation: mnShake .45s ease; }
@keyframes mnShake { 15% { transform: translate(-7px, 3px); } 30% { transform: translate(6px, -4px); } 45% { transform: translate(-5px, 2px); } 60% { transform: translate(4px, -2px); } 80% { transform: translate(-2px, 1px); } }
.mn-cave.burn::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 55%, rgba(255,90,31,.45), rgba(120,10,0,.25) 60%, transparent); animation: mnBurn 1.2s ease-out forwards; }
@keyframes mnBurn { from { opacity: 1; } to { opacity: 0; } }
.mn-cave.glow { animation: mnGlow 1.4s ease-out; }
@keyframes mnGlow { 20% { box-shadow: inset 0 0 40px rgba(0,0,0,.6), 0 0 44px rgba(255,181,71,.55); border-color: rgba(255,181,71,.7); } }
.mn-fx { position: absolute; inset: 0; pointer-events: none; }
.mn-fx i { position: absolute; width: 9px; height: 9px; margin: -4px; animation: mnShard 1s cubic-bezier(.2,.7,.3,1) forwards; }
.mn-fx i.rock { background: linear-gradient(135deg, #5a514a, #231f1c); clip-path: polygon(0 20%, 60% 0, 100% 50%, 70% 100%, 10% 80%); }
.mn-fx i.ember { width: 6px; height: 6px; border-radius: 50%; background: #ffcf6b; box-shadow: 0 0 10px #ff6a1f; }
@keyframes mnShard { to { transform: translate(var(--dx), calc(var(--dy) + 60px)) rotate(var(--r)); opacity: 0; } }

.mn-panel { margin-top: 12px; padding: 12px; border-radius: 20px; background: linear-gradient(180deg, #1c1713, #120e0c); border: 1px solid rgba(255,181,71,.16); display: flex; flex-direction: column; gap: 10px; }
.mn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mn-label { width: 46px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,225,180,.6); }
.mn-chips { display: flex; gap: 5px; flex: 1; }
.mn-chips button, .mn-step button, .mn-rand {
  border: 1px solid rgba(255,181,71,.22); background: rgba(255,181,71,.07); color: #ffe7c2; border-radius: 10px; font-weight: 800; cursor: pointer; min-height: 34px;
}
.mn-chips button { flex: 1; padding: 0 6px; }
.mn-chips button.on { background: linear-gradient(180deg, #ffd48a, var(--mn-amber)); color: #2a1600; border-color: transparent; }
.mn-step { display: flex; align-items: center; gap: 6px; }
.mn-step button { width: 34px; font-size: 18px; }
.mn-step b { min-width: 30px; text-align: center; font-size: 17px; }
.mn-step.wide { flex: 1; }
.mn-step.wide b { flex: 1; }
.mn-rand { padding: 0 12px; }
.mn-rand:disabled { opacity: .4; cursor: default; }
.mn-panel.locked .mn-row:first-child, .mn-panel.locked .mn-step { opacity: .45; pointer-events: none; }
.mn-go {
  border: 0; border-radius: 16px; padding: 15px; font-size: 17px; font-weight: 900; letter-spacing: .06em; cursor: pointer; color: #2a1600;
  background: linear-gradient(180deg, #ffe0a3, var(--mn-amber) 55%, #d9861f); box-shadow: 0 8px 22px rgba(255,181,71,.3), inset 0 1px 0 rgba(255,255,255,.5);
}
.mn-go.cash { color: #032617; background: linear-gradient(180deg, #b9ffe0, var(--mn-emerald) 55%, #11a86c); box-shadow: 0 8px 22px rgba(46,229,157,.3), inset 0 1px 0 rgba(255,255,255,.5); }
.mn-go b { font-size: 19px; }
.mn-go:disabled { filter: grayscale(.6) brightness(.65); box-shadow: none; cursor: default; }

.mn-ladder { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; padding-bottom: 2px; }
.mn-ladder::-webkit-scrollbar { display: none; }
.mn-ladder span { flex: none; min-width: 64px; text-align: center; padding: 6px 8px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,181,71,.12); font-weight: 800; font-size: 13px; color: #f3e3cc; }
.mn-ladder small { display: block; font-size: 10px; font-weight: 700; color: rgba(255,225,180,.5); }
.mn-ladder span.done { opacity: .45; }
.mn-ladder span.on { background: rgba(46,229,157,.14); border-color: rgba(46,229,157,.6); color: #b9ffe0; }

/* Home card, slide and mini logo: a 3×3 patch of cavern stone with two gems and one lava rock */
.g-mines { background: linear-gradient(135deg, #3a2a1a, #120d0a 70%); border-color: rgba(255,181,71,.35); }
.g-mines .g-art { background: radial-gradient(circle at 50% 20%, #3b3028, #16110e); }
.g-mines .g-status { color: #ffd48a; }
.g-mines .g-play { background: linear-gradient(180deg, #ffe0a3, var(--mn-amber)); color: #2a1600; }
.feed-row.g-mines .f-ic { background: rgba(255,181,71,.14); }
.mines-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 76%; aspect-ratio: 1; }
.mines-mini i { border-radius: 6px; background: linear-gradient(160deg, #5a524b, #2c2723); box-shadow: inset 0 -2px 0 rgba(0,0,0,.4); }
.mines-mini i.g { background: radial-gradient(circle at 50% 50%, #120d0b, #0a0807); position: relative; }
.mines-mini i.g::after { content: ''; position: absolute; inset: 22%; clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%); }
.mines-mini i.g.e::after { background: linear-gradient(135deg, #b9ffe0, #2ee59d 50%, #0a7a4f); filter: drop-shadow(0 0 4px #2ee59d); }
.mines-mini i.g.a::after { background: linear-gradient(135deg, #f0dcff, #b77cff 50%, #5a2a9e); }
.mines-mini i.l { background: radial-gradient(circle, #ff6a1f 0 18%, #5a1d0a 45%, #2a0d05 70%); box-shadow: 0 0 10px rgba(255,90,31,.6); }
.ps-mines { background: radial-gradient(120% 120% at 100% 0%, rgba(255,181,71,.4), transparent 60%), linear-gradient(135deg, #3a2a1a, #0f0c0a); }
.ps-mines .ps-cta { background: var(--mn-amber); color: #2a1600; }
.ps-mines .ps-art .mines-mini { width: 70%; transform: rotate(-6deg); }

/* Results: my games, each with its little board */
.mn-h { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; }
.mn-hboard { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.mn-hboard i { aspect-ratio: 1; border-radius: 3px; background: #3a342f; }
.mn-hboard i.g { background: var(--mn-emerald); }
.mn-hboard i.l { background: #5a1d0a; }
.mn-hboard i.hit { background: var(--mn-lava); box-shadow: 0 0 6px var(--mn-lava); }
.mn-hinfo { min-width: 0; }
@media (prefers-reduced-motion: reduce) {
  .mn-cave::before, .mn-tile.lava.hit, .mn-tile.crack, .mn-cave.shake, .mn-tile.gem .mn-face { animation: none; }
}

/* Mines: keep the whole game (stones + Start / Cash out) on one phone screen */
.mn-cave { padding: 12px; }
.mn-head { margin-bottom: 8px; }
.mn-mult b { font-size: 28px; }
.mn-grid { gap: 6px; width: min(100%, max(240px, calc(100dvh - 480px))); margin: 0 auto; }
.mn-msg { margin-top: 8px; font-size: 13px; }
.mn-panel { gap: 8px; padding: 10px; }
.mn-go { padding: 13px; }

/* ================================================================ Gumball Drop (Plinko): "Gumball Factory"
   Its own look: the only light, bright game. Pastel pink, mint and cream, a candy machine with white candy pegs,
   glossy gumballs and colourful jars. The app's top and bottom bars turn berry to match. */
:root { --pk-pink: #ff4f8b; --pk-berry: #7a1840; --pk-mint: #3ee6b5; --pk-cream: #fff6ea; }
body.plinko-mode {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 14px, rgba(255,255,255,0) 14px 28px),
    linear-gradient(180deg, #ffd6e8, #ffe9d6 55%, #d9fff1);
  background-attachment: fixed;
}
#tab-plinko { color: #4a1030; }
body.plinko-mode .topbar { background: rgba(58,18,48,.92); border-bottom-color: rgba(255,79,139,.35); }
body.plinko-mode .tabbar { background: rgba(58,18,48,.96); border-top-color: rgba(255,79,139,.35); }
body.plinko-mode .game-bar button { background: rgba(255,255,255,.65); border-color: rgba(122,24,64,.18); color: var(--pk-berry); }
body.plinko-mode .paused-note { color: #4a1030; }

.pk-machine { margin-top: 10px; border-radius: 28px; padding: 12px; background: linear-gradient(180deg, #ff7aa8, var(--pk-pink)); box-shadow: 0 14px 30px rgba(122,24,64,.3), inset 0 2px 0 rgba(255,255,255,.4); }
.pk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pk-logo { font-weight: 900; font-size: 20px; letter-spacing: .06em; color: #fff; text-shadow: 0 2px 0 var(--pk-berry), 0 4px 10px rgba(122,24,64,.35); line-height: .95; }
.pk-logo span { display: block; font-size: 13px; letter-spacing: .38em; color: #ffe38a; }
.pk-recent { display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; }
.pk-recent span, .pk-pill { padding: 3px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 900; color: #4a1030; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.pk-board { border-radius: 20px; background: radial-gradient(120% 80% at 50% 0%, #fff, var(--pk-cream) 60%, #ffe3ef); box-shadow: inset 0 3px 10px rgba(122,24,64,.18); overflow: hidden; }
#pkCanvas { display: block; width: 100%; height: 300px; } /* the height is set from the rows in app.js */

.pk-panel { margin-top: 12px; padding: 12px; border-radius: 22px; background: rgba(255,255,255,.78); box-shadow: 0 10px 24px rgba(122,24,64,.15); display: flex; flex-direction: column; gap: 10px; color: #4a1030; }
.pk-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pk-label { font-size: 11.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: rgba(74,16,48,.6); min-width: 38px; }
.pk-seg { display: flex; flex: 1; gap: 4px; padding: 3px; border-radius: 12px; background: #ffe3ef; }
.pk-seg button { flex: 1; border: 0; border-radius: 9px; padding: 8px 4px; font-weight: 900; font-size: 13px; background: transparent; color: var(--pk-berry); cursor: pointer; }
.pk-seg button.on { background: #fff; color: var(--pk-pink); box-shadow: 0 2px 6px rgba(122,24,64,.18); }
.pk-step { display: flex; align-items: center; gap: 6px; flex: 1; }
.pk-step button { width: 36px; height: 36px; border: 0; border-radius: 12px; font-size: 20px; font-weight: 900; background: #ffe3ef; color: var(--pk-berry); cursor: pointer; }
.pk-step b { flex: 1; text-align: center; font-size: 17px; }
.pk-panel.busy .pk-seg, .pk-panel.busy .pk-row:nth-child(2) .pk-step:first-of-type { opacity: .45; }
.pk-drop {
  border: 0; border-radius: 18px; padding: 15px; font-size: 19px; font-weight: 900; letter-spacing: .1em; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, #ff8fb8, var(--pk-pink) 55%, #d62f6c); box-shadow: 0 6px 0 var(--pk-berry), 0 12px 22px rgba(214,47,108,.35);
  transition: transform .08s, box-shadow .08s;
}
.pk-drop:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--pk-berry), 0 6px 12px rgba(214,47,108,.3); }
.pk-drop.stop { background: linear-gradient(180deg, #8ff0d2, var(--pk-mint) 55%, #13b98a); box-shadow: 0 6px 0 #0b6b50, 0 12px 22px rgba(19,185,138,.3); color: #053b2c; }
.pk-drop:disabled { filter: grayscale(.6) brightness(.8); cursor: default; }
.pk-tools { justify-content: space-between; }
.pk-tool, .pk-auto button { border: 1px solid rgba(122,24,64,.15); background: #fff; color: var(--pk-berry); border-radius: 10px; padding: 7px 10px; font-weight: 900; font-size: 12.5px; cursor: pointer; }
.pk-tool.on, .pk-auto button.on { background: var(--pk-berry); color: #fff; border-color: transparent; }
.pk-auto { display: flex; align-items: center; gap: 4px; }
.pk-auto span { font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: rgba(74,16,48,.6); margin-right: 2px; }
.pk-msg { text-align: center; font-size: 13.5px; min-height: 19px; }

/* Home card, slide, logo: a little gumball machine */
.g-plinko { background: linear-gradient(135deg, #ff7aa8, #b8255f 70%); border-color: rgba(255,214,232,.6); }
.g-plinko .g-art { background: radial-gradient(circle at 50% 30%, #fff3f8, #ffc9dd); }
.g-plinko .g-art .gb-mini { width: 80%; height: 80%; }
.g-plinko .g-status { color: #fff1a8; }
.g-plinko .g-play { background: linear-gradient(180deg, #fff, #ffe3ef); color: #b8255f; }
.feed-row.g-plinko .f-ic { background: rgba(255,79,139,.16); }
.ps-plinko { background: radial-gradient(120% 120% at 100% 0%, rgba(255,241,168,.55), transparent 60%), linear-gradient(135deg, #ff7aa8, #b8255f); }
.ps-plinko .ps-cta { background: #fff; color: #b8255f; }
.ps-plinko .ps-art .gb-mini { width: 78%; height: auto; filter: drop-shadow(0 8px 14px rgba(80,10,40,.35)); }

/* How to play: every jar for a chosen table */
#plinkoTable .pk-seg { margin: 8px 0; }
.pk-jars-info { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pk-jars-info span { padding: 5px 7px; border-radius: 8px; font-size: 12px; font-weight: 900; color: #4a1030; }

/* ================================================================ Tankwa Crossing: "Lake Tana, golden afternoon"
   Its own look: warm earth brown bars, papyrus gold and lake turquoise. The lake scene is drawn on a canvas
   (tankwaDraw in app.js); the page around it is woven-reed gold. */
:root { --tk-gold: #e9b44c; --tk-lake: #2fa39a; --tk-earth: #2b1d12; --tk-reed: #7fb24a; }
body.tankwa-mode {
  background:
    radial-gradient(600px 380px at 50% -10%, rgba(233,180,76,.28), transparent 62%),
    radial-gradient(520px 420px at 110% 95%, rgba(47,163,154,.16), transparent 60%),
    #22170e;
  background-attachment: fixed;
}
body.tankwa-mode .topbar { background: rgba(43,29,18,.92); border-bottom-color: rgba(233,180,76,.22); }
body.tankwa-mode .tabbar { background: rgba(36,24,15,.96); border-top-color: rgba(233,180,76,.22); }
body.tankwa-mode .game-bar button { border-color: rgba(233,180,76,.28); background: rgba(233,180,76,.07); }
#tab-tankwa { color: #f6ead2; }

.tk-lake {
  position: relative; margin-top: 10px; border-radius: 24px; overflow: hidden;
  border: 2px solid rgba(233,180,76,.45); box-shadow: 0 14px 34px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08);
}
#tkCanvas { display: block; width: 100%; height: clamp(270px, calc(100dvh - 415px), 480px); touch-action: manipulation; }
.tk-mult {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%); text-align: center; pointer-events: none;
  padding: 3px 14px 4px; border-radius: 14px; background: rgba(58,36,16,.55); backdrop-filter: blur(3px); white-space: nowrap;
}
.tk-mult b { display: block; font-size: 24px; font-weight: 900; color: #fff3cf; text-shadow: 0 2px 8px rgba(0,0,0,.35); line-height: 1.1; }
.tk-mult small { font-size: 11px; font-weight: 700; color: #ffe8c2; }
.tk-panel {
  margin-top: 10px; padding: 10px; border-radius: 20px; display: flex; flex-direction: column; gap: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 3px, transparent 3px 9px),
    linear-gradient(180deg, #3a2716, #2a1c10);
  border: 1px solid rgba(233,180,76,.22);
}
.tk-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.tk-levels button {
  border: 1px solid rgba(233,180,76,.25); background: rgba(233,180,76,.07); color: #f6ead2; border-radius: 12px;
  padding: 6px 3px; cursor: pointer; line-height: 1.15; min-height: 46px;
}
.tk-levels b { display: block; font-size: 12.5px; }
.tk-levels small { display: block; font-size: 9.5px; opacity: .7; margin-top: 2px; }
.tk-levels button.on { background: linear-gradient(180deg, #ffe3a0, var(--tk-gold)); color: #3a2410; border-color: transparent; }
.tk-levels button.on small { opacity: .8; }
.tk-row { display: flex; align-items: center; gap: 8px; }
.tk-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(246,234,210,.6); width: 50px; }
.tk-step { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.tk-step span { min-width: 52px; text-align: center; line-height: 1.05; }
.tk-step small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(246,234,210,.55); }
.tk-step button { width: 36px; min-height: 44px; border-radius: 10px; font-size: 18px; font-weight: 800; cursor: pointer; border: 1px solid rgba(233,180,76,.25); background: rgba(233,180,76,.08); color: #f6ead2; }
.tk-step b { font-size: 18px; }
.tk-panel.locked .tk-levels { opacity: .45; pointer-events: none; }
.tk-actions { display: flex; gap: 8px; }
.tk-go, .tk-cash {
  flex: 1; border: 0; border-radius: 16px; padding: 13px 8px; font-size: 17px; font-weight: 900; letter-spacing: .05em; cursor: pointer; line-height: 1.15;
}
.tk-go { color: #3a2410; background: linear-gradient(180deg, #ffe3a0, var(--tk-gold) 55%, #b98126); box-shadow: 0 8px 20px rgba(233,180,76,.28), inset 0 1px 0 rgba(255,255,255,.5); }
.tk-go.paddle { color: #05302c; background: linear-gradient(180deg, #b8f1e6, #4cc7b8 55%, #1f8c83); box-shadow: 0 8px 20px rgba(47,163,154,.3), inset 0 1px 0 rgba(255,255,255,.5); }
.tk-go small, .tk-cash b { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: 0; color: inherit; opacity: .8; }
.tk-cash { color: #2a1600; background: linear-gradient(180deg, #fff, #f6ead2); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.tk-cash b { font-size: 16px; opacity: 1; }
.tk-go:disabled, .tk-cash:disabled { filter: grayscale(.5) brightness(.7); box-shadow: none; cursor: default; }
.tk-msg { text-align: center; font-size: 13px; min-height: 18px; color: #f6ead2; }
.tk-msg.win { color: #b8f1e6; }
.tk-msg.lost { color: #ffb99a; }

/* Home card, slide and logo: a tankwa on the lake */
.g-tankwa { background: linear-gradient(135deg, #7a5424, #2b1d12 70%); border-color: rgba(233,180,76,.45); }
.g-tankwa .g-art { background: #2a9d98; overflow: hidden; }
.tk-mini { width: 100%; height: 100%; display: block; }
.g-tankwa .g-status { color: #ffe3a0; }
.g-tankwa .g-play { background: linear-gradient(180deg, #ffe3a0, var(--tk-gold)); color: #3a2410; }
.feed-row.g-tankwa .f-ic { background: rgba(47,163,154,.2); }
.ps-tankwa { background: radial-gradient(120% 120% at 100% 0%, rgba(255,216,154,.5), transparent 60%), linear-gradient(135deg, #1f8c83, #2b1d12); }
.ps-tankwa .ps-cta { background: var(--tk-gold); color: #3a2410; }
.ps-tankwa .ps-art .tk-mini { width: 78%; height: auto; border-radius: 16px; transform: rotate(-4deg); box-shadow: 0 8px 18px rgba(0,0,0,.35); }

/* Results: every stretch of a crossing (crossed / hippo / where it tipped) */
.tk-strip { display: flex; gap: 2px; margin: 6px 0 2px; }
.tk-strip i { flex: 1; height: 8px; border-radius: 3px; background: rgba(47,163,154,.28); }
.tk-strip i.ok { background: var(--tk-lake); }
.tk-strip i.hz { background: #6f6873; }
.tk-strip i.tip { background: #e05a47; box-shadow: 0 0 6px rgba(224,90,71,.7); }

/* How to play: level buttons and the ladder */
.tk-info-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.tk-info-levels button { text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.12)); background: transparent; color: inherit; cursor: pointer; }
.tk-info-levels b { display: block; font-size: 13px; }
.tk-info-levels small { display: block; font-size: 11px; opacity: .7; }
.tk-info-levels button.on { border-color: var(--tk-gold); background: rgba(233,180,76,.14); }
#rTkLadder span { color: #0f3d3a; }
/* ================================================================ Buna Time: "the coffee ceremony"
   Its own look: dark espresso and clay terracotta, a woven mesob-basket frame, cream reels, rising steam.
   The owner asked for an Ethiopian theme for this game: everyday coffee culture only (no flag, emblem or religious symbols). */
:root { --bn-clay: #c0643a; --bn-espresso: #1c0f0a; --bn-cream: #f6e7cf; --bn-gold: #e0a84a; --bn-cherry: #b3122a; }
body.buna-mode {
  background:
    radial-gradient(600px 400px at 50% -10%, rgba(192,100,58,.32), transparent 62%),
    radial-gradient(420px 360px at 0% 100%, rgba(179,18,42,.14), transparent 60%),
    var(--bn-espresso);
  background-attachment: fixed;
}
body.buna-mode .topbar { background: rgba(28,15,10,.92); border-bottom-color: rgba(224,168,74,.2); }
body.buna-mode .tabbar { background: rgba(28,15,10,.96); border-top-color: rgba(224,168,74,.2); }
body.buna-mode .game-bar button { border-color: rgba(224,168,74,.28); background: rgba(192,100,58,.1); }
#tab-buna { color: var(--bn-cream); }

/* Buna Time: tibeb woven border and the coffee ceremony table */
.bn-tibeb { height: 12px; margin: 8px -4px -2px; border-radius: 3px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Crect width='24' height='12' fill='%23f3e6c8'/%3E%3Cpath d='M0 6 L6 1 L12 6 L6 11 Z' fill='%23b3202a'/%3E%3Cpath d='M12 6 L18 1 L24 6 L18 11 Z' fill='%231f6b3a'/%3E%3Cpath d='M4 6 L6 4 L8 6 L6 8 Z M16 6 L18 4 L20 6 L18 8 Z' fill='%23e0a84a'/%3E%3Cpath d='M0 0 H24 M0 12 H24' stroke='%23231208' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.bn-table { position: relative; height: clamp(100px, 31vw, 150px); margin: -4px 0 4px; pointer-events: none; }
.bn-table svg { width: 100%; height: 100%; display: block; }
.bn-cup .bn-coffee, .bn-cup .bn-crema { opacity: 0; transition: opacity .6s ease; }
.bn-table[data-cups="2"] [data-cup="1"] .bn-coffee, .bn-table[data-cups="2"] [data-cup="2"] .bn-coffee,
.bn-table[data-cups="4"] [data-cup="1"] .bn-coffee, .bn-table[data-cups="4"] [data-cup="2"] .bn-coffee, .bn-table[data-cups="4"] [data-cup="3"] .bn-coffee, .bn-table[data-cups="4"] [data-cup="4"] .bn-coffee,
.bn-table[data-cups="6"] .bn-coffee { opacity: 1; }
.bn-table[data-cups="2"] [data-cup="1"] .bn-crema, .bn-table[data-cups="2"] [data-cup="2"] .bn-crema,
.bn-table[data-cups="4"] [data-cup="1"] .bn-crema, .bn-table[data-cups="4"] [data-cup="2"] .bn-crema, .bn-table[data-cups="4"] [data-cup="3"] .bn-crema, .bn-table[data-cups="4"] [data-cup="4"] .bn-crema,
.bn-table[data-cups="6"] .bn-crema { opacity: .9; }
.bn-coals { animation: bnCoals 1.6s ease-in-out infinite; }
.bn-table.spinning .bn-coals { animation-duration: .7s; }
@keyframes bnCoals { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.bn-steam2 path { animation: bnSteamUp 2.6s ease-in-out infinite; opacity: 0; }
.bn-steam2 path:nth-child(2) { animation-delay: 1.3s; }
@keyframes bnSteamUp { 0% { transform: translateY(6px); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-10px); opacity: 0; } }
.bn-pestle { transform-box: fill-box; transform-origin: 50% 100%; }
.bn-table.spinning .bn-pestle { animation: bnPound .42s ease-in-out infinite; }
@keyframes bnPound { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px) rotate(-4deg); } }
.bn-smoke path { opacity: 0; }
.bn-table.roast .bn-smoke path { animation: bnSteamUp 1.8s ease-in-out infinite; }
.bn-table.roast .bn-smoke path:nth-child(2) { animation-delay: .9s; }
.bn-table.roast .bn-beans { animation: bnBeans .5s steps(2) infinite; }
@keyframes bnBeans { 50% { transform: translateY(-1.2px); } }
@media (prefers-reduced-motion: reduce) { .bn-coals, .bn-steam2 path, .bn-table.spinning .bn-pestle, .bn-table.roast .bn-smoke path, .bn-table.roast .bn-beans { animation: none; } }
.bn-machine {
  position: relative; margin-top: 10px; padding: 10px 10px 8px; border-radius: 24px;
  background: linear-gradient(180deg, #5a2616, #3a170d 60%, #2a120a);
  border: 6px solid transparent;
  border-image: repeating-linear-gradient(135deg, #e9c88f 0 6px, #7a2e1c 6px 12px, #1c0f0a 12px 15px, #c0643a 15px 21px) 6;
  box-shadow: 0 16px 36px rgba(0,0,0,.5);
}
.bn-head { display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; }
.bn-sign {
  font: 800 15px "Noto Sans Ethiopic", "Kefa", "Abyssinica SIL", system-ui, sans-serif; color: #3a170d; background: var(--bn-cream);
  padding: 2px 9px; border-radius: 6px; border: 2px solid #7a3d1c; transform: rotate(-4deg);
}
.bn-title { font-size: 22px; font-weight: 900; letter-spacing: .12em; color: var(--bn-gold); text-shadow: 0 2px 0 #3a170d, 0 0 16px rgba(224,168,74,.35); }
.bn-steam { position: relative; width: 22px; height: 26px; }
.bn-steam i { position: absolute; bottom: 0; width: 5px; height: 16px; border-radius: 50%; border-left: 2.5px solid rgba(255,255,255,.7); animation: bnSteam 2.4s ease-in-out infinite; opacity: 0; }
.bn-steam i:nth-child(1) { left: 0; } .bn-steam i:nth-child(2) { left: 8px; animation-delay: .8s; } .bn-steam i:nth-child(3) { left: 16px; animation-delay: 1.6s; }
@keyframes bnSteam { 0% { transform: translateY(6px) scaleY(.6); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-12px) scaleY(1.1) skewX(-12deg); opacity: 0; } }

.bn-rounds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 8px 0; }
.bn-rounds span { text-align: center; padding: 3px 2px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(224,168,74,.18); opacity: .55; transition: all .3s; }
.bn-rounds b { display: block; font-size: 12.5px; color: var(--bn-cream); }
.bn-rounds small { font: 700 10.5px "Noto Sans Ethiopic", system-ui, sans-serif; color: rgba(246,231,207,.7); }
.bn-rounds span.on { opacity: 1; background: linear-gradient(180deg, #ffe0a0, var(--bn-gold)); border-color: transparent; transform: scale(1.04); box-shadow: 0 0 16px rgba(224,168,74,.5); }
.bn-rounds span.on b, .bn-rounds span.on small { color: #3a170d; }

.bn-reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 5px; border-radius: 14px; background: #2a120a; box-shadow: inset 0 3px 10px rgba(0,0,0,.6); }
.bn-reel {
  position: relative; overflow: hidden; border-radius: 9px; height: clamp(180px, calc(100dvh - 450px), 330px);
  background: linear-gradient(180deg, #e9d6b4, var(--bn-cream) 18%, var(--bn-cream) 82%, #e9d6b4);
  box-shadow: inset 0 8px 10px -6px rgba(0,0,0,.35), inset 0 -8px 10px -6px rgba(0,0,0,.35);
}
.bn-strip { will-change: transform; }
.bn-cell { height: var(--bnc, 60px); display: grid; place-items: center; padding: 5px; }
.bn-cell svg { width: 100%; height: 100%; display: block; }
.bn-cell.dim { opacity: .35; filter: saturate(.5); transition: opacity .25s; }
.bn-cell.win { animation: bnPop .6s ease; background: radial-gradient(circle, rgba(224,168,74,.45), transparent 70%); }
.bn-cell.win.s7 svg { animation: bnDance .5s ease-in-out 3; transform-origin: 50% 90%; }
.bn-cell.win.s8 { background: radial-gradient(circle, rgba(255,207,90,.7), transparent 70%); }
@keyframes bnPop { 40% { transform: scale(1.12); } }
@keyframes bnDance { 25% { transform: rotate(-12deg) translateY(-4px); } 75% { transform: rotate(12deg) translateY(-4px); } }

.bn-machine.ceremony { box-shadow: 0 0 0 2px rgba(255,207,90,.6), 0 0 36px rgba(224,168,74,.45), 0 16px 36px rgba(0,0,0,.5); }
.bn-banner {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 3; text-align: center; min-width: 70%;
  padding: 14px 18px; border-radius: 18px; background: rgba(28,15,10,.92); border: 2px solid var(--bn-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 30px rgba(224,168,74,.35); animation: bnBanner .35s cubic-bezier(.2,1.4,.4,1);
}
.bn-banner b { display: block; font-size: 26px; font-weight: 900; color: var(--bn-gold); }
.bn-banner small, .bn-banner span { display: block; font-size: 13px; color: var(--bn-cream); font-family: "Noto Sans Ethiopic", system-ui, sans-serif; }
@keyframes bnBanner { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }
.bn-winbar { margin-top: 7px; text-align: center; font-size: 13.5px; min-height: 20px; color: var(--bn-cream); }
.bn-winbar b { color: var(--bn-gold); font-size: 16px; }

.bn-panel { margin-top: 10px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 20px; background: linear-gradient(180deg, #3a170d, #26100a); border: 1px solid rgba(224,168,74,.2); }
.bn-step { display: flex; align-items: center; gap: 4px; }
.bn-step button { width: 34px; min-height: 42px; border-radius: 10px; font-size: 18px; font-weight: 800; cursor: pointer; border: 1px solid rgba(224,168,74,.25); background: rgba(224,168,74,.08); color: var(--bn-cream); }
.bn-step span { min-width: 50px; text-align: center; line-height: 1.05; }
.bn-step b { font-size: 18px; }
.bn-step small, .bn-spin small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(246,231,207,.55); }
.bn-step.locked { opacity: .45; pointer-events: none; }
.bn-spin {
  flex: 1; min-height: 58px; border: 0; border-radius: 18px; font-size: 20px; font-weight: 900; letter-spacing: .1em; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, #e0855a, var(--bn-clay) 50%, #8a3d1f); box-shadow: 0 8px 20px rgba(192,100,58,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.bn-spin.auto { background: linear-gradient(180deg, #d9485a, var(--bn-cherry) 55%, #7a0c1c); }
.bn-spin small { color: rgba(255,255,255,.8); }
.bn-spin:disabled { filter: grayscale(.5) brightness(.7); box-shadow: none; cursor: default; }
.bn-opts { display: flex; flex-direction: column; gap: 5px; }
.bn-opts button { min-height: 26px; padding: 0 9px; border-radius: 9px; font-size: 12px; font-weight: 800; cursor: pointer; border: 1px solid rgba(224,168,74,.25); background: rgba(224,168,74,.08); color: var(--bn-cream); }
.bn-opts button.on { background: var(--bn-gold); color: #3a170d; border-color: transparent; }

/* Home card, slide and logo */
.g-buna { background: linear-gradient(135deg, #8a3a20, #2a120a 70%); border-color: rgba(224,168,74,.45); }
.g-buna .g-art { background: #7a2e1c; overflow: hidden; }
.bn-mini { width: 100%; height: 100%; display: block; }
.g-buna .g-status { color: #ffd98a; }
.g-buna .g-play { background: linear-gradient(180deg, #ffe0a0, var(--bn-gold)); color: #3a170d; }
.feed-row.g-buna .f-ic { background: rgba(192,100,58,.2); }
.ps-buna { background: radial-gradient(120% 120% at 100% 0%, rgba(224,168,74,.45), transparent 60%), linear-gradient(135deg, #b0502c, #2a120a); }
.ps-buna .ps-cta { background: var(--bn-gold); color: #3a170d; }
.ps-buna .ps-art .bn-mini { width: 78%; height: auto; border-radius: 16px; transform: rotate(-4deg); box-shadow: 0 8px 18px rgba(0,0,0,.35); }

/* Results and paytable */
.bn-hgrid { display: grid; grid-template-columns: repeat(5, 26px); gap: 2px; margin: 6px 0 2px; }
.bn-hgrid i { display: grid; gap: 1px; background: var(--bn-cream); border-radius: 4px; padding: 1px; }
.bn-hgrid svg { width: 24px; height: 24px; display: block; }
.bn-pay { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bn-prow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.bn-pic { width: 40px; height: 40px; border-radius: 8px; background: var(--bn-cream); padding: 3px; }
.bn-pic svg { width: 100%; height: 100%; display: block; }
.bn-prow b { font-size: 13px; }
.bn-pays { display: flex; gap: 4px; }
.bn-pays i { font-style: normal; font-weight: 800; font-size: 12px; min-width: 42px; text-align: center; padding: 3px 4px; border-radius: 8px; background: rgba(192,100,58,.18); }
.bn-pays small { display: block; font-size: 11px; font-weight: 700; opacity: .8; }
.bn-note { font-size: 12px; opacity: .75; }
.bn-foot { font-size: 12.5px; opacity: .8; margin: 6px 0 0; }
@media (prefers-reduced-motion: reduce) { .bn-steam i, .bn-cell.win, .bn-cell.win.s7 svg, .bn-banner { animation: none; } }
.rules-link { display: block; width: 100%; margin: 0 0 12px; padding: 11px; border-radius: 12px; border: 1px dashed rgba(245,184,46,.45); background: rgba(245,184,46,.08); color: #ffe07a; font-weight: 800; cursor: pointer; }
.rules-body table { border-collapse: collapse; width: 100%; font-size: 13px; }
.rules-body th, .rules-body td { border-bottom: 1px solid rgba(255,255,255,.1); padding: 5px 6px; text-align: left; }
.rules-body .tw { overflow-x: auto; }
.rules-body .note { font-size: 12px; opacity: .75; }
/* Account: phone + PIN login */
.join-link { background: none; border: 0; color: #f5b82e; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 6px 0; text-decoration: underline; }
.join-link-row { display: flex; justify-content: space-between; gap: 12px; }
#webLogin input { width: 100%; }
.acct-box { margin-top: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); font-size: 13.5px; line-height: 1.4; display: flex; flex-direction: column; gap: 8px; }
.acct-box.warn { background: rgba(245,184,46,.1); border-color: rgba(245,184,46,.45); }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-actions button { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: inherit; border-radius: 10px; padding: 8px 12px; font-weight: 800; cursor: pointer; }
.acct-actions button.on { background: linear-gradient(180deg, #ffe07a, #f5b82e); color: #2a1a00; border: 0; }
/* Language switch (public/i18n.js) */
.lang-btn { font-size: 13px; font-weight: 800; letter-spacing: .02em; width: auto; min-width: 36px; padding: 0 8px; }
/* HOT / NEW labels on Home game cards */
.gcard { position: relative; }
.g-label { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .06em; color: #fff; background: #7c4dff; box-shadow: 0 3px 10px rgba(0,0,0,.35); pointer-events: none; }
.g-label[data-kind="hot"] { background: linear-gradient(135deg, #ff5a36, #e53935); }
.g-label[data-kind="new"] { background: linear-gradient(135deg, #22c55e, #0ea5e9); }
/* Jackpot bar (Home) */
.jp-bar { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 12px 16px; border: 0; border-radius: 18px; cursor: pointer; color: #2a1a00; text-align: left;
  background: linear-gradient(110deg, #ffe07a 0%, #f5b82e 35%, #ffd35c 50%, #f5b82e 65%, #e8a317 100%); background-size: 220% 100%; animation: jpShine 5s linear infinite;
  box-shadow: 0 10px 28px rgba(245,184,46,.35), inset 0 1px 0 rgba(255,255,255,.6); }
.jp-coin { font-size: 30px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); animation: jpBob 2.4s ease-in-out infinite; }
.jp-main small, .jp-side small { display: block; font-size: 11px; font-weight: 900; letter-spacing: .14em; opacity: .75; }
.jp-main b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.jp-side { text-align: right; }
.jp-side small { letter-spacing: .02em; text-transform: none; font-weight: 700; }
.jp-side b { font-size: 15px; font-variant-numeric: tabular-nums; }
@keyframes jpShine { from { background-position: 100% 0; } to { background-position: -120% 0; } }
@keyframes jpBob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-3px) rotate(6deg); } }
.jp-sheet p { margin: 8px 0; line-height: 1.45; }
.jp-big { font-size: 34px; font-weight: 900; color: #ffd76a; text-align: center; margin: 4px 0 8px; }
.jp-wins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.jp-wins li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); }
.jp-wins span { font-weight: 900; color: #ffd76a; }
.jp-wins small { grid-column: 1 / -1; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .jp-bar, .jp-coin { animation: none; } }
/* Daily missions and first deposit bonus (Promotions) */
.pc-missions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 12px; background: linear-gradient(160deg, rgba(94,200,255,.14), rgba(94,200,255,.02)), var(--card); border-color: rgba(94,200,255,.35); }
.pc-missions .pc-top { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.pc-missions .pc-art { background: rgba(94,200,255,.16); }
.ms-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ms-list li { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); display: flex; flex-direction: column; gap: 6px; }
.ms-list li.done { outline: 1px solid rgba(34,197,94,.5); }
.ms-list li.claimed { opacity: .6; }
.ms-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.ms-reward { color: #ffd76a; font-weight: 800; white-space: nowrap; }
.ms-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.ms-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #5ec8ff); border-radius: 999px; }
.ms-foot { display: flex; justify-content: space-between; align-items: center; min-height: 20px; }
.ms-foot .pc-btn, .ms-all .pc-btn { padding: 6px 14px; }
.ms-all { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(255,215,106,.08); font-size: 14px; }
.ms-all.claimed { opacity: .6; }
.pc-firstdep { margin-top: 12px; background: linear-gradient(160deg, rgba(34,197,94,.16), rgba(34,197,94,.03)), var(--card); border-color: rgba(34,197,94,.4); }
.pay-bonus { margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(34,197,94,.12); font-size: 13px; }
/* Weekly leaderboard (Promotions) */
.pc-board { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 12px; background: linear-gradient(160deg, rgba(245,184,46,.16), rgba(245,184,46,.03)), var(--card); border-color: rgba(245,184,46,.35); }
.pc-board .pc-top { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.pc-board .pc-art { background: rgba(245,184,46,.18); }
.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lb-list li { display: grid; grid-template-columns: 38px minmax(0,1fr) auto 64px; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 14px; }
.lb-list li.me { background: rgba(245,184,46,.2); outline: 1px solid rgba(245,184,46,.5); }
.lb-pl { font-weight: 900; text-align: center; }
.lb-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-st { font-variant-numeric: tabular-nums; opacity: .8; font-size: 13px; }
.lb-pz { text-align: right; color: #ffd76a; font-weight: 800; font-size: 13px; }
.lb-last summary { cursor: pointer; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
/* Deposits and withdrawals (Wallet): hidden until payments are switched on */
.wc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.wc-actions button { border: 0; border-radius: 12px; padding: 12px; font-weight: 900; font-size: 15px; cursor: pointer; }
.wc-dep { background: linear-gradient(180deg, #ffe07a, #f5b82e); color: #2a1a00; }
.wc-wd { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18) !important; }
.wc-test { margin-top: 8px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #ffb4a0; }
.pay-sheet { max-width: 420px; }
.pay-form { display: flex; flex-direction: column; gap: 10px; }
.pay-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted, #9aa4bd); }
.pay-form label small { font-weight: 500; }
.pay-form input, .pay-form select { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: inherit; border-radius: 12px; padding: 12px; font: inherit; font-size: 16px; }
.pay-form select option { color: #111; }
.pay-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; }
.pay-chips button { border: 1px solid rgba(245,184,46,.35); background: rgba(245,184,46,.1); color: #ffe07a; border-radius: 10px; padding: 10px 4px; font-weight: 800; cursor: pointer; }
.pay-go { border: 0; border-radius: 14px; padding: 14px; font-size: 16px; font-weight: 900; cursor: pointer; background: linear-gradient(180deg, #ffe07a, #f5b82e); color: #2a1a00; }
.pay-go:disabled { opacity: .6; }
.pay-note { margin: 0; font-size: 12.5px; color: var(--muted, #9aa4bd); }
.pay-msg { min-height: 18px; color: #ff9a9a; font-size: 13px; }
.pay-bal { font-size: 14px; }
.pay-wait { text-align: center; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pay-wait b { font-size: 17px; }
.pay-wait p { margin: 0; color: var(--muted, #9aa4bd); }
.pay-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: #f5b82e; animation: paySpin 1s linear infinite; }
@keyframes paySpin { to { transform: rotate(360deg); } }
.pay-form label.hidden { display: none; }
.pay-steps { display: flex; flex-direction: column; gap: 10px; }
.pay-step { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.pay-step > span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: #f5b82e; color: #2a1a00; }
.pay-step small { display: block; color: var(--muted, #9aa4bd); }
.pay-acct { margin: 4px 0 2px; font-size: 20px; letter-spacing: .04em; display: flex; align-items: baseline; gap: 10px; }
.pay-note .link, .pay-acct .link { background: none; border: 0; color: #f5b82e; font: inherit; font-size: 13px; font-weight: 700; padding: 0; cursor: pointer; text-decoration: underline; }
.pay-form textarea { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: inherit; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px; resize: vertical; }
.pay-shot { position: relative; }
.pay-shot input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pay-shot-btn { border: 1px dashed rgba(245,184,46,.5); border-radius: 12px; padding: 12px; text-align: center; color: #ffe07a; font-weight: 800; cursor: pointer; }
.pay-own { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.pay-own button { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: inherit; border-radius: 999px; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.pay-verify { border: 1px dashed rgba(94,200,255,.6); background: rgba(94,200,255,.08); color: #9fdcff; border-radius: 12px; padding: 11px; font-weight: 800; cursor: pointer; }
.led-amt b.void { color: var(--muted, #9aa4bd); text-decoration: line-through; font-weight: 600; }

/* Real money / bonus money (Wallet, when payments are on) */
.wc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -6px 0 12px; }
.wc-split div { background: rgba(0,0,0,.2); border-radius: 12px; padding: 8px 10px; }
.wc-split small { display: block; font-size: 11px; opacity: .7; }
.wc-split b { font-size: 17px; }
.wc-split p { grid-column: 1 / -1; margin: 0; font-size: 12.5px; opacity: .85; }
/* Play safe, terms, legal pages */
.join-accept { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 13px; line-height: 1.35; color: var(--muted, #9aa4bd); cursor: pointer; }
.join-accept input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: #f5b82e; }
.join-accept a, .legal-links a, .pay-note a { color: #f5b82e; }
.legal-links { text-align: center; font-size: 13px; color: var(--muted, #9aa4bd); margin: 18px 0 8px; }
.wc-safe { margin-top: 10px; width: 100%; border: 1px dashed rgba(255,255,255,.22); background: transparent; color: inherit; border-radius: 12px; padding: 9px; font-weight: 700; font-size: 13px; cursor: pointer; opacity: .9; }
.terms-card { max-width: 380px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.terms-card h2 { margin: 0; }
.terms-card p { margin: 0; color: var(--muted, #9aa4bd); }
.rg-kind { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.rg-kind > small { color: var(--muted, #9aa4bd); font-size: 12px; }
.rg-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rg-row label { font-size: 11.5px; }
.rg-row input, .rg-row select { padding: 9px; font-size: 15px; min-width: 0; }
.rg-row small { font-size: 10.5px; font-weight: 500; }
.rg-ex { background: rgba(245,184,46,.12); border: 1px solid rgba(245,184,46,.35); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.rg-ex p { margin: 4px 0 0; font-size: 13px; }
.rg-banner { position: sticky; top: 0; z-index: 6; background: #3b2a0c; color: #ffe09a; font-size: 13px; font-weight: 700; text-align: center; padding: 8px 12px; border-radius: 12px; margin: 8px 0; }
.legal-body { font-size: 14px; line-height: 1.55; }
.legal-body h2 { font-size: 15px; margin: 16px 0 4px; }
.legal-body p { margin: 0 0 10px; }
.legal-body ul { margin: 0 0 10px; padding-left: 20px; }
.legal-body h2 { text-transform: none; letter-spacing: 0; color: inherit; font-weight: 800; }

/* Deposit: choose a payment provider when there are several */
.pay-provs { display: flex; flex-direction: column; gap: 6px; }
.pay-prov { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); cursor: pointer; }
.pay-prov input { width: 18px; height: 18px; accent-color: #f5b82e; }
.pay-prov span { display: flex; flex-direction: column; color: var(--text, #fff); }
.pay-prov small { font-weight: 500; color: var(--muted, #9aa4bd); }
.pay-prov:has(input:checked) { border-color: #f5b82e; background: rgba(245,184,46,.08); }