/* ============================================================
   sheckles - fake-currency casino
   ============================================================ */

:root {
  --bg: #0f1923;
  --bg-2: #131f2b;
  --panel: #1a2c38;
  --panel-2: #213743;
  --panel-3: #2a4553;
  --line: #2f4553;
  --line-2: #3d5b6b;

  --text: #ffffff;
  --text-2: #b1bad3;
  --text-3: #7f8fa4;

  --green: #00e701;
  --green-dim: #0f7a1a;
  --red: #ff4d67;
  --gold: #ffc93c;
  --purple: #a06bff;
  --blue: #3d9bff;
  --cyan: #22d3ee;
  --pink: #ff5fa2;
  --orange: #ff8a3d;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --r: 6px;
  --r-lg: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 6px; }

/* ---------- top bar ------------------------------------------------------ */

.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  height: 60px; padding: 0 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(145deg, var(--green), #00a800);
  display: grid; place-items: center;
  box-shadow: 0 0 18px rgba(0, 231, 1, .35);
  color: #06240a;
}
.brand-mark svg { width: 17px; height: 17px; stroke-width: 2.6; }

/* wallet */
.wallet { display: flex; align-items: stretch; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.wallet-amt { display: flex; align-items: center; gap: 8px; padding: 0 14px; font-family: var(--mono); font-weight: 700; font-size: 15px; }
.wallet-amt i { width: 15px; height: 15px; border-radius: 50%; background: linear-gradient(145deg, var(--gold), #d99a00); box-shadow: inset 0 -1px 2px rgba(0,0,0,.4); flex: none; }
.wallet-faucet { padding: 0 14px; background: var(--green); color: #04220a; font-weight: 700; font-size: 12px; display: grid; place-items: center; transition: filter .15s; }
.wallet-faucet:hover { filter: brightness(1.12); }
.wallet-faucet:disabled { background: var(--panel-3); color: var(--text-3); cursor: not-allowed; }

.spacer { flex: 1; }

.search-wrap { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 36px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); min-width: 180px; }
.search-wrap svg { width: 14px; height: 14px; color: var(--text-3); flex: none; }
#search { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 13px; }
#search::placeholder { color: var(--text-3); }

.who { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; background: var(--panel-2); border-radius: var(--r); font-size: 13px; font-weight: 600; transition: background .15s; }
.who:hover { background: var(--panel-3); }
.who-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---------- layout ------------------------------------------------------- */

.view { max-width: 1320px; margin: 0 auto; padding: 20px 16px 70px; }

/* ---------- stat strip --------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.stat { background: var(--panel); border-radius: var(--r-lg); padding: 13px 16px; border: 1px solid var(--line); }
.stat span { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.stat b { font-family: var(--mono); font-size: 19px; font-weight: 700; }
.stat.up b { color: var(--green); }
.stat.down b { color: var(--red); }

/* ---------- category tabs ------------------------------------------------ */

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill { padding: 8px 16px; border-radius: 100px; background: var(--panel); font-size: 12.5px; font-weight: 700; color: var(--text-2); transition: .15s; border: 1px solid transparent; }
.pill:hover { background: var(--panel-2); color: var(--text); }
.pill.on { background: var(--green); color: #04220a; }

/* ---------- game grid ---------------------------------------------------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }

.card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--tile, var(--panel));
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px;
  text-align: left;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% 10%, rgba(255,255,255,.22), transparent 60%);
}
.card-art { position: absolute; right: -18px; top: -10px; width: 152px; height: 152px; opacity: .9; color: rgba(255,255,255,.92); }
.card-art svg { stroke-width: 1.5; }
.card h3 { position: relative; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.card .card-tag { position: relative; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.card .pvp { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.45); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; padding: 3px 7px; border-radius: 4px; }

.empty { grid-column: 1/-1; padding: 60px 0; text-align: center; color: var(--text-3); }

/* ---------- game view ---------------------------------------------------- */

.game-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.btn-back { width: 38px; height: 38px; border-radius: var(--r); background: var(--panel); display: grid; place-items: center; }
.btn-back:hover { background: var(--panel-2); }
.btn-back svg { width: 18px; height: 18px; }
.game-head h2 { font-size: 20px; }
.game-head p { margin: 0; font-size: 12px; color: var(--text-3); }

.table { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
/* pages with no bet controls take the whole width */
.table.solo { grid-template-columns: 1fr; }
.table.solo > .panel { display: none; }

/* global high-score list beside the earners */
.highs { margin-top: 14px; }
.highs h4 { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.highs ol { list-style: none; margin: 0; padding: 0; }
.highs li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; padding: 6px 8px; border-radius: 4px; font-size: 12.5px; }
.highs li:nth-child(odd) { background: rgba(255,255,255,.03); }
.highs li.you { background: rgba(0,231,1,.12); box-shadow: inset 2px 0 0 var(--green); }
.highs .r { font-family: var(--mono); font-size: 11px; color: var(--text-3); text-align: right; }
.highs .s { font-family: var(--mono); font-weight: 700; }
.highs li:nth-child(1) .r { color: var(--gold); }

/* profit / loss boards on the home page */
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.boards .panel h3 { font-size: 13px; margin-bottom: 10px; }
.boards li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 7px 6px; font-size: 12.5px; border-top: 1px solid var(--line); }
.boards ol { list-style: none; margin: 0; padding: 0; }
.boards .r { font-family: var(--mono); font-size: 11px; color: var(--text-3); text-align: right; }
.boards .v { font-family: var(--mono); font-weight: 700; }
.boards .v.up { color: var(--green); }
.boards .v.down { color: var(--red); }
@media (max-width: 760px) { .boards { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border-radius: var(--r-lg); padding: 16px; border: 1px solid var(--line); }
.board { background: var(--panel-2); border-radius: var(--r-lg); padding: 20px; min-height: 460px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border: 1px solid var(--line); position: relative; overflow: hidden; }

/* bet controls */
.field { margin-bottom: 12px; }
.field label { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.amount { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.amount input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 10px 12px; font-family: var(--mono); font-weight: 700; }
.amount button { padding: 0 11px; font-size: 11px; font-weight: 800; color: var(--text-2); border-left: 1px solid var(--line); }
.amount button:hover { background: var(--panel-2); color: var(--text); }

.inp { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; outline: none; font-family: var(--mono); font-weight: 700; }
.inp:focus { border-color: var(--line-2); }
select.inp { font-family: var(--sans); font-weight: 600; }

.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; gap: 3px; }
.seg button { flex: 1; padding: 8px 4px; border-radius: 4px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.seg button.on { background: var(--panel-3); color: var(--text); }

.btn-bet {
  width: 100%; padding: 14px; border-radius: var(--r);
  background: var(--green); color: #04220a;
  font-size: 15px; font-weight: 800;
  transition: filter .15s, transform .1s;
  box-shadow: 0 4px 14px rgba(0,231,1,.25);
}
.btn-bet:hover:not(:disabled) { filter: brightness(1.1); }
.btn-bet:active:not(:disabled) { transform: scale(.985); }
.btn-bet:disabled { background: var(--panel-3); color: var(--text-3); box-shadow: none; cursor: not-allowed; }
.btn-alt { width: 100%; padding: 12px; border-radius: var(--r); background: var(--panel-3); font-weight: 800; margin-top: 8px; }
.btn-alt:hover { background: var(--line-2); }
.btn-cash { background: var(--gold); color: #2a1c00; }

.hint { font-size: 11.5px; color: var(--text-3); margin-top: 10px; text-align: center; }
.err { color: var(--red); font-size: 12px; font-weight: 600; margin-top: 8px; text-align: center; min-height: 16px; }

/* result banner */
.result { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); padding: 8px 18px; border-radius: 100px; font-weight: 800; font-size: 14px; animation: pop .25s ease; }
.result.win { background: rgba(0,231,1,.15); color: var(--green); border: 1px solid rgba(0,231,1,.4); }
.result.lose { background: rgba(255,77,103,.12); color: var(--red); border: 1px solid rgba(255,77,103,.35); }
@keyframes pop { from { transform: translateX(-50%) scale(.8); opacity: 0; } }

.bigmult { font-family: var(--mono); font-size: 60px; font-weight: 800; letter-spacing: -.03em; }
.bigmult.win { color: var(--green); text-shadow: 0 0 30px rgba(0,231,1,.4); }
.bigmult.lose { color: var(--red); }

/* ---------- feed --------------------------------------------------------- */

.feed { margin-top: 24px; }
.feed h3 { font-size: 14px; margin-bottom: 10px; }
.feed-table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--r-lg); overflow: hidden; font-size: 12.5px; }
.feed-table th { text-align: left; padding: 10px 14px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); background: var(--panel-2); }
.feed-table td { padding: 9px 14px; border-top: 1px solid var(--line); font-family: var(--mono); }
.feed-table td:first-child, .feed-table td:nth-child(2) { font-family: var(--sans); font-weight: 600; }
.feed-table .up { color: var(--green); }
.feed-table .down { color: var(--text-3); }

/* ---------- lobbies ------------------------------------------------------ */

.lobby-list { display: flex; flex-direction: column; gap: 8px; }
.lobby-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; background: var(--panel-2); border-radius: var(--r); padding: 12px 14px; }
.lobby-row b { font-size: 13px; }
.lobby-row span { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.btn-join { padding: 7px 16px; border-radius: var(--r); background: var(--green); color: #04220a; font-weight: 800; font-size: 12px; }
.btn-join:hover { filter: brightness(1.1); }
.btn-small { padding: 7px 14px; border-radius: var(--r); background: var(--panel-3); font-weight: 700; font-size: 12px; }
.btn-small:hover { background: var(--line-2); }

.seats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 8px 0; }
.seat { width: 92px; padding: 12px 8px; border-radius: var(--r); background: var(--panel); border: 1px dashed var(--line-2); text-align: center; font-size: 12px; }
.seat.filled { border-style: solid; background: var(--panel-3); font-weight: 700; }
.seat.bot { color: var(--purple); }
.seat.winner { background: rgba(0,231,1,.16); border-color: var(--green); color: var(--green); }
.seat small { display: block; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

/* ---------- fairness ----------------------------------------------------- */

.fair { margin-top: 12px; font-size: 11px; color: var(--text-3); word-break: break-all; line-height: 1.7; }
.fair b { color: var(--text-2); font-weight: 700; }
.fair code { font-family: var(--mono); font-size: 10px; }

/* ---------- modal -------------------------------------------------------- */

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(4, 10, 15, .8); }
.modal-card { width: min(420px, calc(100% - 32px)); padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.modal-card h3 { font-size: 17px; }
.modal-card p { margin: 8px 0 16px; font-size: 13px; color: var(--text-2); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* ---------- per-game boards ---------------------------------------------- */

.mines-grid { display: grid; grid-template-columns: repeat(5, 62px); gap: 8px; }
.mine-cell { width: 62px; height: 62px; border-radius: var(--r); background: var(--panel-3); display: grid; place-items: center; font-size: 22px; transition: transform .12s, background .15s; box-shadow: 0 3px 0 rgba(0,0,0,.28); }
.mine-cell:hover:not(:disabled) { background: var(--line-2); transform: translateY(-2px); }
.mine-cell:disabled { cursor: default; }
.mine-cell.gem { background: rgba(0,231,1,.15); box-shadow: inset 0 0 0 1px rgba(0,231,1,.4); }
.mine-cell.bomb { background: rgba(255,77,103,.2); box-shadow: inset 0 0 0 1px rgba(255,77,103,.5); }
.mine-cell.dim { opacity: .35; }

.tower { display: flex; flex-direction: column-reverse; gap: 5px; }
.tower-row { display: flex; gap: 5px; }
.tower-cell { width: 76px; height: 34px; border-radius: 5px; background: var(--panel-3); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.tower-row.active .tower-cell:hover { background: var(--line-2); }
.tower-cell.good { background: rgba(0,231,1,.2); color: var(--green); }
.tower-cell.bad { background: rgba(255,77,103,.22); color: var(--red); }
.tower-row.done { opacity: .5; }

.card-face { width: 92px; height: 130px; border-radius: 8px; background: #f6f7fb; color: #10151c; display: grid; place-items: center; font-size: 30px; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.card-face.red { color: #d32f45; }
.card-face.back { background: linear-gradient(135deg, #26506e, #16283a); color: transparent; }
.hand { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hand .card-face { width: 66px; height: 94px; font-size: 21px; }
.hand-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }

.wheel-wrap { position: relative; width: 300px; height: 300px; }
.roulette-board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; width: 100%; max-width: 420px; }

/* the felt: zero down the left, 3x12 of numbers, columns on the right,
   dozens and even-money bets stacked underneath - as on a real layout */
.felt {
  display: grid;
  grid-template-columns: 38px repeat(12, minmax(0, 1fr)) 46px;
  grid-template-rows: repeat(3, 38px) 32px 32px;
  gap: 3px;
  padding: 8px;
  width: min(640px, 100%);
  background: repeating-linear-gradient(135deg, #0d5c34 0 12px, #0c5531 12px 24px);
  border: 7px solid #6b4d1c;
  border-radius: 10px;
  box-shadow: inset 0 0 40px rgba(0,0,0,.45), 0 10px 26px rgba(0,0,0,.45);
}
.rt {
  position: relative;
  border-radius: 3px;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 12.5px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  transition: filter .12s, transform .12s;
  line-height: 1;
}
.rt:hover { filter: brightness(1.4); transform: translateY(-1px); }
.rt.red { background: #c0304a; }
.rt.black { background: #17232d; }
.rt.green { background: #0f7a1a; }
.rt.outside { background: rgba(255,255,255,.07); font-size: 10.5px; letter-spacing: .04em; }
.rt.outside.red { background: #c0304a; } .rt.outside.black { background: #17232d; }
.rt.hit { outline: 3px solid var(--gold); outline-offset: -1px; z-index: 3; animation: popIn .3s ease; }

.rt-chip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  min-width: 27px; height: 27px; padding: 0 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, #c98a00);
  border: 2px dashed rgba(255,255,255,.65);
  color: #2a1c00; font-size: 9px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 3px 7px rgba(0,0,0,.55);
  z-index: 2; pointer-events: none;
  animation: popIn .2s cubic-bezier(.2,.9,.3,1);
}

@media (max-width: 700px) {
  .felt { grid-template-columns: 26px repeat(12, minmax(0, 1fr)) 32px; grid-template-rows: repeat(3, 28px) 26px 26px; }
  .rt { font-size: 10px; }
  .rt.outside { font-size: 8px; }
  .rt-chip { min-width: 20px; height: 20px; font-size: 7.5px; }
}
.chip-btn { padding: 10px 6px; border-radius: 5px; background: var(--panel-3); font-size: 12px; font-weight: 700; text-align: center; }
.chip-btn:hover { background: var(--line-2); }
.chip-btn.red { background: #c0304a; } .chip-btn.black { background: #16222c; }
.chip-btn.green { background: var(--green-dim); }
.chip-btn.on { outline: 2px solid var(--gold); }
.chip-btn b { display: block; font-family: var(--mono); font-size: 10px; color: var(--gold); }

.keno-grid { display: grid; grid-template-columns: repeat(8, 46px); gap: 6px; }
.keno-cell { height: 42px; border-radius: 5px; background: var(--panel-3); font-family: var(--mono); font-weight: 700; font-size: 13px; }
.keno-cell.pick { background: var(--purple); }
.keno-cell.hit { background: var(--green); color: #04220a; }
.keno-cell.miss { background: var(--panel); color: var(--text-3); }

/* height:auto is load-bearing - max-width alone shrinks the width only and
   squashes everything drawn on the canvas */
canvas.board-canvas { border-radius: var(--r); background: var(--bg); max-width: 100%; height: auto; }

/* ---------- crates ------------------------------------------------------- */

.crate-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.crate {
  width: 116px; padding: 12px 8px; border-radius: var(--r-lg);
  background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .15s, border-color .15s, background .15s;
}
.crate:hover { transform: translateY(-3px); background: var(--panel-2); }
.crate.on { border-color: var(--accent); background: var(--panel-3); box-shadow: 0 0 20px -6px var(--accent); }
.crate-top {
  width: 52px; height: 40px; border-radius: 5px;
  background: linear-gradient(160deg, var(--accent), rgba(0,0,0,.5));
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.35), 0 4px 10px rgba(0,0,0,.4);
  position: relative;
}
.crate-top::after { content: ""; position: absolute; left: 0; right: 0; top: 45%; height: 5px; background: rgba(0,0,0,.45); }
.crate b { font-size: 11.5px; text-align: center; line-height: 1.2; }
.crate span { font-size: 11px; color: var(--gold); font-weight: 700; }

.reel-frame {
  position: relative; width: 100%; max-width: 620px; height: 108px;
  overflow: hidden; border-radius: var(--r-lg);
  background: var(--bg); border: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.reel-strip { display: flex; gap: 8px; padding: 10px 0; height: 100%; will-change: transform; }
.reel-cell {
  width: 108px; flex: none; border-radius: var(--r);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, transparent), var(--panel));
  border-bottom: 3px solid var(--c);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 6px;
}
.reel-cell b { font-size: 10.5px; text-align: center; line-height: 1.15; }
.reel-cell span { font-size: 10.5px; color: var(--gold); font-weight: 700; }
.reel-mark { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--gold); box-shadow: 0 0 12px var(--gold); transform: translateX(-50%); z-index: 2; }

.pulls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 10px; }
.pull { padding: 8px 12px; border-radius: var(--r); background: var(--panel-2); border-bottom: 3px solid var(--c); text-align: center; }
.pull b { display: block; font-size: 11.5px; }
.pull span { font-size: 11px; color: var(--gold); font-weight: 700; }

.odds { margin-top: 12px; display: flex; flex-direction: column; gap: 3px; max-height: 260px; overflow-y: auto; }
.odd { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 8px; align-items: center; font-size: 11px; padding: 4px 2px; }
.odd .dot { width: 8px; height: 8px; border-radius: 50%; }
.odd b { font-weight: 600; color: var(--text-2); }
.odd .num { color: var(--gold); font-weight: 700; }
.odd .pct { color: var(--text-3); min-width: 46px; text-align: right; }

/* ---------- battles ------------------------------------------------------ */

.battle-grid { display: grid; gap: 8px; width: 100%; }
.battle-player { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.battle-player.win { border-color: var(--green); background: rgba(0,231,1,.08); }
.battle-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.battle-head .num { color: var(--gold); }
.battle-pulls { display: flex; gap: 5px; flex-wrap: wrap; }
.battle-pull { padding: 5px 8px; border-radius: 4px; background: var(--panel-2); border-bottom: 2px solid var(--c); font-size: 10px; }
.battle-pull span { display: block; color: var(--gold); font-weight: 700; }
.case-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.case-pick button { padding: 6px 10px; border-radius: var(--r); background: var(--panel-2); font-size: 11px; font-weight: 700; border: 1px solid var(--line); }
.case-pick button.on { border-color: var(--gold); color: var(--gold); }
.chosen-cases { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.chosen-cases span { font-size: 10.5px; padding: 4px 8px; border-radius: 4px; background: var(--panel-3); }

/* ---------- animation ---------------------------------------------------- */

@keyframes dealIn {
  from { opacity: 0; transform: translate(60px, -70px) rotate(14deg) scale(.85); }
  to   { opacity: 1; transform: none; }
}
@keyframes flipIn {
  0%   { transform: rotateY(90deg) scale(.9); opacity: .4; }
  100% { transform: rotateY(0) scale(1); opacity: 1; }
}
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-7px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(3px); }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 0 rgba(0,231,1,0); }
  50% { box-shadow: 0 0 26px rgba(0,231,1,.6); }
}
@keyframes floatUp {
  from { opacity: 1; transform: translate(-50%, 0) scale(1); }
  to   { opacity: 0; transform: translate(-50%, -54px) scale(1.25); }
}
@keyframes sheen { from { background-position: -220% 0; } to { background-position: 220% 0; } }

.anim-flip { animation: flipIn .3s cubic-bezier(.2,.9,.3,1) both; }
.anim-pop { animation: popIn .26s cubic-bezier(.2,.9,.3,1) both; }
.anim-shake { animation: shake .42s ease; }
.anim-glow { animation: glowPulse .9s ease 2; }

/* floating "+123.45" that drifts off the board on a win */
.float-win {
  position: absolute; left: 50%; top: 42%;
  font-family: var(--mono); font-size: 26px; font-weight: 800; color: var(--green);
  text-shadow: 0 0 18px rgba(0,231,1,.55);
  pointer-events: none;
  animation: floatUp 1.25s ease-out forwards;
}
.float-win.neg { color: var(--red); text-shadow: none; }

/* big verdict stamped across the table */
.verdict {
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  font-size: clamp(38px, 8vw, 68px); font-weight: 900; letter-spacing: -.03em;
  pointer-events: none; z-index: 6; white-space: nowrap;
  animation: stamp .42s cubic-bezier(.2,.9,.3,1) both;
}
.verdict.bad { color: var(--red); text-shadow: 0 0 34px rgba(255,77,103,.55), 0 6px 18px rgba(0,0,0,.7); }
.verdict.good { color: var(--green); text-shadow: 0 0 34px rgba(0,231,1,.5), 0 6px 18px rgba(0,0,0,.7); }
.verdict.flat { color: var(--text-2); text-shadow: 0 6px 18px rgba(0,0,0,.7); }
@keyframes stamp {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(2.1) rotate(-9deg); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(.94) rotate(2deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
}

/* the balance flashes when it moves */
.wallet-amt.bump { animation: popIn .3s ease; }
.wallet-amt.up span { color: var(--green); transition: color .5s; }
.wallet-amt.down span { color: var(--red); transition: color .5s; }

/* big-win shimmer across the multiplier */
.bigmult.shimmer {
  background: linear-gradient(100deg, var(--green) 30%, #fff 50%, var(--green) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 1.1s linear 2;
}

.mine-cell.gem { animation: popIn .24s cubic-bezier(.2,.9,.3,1); }
.tower-cell.good, .tower-cell.bad { animation: popIn .2s ease; }
.keno-cell.hit { animation: popIn .3s cubic-bezier(.2,.9,.3,1) both; }
.card-face { transition: transform .18s; }

.mute { width: 36px; height: 36px; border-radius: var(--r); background: var(--panel-2); display: grid; place-items: center; }
.mute:hover { background: var(--panel-3); }
.mute svg { width: 17px; height: 17px; }

@media (prefers-reduced-motion: reduce) {
  .anim-flip, .anim-pop, .anim-shake, .anim-glow, .float-win, .bigmult.shimmer { animation: none !important; }
}

@media (max-width: 900px) {
  .table { grid-template-columns: 1fr; }
  .mines-grid { grid-template-columns: repeat(5, 54px); }
  .mine-cell { width: 54px; height: 54px; }
}

/* live player count in the top bar */
.online { display: flex; align-items: center; gap: 7px; padding: 0 12px; height: 36px;
  background: var(--panel-2); border-radius: var(--r); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.online b { color: var(--text); font-family: var(--mono); font-weight: 700; }
.online i { width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .35; } }
@media (max-width: 820px) { .online { display: none; } }

/* send sheckles */
.sendbtn { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  background: var(--panel-2); border-radius: var(--r); font-size: 12.5px; font-weight: 700;
  color: var(--text-2); transition: background .15s, color .15s; white-space: nowrap; }
.sendbtn:hover { background: var(--panel-3); color: var(--text); }
.sendbtn svg { width: 14px; height: 14px; }
.sendlab { display: block; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700; margin: 12px 0 5px; }
@media (max-width: 900px) { .sendbtn span, .sendbtn { padding: 0 10px; } }

/* ---------- case opening ---------- */
.case-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.case-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 10px; background: var(--panel-2); border-left: 3px solid var(--tint, #666);
  text-align: left; transition: background .14s; }
.case-chip:hover { background: var(--panel-3); }
.case-chip.on { background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--tint, #666); }
.case-chip b { font-size: 12px; color: var(--text); font-weight: 700; }
.case-chip i { font-size: 11px; color: var(--text-3); font-style: normal; }

.case-stage { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.case-head { font-size: 13px; color: var(--text-2); min-height: 18px; }
.case-reels { display: flex; flex-direction: column; gap: 8px; position: relative; }
/* the centre marker: one line down the whole stack */
.case-reels::before, .case-reels::after {
  content: ''; position: absolute; left: 50%; width: 2px; margin-left: -1px;
  top: -3px; bottom: -3px; background: var(--tint, var(--gold)); z-index: 3;
  box-shadow: 0 0 10px var(--tint, var(--gold)); pointer-events: none; }
.case-reels::after { filter: blur(3px); opacity: .7; }

.case-reel { position: relative; overflow: hidden; height: 118px;
  background: var(--panel-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
/* fade the edges so tiles arrive and leave instead of popping */
.case-reel::before, .case-reel::after { content: ''; position: absolute; top: 0; bottom: 0;
  width: 70px; z-index: 2; pointer-events: none; }
.case-reel::before { left: 0; background: linear-gradient(90deg, var(--panel-2), transparent); }
.case-reel::after { right: 0; background: linear-gradient(270deg, var(--panel-2), transparent); }
.case-reel.landed { box-shadow: inset 0 0 0 1px var(--tint, var(--gold)); }

.case-strip { display: flex; gap: 8px; height: 100%; will-change: transform; }
.case-tile { flex: 0 0 96px; height: 110px; margin: 4px 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; gap: 2px; padding: 6px 4px 4px;
  background: var(--panel-3); border-bottom: 3px solid var(--rc, #4a5b6b); }
.case-tile img { width: 100%; height: 58px; object-fit: contain; }
.ct-name { font-size: 9.5px; color: var(--text-2); text-align: center; line-height: 1.15;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ct-val { font-size: 10.5px; font-weight: 800; color: var(--rc, var(--text)); margin-top: auto; }

/* rarity ladder, relative to what the case costs */
.r1 { --rc: #55697a; } .r2 { --rc: #4a9de0; } .r3 { --rc: #9b5cff; }
.r4 { --rc: #ffc93c; } .r5 { --rc: #ff4d4d; }

.case-out { display: flex; flex-wrap: wrap; gap: 8px; min-height: 4px; }
.case-won { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  background: var(--panel-2); border-left: 3px solid var(--rc, #4a5b6b); }
.case-won img { width: 34px; height: 34px; object-fit: contain; }
.cw-n { font-size: 12px; color: var(--text-2); }
.cw-v { font-size: 12.5px; font-weight: 800; color: var(--rc, var(--text)); }

.case-odds { margin-top: 14px; max-height: 320px; overflow-y: auto; }
.co-head { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700; margin-bottom: 6px; }
.co-row { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 8px; align-items: center;
  padding: 4px 6px; border-left: 2px solid var(--rc, #4a5b6b); margin-bottom: 3px;
  background: var(--panel-2); }
.co-row img { width: 26px; height: 22px; object-fit: contain; }
.co-n { font-size: 11px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-v { font-size: 11px; font-weight: 700; color: var(--rc, var(--text)); }
.co-p { font-size: 10px; color: var(--text-3); min-width: 62px; text-align: right; }

@media (max-width: 700px) {
  .case-pick { grid-template-columns: 1fr; }
  .case-reel { height: 104px; }
}

/* ---------- case battles ---------- */
.bt-root { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.bt-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.bt-bar h3 { font-size: 15px; font-weight: 800; text-transform: capitalize; }
.bt-create { margin-left: auto; padding: 9px 18px; background: linear-gradient(145deg,#b04ae0,#7a25b0);
  color: #fff; font-weight: 800; font-size: 13px; display: flex; gap: 8px; }
.bt-create[disabled] { opacity: .45; }
.bt-round { margin-left: auto; font-size: 13px; color: var(--text-2); font-weight: 700; }
.bt-again { margin-left: 10px; }
.bt-lab { display: block; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700; margin: 14px 0 6px; }

.bt-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bt-mode { padding: 12px 10px; background: var(--panel-2); text-align: center; transition: background .14s; }
.bt-mode:hover { background: var(--panel-3); }
.bt-mode.on { background: linear-gradient(180deg,rgba(176,74,224,.30),rgba(176,74,224,.10));
  box-shadow: inset 0 0 0 1px #b04ae0; }
.bt-mode b { display: block; font-size: 13px; font-weight: 800; margin-bottom: 3px; }
.bt-mode.on b { color: #d79bff; }
.bt-mode span { font-size: 10.5px; color: var(--text-3); line-height: 1.3; }

.bt-rows { display: flex; gap: 26px; flex-wrap: wrap; }
.bt-seg button { font-size: 12px; }
.bt-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.bt-clear { margin-left: auto; }

.bt-picked { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bt-slot { position: relative; width: 108px; height: 132px; background: var(--panel-2);
  border-bottom: 3px solid var(--tint, #4a5b6b); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; padding: 8px; }
.bt-slot img { width: 100%; height: 58px; object-fit: contain; }
.bt-slot b { font-size: 10.5px; text-align: center; line-height: 1.15; }
.bt-slot i { font-size: 10.5px; font-style: normal; color: var(--text-3); }
.bt-x { position: absolute; top: 3px; right: 4px; width: 18px; height: 18px; font-size: 13px;
  color: var(--text-3); background: transparent; }
.bt-x:hover { color: #ff5c5c; }
.bt-add { border: 1px dashed var(--panel-3); border-bottom: 1px dashed var(--panel-3); background: transparent; }
.bt-add span { font-size: 22px; color: var(--text-3); }
.bt-add i { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.bt-shelf { margin-top: 12px; background: var(--panel-2); padding: 12px; }
.bt-shelf-head { display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
  font-weight: 700; margin-bottom: 10px; }
.bt-shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px;
  max-height: 300px; overflow-y: auto; }
.bt-card { padding: 8px 6px; background: var(--panel-3); border-bottom: 3px solid var(--tint, #4a5b6b);
  display: flex; flex-direction: column; align-items: center; gap: 3px; transition: transform .12s; }
.bt-card:hover { transform: translateY(-2px); }
.bt-card img { width: 100%; height: 46px; object-fit: contain; }
.bt-card b { font-size: 10px; text-align: center; line-height: 1.15; }
.bt-card i { font-size: 10px; font-style: normal; color: var(--text-3); }

.bt-list { display: flex; flex-direction: column; gap: 5px; }
.bt-none { font-size: 12.5px; color: var(--text-3); padding: 10px 0; }
.bt-row { display: grid; grid-template-columns: 74px 88px 68px 1fr 90px 46px auto;
  gap: 10px; align-items: center; padding: 8px 10px; background: var(--panel-2); font-size: 12px; }
.bt-rmode { text-transform: capitalize; color: #d79bff; font-weight: 700; }
.bt-rlay, .bt-rcases, .bt-rseats { color: var(--text-3); }
.bt-rcost { font-weight: 700; text-align: right; }

.bt-waitbtns { margin-left: auto; display: flex; gap: 8px; }
.bt-queue { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.bt-qc { width: 56px; padding: 5px 3px; background: var(--panel-2); border-bottom: 2px solid var(--tint, #4a5b6b);
  display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .45; transition: opacity .2s; }
.bt-qc.on { opacity: 1; box-shadow: inset 0 0 0 1px var(--tint, var(--gold)); }
.bt-qc img { width: 100%; height: 30px; object-fit: contain; }
.bt-qc i { font-size: 9px; font-style: normal; color: var(--text-3); }

.bt-seats { display: grid; gap: 8px; }
.seats-2 { grid-template-columns: repeat(2, 1fr); }
.seats-3 { grid-template-columns: repeat(3, 1fr); }
.seats-4 { grid-template-columns: repeat(4, 1fr); }
.seats-6 { grid-template-columns: repeat(6, 1fr); }
.bt-seat { background: var(--panel-2); padding: 8px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, opacity .3s; }
.bt-seat.me { box-shadow: inset 0 0 0 1px var(--gold); }
.bt-seat.won { box-shadow: inset 0 0 0 2px var(--green); }
.bt-seat.lost { opacity: .5; }
/* team colours, so 2v2 reads as two sides rather than four strangers */
.bt-seat.t0 { border-top: 3px solid #4a9de0; }
.bt-seat.t1 { border-top: 3px solid #e0453c; }
.bt-seat.t2 { border-top: 3px solid #2fb84d; }
.bt-who { font-size: 11px; font-weight: 700; color: var(--text-2); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-reel { height: 148px; overflow: hidden; background: var(--panel-3); position: relative; }
.bt-reel::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  margin-top: -1px; background: var(--gold); opacity: .55; z-index: 2; }
.bt-strip { will-change: transform; }
.bt-cell { height: 74px; display: grid; place-items: center; padding: 6px; }
.bt-cell img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bt-total { text-align: center; font-size: 13px; font-weight: 800; }
.bt-got { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; min-height: 4px; }
.bt-chip { width: 22px; height: 22px; object-fit: contain; background: var(--panel-3); padding: 2px; }

@media (max-width: 860px) {
  .bt-modes { grid-template-columns: 1fr 1fr; }
  .seats-4, .seats-6 { grid-template-columns: repeat(3, 1fr); }
  .bt-row { grid-template-columns: 1fr 1fr auto; }
}

/* case chips carry the case art */
.case-chip { flex-direction: row; align-items: center; gap: 9px; }
.case-chip img { width: 34px; height: 30px; object-fit: contain; flex: 0 0 34px; }
.case-chip span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ---------- case battles: polish ---------- */
.bt-toggle { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px;
  background: var(--panel-2); font-size: 12px; font-weight: 700; color: var(--text-3);
  transition: background .15s, color .15s; }
.bt-toggle:hover { background: var(--panel-3); }
.bt-toggle.on { color: #d79bff; box-shadow: inset 0 0 0 1px #b04ae0; }
.bt-knob { width: 30px; height: 16px; border-radius: 9px; background: var(--panel-3);
  position: relative; transition: background .18s; flex: 0 0 30px; }
.bt-knob::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--text-3); transition: transform .18s, background .18s; }
.bt-toggle.on .bt-knob { background: rgba(176,74,224,.35); }
.bt-toggle.on .bt-knob::after { transform: translateX(14px); background: #d79bff; }
.bt-toggle em { font-style: normal; width: 15px; height: 15px; border-radius: 50%;
  background: var(--panel-3); color: var(--text-3); font-size: 10px; font-weight: 800;
  display: grid; place-items: center; cursor: help; }

.bt-crazytag { font-size: 9.5px; letter-spacing: .1em; font-weight: 800; color: #d79bff;
  background: rgba(176,74,224,.18); padding: 3px 6px; margin-left: 6px; vertical-align: middle; }
.bt-rmode em { font-style: normal; font-size: 9px; letter-spacing: .08em; color: #d79bff;
  background: rgba(176,74,224,.18); padding: 1px 4px; }
.bt-potline { margin-left: auto; font-size: 12px; color: var(--text-3); }
.bt-potline b { color: var(--gold); font-size: 13.5px; margin-left: 4px; }
.bt-round { margin-left: 14px; }
.bt-row.over { opacity: .6; }

/* reel cells now carry the item name and value, so the strip is readable */
.bt-reel { height: 168px; }
.bt-cell { height: 84px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1px; padding: 5px 4px; }
.bt-cell img { width: 100%; height: 42px; object-fit: contain; }
.bc-n { font-size: 8.5px; color: var(--text-3); line-height: 1.1; text-align: center;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-v { font-size: 9.5px; font-weight: 800; color: var(--text-2); }

/* seats read as cards with a clear standing */
.bt-seat { padding: 9px; gap: 7px; }
.bt-seat.won { background: linear-gradient(180deg, rgba(0,231,1,.10), var(--panel-2)); }
.bt-total { font-size: 14px; letter-spacing: -.01em; }
.bt-got { gap: 4px; }
.bt-chip { width: 26px; height: 26px; }

/* ---------- clash spin + lobby ---------- */
.bt-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.bt-toggle.clash.on { color: #ffd24a; box-shadow: inset 0 0 0 1px #c9a227; }
.bt-toggle.clash.on .bt-knob { background: rgba(255,201,60,.3); }
.bt-toggle.clash.on .bt-knob::after { background: #ffd24a; }
.bt-clashicon { width: 16px; height: 14px; object-fit: contain; }
.bt-clashtag { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px;
  letter-spacing: .1em; font-weight: 800; color: #ffd24a; background: rgba(255,201,60,.15);
  padding: 3px 6px; margin-left: 6px; vertical-align: middle; }
.bt-clashtag img { width: 12px; height: 11px; object-fit: contain; }
.bt-chip.clash { box-shadow: 0 0 0 2px #ffd24a; }

/* the golden-ticket draw sits over the board: it belongs to one seat */
.bt-clashwrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(6,10,14,.82); animation: clashin .22s ease-out; }
@keyframes clashin { from { opacity: 0; } to { opacity: 1; } }
.bt-clashcard { width: min(780px, 94vw); background: var(--panel); padding: 18px;
  box-shadow: 0 0 0 1px #c9a227, 0 24px 70px rgba(0,0,0,.6); }
.bt-clashhead { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.bt-clashhead img { width: 26px; height: 22px; object-fit: contain; }
.bt-clashhead b { font-size: 15px; color: #ffd24a; letter-spacing: .04em; }
.bt-clashhead span { font-size: 12px; color: var(--text-3); }
.bt-clashreel { position: relative; height: 132px; overflow: hidden; background: var(--panel-2); }
.bt-clashreel::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px; background: #ffd24a; z-index: 3; box-shadow: 0 0 12px #ffd24a; }
.bt-clashreel::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, var(--panel-2), transparent 18%, transparent 82%, var(--panel-2)); }
.bt-clashstrip { display: flex; gap: 8px; height: 100%; will-change: transform; }
.bt-clashcell { flex: 0 0 100px; height: 124px; margin: 4px 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; padding: 8px 5px; background: var(--panel-3);
  border-bottom: 3px solid #c9a227; }
.bt-clashcell img { width: 100%; height: 58px; object-fit: contain; }
.bt-clashcell .bc-v { color: #ffd24a; font-size: 12px; }
.bt-clashout { margin-top: 12px; min-height: 20px; font-size: 13.5px; color: var(--text-2); text-align: center; }
.bt-clashout b { color: var(--text); }

.bt-bar #bt-back { margin-right: 4px; }
.bt-bar h3 + .bt-create, .bt-bar #bt-new { margin-left: auto; }

/* ---------- case preview ---------- */
.bt-card { position: relative; }
.bt-quick { position: absolute; top: 3px; right: 4px; width: 18px; height: 18px;
  display: grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--text-3);
  background: rgba(0,0,0,.35); }
.bt-quick:hover { color: var(--green); }
.bt-slot[data-i] { cursor: pointer; }
.bt-qc[data-peek] { cursor: pointer; }

.bt-peek { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center;
  background: rgba(6,10,14,.82); }
.bt-peekcard { width: min(560px, 94vw); max-height: 86vh; display: flex; flex-direction: column;
  background: var(--panel); box-shadow: 0 0 0 1px var(--tint, #444), 0 24px 70px rgba(0,0,0,.6); }
.bt-peekhead { display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 2px solid var(--tint, #444); }
.bt-peekhead img { width: 52px; height: 44px; object-fit: contain; }
.bt-peekhead b { display: block; font-size: 15px; }
.bt-peekhead span { font-size: 11.5px; color: var(--text-3); }
.bt-peekprice { margin-left: auto; font-size: 15px; font-weight: 800; color: var(--gold); }
.bt-peekx { width: 26px; height: 26px; font-size: 18px; color: var(--text-3); background: transparent; }
.bt-peekx:hover { color: #ff5c5c; }
.bt-peekrows { overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.bt-peekrow { display: grid; grid-template-columns: 32px 1fr auto 74px; gap: 10px; align-items: center;
  padding: 5px 8px; background: var(--panel-2); border-left: 2px solid var(--rc, #4a5b6b); }
.bt-peekrow img { width: 32px; height: 26px; object-fit: contain; }
.pk-n { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-v { font-size: 12px; font-weight: 700; color: var(--rc, var(--text)); }
.pk-p { font-size: 11px; color: var(--text-3); text-align: right; }
.bt-peekfoot { display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-top: 1px solid var(--panel-2); font-size: 11.5px; color: var(--text-3); }
.bt-peekfoot b { color: var(--text-2); }
.bt-peekfoot .btn-join { margin-left: auto; }

/* the eye that opens a case preview */
.bt-quick { width: 22px; height: 22px; background: rgba(0,0,0,.45); color: var(--text-3); }
.bt-quick svg { width: 14px; height: 14px; }
.bt-quick:hover { color: var(--gold); background: rgba(0,0,0,.7); }
.bt-card { cursor: pointer; }

/* ---------- sheckle spin, inline in the seat ---------- */
.bt-cell.star img { filter: drop-shadow(0 0 6px rgba(255,210,74,.75)); }
.bt-cell.star .bc-n { color: #ffd24a; font-weight: 800; }
.bt-cell.star .bc-v { color: #ffd24a; font-size: 13px; }

/* the seat takes over while its own spin runs */
.bt-seat.starring { box-shadow: inset 0 0 0 2px #ffd24a; }
.bt-seat.starring .bt-reel { background: linear-gradient(180deg, #241d05, var(--panel-3)); }
.bt-seat.starring .bt-reel::before { background: #ffd24a; opacity: 1; box-shadow: 0 0 10px #ffd24a; }
.bt-starban { position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 3px 0; background: rgba(36,29,5,.92); color: #ffd24a;
  font-size: 9.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.bt-starban img { width: 12px; height: 12px; object-fit: contain; }

/* spectators */
.bt-rwatch, .bt-watchers { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.bt-watchers { margin-right: 4px; }
.bt-row { grid-template-columns: 74px 84px 64px 1fr 88px 44px 44px auto; }
@media (max-width: 860px) { .bt-row { grid-template-columns: 1fr 1fr auto; } }

/* ---------- jackpot wheel ---------- */
.bt-wheelwrap { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center;
  background: rgba(6,10,14,.85); }
.bt-wheelcard { width: min(460px, 92vw); background: var(--panel); padding: 20px;
  box-shadow: 0 0 0 1px #b04ae0, 0 24px 70px rgba(0,0,0,.6); text-align: center; }
.bt-wheelhead { font-size: 13.5px; color: var(--text-2); margin-bottom: 16px; }
.bt-wheelbox { position: relative; width: 260px; height: 260px; margin: 0 auto; }
.bt-wheel { width: 100%; height: 100%; border-radius: 50%; will-change: transform;
  box-shadow: 0 0 0 4px var(--panel-3), 0 0 30px rgba(0,0,0,.5); }
.bt-needle { position: absolute; top: -10px; left: 50%; margin-left: -9px; z-index: 3;
  width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 18px solid var(--gold); filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.bt-wheelkey { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; margin-top: 16px; }
.bt-wheelkey span { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); }
.bt-wheelkey i { width: 10px; height: 10px; border-radius: 2px; }

/* ---------- slots ---------- */
.sl-stage { width: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.sl-jack { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
  font-weight: 700; padding: 7px 16px; background: var(--panel-2);
  box-shadow: inset 0 0 0 1px rgba(255,201,60,.35); }
.sl-jack b { color: var(--gold); font-size: 16px; letter-spacing: -.01em; margin-left: 8px;
  text-transform: none; }
.sl-frame { background: var(--panel-2); padding: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.sl-grid { display: grid; grid-template-columns: repeat(5, 96px); gap: 6px; }
.sl-col { height: 288px; overflow: hidden; background: var(--panel-3); }
.sl-strip { will-change: transform; }
.sl-cell { height: 96px; display: grid; place-items: center; padding: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); transition: background .2s; }
.sl-cell img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sl-cell.hit { background: linear-gradient(180deg, rgba(255,201,60,.28), rgba(255,201,60,.06));
  box-shadow: inset 0 0 0 2px var(--gold); }

.sl-pay { margin-top: 14px; max-height: 300px; overflow-y: auto; }
.sl-payrow, .sl-paykey { display: grid; grid-template-columns: 24px 1fr 52px 52px 60px;
  gap: 6px; align-items: center; padding: 3px 6px; font-size: 11px; }
.sl-payrow { background: var(--panel-2); margin-bottom: 3px; }
.sl-payrow img { width: 24px; height: 20px; object-fit: contain; }
.sl-pn { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-p3, .sl-p4, .sl-p5 { text-align: right; font-weight: 700; color: var(--text-2); }
.sl-p5 { color: var(--gold); }
.sl-paykey { color: var(--text-3); font-size: 9.5px; letter-spacing: .08em; padding-top: 2px; }
.sl-paykey span { text-align: right; }

/* the jackpot chip in the topbar */
.jackchip { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  background: var(--panel-2); font-size: 12px; font-weight: 700; color: var(--text-3);
  white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255,201,60,.3); }
.jackchip b { color: var(--gold); font-size: 13px; }
@media (max-width: 900px) { .jackchip { display: none; } }

@media (max-width: 700px) {
  .sl-grid { grid-template-columns: repeat(5, 60px); }
  .sl-col { height: 180px; }
  .sl-cell { height: 60px; padding: 5px; }
}

/* jackpot win banner */
.jackwin { position: fixed; left: 50%; top: 22%; transform: translateX(-50%); z-index: 90;
  background: linear-gradient(180deg,#3a2c00,#1a1400); box-shadow: 0 0 0 2px var(--gold), 0 18px 60px rgba(0,0,0,.7);
  padding: 22px 40px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.jackwin b { font-size: 13px; letter-spacing: .28em; color: var(--gold); }
.jackwin span { font-size: 12px; color: var(--text-2); }
.jackwin i { font-style: normal; font-size: 34px; font-weight: 800; color: #fff; }

/* the nickname is clickable now */
.renameable { cursor: pointer; border-bottom: 1px dotted var(--text-3); }
.renameable:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* fast spin, reachable from inside a battle by anyone watching */
.bt-fastmini { margin-left: auto; height: 28px; padding: 0 12px; background: var(--panel-2);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3); transition: background .14s, color .14s; }
.bt-fastmini:hover { background: var(--panel-3); color: var(--text); }
.bt-fastmini.on { color: #d79bff; box-shadow: inset 0 0 0 1px #b04ae0; }
.bt-potline { margin-left: 14px; }
.bt-waitbtns .bt-fastmini { margin-left: 0; }

/* fast is a property of the battle, shown so everyone knows why it is quick */
.bt-fasttag { font-size: 9.5px; letter-spacing: .1em; font-weight: 800; color: #6cf0d0;
  background: rgba(108,240,208,.16); padding: 3px 6px; margin-left: 6px; vertical-align: middle; }

/* ---------- live chat rail ---------- */
.chat-rail { position: fixed; left: 0; top: 0; bottom: 0; width: 268px; z-index: 60;
  background: var(--panel); box-shadow: 1px 0 0 rgba(255,255,255,.06);
  display: flex; flex-direction: column; transition: transform .22s ease; }
.chat-rail.shut { transform: translateX(-268px); }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.chat-head b { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.chat-count { font-size: 10.5px; color: var(--text-3); }
.chat-toggle { margin-left: auto; width: 24px; height: 24px; background: var(--panel-2);
  color: var(--text-3); font-size: 11px; }
.chat-toggle:hover { background: var(--panel-3); color: var(--text); }
.chat-log { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex;
  flex-direction: column; gap: 8px; }
.chat-empty { font-size: 12px; color: var(--text-3); }
.chat-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; font-size: 12px; }
.chat-who { font-size: 11px; font-weight: 700; color: var(--gold); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.chat-row.mine .chat-who { color: var(--green); }
.chat-row.op .chat-who { color: #d79bff; }
.chat-who i { font-style: normal; font-size: 9px; background: rgba(176,74,224,.2);
  padding: 1px 4px; margin-left: 3px; }
.chat-when { font-size: 9.5px; color: var(--text-3); }
.chat-text { grid-column: 1 / -1; color: var(--text-2); line-height: 1.35; word-break: break-word; }
.chat-box { display: flex; gap: 6px; padding: 10px 12px; box-shadow: 0 -1px 0 rgba(255,255,255,.06); }
.chat-box .inp { flex: 1; min-width: 0; }
.chat-box .btn-join { padding: 0 12px; font-size: 12px; }
.chat-rail .err { padding: 0 12px 10px; }

/* a tab to bring it back when it is hidden */
.chat-tab { position: fixed; left: 0; top: 50%; z-index: 59; transform: translateY(-50%);
  writing-mode: vertical-rl; padding: 14px 6px; background: var(--panel-2); color: var(--text-3);
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; opacity: 0; pointer-events: none;
  transition: opacity .2s; }
.chat-rail.shut ~ .chat-tab { opacity: 1; pointer-events: auto; }
.chat-tab:hover { color: var(--gold); }

/* push the page across rather than covering it, on wide screens only */
@media (min-width: 1180px) {
  body.chat-open { padding-left: 268px; }
}
@media (max-width: 1179px) {
  .chat-rail { width: 240px; }
  .chat-rail.shut { transform: translateX(-240px); }
}

/* chat: day separators and the jump-back nudge */
.chat-day { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; }
.chat-day::before, .chat-day::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.08); }
.chat-day span { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.chat-jump { position: absolute; left: 12px; right: 12px; bottom: 92px; height: 26px;
  background: var(--panel-3); color: var(--gold); font-size: 11px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 2; }
.chat-jump.on { opacity: 1; pointer-events: auto; }
.chat-rail { position: fixed; }

/* jackpot and other system lines in chat */
.chat-row.sys { grid-template-columns: 1fr auto; align-items: baseline;
  background: rgba(255,201,60,.10); padding: 6px 8px; border-left: 2px solid var(--gold); }
.chat-row.sys .chat-text { grid-column: 1; color: var(--gold); font-weight: 700; }

/* ---------- levels, luck, rewards ---------- */
.lvlchip { gap: 6px; }
.lvlchip b { color: var(--gold); font-size: 13px; }
.lvlchip span { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.lvlchip.lucky { box-shadow: inset 0 0 0 1px var(--green); color: var(--green); }
.lvl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chat-lvl { display: inline-block; min-width: 16px; padding: 0 4px; margin-right: 5px;
  background: var(--panel-3); color: var(--text-3); font-size: 9.5px; font-weight: 800;
  text-align: center; vertical-align: middle; }

.modal-card.wide { max-width: 520px; }
.pf-row { margin: 14px 0; }
.pf-lab { font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700; margin-bottom: 6px; }
.pf-lab b { color: var(--text); font-size: 13px; letter-spacing: 0; }
.pf-lab.full b { color: var(--green); }
.pf-bar { height: 8px; background: var(--panel-3); overflow: hidden; }
.pf-bar span { display: block; height: 100%; background: var(--gold); transition: width .3s; }
.pf-bar.luck span { background: linear-gradient(90deg, #4a9de0, var(--green)); }
.pf-sub { font-size: 11.5px; color: var(--text-3); margin-top: 5px; line-height: 1.4; }
.pf-vouchers { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-v { display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 7px 10px; background: var(--panel-2); text-align: left; }
.pf-v:hover { background: var(--panel-3); }
.pf-v b { font-size: 12px; }
.pf-v i { font-size: 10.5px; font-style: normal; color: var(--text-3); }
.pf-loanbox { display: flex; gap: 6px; margin-top: 8px; }
.pf-loanbox .inp { flex: 1; min-width: 0; }
.pf-out { min-height: 4px; }
.pf-won { display: flex; align-items: center; gap: 10px; padding: 10px;
  background: var(--panel-2); border-left: 3px solid var(--gold); margin-top: 10px; }
.pf-won img { width: 42px; height: 42px; object-fit: contain; }
.pf-won span { display: flex; flex-direction: column; }
.pf-won i { font-size: 10.5px; font-style: normal; color: var(--text-3); }
.pf-wonv { margin-left: auto; font-weight: 800; color: var(--green); font-size: 15px; }
