:root {
  --bg: #0a0e1a;
  --bg2: #0f1526;
  --card: #141b2e;
  --card2: #1a2340;
  --line: #243052;
  --text: #eef1f8;
  --muted: #8e98b3;
  --pick: #4f7cff;
  --pick2: #7b5cff;
  --drawn: #34D399;
  --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(52,211,153,.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, #34D399 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(52,211,153,.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(52,211,153,.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(52,211,153,.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, #A7F3D0, var(--drawn) 45%, #2CB382);
  box-shadow: 0 6px 18px rgba(52,211,153,.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(52,211,153,.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, #34D399, #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, #A7F3D0, #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(52,211,153,.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(52,211,153,.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(52,211,153,.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(52,211,153,.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: #A7F3D0; }
.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-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-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(52,211,153,.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: #A7F3D0; }
.g-keno .g-play { background: linear-gradient(180deg, #A7F3D0, #34D399 45%, #2CB382); 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-bingo .f-ic { background: rgba(255,61,139,.14); }
.feed-row.g-keno .f-ic { background: rgba(52,211,153,.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-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: #A7F3D0; 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(52,211,153,.4), transparent 60%), linear-gradient(135deg, #1d2a55, #0d1428); }
.ps-keno .ps-cta { background: #34D399; 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(52,211,153,.55), transparent 60%), linear-gradient(135deg, #5a3d05, #1a1203); }
.ps-t-gold .ps-cta { background: #34D399; 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, #A7F3D0, #34D399 45%, #2CB382); box-shadow: 0 6px 16px rgba(52,211,153,.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: #34D399; --vip2: rgba(52,211,153,.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(52,211,153,.3), transparent 60%), var(--card); border-color: rgba(52,211,153,.55); box-shadow: 0 0 0 1px rgba(52,211,153,.15), 0 10px 26px rgba(0,0,0,.3); }
.pc-gift .pc-art { background: rgba(52,211,153,.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-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; }

/* 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, #34D399 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: #A7F3D0; 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(52,211,153,.14); box-shadow: 0 0 14px rgba(52,211,153,.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(52,211,153,.2), rgba(52,211,153,.05)); }
.sd.big b { color: #A7F3D0; }
.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(52,211,153,.25), transparent 55%), linear-gradient(145deg, #1c2a55, #121a33);
  border: 1px solid rgba(52,211,153,.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: #A7F3D0; 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: "Sunny garden" (Bercha, 2026-10-07, the owner's choice). Bingo in daylight: a sky with sun and clouds,
   a hedge with flowers along the bottom, a wooden garden sign for the prize pool, a clear glass globe that tumbles
   the balls (the newest pops out beside it), cream paper cards stamped with flower daubers in the column colour,
   a wooden board of called numbers and petals falling on a BINGO. Light surfaces, dark green ink.
   Must not look like Keno (navy/gold), Jackloot's neon bingo hall or Hi-Lo. */

/* Ball colours by column: B coral, I teal, N sunflower, G leaf green, O sky */
.bb0 { --bc: #FF7A59; } .bb1 { --bc: #14B8A6; } .bb3 { --bc: #22C55E; } .bb4 { --bc: #38BDF8; }
.bb2 { --bc: #FBBF24; color: #5A3A00; text-shadow: none; }

body.bingo-mode {
  background:
    radial-gradient(circle at 86% 4%, #FFF6CF 0 30px, rgba(255,238,170,.6) 33px, rgba(255,238,170,0) 140px),
    linear-gradient(180deg, #A9DCF5 0%, #CBEAF7 28%, #EAF5EC 60%, #FDF3DD 100%);
  background-attachment: fixed;
}
#tab-bingo {
  --ink: #1F3B2D; --ink2: #3F5E4B; --cream: #FFFBF0; --wood: #B07A45; --wood-dark: #7A4E2A;
  --flower: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='6.4' r='5.3'/><circle cx='17.3' cy='10.3' r='5.3'/><circle cx='15.3' cy='16.6' r='5.3'/><circle cx='8.7' cy='16.6' r='5.3'/><circle cx='6.7' cy='10.3' r='5.3'/></svg>");
  position: relative; gap: 14px; color: var(--ink); animation-name: bgFade;
}
#tab-bingo > :not(.bg-garden):not(.bg-petals) { position: relative; z-index: 1; }
#tab-bingo h2 { color: #2F5A3F; }
#tab-bingo small { color: var(--ink2); }
#tab-bingo .game-bar button { background: rgba(255,255,255,.78); border-color: rgba(47,90,63,.22); color: var(--ink); box-shadow: 0 2px 6px rgba(60,100,70,.12); }
#tab-bingo .btn { background: #fff; border-color: #D9CBA8; color: var(--ink); border-radius: 14px; }
#tab-bingo .btn.primary {
  color: #fff; border: 0; border-radius: 999px; text-shadow: 0 1px 1px rgba(150,50,20,.35);
  background: linear-gradient(180deg, #FF9A7E, #FF7A59 55%, #EE6440);
  box-shadow: 0 4px 0 #D4532F, 0 10px 18px rgba(255,122,89,.35), inset 0 1px 0 rgba(255,255,255,.45);
}
#tab-bingo .btn.primary:disabled { filter: grayscale(.6) brightness(.95); opacity: .65; box-shadow: none; }
#tab-bingo .btn.danger-ghost { background: #FFF0EB; border-color: #FFC6B5; color: #C2410C; }
#tab-bingo .msg.ok { color: #0F766E; font-weight: 700; } #tab-bingo .msg.err { color: #C2410C; font-weight: 700; }
#tab-bingo .paused-note { background: #FFF1EC; border-color: #FDBA9F; color: #9A3412; }
#tab-bingo .empty { color: var(--ink2); background: rgba(255,255,255,.7); border-color: rgba(47,90,63,.25); }

/* The garden behind everything: drifting clouds, and a hedge with flowers peeking above the menu */
.bg-garden { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-garden::after {
  content: ""; position: absolute; left: 0; right: 0; height: 130px; bottom: calc(var(--nav-h) + var(--safe-b) - 40px);
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='130' viewBox='0 0 400 130'><defs><g id='f'><circle cx='0' cy='-5' r='4'/><circle cx='4.8' cy='-1.5' r='4'/><circle cx='3' cy='4' r='4'/><circle cx='-3' cy='4' r='4'/><circle cx='-4.8' cy='-1.5' r='4'/></g></defs><path d='M0 130V60Q22 30 46 50Q66 22 94 46Q116 18 142 44Q166 22 192 48Q214 26 240 46Q264 20 290 48Q312 28 336 46Q360 22 382 44Q394 38 400 60V130Z' fill='%233E8A45'/><g fill='%232F6F38' opacity='.45'><circle cx='30' cy='72' r='7'/><circle cx='118' cy='62' r='6'/><circle cx='206' cy='74' r='7'/><circle cx='292' cy='64' r='6'/><circle cx='368' cy='76' r='7'/></g><g fill='%2357A94A' opacity='.6'><circle cx='76' cy='60' r='5'/><circle cx='168' cy='58' r='5'/><circle cx='262' cy='60' r='5'/><circle cx='340' cy='58' r='4'/></g><g stroke='%232F7D3A' stroke-width='2'><path d='M60 100V74'/><path d='M150 100V70'/><path d='M250 100V76'/><path d='M330 100V68'/><path d='M104 100V84'/><path d='M200 100V86'/><path d='M380 100V86'/></g><use href='%23f' x='60' y='72' fill='%23FF7A59'/><use href='%23f' x='150' y='68' fill='%23FBBF24'/><use href='%23f' x='250' y='74' fill='%2338BDF8'/><use href='%23f' x='330' y='66' fill='%23F9A8D4'/><use href='%23f' x='104' y='84' fill='%23ffffff'/><use href='%23f' x='200' y='86' fill='%23FF9A7E'/><use href='%23f' x='380' y='86' fill='%23ffffff'/><g fill='%23FFF1B8'><circle cx='60' cy='72' r='2.4'/><circle cx='250' cy='74' r='2.4'/><circle cx='330' cy='66' r='2.4'/><circle cx='104' cy='84' r='2.4'/><circle cx='200' cy='86' r='2.4'/><circle cx='380' cy='86' r='2.4'/></g><circle cx='150' cy='68' r='2.6' fill='%238B5A2B'/><path d='M0 130V92Q25 80 50 90T100 90T150 90T200 90T250 90T300 90T350 90T400 92V130Z' fill='%236CC05A'/><g fill='%2357A94A'><path d='M18 98l3-12 3 12z'/><path d='M84 96l3-10 3 10z'/><path d='M172 98l3-12 3 12z'/><path d='M228 96l3-10 3 10z'/><path d='M312 98l3-12 3 12z'/><path d='M362 96l3-10 3 10z'/></g></svg>") repeat-x left bottom / 400px 130px;
}
.bg-cloud {
  position: absolute; left: 0; width: 110px; height: 34px; border-radius: 40px; background: #fff; opacity: .8;
  box-shadow: 28px -14px 0 4px #fff, 62px -4px 0 0 #fff; animation: bgDrift 80s linear infinite;
}
.bg-cloud.c1 { top: 78px; animation-delay: -12s; }
.bg-cloud.c2 { top: 180px; opacity: .65; animation-duration: 110s; animation-delay: -60s; }
.bg-cloud.c3 { top: 300px; opacity: .55; animation-duration: 95s; animation-delay: -35s; }

/* Wooden garden sign: the prize pool */
.bg-sign {
  margin: 4px 2px 0; padding: 16px 14px 14px; text-align: center; border-radius: 18px; color: #FFF6E0;
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 38px, rgba(80,45,15,.38) 38px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 3px, rgba(0,0,0,.035) 3px 8px),
    linear-gradient(180deg, #CC9761, var(--wood) 55%, #9C6738);
  border: 3px solid var(--wood-dark);
  box-shadow: 0 6px 0 -1px #6B4423, 0 16px 26px rgba(70,50,20,.25), inset 0 2px 0 rgba(255,255,255,.28);
}
.bg-nail { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #EDE3D3, #8C7B66); box-shadow: 0 1px 1px rgba(0,0,0,.4); }
.bg-nail.n1 { left: 10px; top: 10px; } .bg-nail.n2 { right: 10px; top: 10px; } .bg-nail.n3 { left: 10px; bottom: 10px; } .bg-nail.n4 { right: 10px; bottom: 10px; }
.bg-sign-title { font-weight: 900; font-size: 15px; letter-spacing: .26em; margin-left: .26em; text-shadow: 0 2px 0 rgba(80,45,15,.55); }
.bg-sign-title span { font-size: 12px; letter-spacing: .04em; opacity: .8; }
.bg-pot {
  display: inline-flex; flex-direction: column; align-items: center; margin: 8px auto 10px; padding: 6px 24px 4px; min-width: 60%;
  background: var(--cream); color: var(--ink); border-radius: 14px; border: 2px solid var(--wood-dark);
  box-shadow: 0 3px 0 rgba(80,45,15,.45), inset 0 -3px 0 rgba(120,90,40,.08);
}
#tab-bingo .bg-pot small { font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: #E2603C; }
.bg-pot b { font-size: 36px; font-weight: 900; line-height: 1.1; color: #1F6B45; font-variant-numeric: tabular-nums; }
.bg-pot b.bump { animation: bump .6s ease; }
.bg-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; max-width: 100%;
  background: rgba(255,250,236,.96); box-shadow: 0 2px 0 rgba(80,45,15,.35);
}
.bg-pill b {
  flex: none; min-width: 54px; padding: 5px 10px; border-radius: 999px; background: #14B8A6; color: #fff;
  font-weight: 900; font-variant-numeric: tabular-nums;
}
.bg-pill.closing b { background: #FF7A59; animation: blink 1s infinite; }
.bg-pill.live b { background: #FF7A59; }
.bg-pill.waiting b { background: #FBBF24; color: #5A3A00; }
#tab-bingo .bg-pill small { color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-vine { height: 8px; border-radius: 4px; margin: 14px 8px 0; background: rgba(70,40,15,.38); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.bg-vine i { position: relative; display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #86EFAC, #22C55E); transition: width .25s linear; }
.bg-vine i::after {
  content: ""; position: absolute; right: -7px; top: -6px; width: 13px; height: 13px; background: #4ADE80;
  border-radius: 0 80% 0 80%; transform: rotate(-30deg); box-shadow: inset -2px 2px 0 rgba(0,0,0,.12);
}
.bg-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; line-height: 1.2; }
.bg-stats b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgba(80,45,15,.5); }
#tab-bingo .bg-stats small { font-size: 11px; color: rgba(255,246,224,.85); }

/* Panels on the lawn */
.bg-caller, .bg-panel, .bg-board-wrap {
  border-radius: 22px; padding: 16px; color: var(--ink);
  background: rgba(255,253,245,.93); border: 1px solid rgba(90,140,90,.22); box-shadow: 0 10px 26px rgba(60,90,50,.15);
}
/* Ball caller: clear glass globe + the newest ball */
.bg-caller-main { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.bg-globe { position: relative; width: 132px; height: 150px; flex: none; }
.bg-glass {
  position: absolute; left: 4px; top: 0; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; z-index: 1;
  background: radial-gradient(circle at 50% 45%, rgba(230,248,255,.25), rgba(180,225,245,.45) 70%, rgba(120,190,225,.65));
  border: 3px solid rgba(255,255,255,.95);
  box-shadow: inset 0 -10px 18px rgba(70,140,185,.35), inset 0 6px 14px rgba(255,255,255,.65), 0 8px 16px rgba(60,110,140,.22);
}
.bg-glass::after {
  content: ""; position: absolute; left: 14%; top: 9%; width: 34%; height: 22%; border-radius: 50%; z-index: 2;
  border-top: 4px solid rgba(255,255,255,.9); transform: rotate(-32deg);
}
.gb {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), rgba(255,255,255,0) 38%), var(--bc);
  box-shadow: inset 0 -3px 5px rgba(0,0,0,.18);
}
/* resting pile (also where they stop when the game is over) */
.gb:nth-child(1) { transform: translate(22px, 82px); } .gb:nth-child(2) { transform: translate(47px, 85px); }
.gb:nth-child(3) { transform: translate(70px, 80px); } .gb:nth-child(4) { transform: translate(18px, 60px); }
.gb:nth-child(5) { transform: translate(45px, 60px); } .gb:nth-child(6) { transform: translate(72px, 60px); }
.gb:nth-child(7) { transform: translate(40px, 38px); }
.bg-globe:not(.still) .gb { animation: bgTumbleA 2.6s ease-in-out infinite; }
.bg-globe:not(.still) .gb:nth-child(2n) { animation-name: bgTumbleB; animation-duration: 2.1s; }
.bg-globe:not(.still) .gb:nth-child(3n) { animation-name: bgTumbleC; animation-duration: 3.1s; }
.bg-globe:not(.still) .gb:nth-child(2) { animation-delay: -.6s; } .bg-globe:not(.still) .gb:nth-child(3) { animation-delay: -1.3s; }
.bg-globe:not(.still) .gb:nth-child(4) { animation-delay: -.9s; } .bg-globe:not(.still) .gb:nth-child(5) { animation-delay: -1.8s; }
.bg-globe:not(.still) .gb:nth-child(6) { animation-delay: -.3s; } .bg-globe:not(.still) .gb:nth-child(7) { animation-delay: -2.2s; }
.bg-chute {
  position: absolute; right: -8px; top: 78px; width: 34px; height: 16px; border-radius: 0 9px 9px 0; z-index: 0;
  background: linear-gradient(180deg, rgba(235,250,255,.9), rgba(170,220,240,.8)); border: 2px solid #fff; transform: rotate(16deg);
}
.bg-stand {
  position: absolute; left: 34px; bottom: 0; width: 64px; height: 32px; border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #C9935C, #8E5A30); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 4px 8px rgba(70,50,20,.25);
}
.bg-stand::before { content: ""; position: absolute; left: 22px; top: -9px; width: 20px; height: 12px; border-radius: 4px; background: #A87240; }
#tab-bingo .cball {
  flex: none; width: 96px; height: 96px; margin: 0 0 4px; 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) 30%),
    radial-gradient(circle at 50% 118%, rgba(0,0,0,.28), rgba(0,0,0,0) 60%),
    var(--bc);
  box-shadow: 0 14px 18px -8px rgba(40,80,40,.45), inset 0 -8px 14px rgba(0,0,0,.14);
}
#tab-bingo .cball span {
  width: 60%; height: 60%; border-radius: 50%; background: #fff; color: var(--ink); display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-weight: 900; font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.12);
}
#tab-bingo .cball span small { font-size: 12px; font-weight: 900; color: #4B6B57; }
#tab-bingo .cball.idle { --bc: #CFE6D4; }
#tab-bingo .cball.idle span { background: rgba(255,255,255,.75); color: #7A9A86; box-shadow: none; }
#tab-bingo .cball.roll { animation: bgPop .8s cubic-bezier(.3,1.35,.5,1); }
#tab-bingo .cball.is-hit::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 3px solid #FF7A59; animation: ringOut .9s ease-out forwards;
}
.bg-call { text-align: center; margin-top: 8px; }
.bg-call-title { font-size: 30px; font-weight: 900; letter-spacing: .04em; line-height: 1.05; color: var(--ink); }
.bg-call-sub { color: var(--ink2); font-size: 13px; margin-top: 6px; }
.bg-call-sub b { color: #D9532F; }
.bg-recent {
  margin-top: 12px; height: 46px; padding: 5px 10px; border-radius: 23px; display: flex; align-items: center; gap: 6px; overflow: hidden;
  background: linear-gradient(180deg, #EEF8E6, #D7EEC9); border: 1px solid rgba(80,140,70,.25); box-shadow: inset 0 2px 6px rgba(60,100,50,.15);
}
.bg-recent .ball { width: 34px; height: 34px; font-size: 12.5px; box-shadow: 0 2px 4px rgba(40,80,40,.3); }
.bg-recent .ball:first-child { animation: bgRollIn .5s ease; }
.bg-recent:empty::after { content: "🌼  🌼  🌼"; margin: auto; opacity: .5; font-size: 13px; }
.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: 14px; font-size: 14px;
  background: #FFF8E3; border: 1px solid #F3D88E; color: var(--ink);
}
.bw-row .win { margin-left: auto; color: #15803D; font-weight: 900; }
.bw-row.me { border-color: #22C55E; background: #E9F9EE; }

/* Cream paper cards; a called number gets a flower dauber in its column colour */
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.bcards:empty { display: none; }
.bcard {
  background: #FFFBF0; color: #1F3B2D; border-radius: 16px; padding: 9px 9px 10px; position: relative; border: 1px solid #EFE2C4;
  box-shadow: 0 10px 22px rgba(60,90,50,.18), inset 0 2px 0 rgba(255,255,255,.9); transition: box-shadow .3s, filter .3s, opacity .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: #EAF5E2; color: #2F5A3F; white-space: nowrap; }
.bc-tag.near { background: #FF7A59; 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 #E3D2A8; border-radius: 10px; overflow: hidden; background: #FFFDF7; }
.bc-grid .l { text-align: center; font-weight: 900; font-size: 14px; padding: 4px 0; color: #fff; background: var(--bc); text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.bc-grid .l.bb2 { color: #5A3A00; text-shadow: none; }
.bc-grid .c {
  aspect-ratio: 1; display: grid; place-items: center; position: relative; isolation: isolate; color: #1F3B2D;
  border-right: 1px solid #EFE4CA; border-bottom: 1px solid #EFE4CA;
  font-weight: 800; font-size: clamp(12px, 3.4vw, 15px); font-variant-numeric: tabular-nums;
}
.bc-grid .c:nth-child(5n+1) { --dc: #FF7A59; } .bc-grid .c:nth-child(5n+2) { --dc: #14B8A6; } .bc-grid .c:nth-child(5n+3) { --dc: #FBBF24; }
.bc-grid .c:nth-child(5n+4) { --dc: #22C55E; } .bc-grid .c:nth-child(5n) { --dc: #38BDF8; border-right: 0; }
.bc-grid .c:nth-child(n+26) { border-bottom: 0; }
.bc-grid .c.on::after, .bc-grid .c.win:not(.free)::after {
  content: ""; position: absolute; inset: 5%; z-index: -1; opacity: .9;
  background: radial-gradient(circle, rgba(255,255,255,.6) 0 21%, rgba(255,255,255,0) 23%), var(--dc);
  -webkit-mask: var(--flower) center / contain no-repeat; mask: var(--flower) center / contain no-repeat;
}
.bc-grid .c.on { color: #10261A; }
.bc-grid .c.win { background: radial-gradient(circle, #FFF7D1, #FFEBA8); box-shadow: inset 0 0 0 1px rgba(234,179,8,.55); }
.bcard.won .bc-grid .c.win { animation: bgGlow 1.8s ease-in-out infinite alternate; }
.bc-grid .c.free { background: #EAF7E4; }
.bg-free {
  display: block; width: 66%; aspect-ratio: 1; background: radial-gradient(circle, #FBBF24 0 22%, #FF9A7E 25%);
  -webkit-mask: var(--flower) center / contain no-repeat; mask: var(--flower) center / contain no-repeat;
}
.bc-grid .c.just::after { animation: bgStamp .5s cubic-bezier(.2,1.6,.4,1); }
.bcard.near { animation: bgSway 1.6s ease-in-out infinite; box-shadow: 0 0 0 3px #FF7A59, 0 10px 26px rgba(255,122,89,.35); }
.bcard.won { box-shadow: 0 0 0 3px #22C55E, 0 0 28px rgba(250,204,21,.6), 0 10px 26px rgba(34,197,94,.3); }
.bcard.lost { filter: grayscale(.4); opacity: .78; }
.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); }

/* Card picker: round seed chips 1–100 */
.b-pick-info { font-size: 13px; color: #3F5E4B; margin: -4px 0 12px; }
.b-pick-info b { color: #1F3B2D; }
.bg-random {
  flex: none; border: 0; border-radius: 999px; padding: 7px 12px; background: #14B8A6; color: #fff; font-weight: 800; font-size: 13px;
  cursor: pointer; box-shadow: 0 3px 0 #0F8C7E;
}
.bg-random:active { transform: translateY(2px); box-shadow: 0 1px 0 #0F8C7E; }
.bgrid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.bgrid button {
  aspect-ratio: 1; border-radius: 50%; border: 1px solid #DCCDA6; background: #FFFDF5; color: #2F5A3F; box-shadow: 0 2px 0 #E8DCBE;
  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(31,59,45,.3); border-style: dashed; text-decoration: line-through; box-shadow: none; }
.bgrid button.mine {
  background: radial-gradient(circle at 35% 30%, #FFB9A6, #FF7A59 60%, #E8603F); color: #fff; border-color: transparent;
  box-shadow: 0 3px 8px rgba(255,122,89,.45);
}
.bgrid button.sel { outline: 3px solid #14B8A6; outline-offset: 1px; background: #CCFBF1; color: #0F3D36; }
.bgrid button.mine.sel { background: radial-gradient(circle at 35% 30%, #FFB9A6, #FF7A59 60%, #E8603F); color: #fff; }
.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: #5B7A66; font-size: 13px; }
.bcard .b-hint { color: #6B8A76; }

/* Wooden board of called numbers */
.bg-board-wrap {
  background: linear-gradient(180deg, #FFF7E4, #FCEFD2); border: 6px solid #B98450;
  box-shadow: inset 0 0 0 2px #E8D3A8, 0 4px 0 #8E5A30, 0 12px 24px rgba(70,50,20,.2);
}
.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: 6px; color: #fff; background: var(--bc); }
.bboard .l.bb2 { color: #5A3A00; }
.bboard .n {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: clamp(8px, 2.3vw, 11px); font-weight: 700;
  color: #9C8660; background: #F1E4C3; font-variant-numeric: tabular-nums; text-shadow: none;
}
.bboard .n.on {
  color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.3); box-shadow: 0 1px 2px rgba(60,40,10,.3);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.75), rgba(255,255,255,0) 42%), var(--bc);
}
.bboard .n.on.bb2 { color: #5A3A00; text-shadow: none; }
.bboard .n.last { animation: slotIn .5s cubic-bezier(.2,1.4,.4,1); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1F3B2D; }

/* Petals and leaves on a BINGO */
.bg-petals { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.bg-petals i {
  position: absolute; top: -24px; width: 14px; height: 10px; background: var(--pc); border-radius: 80% 0 80% 0; opacity: .95;
  box-shadow: inset -2px -1px 0 rgba(0,0,0,.08); animation: bgPetal var(--d, 4s) ease-in forwards;
}
.bg-petals i.leaf { width: 11px; height: 16px; border-radius: 0 90% 0 90%; }

@keyframes bgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bgDrift { from { transform: translateX(-180px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes bgTumbleA { 0%, 100% { transform: translate(14px, 76px) rotate(0); } 25% { transform: translate(64px, 18px) rotate(160deg); } 50% { transform: translate(80px, 70px) rotate(300deg); } 75% { transform: translate(34px, 36px) rotate(420deg); } }
@keyframes bgTumbleB { 0%, 100% { transform: translate(78px, 64px) rotate(0); } 30% { transform: translate(26px, 24px) rotate(-180deg); } 60% { transform: translate(44px, 84px) rotate(-320deg); } 80% { transform: translate(84px, 30px) rotate(-400deg); } }
@keyframes bgTumbleC { 0%, 100% { transform: translate(46px, 86px) rotate(0); } 20% { transform: translate(16px, 46px) rotate(120deg); } 50% { transform: translate(50px, 14px) rotate(260deg); } 80% { transform: translate(78px, 52px) rotate(380deg); } }
@keyframes bgPop { 0% { transform: translate(-80px, -24px) scale(.27); opacity: 0; } 35% { opacity: 1; } 100% { transform: none; } }
@keyframes bgRollIn { from { transform: translateX(-40px) rotate(-200deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bgStamp { 0% { transform: scale(1.9) rotate(-40deg); opacity: 0; } 100% { transform: none; opacity: .9; } }
@keyframes bgSway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1deg); } 75% { transform: rotate(1deg); } }
@keyframes bgGlow { from { box-shadow: inset 0 0 0 1px rgba(234,179,8,.55); } to { box-shadow: inset 0 0 0 2px rgba(234,179,8,.9), inset 0 0 10px rgba(250,204,21,.7); } }
@keyframes bgPetal {
  0% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(calc(var(--x) * -.6), 52vh) rotate(calc(var(--r) * .5)); }
  100% { transform: translate(var(--x), 108vh) rotate(var(--r)); opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-cloud, .bg-globe .gb, .bcard.near, .bcard.won .bc-grid .c.win, #tab-bingo .cball.roll, .bg-recent .ball:first-child, .bc-grid .c.just::after { animation: none !important; }
  .bg-petals { display: none; }
}
html.lite .bg-cloud, html.lite .bg-globe .gb, html.lite .bcard.near, html.lite .bcard.won .bc-grid .c.win { animation: none !important; }
html.lite .bg-petals { display: none; }

/* Sheets: a card in an overlay (payments, share, stats, challenge, invite) */
.sheet-card { max-width: 480px; width: 100%; max-height: 85vh; overflow: auto; }

/* 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(52,211,153,.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; }
/* The brand's stacked logo on the join screen (an inline SVG from the brand pack) */
.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; }
.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); }

/* Challenge a friend */
.share-ch { background: linear-gradient(180deg, #ff8a3d, #e5531a); color: #fff; border: 0; }
.ch-sheet { width: min(440px, 100%); text-align: center; }
.ch-from { font-size: 15px; color: var(--muted); margin: 4px 0 2px; }
.ch-target { font-size: 54px; font-weight: 900; line-height: 1.05; background: linear-gradient(180deg, #fff, #ffb36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ch-game { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.ch-info { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.ch-state { margin: 0 0 14px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); font-size: 14.5px; }
.ch-state b { font-size: 18px; }
.ch-state.won { background: rgba(46,226,122,.12); color: #7dffb2; }
.ch-state.lost { background: rgba(255,122,122,.1); }
.ch-actions { display: grid; gap: 8px; }
.ch-takers { font-size: 13px; color: var(--muted); margin-top: 12px; }
.pc-challenge .pc-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; }
.pc-challenge .pc-ic { font-size: 26px; line-height: 1; }
.pc-challenge .pc-head small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.pc-challenge .ch-row .pc-btn { flex: none; padding: 6px 14px; }
.pc-challenge .ch-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 13.5px; }
.pc-challenge .ch-row:first-of-type { border-top: 0; }
.pc-challenge .ch-row small { color: var(--muted); display: block; }

/* Wallet → My stats */
.wc-stats { margin-top: 10px; width: 100%; border: 0; background: linear-gradient(180deg, rgba(167,243,208,.18), rgba(167,243,208,.08)); color: inherit; border-radius: 12px; padding: 10px; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.stats-sheet { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.st-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
.st-tile { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 10px 12px; }
.st-tile small { display: block; color: var(--muted); font-size: 12px; }
.st-tile b { font-size: 20px; font-variant-numeric: tabular-nums; }
.st-tile b.plus { color: #2ee27a; } .st-tile b.minus { color: #ff7a7a; }
.st-hi { display: grid; gap: 6px; margin-bottom: 12px; }
.st-hi div { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.04); border-radius: 12px; padding: 9px 12px; font-size: 14px; }
.st-hi span { font-size: 20px; }
.st-hi small { color: var(--muted); margin-left: auto; text-align: right; }
.stats-sheet h4 { margin: 14px 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-wins { display: grid; gap: 4px; }
.st-wins div { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: 14px; padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.st-wins b { font-variant-numeric: tabular-nums; }
.st-games { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-games th { text-align: left; font-weight: 700; color: var(--muted); font-size: 11.5px; padding: 6px 4px; }
.st-games td { padding: 8px 4px; border-top: 1px solid rgba(255,255,255,.06); font-variant-numeric: tabular-nums; }
.st-games td.n, .st-games th.n { text-align: right; }
.st-games button { border: 0; border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; background: var(--accent, #4f7cff); color: #fff; }
.st-note { color: var(--muted); font-size: 12.5px; margin-top: 12px; }

/* Support page: "Chat with us on Telegram" */
.support-tg { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 13px 14px; border-radius: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, #34b6ff, #1a8ad6); box-shadow: 0 8px 22px rgba(26,138,214,.35); }
.support-tg.hidden { display: none; }
.stg-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.stg-ic svg { width: 22px; height: 22px; fill: #fff; }
.stg-txt { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.stg-txt b { font-size: 16px; }
.stg-txt b { color: #fff; }
.stg-txt small { font-size: 12.5px; color: rgba(255,255,255,.9); }
.stg-go { font-size: 26px; line-height: 1; opacity: .8; }

/* Share my win */
.share-chip { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; border: 0; border-radius: 999px; padding: 12px 20px;
  font: inherit; font-weight: 800; font-size: 15px; color: #1a1300; background: linear-gradient(180deg, #A7F3D0, #34D399); box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 3px rgba(167,243,208,.25);
  cursor: pointer; animation: shareIn .5s cubic-bezier(.2,1.5,.4,1); white-space: nowrap; }
@keyframes shareIn { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.share-sheet { width: min(460px, 100%); }
.share-img { position: relative; aspect-ratio: 1200 / 630; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.06); display: grid; place-items: center; margin: 4px 0 10px; }
.share-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.share-img span { position: absolute; color: var(--muted); font-size: 13px; }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-btns .big { grid-column: 1 / -1; }
.share-btns .hidden { display: none; }

/* 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(52,211,153,.35), transparent 70%), var(--card2);
  border: 1px solid rgba(52,211,153,.6); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 60px rgba(52,211,153,.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, #A7F3D0); -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 pulseBig { 50% { transform: scale(1.08); } }
@keyframes glow { 50% { filter: brightness(1.15); box-shadow: 0 6px 30px rgba(255,140,40,.7); } }
@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; }
}

.rules-link { display: block; width: 100%; margin: 0 0 12px; padding: 11px; border-radius: 12px; border: 1px dashed rgba(52,211,153,.45); background: rgba(52,211,153,.08); color: #A7F3D0; 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: #34D399; 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(52,211,153,.1); border-color: rgba(52,211,153,.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, #A7F3D0, #34D399); 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, #F59E0B); }
.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: #0b1f17; text-align: left;
  background: linear-gradient(110deg, #A7F3D0 0%, #34D399 35%, #A7F3D0 50%, #34D399 65%, #2CB382 100%); background-size: 220% 100%; animation: jpShine 5s linear infinite;
  box-shadow: 0 10px 28px rgba(52,211,153,.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: .9; color: inherit; }
.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: #A7F3D0; 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: #A7F3D0; }
.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: #A7F3D0; 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(167,243,208,.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(52,211,153,.16), rgba(52,211,153,.03)), var(--card); border-color: rgba(52,211,153,.35); }
.pc-board .pc-top { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.pc-board .pc-art { background: rgba(52,211,153,.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(52,211,153,.2); outline: 1px solid rgba(52,211,153,.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: #A7F3D0; 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, #A7F3D0, #34D399); 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(52,211,153,.35); background: rgba(52,211,153,.1); color: #A7F3D0; 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, #A7F3D0, #34D399); 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: #34D399; 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: #34D399; 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: #34D399; 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(52,211,153,.5); border-radius: 12px; padding: 12px; text-align: center; color: #A7F3D0; 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; }
/* Deposit sheets: amount step and "send exactly" step */
.dep { gap: 12px; }
.dep-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 14px 16px; background: radial-gradient(120% 140% at 100% 0%, rgba(52,211,153,.35), transparent 55%), linear-gradient(135deg, #1d2a52, #121a33); border: 1px solid rgba(52,211,153,.25); }
.dep-hero small { display: block; font-size: 12px; opacity: .75; }
.dep-hero > b { font-size: 26px; font-weight: 900; letter-spacing: .01em; }
.dep-hero em, .dep-send em { font-style: normal; font-size: .55em; color: inherit; opacity: .8; margin-left: 2px; }
.dep-ribbon { display: inline-block; margin-top: 8px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: linear-gradient(90deg, #ff6f91, #34D399); color: #2a1300; }
.dep-provs { display: grid; gap: 8px; }
.pay-form label.dep-prov { flex-direction: row; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: inherit; cursor: pointer; }
.pay-form label.dep-prov:has(input:checked) { border-color: #34D399; background: rgba(52,211,153,.1); }
.dep-prov input { accent-color: #34D399; width: 18px; height: 18px; }
.dep-prov span { display: flex; flex-direction: column; }
.dep-prov small { color: var(--muted, #9aa4bd); font-weight: 500; }
.dep-amount { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 2px solid rgba(52,211,153,.45); }
.dep-amount:focus-within { border-color: #A7F3D0; box-shadow: 0 0 0 4px rgba(52,211,153,.15); }
.dep-cur { font-weight: 900; color: #34D399; font-size: 15px; }
.pay-form .dep-amount input { flex: 1; min-width: 0; background: none; border: 0; padding: 8px 0; font-size: 30px; font-weight: 900; outline: none; }
.dep-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dep-chips button { border: 1px solid rgba(52,211,153,.3); background: rgba(52,211,153,.08); color: #A7F3D0; border-radius: 12px; padding: 11px 4px; font-weight: 900; font-size: 15px; cursor: pointer; transition: transform .1s, background .15s; }
.dep-chips button:active { transform: scale(.96); }
.dep-chips button.on { background: linear-gradient(180deg, #A7F3D0, #34D399); color: #2a1a00; border-color: transparent; }
.dep-range { margin: -4px 0 0; font-size: 12px; text-align: center; color: var(--muted, #9aa4bd); }
.dep-go { box-shadow: 0 6px 18px rgba(52,211,153,.3); font-size: 17px; }
.dep-note { text-align: center; }
.dep-send { text-align: center; border-radius: 18px; padding: 14px 12px 12px; background: linear-gradient(135deg, #34D399, #ff8a3d); color: #2a1300; box-shadow: 0 8px 22px rgba(255,138,61,.25); }
.dep-send small, .dep-send span { display: block; font-size: 12.5px; font-weight: 700; color: inherit; opacity: .8; }
.dep-send > b { display: block; font-size: 34px; font-weight: 900; line-height: 1.15; }
.dep-payto { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.dep-payto > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dep-payto small { font-size: 12px; color: var(--muted, #9aa4bd); }
.dep-ico { font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(94,200,255,.12); flex: none; }
.dep-num { font-size: 21px; font-weight: 900; letter-spacing: .05em; }
.dep-copy { border: 0; border-radius: 10px; padding: 9px 13px; font-weight: 900; cursor: pointer; background: #5ec8ff; color: #04203a; flex: none; }
.dep-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dep-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; }
.dep-steps i { flex: none; font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 12px; background: #34D399; color: #2a1a00; }
.dep-owner-note { margin: 0; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: rgba(94,200,255,.08); border-left: 3px solid #5ec8ff; }
.dep-proof { display: flex; flex-direction: column; gap: 6px; }
.dep-proof-head { display: flex; align-items: center; justify-content: space-between; }
.dep-proof-head label { font-size: 13px; font-weight: 800; color: inherit; }
.dep-paste { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: inherit; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pay-form .dep-proof textarea { border: 2px solid rgba(255,255,255,.14); border-radius: 14px; font-size: 15px; min-height: 76px; }
.pay-form .dep-proof textarea:focus { outline: none; border-color: #34D399; }
.pay-form label.dep-shot { position: relative; display: block; cursor: pointer; }
.dep-shot input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dep-shot-in { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 14px; border: 2px dashed rgba(52,211,153,.45); background: rgba(52,211,153,.05); color: #A7F3D0; }
.dep-shot-in small { color: var(--muted, #9aa4bd); font-weight: 500; }
.dep-shot.has .dep-shot-in { justify-content: flex-start; border-style: solid; border-color: rgba(89,214,138,.6); background: rgba(89,214,138,.08); color: #8ff0b4; }
.dep-shot-in img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.dep-shot-in span { display: flex; flex-direction: column; text-align: left; }
.dep-track { display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 8px; font-size: 11.5px; font-weight: 800; }
.dep-track span { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted, #9aa4bd); }
.dep-track i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.dep-track .done { color: #8ff0b4; } .dep-track .done i { background: #3fbf74; color: #04220f; }
.dep-track .now { color: #A7F3D0; } .dep-track .now i { background: #34D399; color: #2a1a00; animation: depPulse 1.4s ease-in-out infinite; }
.dep-track > b { width: 26px; height: 2px; background: rgba(255,255,255,.15); margin-top: -16px; }
@keyframes depPulse { 50% { box-shadow: 0 0 0 7px rgba(52,211,153,.18); } }
.dep-added { color: #8ff0b4; font-size: 20px !important; }
@media (prefers-reduced-motion: reduce) { .dep-track .now i { animation: none; } }

/* 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: #34D399; }
.join-accept a, .legal-links a, .pay-note a { color: #34D399; }
.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(52,211,153,.12); border: 1px solid rgba(52,211,153,.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: #34D399; }
.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: #34D399; background: rgba(52,211,153,.08); }
/* ================================================================ Hi-Lo: "night arcade" (Bercha)
   Its own look: an arcade cabinet at night. A deep blue-violet screen with a perspective floor grid, scanlines and
   stars; neon cyan (higher, spades/clubs) and magenta (lower, hearts/diamonds) glows; dark card faces with a big
   crisp rank (hlCard in app.js); chunky arcade buttons, token chips and a score readout. Nothing like Keno's
   navy/gold, Jackloot's velvet lounge or Bingo's daylight garden. */
:root { --hl-velvet: #5a0f1f; --hl-deep: #2a0610; --hl-rose: #e0a386; --hl-ivory: #f7f1e3; --hl-up: #22D3EE; --hl-down: #F472B6;
  --hl-ink: #0A0620; --hl-night: #120B2E; --hl-violet: #1B1147; --hl-cy: #22D3EE; --hl-mg: #F472B6; --hl-vi: #A78BFA; --hl-yl: #FDE047;
  --hl-num: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  --hl-disp: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif; }
body.hilo-mode {
  background:
    radial-gradient(1.6px 1.6px at 12% 14%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(1.2px 1.2px at 31% 6%, rgba(165,243,252,.8), transparent 70%),
    radial-gradient(1.4px 1.4px at 57% 11%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(1.2px 1.2px at 82% 5%, rgba(251,207,232,.85), transparent 70%),
    radial-gradient(1.6px 1.6px at 92% 22%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(1.2px 1.2px at 6% 38%, rgba(196,181,253,.8), transparent 70%),
    radial-gradient(1.2px 1.2px at 70% 30%, rgba(255,255,255,.6), transparent 70%),
    radial-gradient(1.4px 1.4px at 44% 26%, rgba(165,243,252,.6), transparent 70%),
    radial-gradient(720px 440px at 50% -12%, rgba(167,139,250,.3), transparent 65%),
    radial-gradient(520px 380px at 100% 105%, rgba(244,114,182,.14), transparent 62%),
    linear-gradient(180deg, var(--hl-night), var(--hl-violet) 46%, var(--hl-ink));
  background-attachment: fixed;
}
body.hilo-mode .topbar { background: rgba(18,11,46,.92); border-bottom-color: rgba(34,211,238,.22); }
body.hilo-mode .tabbar { background: rgba(10,6,32,.96); border-top-color: rgba(167,139,250,.3); }
body.hilo-mode .game-bar button { border-color: rgba(167,139,250,.45); background: rgba(167,139,250,.1); color: #e9e4ff; }
#tab-hilo { color: #e9e4ff; }

/* The cabinet screen */
.hl-table {
  position: relative; isolation: isolate; margin-top: 10px; border-radius: 22px; padding: 12px 12px 10px; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 0%, rgba(167,139,250,.22), transparent 70%), linear-gradient(180deg, var(--hl-violet), var(--hl-night) 55%, var(--hl-ink));
  border: 2px solid rgba(167,139,250,.6);
  box-shadow: 0 0 0 1px var(--hl-ink), 0 0 20px rgba(167,139,250,.28), inset 0 0 30px rgba(0,0,0,.6), 0 16px 34px rgba(0,0,0,.55);
}
/* the perspective floor grid */
.hl-table::before { content: ''; position: absolute; left: -40%; right: -40%; bottom: -4%; height: 56%; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(244,114,182,.5) 1px, transparent 1px) 0 0 / 100% 22px, linear-gradient(to right, rgba(34,211,238,.45) 1px, transparent 1px) 0 0 / 34px 100%;
  transform: perspective(220px) rotateX(60deg); transform-origin: 50% 100%; opacity: .5;
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 90%); mask-image: linear-gradient(to top, #000 5%, transparent 90%); }
/* scanlines */
.hl-table::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); }
.hl-table.live { border-color: rgba(34,211,238,.75); box-shadow: 0 0 0 1px var(--hl-ink), 0 0 24px rgba(34,211,238,.32), inset 0 0 30px rgba(0,0,0,.6), 0 16px 34px rgba(0,0,0,.55); }
.hl-table.fx-ok { animation: hlFlashOk .55s ease-out; }
.hl-table.fx-bad { animation: hlGlitch .5s steps(1, end); }
@keyframes hlFlashOk { 0% { box-shadow: 0 0 0 2px var(--hl-cy), 0 0 44px rgba(34,211,238,.85), inset 0 0 70px rgba(34,211,238,.5); } 100% { box-shadow: 0 0 0 1px var(--hl-ink), 0 0 24px rgba(34,211,238,.32), inset 0 0 30px rgba(0,0,0,.6); } }
@keyframes hlGlitch {
  0% { transform: translate(-5px, 1px); filter: hue-rotate(60deg) saturate(1.6); box-shadow: 0 0 0 2px var(--hl-mg), 0 0 40px rgba(244,114,182,.8); }
  15% { transform: translate(5px, -2px); filter: none; } 30% { transform: translate(-3px, 0); filter: hue-rotate(-40deg); }
  45% { transform: translate(3px, 2px); filter: none; } 60% { transform: translate(-1px, -1px); } 80%, 100% { transform: none; filter: none; } }
.hl-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hl-brand { font: 900 23px/1 var(--hl-disp); letter-spacing: .14em; color: #f0fdff; text-shadow: 0 0 4px var(--hl-cy), 0 0 12px rgba(34,211,238,.75), 0 0 22px rgba(34,211,238,.35); }
.hl-brand i { font-style: normal; color: #ffe4f1; margin: 0 4px; font-size: .7em; vertical-align: .14em; text-shadow: 0 0 4px var(--hl-mg), 0 0 12px rgba(244,114,182,.8); }
/* the score readout */
.hl-mult { text-align: right; line-height: 1.1; min-width: 0; padding: 4px 10px 5px; border-radius: 10px; background: #05030f;
  border: 1px solid rgba(34,211,238,.5); box-shadow: inset 0 0 12px rgba(34,211,238,.18), 0 0 10px rgba(34,211,238,.22); }
.hl-lbl { display: block; font: 800 9px var(--hl-num); letter-spacing: .18em; text-transform: uppercase; color: rgba(251,207,232,.8); }
.hl-mult b { display: block; font: 900 25px/1.05 var(--hl-num); letter-spacing: .02em; color: #ecfeff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 5px var(--hl-cy), 0 0 14px rgba(34,211,238,.6); }
.hl-mult b.tick { animation: hlTick .35s ease-out; }
@keyframes hlTick { 0% { transform: scale(1.18); color: #fff; } 100% { transform: none; } }
.hl-mult small { display: block; font-size: 11px; font-weight: 700; color: #c9bdfc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58vw; }
.hl-stage { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; min-height: 214px; margin: 8px 0 4px; }
/* the next card: a glowing "?" panel */
.hl-next { justify-self: end; width: 56px; height: 80px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 2px solid var(--hl-vi); background: radial-gradient(circle at 50% 40%, #2c1d72, var(--hl-night) 75%);
  box-shadow: 0 0 12px rgba(167,139,250,.5), inset 0 0 12px rgba(167,139,250,.35); }
.hl-next b { font: 900 34px/1 var(--hl-disp); color: #fff; text-shadow: 0 0 6px var(--hl-vi), 0 0 16px var(--hl-mg); }
.hl-next small { font: 800 8.5px var(--hl-num); letter-spacing: .14em; text-transform: uppercase; color: #c9bdfc; }
.hl-table.live .hl-next { animation: hlPulse 1.8s ease-in-out infinite; }
@keyframes hlPulse { 50% { box-shadow: 0 0 22px rgba(167,139,250,.85), inset 0 0 18px rgba(244,114,182,.4); border-color: #d8ccff; } }
.hl-shoe-note { font: 700 9.5px/1.45 var(--hl-num); letter-spacing: .08em; text-transform: uppercase; color: rgba(201,189,252,.62); }
.hl-slot { perspective: 800px; }
/* the coin burst on a cash out (hlCoins in app.js) */
.hl-coins { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.hl-coins i { position: absolute; left: 50%; top: 46%; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffbe0, var(--hl-yl) 50%, #b98a07); box-shadow: 0 0 8px rgba(253,224,71,.85);
  animation: hlCoin 1.05s cubic-bezier(.15,.7,.35,1) forwards; }
.hl-coins i::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px solid rgba(120,80,0,.45); }
@keyframes hlCoin { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
  70% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--r)); opacity: 0; } }

/* A card: a dark face with a neon frame and one big crisp rank (cyan for spades/clubs, magenta for hearts/diamonds) */
.hl-card {
  position: relative; width: 134px; height: 190px; border-radius: 16px; color: var(--hl-cy); font-family: var(--hl-disp);
  background: radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.09), transparent 60%), linear-gradient(170deg, #20165a, #0d0826 72%);
  border: 2px solid currentColor;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 16px rgba(34,211,238,.55), inset 0 0 20px rgba(34,211,238,.2), 0 14px 26px rgba(0,0,0,.55);
}
.hl-card.red { color: var(--hl-mg); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 16px rgba(244,114,182,.6), inset 0 0 20px rgba(244,114,182,.2), 0 14px 26px rgba(0,0,0,.55); }
.hl-card::before { content: ''; position: absolute; inset: 6px; border-radius: 11px; border: 1px solid currentColor; opacity: .28; pointer-events: none; }
.hl-card .cn { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: .95; font-size: 14px; }
.hl-card .cn b { font: 900 17px/1 var(--hl-num); letter-spacing: -.04em; }
.hl-card .tl { left: 11px; top: 10px; }
.hl-card .br { right: 11px; bottom: 10px; transform: rotate(180deg); }
.hl-card .big { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.hl-card .big b { font: 900 74px/.9 var(--hl-disp); letter-spacing: -.04em; color: #fff;
  text-shadow: 0 0 3px currentColor, 0 0 6px var(--hl-glow, rgba(34,211,238,.95)), 0 0 18px var(--hl-glow, rgba(34,211,238,.6)); }
.hl-card.red .big b { --hl-glow: rgba(244,114,182,.95); }
.hl-card .big b.w { font-size: 60px; letter-spacing: -.07em; }
.hl-card .big em { font: normal 34px/1 'Segoe UI Symbol', 'Apple Symbols', 'DejaVu Sans', 'Noto Sans Symbols 2', sans-serif; color: inherit; text-shadow: 0 0 8px currentColor; }
.hl-card.back { color: var(--hl-vi);
  background: linear-gradient(rgba(167,139,250,.14) 1px, transparent 1px) 0 0 / 100% 14px, linear-gradient(90deg, rgba(167,139,250,.14) 1px, transparent 1px) 0 0 / 14px 100%, linear-gradient(170deg, #26186a, #0d0826);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 20px rgba(167,139,250,.55), inset 0 0 24px rgba(167,139,250,.3), 0 14px 26px rgba(0,0,0,.55); }
.hl-card.back::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; font: 900 86px/1 var(--hl-disp); color: #fff; text-shadow: 0 0 8px var(--hl-vi), 0 0 24px var(--hl-mg); }
.hl-card.deal { animation: hlDeal .42s cubic-bezier(.2,.8,.3,1.1); }
@keyframes hlDeal { 0% { transform: scale(.55) rotateY(90deg); opacity: 0; filter: brightness(2.2); } 60% { transform: scale(1.05) rotateY(-8deg); opacity: 1; } 100% { transform: none; filter: none; } }
.hl-card.ok { border-color: var(--hl-cy); box-shadow: 0 0 0 3px var(--hl-ink), 0 0 0 5px var(--hl-cy), 0 0 34px rgba(34,211,238,.8), inset 0 0 26px rgba(34,211,238,.35), 0 14px 26px rgba(0,0,0,.55); }
.hl-card.bad { border-color: var(--hl-mg); box-shadow: 0 0 0 3px var(--hl-ink), 0 0 0 5px var(--hl-mg), 0 0 34px rgba(244,114,182,.85), inset 0 0 26px rgba(244,114,182,.35), 0 14px 26px rgba(0,0,0,.55);
  animation: hlDeal .42s cubic-bezier(.2,.8,.3,1.1), hlCardGlitch .5s .42s steps(1, end); }
@keyframes hlCardGlitch {
  0% { transform: translate(-6px, 0) skewX(-6deg); clip-path: inset(0 0 55% 0); } 12% { transform: translate(6px, 0); clip-path: inset(40% 0 0 0); }
  25% { transform: translate(-3px, 2px) skewX(4deg); clip-path: none; } 40% { transform: translate(4px, -1px); } 55% { transform: translate(-2px, 0); } 70%, 100% { transform: none; clip-path: none; } }

/* The rank ladder (a neon bar) and the cards so far (small neon tiles) */
.hl-ladder { position: relative; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 2px; margin-top: 6px; padding: 3px; border-radius: 10px;
  background: #05030f; border: 1px solid rgba(167,139,250,.4); box-shadow: inset 0 0 10px rgba(0,0,0,.8), 0 0 10px rgba(167,139,250,.18); }
.hl-ladder span { text-align: center; font: 800 11px var(--hl-num); padding: 5px 0; border-radius: 5px; color: rgba(201,189,252,.42); }
.hl-ladder span.up { color: #cffafe; background: rgba(34,211,238,.17); box-shadow: inset 0 -2px 0 var(--hl-cy); text-shadow: 0 0 6px rgba(34,211,238,.8); }
.hl-ladder span.down { color: #fce7f3; background: rgba(244,114,182,.16); box-shadow: inset 0 -2px 0 var(--hl-mg); text-shadow: 0 0 6px rgba(244,114,182,.8); }
.hl-ladder span.cur { background: #fff; color: var(--hl-night); box-shadow: 0 0 8px #fff, 0 0 16px var(--hl-vi); }
.hl-trail { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding: 8px 2px 4px; min-height: 48px; scroll-behavior: smooth; }
.hl-trail::-webkit-scrollbar { display: none; }
.hl-t { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hl-t > span { min-width: 34px; padding: 5px 4px; border-radius: 7px; text-align: center; font: 900 13px var(--hl-num); letter-spacing: -.03em;
  background: #0d0826; color: var(--hl-cy); border: 1px solid rgba(34,211,238,.6); text-shadow: 0 0 6px rgba(34,211,238,.6); }
.hl-t > span.red { color: var(--hl-mg); border-color: rgba(244,114,182,.6); text-shadow: 0 0 6px rgba(244,114,182,.6); }
.hl-t small { color: rgba(201,189,252,.7); font: 800 9.5px var(--hl-num); }
.hl-t.ok > span { box-shadow: 0 0 0 1px var(--hl-cy), 0 0 10px rgba(34,211,238,.65); }
.hl-t.bad > span { border-color: var(--hl-mg); box-shadow: 0 0 0 1px var(--hl-mg), 0 0 10px rgba(244,114,182,.75); }
.hl-t.skip > span { opacity: .45; border-style: dashed; }
.hl-trail.sm { padding: 6px 0 2px; min-height: 0; }
.hl-trail.sm .hl-t > span { min-width: 28px; font-size: 11.5px; padding: 3px; }

/* The control deck: chunky arcade buttons and token chips */
.hl-panel { margin-top: 10px; padding: 12px 10px 10px; border-radius: 20px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, var(--hl-violet), var(--hl-ink)); border: 1px solid rgba(167,139,250,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 24px rgba(0,0,0,.45); }
.hl-guess { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hl-btn { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 16px; padding: 10px; cursor: pointer; text-align: left; min-height: 64px; margin-bottom: 6px;
  font-family: var(--hl-disp); transition: transform .08s, box-shadow .08s, filter .15s; }
.hl-hi { color: #03242c; background: linear-gradient(180deg, #a5f3fc, var(--hl-cy) 55%, #0ea5c6);
  box-shadow: 0 6px 0 #0b6f86, 0 0 18px rgba(34,211,238,.45), inset 0 2px 0 rgba(255,255,255,.55); }
.hl-lo { color: #3b0724; background: linear-gradient(180deg, #fbcfe8, var(--hl-mg) 55%, #db2777);
  box-shadow: 0 6px 0 #9d174d, 0 0 18px rgba(244,114,182,.45), inset 0 2px 0 rgba(255,255,255,.55); }
.hl-hi:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #0b6f86, 0 0 10px rgba(34,211,238,.4), inset 0 2px 0 rgba(255,255,255,.55); }
.hl-lo:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #9d174d, 0 0 10px rgba(244,114,182,.4), inset 0 2px 0 rgba(255,255,255,.55); }
.hl-btn:disabled { filter: grayscale(.65) brightness(.5); box-shadow: 0 6px 0 #05030f; cursor: default; }
.hl-arrow { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; line-height: 1; background: rgba(255,255,255,.4); box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.hl-bt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.hl-bt b { font-size: 15.5px; font-weight: 900; letter-spacing: .01em; }
.hl-bt small { font: 800 12.5px var(--hl-num); color: inherit; opacity: .85; }
.hl-actions { display: flex; gap: 8px; align-items: center; }
.hl-step { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.hl-step span { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; line-height: 1.05; color: #2a1a00;
  background: radial-gradient(circle at 35% 30%, #fffbe0, var(--hl-yl) 48%, #c99a06); border: 3px double rgba(120,80,0,.55);
  box-shadow: 0 3px 0 #7a5404, 0 0 12px rgba(253,224,71,.4); }
.hl-step small { display: block; font: 800 8.5px var(--hl-num); letter-spacing: .1em; text-transform: uppercase; color: rgba(42,26,0,.75); }
.hl-step b { font: 900 16px var(--hl-num); }
.hl-step button { width: 40px; height: 40px; border-radius: 50%; font: 900 20px/1 var(--hl-disp); cursor: pointer; color: #fff;
  background: radial-gradient(circle at 35% 30%, #c4b5fd, #7c3aed 72%); border: 2px dashed rgba(255,255,255,.45);
  box-shadow: 0 3px 0 #4c1d95, 0 0 10px rgba(167,139,250,.5); }
.hl-step button:active { transform: translateY(2px); box-shadow: 0 1px 0 #4c1d95; }
.hl-go, .hl-cash, .hl-skip { border: 0; border-radius: 16px; padding: 13px 8px; font: 900 17px/1.15 var(--hl-disp); letter-spacing: .1em; cursor: pointer; margin-bottom: 6px; }
.hl-go, .hl-cash { flex: 1; min-height: 56px; }
.hl-go { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,.6); background: linear-gradient(180deg, #c4b5fd, var(--hl-vi) 45%, #7c3aed);
  box-shadow: 0 6px 0 #4c1d95, 0 0 20px rgba(167,139,250,.5), inset 0 2px 0 rgba(255,255,255,.5); }
.hl-cash { color: #2a1a00; background: linear-gradient(180deg, #fffbe0, var(--hl-yl) 50%, #eab308);
  box-shadow: 0 6px 0 #a16207, 0 0 22px rgba(253,224,71,.5), inset 0 2px 0 rgba(255,255,255,.6); animation: hlCashGlow 1.6s ease-in-out infinite; }
@keyframes hlCashGlow { 50% { box-shadow: 0 6px 0 #a16207, 0 0 32px rgba(253,224,71,.85), inset 0 2px 0 rgba(255,255,255,.6); } }
.hl-cash b { display: block; font: 900 16px var(--hl-num); letter-spacing: .02em; }
.hl-skip { flex: 0 0 auto; padding: 13px 14px; font-size: 14px; letter-spacing: .06em; color: #e9e4ff; background: rgba(167,139,250,.12); border: 2px solid var(--hl-vi);
  box-shadow: 0 5px 0 #2e1065, 0 0 10px rgba(167,139,250,.35); }
.hl-go:active:not(:disabled), .hl-cash:active:not(:disabled), .hl-skip:active:not(:disabled) { transform: translateY(4px); }
.hl-go:disabled, .hl-cash:disabled, .hl-skip:disabled { filter: grayscale(.5) brightness(.6); animation: none; cursor: default; }
.hl-msg { text-align: center; font-size: 13px; min-height: 18px; color: #c9bdfc; }
.hl-msg b { color: #fff; }
.hl-msg.win { color: #a5f3fc; text-shadow: 0 0 8px rgba(34,211,238,.45); }
.hl-msg.lost { color: #fbcfe8; text-shadow: 0 0 8px rgba(244,114,182,.45); }
@media (max-width: 360px) { .hl-card { width: 116px; height: 166px; } .hl-card .big b { font-size: 62px; } .hl-card .big b.w { font-size: 50px; } .hl-stage { min-height: 186px; }
  .hl-next { width: 46px; height: 68px; } .hl-bt b { font-size: 13.5px; } .hl-step span { width: 52px; height: 52px; } .hl-step button { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .hl-card.deal, .hl-card.bad, .hl-table.fx-ok, .hl-table.fx-bad, .hl-table.live .hl-next, .hl-cash, .hl-mult b.tick, .hl-coins { animation: none; } .hl-coins { display: none; } }

/* Home card, slide, info table */
.g-hilo { background: linear-gradient(135deg, #8e1a33, #2a0610 70%); border-color: rgba(224,163,134,.5); }
.g-hilo .g-art { background: #4a0b19; overflow: hidden; }
.hl-mini { width: 100%; height: 100%; display: block; }
.g-hilo .g-status { color: #ffd6c4; }
.g-hilo .g-play { background: linear-gradient(180deg, #ffe1d2, var(--hl-rose)); color: #3a0613; }
.feed-row.g-hilo .f-ic { background: rgba(179,32,63,.25); }
.ps-hilo { background: radial-gradient(120% 120% at 100% 0%, rgba(224,163,134,.45), transparent 60%), linear-gradient(135deg, #b3203f, #2a0610); }
.ps-hilo .ps-cta { background: var(--hl-rose); color: #3a0613; }
.ps-hilo .ps-art .hl-mini { width: 78%; height: auto; border-radius: 16px; transform: rotate(-4deg); box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.hl-otable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hl-otable th, .hl-otable td { padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
.hl-otable th { font-size: 12px; opacity: .7; }
/* Transfer (Wallet) */
.wc-transfer { width: 100%; margin-top: 8px; border: 1px solid rgba(94,200,255,.35); background: rgba(94,200,255,.1); color: #bfe8ff; border-radius: 12px; padding: 11px; font-weight: 900; font-size: 15px; cursor: pointer; }
.tr-note { margin: 6px 0 0; font-size: 12px; color: inherit; opacity: .75; }
.tr-who { min-height: 18px; margin-top: -4px; font-size: 14px; color: #8ff0b4; }
.tr-recent { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.tr-recent > small { font-size: 12px; color: var(--muted, #9aa4bd); font-weight: 800; }
.tr-row { display: flex; justify-content: space-between; font-size: 13.5px; }
.tr-row .pos { color: #8ff0b4; }
.tr-back { background: none; border: 0; color: var(--muted, #9aa4bd); font: inherit; font-weight: 700; cursor: pointer; padding: 6px; }
/* Deposit page (full screen, 3 steps) */
.dep-page { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; color: #eef2ff;
  background: radial-gradient(700px 420px at 50% -10%, rgba(52,211,153,.18), transparent 60%), linear-gradient(180deg, #111a33, #0a0f1f 60%); }
body.dep-open { overflow: hidden; }
.dp-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 6px; }
.dp-top b { text-align: center; font-size: 17px; font-weight: 900; letter-spacing: .02em; }
.dp-x { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: inherit; font-size: 22px; font-weight: 800; cursor: pointer; }
.dp-steps { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 16px 10px; font-size: 11.5px; font-weight: 800; }
.dp-steps span { display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(238,242,255,.45); min-width: 54px; }
.dp-steps i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.dp-steps .now { color: #A7F3D0; } .dp-steps .now i { background: #34D399; color: #2a1a00; box-shadow: 0 0 0 5px rgba(52,211,153,.18); }
.dp-steps .done { color: #8ff0b4; } .dp-steps .done i { background: #3fbf74; color: #04220f; }
.dp-steps > b { flex: 0 0 34px; height: 2px; background: rgba(255,255,255,.14); margin-top: -16px; }
.dp-body { flex: 1; overflow-y: auto; padding: 4px 16px 20px; display: flex; flex-direction: column; gap: 12px; max-width: 520px; width: 100%; margin: 0 auto; box-sizing: border-box; -webkit-overflow-scrolling: touch; }
.dp-foot { padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 12px); display: flex; flex-direction: column; align-items: center; gap: 6px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(10,15,31,.92); backdrop-filter: blur(6px); }
.dp-go { width: 100%; max-width: 488px; border: 0; border-radius: 16px; padding: 15px; font-size: 17px; font-weight: 900; cursor: pointer; background: linear-gradient(180deg, #A7F3D0, #34D399); color: #2a1a00; box-shadow: 0 8px 22px rgba(52,211,153,.3); }
.dp-go:disabled { opacity: .45; box-shadow: none; cursor: default; }
.dp-go.ghost { background: rgba(255,255,255,.1); color: #eef2ff; box-shadow: none; }
.dp-cancel { background: none; border: 0; color: rgba(238,242,255,.55); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px; }
.dp-h { margin: 6px 0 -4px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(238,242,255,.6); }
.dp-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 16px; background: radial-gradient(120% 140% at 100% 0%, rgba(52,211,153,.35), transparent 55%), linear-gradient(135deg, #1d2a52, #121a33); border: 1px solid rgba(52,211,153,.25); }
.dp-hero small { display: block; font-size: 12px; opacity: .75; }
.dp-hero > b { font-size: 28px; font-weight: 900; }
.dp-hero em, .dp-send em { font-style: normal; font-size: .5em; color: inherit; opacity: .8; }
.dp-provs { display: grid; gap: 8px; }
.dp-prov { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); border: 2px solid rgba(255,255,255,.1); cursor: pointer; }
.dp-prov input { position: absolute; opacity: 0; pointer-events: none; }
.dp-prov span:not(.dp-logo) { flex: 1; display: flex; flex-direction: column; }
.dp-prov small { color: rgba(238,242,255,.6); font-size: 12.5px; }
.dp-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); }
.dp-prov:has(input:checked) { border-color: #34D399; background: rgba(52,211,153,.08); }
.dp-prov:has(input:checked) .dp-radio { border: 6px solid #34D399; }
.dp-logo { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; }
.dp-logo.tb { background: linear-gradient(135deg, #1aa3e8, #0b5fb0); font-size: 15px; font-style: italic; }
.dp-logo.cbe { background: linear-gradient(135deg, #7b3fa0, #4b1d6b); }
.dp-logo.img { background: #fff; padding: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.dp-logo.img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dp-logo.bank, .dp-logo.other { background: rgba(255,255,255,.12); font-size: 20px; }
.dp-amount { flex-direction: row; }
.dp-amount input { text-align: left; }
.dp-safe { margin: 0; font-size: 12.5px; color: rgba(238,242,255,.6); text-align: center; }
.dp-send { text-align: center; border-radius: 20px; padding: 16px 12px 14px; background: linear-gradient(135deg, #34D399, #ff8a3d); color: #2a1300; box-shadow: 0 10px 26px rgba(255,138,61,.28); }
.dp-send small { display: block; font-size: 13px; font-weight: 800; color: inherit; opacity: .8; }
.dp-send > b { display: block; font-size: 40px; font-weight: 900; line-height: 1.1; }
.dp-timer { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(42,19,0,.15); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dp-payto { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.dp-payto-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dp-payto-main small { font-size: 12px; color: rgba(238,242,255,.6); }
.dp-payto .dep-num { font-size: 23px; }
.dp-payto .dp-logo { width: 52px; height: 52px; }
.dp-how { border-radius: 14px; background: rgba(94,200,255,.07); border: 1px solid rgba(94,200,255,.2); padding: 10px 12px; font-size: 14px; }
.dp-how summary { cursor: pointer; font-weight: 800; color: #9fdcff; }
.dp-how ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.55; }
.dp-or { display: flex; align-items: center; gap: 10px; color: rgba(238,242,255,.45); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.dp-or::before, .dp-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
.dp-body .dep-shot-in { padding: 18px 14px; }
.dp-wait, .dp-closed { text-align: center; padding: 30px 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dp-wait b, .dp-closed b { font-size: 19px; }
.dp-wait p { margin: 0; color: rgba(238,242,255,.7); line-height: 1.5; }
.dp-closed span { font-size: 44px; }.dp-body .dep-amount input { flex: 1; min-width: 0; background: none; border: 0; box-shadow: none; padding: 8px 0; font: inherit; font-size: 30px; font-weight: 900; color: inherit; outline: none; }
.dp-body textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.14); color: inherit; border-radius: 14px; padding: 10px 12px; min-height: 80px; resize: vertical; }
.dp-body textarea:focus { outline: none; border-color: #34D399; }

.dp-body > * { flex-shrink: 0; } /* the page scrolls; its cards never squash */

/* Web sign-up: "Have a code?" (an agent's or a friend's code) */
.join-code { text-align: left; font-size: 13px; color: var(--muted, #9aa4bd); }
.join-code summary { cursor: pointer; font-weight: 700; padding: 2px 0; }
.join-code input { width: 100%; box-sizing: border-box; margin-top: 6px; }

/* ID check (Wallet) */
.wc-kyc { width: 100%; margin-top: 8px; border: 1px dashed rgba(255,255,255,.25); background: rgba(255,255,255,.05); color: inherit; border-radius: 12px; padding: 10px; font-weight: 800; font-size: 14px; cursor: pointer; }
.wc-kyc.done { border-style: solid; border-color: rgba(89,214,138,.5); color: #8ff0b4; }
.kyc-shot .dep-shot-in { padding: 12px; }

/* ---- VIP page (lib/loyalty.js): green and gold ---- */
.vip-page { position: fixed; inset: 0; z-index: 61; display: flex; flex-direction: column; color: #f3f7ec;
  background: radial-gradient(600px 380px at 50% -8%, rgba(160,220,60,.20), transparent 62%), linear-gradient(180deg, #1c2a12, #0f170b 55%, #0b1108); }
.vp-top { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.vp-top b { text-align: center; font-size: 20px; font-weight: 900; letter-spacing: .03em; }
.vp-back { width: 44px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.07); color: #fff; font-size: 22px; font-weight: 900; cursor: pointer; }
.vp-desc { border: 1.5px solid #8fd14f; color: #a8ea5f; background: transparent; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.vp-body { flex: 1; overflow-y: auto; padding: 14px 14px calc(env(safe-area-inset-bottom, 0px) + 24px); -webkit-overflow-scrolling: touch; }
.vp-card { border: 2px solid rgba(214,196,92,.75); border-radius: 22px; padding: 16px; margin-bottom: 14px; background: linear-gradient(180deg, rgba(40,58,24,.85), rgba(18,28,12,.9)); box-shadow: inset 0 0 30px rgba(160,220,60,.06); }
.vp-card h3 { margin: 0 0 6px; text-align: center; font-size: 17px; line-height: 1.35; font-weight: 900; }
.vp-card h3 em { font-style: normal; color: #f5c542; }
.vp-hero { display: grid; grid-template-columns: 128px 1fr; gap: 10px 12px; align-items: center; }
.vp-badge { display: flex; flex-direction: column; align-items: center; }
.vp-badge .vp-shield { width: 118px; height: auto; filter: drop-shadow(0 6px 14px rgba(52,211,153,.35)); }
.vp-cur { margin-top: -6px; background: linear-gradient(180deg, #ffd96a, #f0a91e); color: #3a2400; font-weight: 900; font-size: 12.5px; padding: 5px 12px; border-radius: 10px; box-shadow: 0 3px 0 #a86b0f; }
.vp-bens p { margin: 0 0 8px; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.vp-bens p b { color: #f5c542; }
.vp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(0,0,0,.28); border-radius: 14px; padding: 8px; }
.vp-ben { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 4px 2px; }
.vp-ben svg { width: 34px; height: 34px; }
.vp-ben b { font-size: 11.5px; line-height: 1.2; }
.vp-ben small { font-size: 12px; color: #c9f08f; font-weight: 800; }
.vp-up { grid-column: 1 / -1; border: 0; border-radius: 14px; padding: 15px; font: inherit; font-size: 18px; font-weight: 900; color: #102006; cursor: pointer;
  background: linear-gradient(180deg, #b8f25e, #7fd42c); box-shadow: 0 0 22px rgba(150,230,60,.45), inset 0 -3px 0 rgba(0,0,0,.18); }
.vp-hint { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: #d9e6c8; text-align: center; }
.vp-hint b { color: #f5c542; }
.vp-line { height: 2px; margin: 8px auto 12px; width: 60%; background: linear-gradient(90deg, transparent, #8fd14f, transparent); }
.vp-conds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vp-cond { border: 1.5px solid rgba(143,209,79,.35); border-radius: 16px; padding: 12px 10px; text-align: center; background: linear-gradient(180deg, rgba(60,90,30,.45), rgba(20,32,12,.6)); }
.vp-cond svg { width: 48px; height: 48px; }
.vp-cond b { display: block; color: #f5c542; font-size: 16px; margin: 4px 0 2px; }
.vp-cond p { margin: 0 0 8px; font-size: 13px; line-height: 1.35; min-height: 3.9em; }
.vp-cond p b { display: inline; font-size: inherit; margin: 0; }
.vp-cond small { font-size: 12px; color: #c9f08f; font-weight: 700; }
.vp-cond.done { border-color: #8fd14f; box-shadow: 0 0 14px rgba(143,209,79,.3); }
.vp-cbar { height: 7px; border-radius: 99px; background: rgba(0,0,0,.35); overflow: hidden; margin: 4px 0; }
.vp-cbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7fd42c, #f5c542); }
.vp-rws { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.vp-rw { border-radius: 14px; padding: 10px 6px; text-align: center; background: rgba(0,0,0,.28); border: 1.5px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 4px; align-items: center; }
.vp-rw b { font-size: 13px; }
.vp-rw strong { font-size: 20px; font-weight: 900; color: #f5c542; }
.vp-rw.ready { border-color: #8fd14f; box-shadow: 0 0 12px rgba(143,209,79,.25); }
.vp-rw small { font-size: 11.5px; color: #aebd98; }
.vp-rw.off strong { color: #6f7d5c; }
.vp-claim { border: 0; border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 900; font-size: 14px; color: #102006; background: linear-gradient(180deg, #b8f25e, #7fd42c); cursor: pointer; }
.vp-claim:disabled { opacity: .5; cursor: default; }
.vp-next { display: grid; grid-template-columns: 72px 1fr auto; gap: 8px; align-items: center; font-size: 13px; margin: 6px 0; }
.vp-next small { color: #c9f08f; font-weight: 700; }
.vp-store { text-align: center; }
.vp-foot { text-align: center; font-size: 12px; color: #8f9d7c; margin: 4px 0 0; }
.vp-table-wrap { overflow-x: auto; }
.vp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vp-table th, .vp-table td { padding: 6px 5px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
.vp-table tr.on td { background: rgba(245,197,66,.14); }
.vp-notes { margin: 12px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
/* the Promotions card */
.pc-vip2 { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; font: inherit; color: #f3f7ec; cursor: pointer;
  border: 2px solid rgba(214,196,92,.7) !important; background: linear-gradient(135deg, #22341a, #101a0b) !important; }
.pc-vip2 .pc-body span { display: block; font-size: 12.5px; color: #c9d9b2; margin-top: 2px; }
.pc-vip2 .pc-body b { color: #f5c542; font-size: 19px; }
.pv-go { font-weight: 900; font-size: 13px; color: #a8ea5f; white-space: nowrap; }
.pv-go i { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 99px; background: #F59E0B; color: #fff; font-size: 12px; margin-right: 3px; }
@media (max-width: 360px) { .vp-hero { grid-template-columns: 1fr; } .vp-conds { grid-template-columns: 1fr; } }

/* ---- Lighter mode (app.js LITE): the reduced-motion rules above, plus no blur and no looping backgrounds ---- */
html.lite .pc-gift .pc-art { animation: none; }
html.lite *, html.lite *::before, html.lite *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
html.lite .jp-bar, html.lite .jp-coin { animation: none; }
html.lite .dep-track .now i { animation: none; }
html.lite .hl-card.deal, html.lite .hl-card.bad, html.lite .hl-table.fx-ok, html.lite .hl-table.fx-bad, html.lite .hl-table.live .hl-next, html.lite .hl-cash, html.lite .hl-mult b.tick { animation: none !important; }
html.lite .hl-coins { display: none; }
html.lite .hl-table::before, html.lite .hl-table::after { display: none; }
html.lite * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lite .ps-slide, html.lite .gcard, html.lite .promo-card, html.lite .vip-page, html.lite .vp-card { animation: none !important; }
/* Popups (sheets, the win popup) above a full-screen page (VIP, deposit) while one is open */
body.dep-open .overlay { z-index: 70; }
/* Maintenance mode banner (lib/maintenance.js) */
.mt-banner { margin: 8px 12px 0; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 700; line-height: 1.4; background: #3b3413; color: #ffe08a; border: 1px solid rgba(255,224,138,.35); }
.mt-banner.on { background: #4a1414; color: #ffd0d0; border-color: rgba(255,120,120,.45); }

/* Tournaments and badges (Promotions) */
.pc-tourn { display: block; border: 1px solid rgba(245,197,66,.35); background: linear-gradient(160deg, #2a2210, #141a2c); }
.pc-tourn.live { border-color: #f5c542; box-shadow: 0 0 18px rgba(245,197,66,.18); }
.tn-head { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; }
.tn-cup { font-size: 30px; }
.tn-head b { display: block; font-size: 16px; }
.tn-head small { color: #b9c2d6; font-size: 12px; }
.tn-time { font-size: 12px; font-weight: 800; color: #f5c542; white-space: nowrap; }
.tn-prizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tn-prizes span { background: rgba(245,197,66,.12); border-radius: 99px; padding: 3px 9px; font-size: 12.5px; font-weight: 800; }
.tn-top { list-style: none; margin: 0 0 8px; padding: 0; }
.tn-top li { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; padding: 5px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13.5px; }
.tn-top li.me { background: rgba(245,197,66,.12); border-radius: 8px; }
.tn-top em { font-style: normal; font-weight: 800; color: #f5c542; }
.tn-empty, .tn-me { font-size: 13px; color: #c7cfe0; margin: 6px 0; }
.pc-badges { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.bd-head { display: flex; justify-content: space-between; align-items: baseline; }
.bd-head b { font-size: 16px; } .bd-head span { font-weight: 900; color: #f5c542; }
.bd-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 10px 0 6px; }
.bd-grid i { font-style: normal; font-size: 22px; text-align: center; padding: 4px 0; border-radius: 10px; background: rgba(255,255,255,.05); filter: grayscale(1); opacity: .35; }
.bd-grid i.got { filter: none; opacity: 1; background: rgba(245,197,66,.14); }
.pc-badges small { color: #b9c2d6; font-size: 12px; }
.bd-list { display: flex; flex-direction: column; gap: 8px; }
.bd-item { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.04); opacity: .7; }
.bd-item.got { opacity: 1; background: rgba(245,197,66,.1); }
.bd-item > i { font-style: normal; font-size: 26px; text-align: center; }
.bd-item b { display: block; font-size: 14px; } .bd-item small { display: block; font-size: 12px; color: #b9c2d6; }
.bd-item > span { font-weight: 900; color: #f5c542; font-size: 13px; }
.ps-tourn { background: linear-gradient(135deg, #3a2a08, #1a1430 70%); }
.ps-cup { font-size: 64px; text-align: center; filter: drop-shadow(0 6px 16px rgba(245,197,66,.45)); }

/* Add to home screen card (Home, website only) */
.a2hs { display: flex; align-items: center; gap: 10px; margin: 10px 12px 0; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.a2hs-icon { font-size: 24px; }
.a2hs-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.a2hs-text small { opacity: .75; }
.a2hs-x { background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; padding: 4px 6px; opacity: .6; cursor: pointer; }

/* Keno slip: Quick pick, count, Clear and "Same as last" wrap on narrow phones */
.slip .row { flex-wrap: wrap; }
.slip .row #samePicks { flex: 1 1 100%; }

/* Website sign-up: phone + PIN (Settings > Accounts) */
.join-hint { text-align: left; font-size: 12px; color: var(--muted, #9aa4bd); margin-top: -4px; }

/* Withdrawal tracker (Wallet, and after asking for a withdrawal) */
.wd-track-wrap { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 4px; }
.wd-track { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px 14px; text-align: left; }
.wd-track.hold { border-color: rgba(52,211,153,.55); }
.wd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wd-head small { color: var(--muted, #9aa4bd); }
.wd-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 0 8px; position: relative; }
.wd-steps::before { content: ''; position: absolute; left: 16%; right: 16%; top: 9px; height: 2px; background: rgba(255,255,255,.15); }
.wd-step { display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; font-size: 12px; color: var(--muted, #9aa4bd); }
.wd-step i { width: 20px; height: 20px; border-radius: 50%; background: #1b2338; border: 2px solid rgba(255,255,255,.25); z-index: 1; }
.wd-step.done i { background: #2fbf71; border-color: #2fbf71; }
.wd-step.done i::after { content: '✓'; display: block; color: #fff; font-size: 12px; line-height: 16px; text-align: center; }
.wd-step.now i { border-color: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); animation: wdPulse 1.6s ease-in-out infinite; }
.wd-step.held i { border-color: #34D399; background: #3a2e10; }
.wd-step.done b, .wd-step.now b, .wd-step.held b { color: #fff; }
.wd-step small { min-height: 14px; }
.wd-note { margin: 4px 0 0; font-size: 13px; color: var(--muted, #b8c0d4); }
@keyframes wdPulse { 50% { box-shadow: 0 0 0 7px rgba(52,211,153,.06); } }
@media (prefers-reduced-motion: reduce) { .wd-step.now i { animation: none; } }
