/* WikiCasino — reprend la direction artistique de WikiMasters :
   fond presque noir, menu latéral, vert menthe, cartes pastel par rareté, titres serrés. */
:root {
  --bg: #0e0f0f;
  --bg-2: #141616;
  --panel: #171a1a;
  --panel-2: #1c2020;
  --line: #242828;
  --line-2: #2e3333;
  --text: #eceeed;
  --muted: #9aa19e;
  --dim: #6c7370;
  --mint: #3ddc97;
  --mint-2: #2bc483;
  --mint-bg: #12291f;
  --mint-soft: rgba(61, 220, 151, .12);
  --btn: #1f7556;
  --btn-hover: #248a64;
  --btn-text: #06140e;
  --red: #ef4f5d;
  --red-soft: rgba(239, 79, 93, .12);
  --gold: #f0c94b;
  --blue: #3b6cf6;
  --r-c: #cff3e3;   /* commune */
  --r-r: #dccbf8;   /* rare */
  --r-sr: #f7b5dc;  /* super rare */
  --r-l: linear-gradient(135deg, #f7e27c 0%, #d8b23a 45%, #f3d86a 70%, #b98f22 100%);
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Manrope', 'Inter', system-ui, sans-serif;
  --side: 290px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.03em; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1.02; }
h2 { font-size: 26px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mint { color: var(--mint); }
.red { color: var(--red); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; word-break: break-all; }
.hidden { display: none !important; }

/* ------------------------------------------------------------ structure */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg-2);
  border-right: 1px solid var(--line); padding: 34px 26px 24px; display: flex; flex-direction: column; gap: 6px;
}
.logo { font-family: var(--display); font-weight: 800; font-size: 29px; letter-spacing: -.035em; color: var(--text); margin: 0 4px 30px; display: block; }
.logo b { color: var(--mint); font-weight: 800; }
.logo:hover { text-decoration: none; }
.nav a {
  display: flex; align-items: center; gap: 16px; padding: 15px 20px; border-radius: 12px; color: #cfd4d2;
  font-size: 17px; margin-bottom: 4px; position: relative; transition: background .15s, color .15s;
}
.nav a svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav a:hover { background: #1a1e1d; text-decoration: none; }
.nav a.active { background: var(--mint-bg); color: var(--mint); }
.nav a.active::after { content: ''; position: absolute; right: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.nav .sep { height: 1px; background: var(--line); margin: 14px 8px; }
.side-foot { margin-top: auto; padding: 18px 8px 0; font-size: 12.5px; color: var(--dim); line-height: 1.5; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 28px; min-height: 68px; }
.top-logo { display: none; font-size: 21px; margin: 0 auto 0 4px !important; }
.topbar .burger { display: none; margin-right: auto; background: none; border: 0; padding: 6px; cursor: pointer; }
.topbar .burger svg { width: 28px; height: 28px; stroke: var(--text); fill: none; stroke-width: 1.8; }
.wb-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: #111b17;
  border: 1px solid #1c2a24; color: var(--mint); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
}
.wb-ico { width: 20px; height: 20px; flex: none; }
.wb { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.wb .wb-ico { width: 15px; height: 15px; }
.user-chip { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.page { padding: 8px 40px 60px; max-width: 1280px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 0 26px; flex-wrap: wrap; }
.page-head p { margin: 8px 0 0; color: var(--muted); }
.announce { margin: 0 28px 8px; padding: 12px 16px; border-radius: 12px; background: var(--mint-bg); color: var(--mint); border: 1px solid #1d3d30; }

/* ------------------------------------------------------------ éléments */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 12px;
  background: var(--btn); color: var(--btn-text); font-weight: 650; padding: 14px 22px; font-size: 16px; transition: background .15s, transform .05s, opacity .15s;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.big { padding: 18px 26px; font-size: 18px; width: 100%; }
.btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: #242929; }
.btn.danger { background: #5a1d24; color: #ffd9dd; }
.btn.danger:hover { background: #702630; }
.btn.sm { padding: 8px 12px; font-size: 13.5px; border-radius: 9px; }
.btn.round { width: 58px; height: 58px; border-radius: 50%; padding: 0; background: #1b1f1f; border: 1px solid var(--line-2); color: var(--text); }

.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.field label { font-size: 15px; color: #d7dbd9; }
.input, select.input {
  width: 100%; background: #1a1d1d; border: 1px solid #272b2b; border-radius: 9px; padding: 15px 18px; font-size: 16px; outline: none;
  transition: border-color .15s, background .15s;
}
.input:focus { border-color: #2f6e55; background: #1c2020; }
.input::placeholder { color: #5f6664; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.input-row .btn { flex: none; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 14px; font-size: 14.5px; color: #cfd4d2; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--mint); flex: none; }
.seg { display: inline-flex; background: #151818; border: 1px solid var(--line-2); border-radius: 11px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; padding: 9px 16px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--mint-bg); color: var(--mint); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.game { grid-template-columns: 340px 1fr; align-items: start; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .k { color: var(--muted); font-size: 13px; }
.stat .v { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 700; background: var(--panel-2); color: var(--muted); }
.badge.ok { background: var(--mint-soft); color: var(--mint); }
.badge.warn { background: rgba(240, 201, 75, .13); color: var(--gold); }
.badge.bad { background: var(--red-soft); color: var(--red); }
.tag { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 7px; border-radius: 7px; font-size: 13px; font-weight: 700; color: #1a1a1a; }
.tag.c { background: var(--r-c); } .tag.r { background: #b9a1f3; } .tag.sr { background: #f07cc0; } .tag.l { background: #f1d257; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--dim); font-weight: 600; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid #1d2121; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }
.empty { color: var(--dim); padding: 18px 4px; text-align: center; }

.toast-box { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast { background: #1b2020; border: 1px solid var(--line-2); padding: 13px 16px; border-radius: 12px; max-width: 380px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: pop .2s ease-out; }
.toast.err { border-color: #5a1d24; color: #ffc9ce; }
.toast.ok { border-color: #1d4a37; color: var(--mint); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* ------------------------------------------------------------ fenêtre de connexion */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: grid; place-items: center; z-index: 50; padding: 16px; backdrop-filter: blur(3px); }
.modal { width: 100%; max-width: 520px; background: #121414; border: 1px solid var(--line); border-radius: 18px; padding: 34px; max-height: 94vh; overflow-y: auto; }
.modal h2 { font-size: 30px; margin-bottom: 8px; }
.modal .sub { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.modal .close { float: right; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }

/* ------------------------------------------------------------ cartes façon WikiMasters */
.wcard {
  border-radius: 18px; overflow: hidden; background: var(--r-c); color: #121212; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.35); transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer; text-decoration: none !important; position: relative; min-height: 360px;
}
.wcard:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 26px 50px rgba(0,0,0,.5); }
.wcard .art { height: 168px; position: relative; display: grid; place-items: center; overflow: hidden; background: #202424; }
.wcard .art svg { width: 100%; height: 100%; }
.wcard .tag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.wcard .body { padding: 16px 16px 0; flex: 1; }
.wcard .body h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #111; }
.wcard .body p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: #2f3432; }
.wcard .foot { display: flex; justify-content: space-between; align-items: center; margin: 16px 16px 14px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.14); font-weight: 700; font-size: 15px; }
.wcard .foot span { display: inline-flex; align-items: center; gap: 6px; }
.wcard .foot svg { width: 16px; height: 16px; }
.wcard.r { background: var(--r-r); }
.wcard.sr { background: var(--r-sr); }
.wcard.l { background: var(--r-l); }
.wcard .soon { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 6px; }
.lobby { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 18px; }

.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: end; margin: 18px 0 42px; }
.hero p { color: #b8bebb; font-size: 18px; line-height: 1.6; margin: 20px 0 0; max-width: 620px; }
.hero .cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.reserve-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.reserve-box .bar { height: 10px; background: #232828; border-radius: 99px; overflow: hidden; margin: 12px 0 8px; }
.reserve-box .bar i { display: block; height: 100%; background: var(--mint); border-radius: 99px; }

.feed-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 10px 2px; border-bottom: 1px solid #1d2121; font-size: 14px; align-items: center; }
.feed-row:last-child { border-bottom: 0; }

/* ------------------------------------------------------------ jeux : communs */
.bet-panel .amount-tools { display: flex; gap: 6px; }
.bet-panel .amount-tools .btn { flex: 1; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; color: var(--muted); font-size: 14px; }
.kv b { color: var(--text); font-variant-numeric: tabular-nums; }
.stage { background: radial-gradient(1200px 400px at 50% -10%, #17231e 0%, var(--panel) 60%); border: 1px solid var(--line); border-radius: 18px; min-height: 440px; padding: 26px; position: relative; overflow: hidden; }
.result-line { text-align: center; font-family: var(--display); font-weight: 800; font-size: 22px; min-height: 30px; margin-top: 16px; }
.hist-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.hist-chips span { padding: 5px 10px; border-radius: 8px; background: var(--panel-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: default; }
.hist-chips span.win { color: var(--mint); background: var(--mint-soft); }
.hist-chips span.lose { color: var(--red); background: var(--red-soft); }

/* dés */
.dice-big { text-align: center; font-family: var(--display); font-weight: 800; font-size: 96px; letter-spacing: -.04em; margin: 30px 0 10px; font-variant-numeric: tabular-nums; transition: color .2s; }
.dice-track { position: relative; height: 16px; border-radius: 99px; margin: 40px 10px 10px; }
.dice-track .zone { position: absolute; inset: 0; border-radius: 99px; }
.dice-track input[type=range] { position: absolute; inset: -8px 0; width: 100%; appearance: none; background: none; margin: 0; }
.dice-track input[type=range]::-webkit-slider-thumb { appearance: none; width: 30px; height: 30px; border-radius: 9px; background: #f2f4f3; border: 3px solid var(--bg); cursor: grab; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.dice-track input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 9px; background: #f2f4f3; border: 3px solid var(--bg); cursor: grab; }
.dice-marker { position: absolute; top: -46px; transform: translateX(-50%); background: #f2f4f3; color: #111; font-weight: 800; padding: 5px 10px; border-radius: 8px; font-size: 14px; transition: left .45s cubic-bezier(.2,.8,.2,1); white-space: nowrap; }
.dice-marker::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: #f2f4f3; }
.dice-scale { display: flex; justify-content: space-between; color: var(--dim); font-size: 12.5px; margin: 0 10px; }
.dice-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 34px; }

/* pile ou face */
.coin-wrap { perspective: 1000px; display: grid; place-items: center; height: 300px; }
.coin { width: 200px; height: 200px; position: relative; transform-style: preserve-3d; transition: transform 1.6s cubic-bezier(.2,.75,.25,1); }
.coin .side { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
.coin .pile { background: radial-gradient(circle at 35% 30%, #7df0bf, #1f9a67 70%); color: #06231a; box-shadow: inset 0 0 0 10px rgba(0,0,0,.12), 0 20px 50px rgba(61,220,151,.25); }
.coin .face { background: radial-gradient(circle at 35% 30%, #f3e39b, #c79d2c 70%); color: #3a2a04; transform: rotateY(180deg); box-shadow: inset 0 0 0 10px rgba(0,0,0,.12), 0 20px 50px rgba(240,201,75,.25); }
.coin .side small { display: block; font-size: 13px; font-weight: 700; opacity: .7; text-align: center; margin-top: 2px; letter-spacing: 0; }
.coin-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coin-pick button { padding: 16px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--panel-2); cursor: pointer; font-weight: 700; font-size: 16px; }
.coin-pick button.on.pile { border-color: var(--mint); background: var(--mint-bg); color: var(--mint); }
.coin-pick button.on.face { border-color: var(--gold); background: rgba(240,201,75,.1); color: var(--gold); }

/* roulette */
.roul-top { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; margin-bottom: 22px; }
.wheel-box { position: relative; width: 250px; height: 250px; }
.wheel { width: 100%; height: 100%; border-radius: 50%; transition: transform 4.5s cubic-bezier(.12,.7,.12,1); }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border: 11px solid transparent; border-top: 18px solid var(--mint); z-index: 2; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.wheel-center { position: absolute; inset: 31%; border-radius: 50%; background: #111; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 34px; border: 3px solid #2a2f2f; }
.rtable { display: grid; grid-template-columns: 52px repeat(12, 1fr) 52px; gap: 4px; user-select: none; }
.rcell { position: relative; background: #1b1f1f; border-radius: 7px; height: 48px; display: grid; place-items: center; font-weight: 800; font-size: 15px; cursor: pointer; transition: filter .1s, outline .1s; font-variant-numeric: tabular-nums; }
.rcell:hover { filter: brightness(1.25); }
.rcell.rouge { background: #b8323f; } .rcell.noir { background: #262a2a; } .rcell.vert { background: #1f7556; }
.rcell.zero { grid-row: span 3; height: auto; }
.rcell.out { background: #171a1a; border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; }
.rcell.win { outline: 3px solid var(--mint); outline-offset: -1px; }
.chip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 30px; height: 30px; padding: 0 5px; border-radius: 50%; background: #f2f4f3; color: #111; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 3px dashed var(--mint-2); box-shadow: 0 3px 8px rgba(0,0,0,.5); pointer-events: none; }
.chips-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-pick button { width: 50px; height: 50px; border-radius: 50%; border: 3px dashed #555; background: #202424; cursor: pointer; font-weight: 800; font-size: 13px; }
.chips-pick button.on { border-color: var(--mint); background: var(--mint-bg); color: var(--mint); }

/* blackjack */
.bj-table { background: radial-gradient(900px 380px at 50% 0%, #163526 0%, #0f1a15 60%, #0d1411 100%); border: 1px solid #1d2f27; border-radius: 22px; padding: 28px 22px; min-height: 470px; display: flex; flex-direction: column; justify-content: space-between; }
.bj-row { text-align: center; }
.bj-row .who { color: #9fbcad; font-size: 14px; margin-bottom: 12px; }
.bj-row .who b { color: #fff; font-family: var(--display); font-size: 18px; margin-left: 6px; }
.hand { display: flex; justify-content: center; gap: 10px; min-height: 150px; flex-wrap: wrap; }
.pcard { width: 100px; height: 146px; border-radius: 12px; background: var(--r-c); color: #121212; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.45); animation: deal .35s ease-out both; }
.pcard .top { flex: 1; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -.04em; background: rgba(255,255,255,.35); }
.pcard .bot { display: flex; justify-content: space-between; padding: 7px 9px; font-weight: 800; font-size: 14px; border-top: 1px solid rgba(0,0,0,.12); }
.pcard.red { background: var(--r-sr); }
.pcard.red .top, .pcard.red .bot { color: #9b1745; }
.pcard.fig { background: var(--r-r); }
.pcard.fig.red { background: var(--r-sr); }
.pcard.ace { background: var(--r-l); }
.pcard.back { background: repeating-linear-gradient(45deg, #1f7556 0 10px, #1a6049 10px 20px); border: 4px solid #e9efec; }
.pcard.back .top, .pcard.back .bot { visibility: hidden; }
@keyframes deal { from { transform: translateY(-30px) rotate(-6deg); opacity: 0; } }
.bj-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bj-outcome { font-family: var(--display); font-weight: 800; font-size: 30px; text-align: center; min-height: 40px; letter-spacing: -.02em; }

/* crash */
.crash-stage { position: relative; height: 420px; }
.crash-stage canvas { width: 100%; height: 100%; display: block; }
.crash-mult { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; text-align: center; }
.crash-mult .m { font-family: var(--display); font-weight: 800; font-size: 86px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.crash-mult .s { color: var(--muted); font-size: 15px; margin-top: 4px; }
.crash-players { max-height: 280px; overflow-y: auto; }
.prow { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid #1d2121; font-size: 14px; }

/* équité */
.seed-box { display: grid; gap: 12px; }
.seed-box .kvv { background: #141717; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.seed-box .kvv .k { font-size: 12px; color: var(--dim); margin-bottom: 4px; }

/* portefeuille */
.steps { counter-reset: s; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.step::before { counter-increment: s; content: counter(s); width: 32px; height: 32px; border-radius: 10px; background: var(--mint-bg); color: var(--mint); display: grid; place-items: center; font-weight: 800; }
.step p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; }
.bank-list { display: grid; gap: 8px; margin-top: 10px; }
.bank-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #141717; border: 1px solid var(--line); padding: 11px 14px; border-radius: 10px; }
.copy { cursor: pointer; }
.big-amount { font-family: var(--display); font-weight: 800; font-size: 42px; letter-spacing: -.03em; color: var(--mint); }

/* ------------------------------------------------------------ mobile */
@media (max-width: 1080px) {
  .grid.game { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .roul-top { grid-template-columns: 1fr; justify-items: center; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; left: 0; top: 0; width: 290px; transform: translateX(-100%); transition: transform .2s; }
  .app.menu-open .side { transform: none; box-shadow: 20px 0 50px rgba(0,0,0,.6); }
  .topbar { padding: 12px 16px; }
  .topbar .burger { display: block; margin-right: 0; }
  .top-logo { display: block; }
  .hide-sm { display: none; }
  .page { padding: 4px 16px 50px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .rtable { grid-template-columns: 34px repeat(12, 1fr) 34px; gap: 2px; }
  .rcell { height: 38px; font-size: 12px; border-radius: 5px; }
  .dice-big { font-size: 70px; }
  .crash-stage { height: 320px; }
  .crash-mult .m { font-size: 60px; }
  .pcard { width: 76px; height: 112px; } .pcard .top { font-size: 32px; }
}
.rtable-wrap { overflow-x: auto; padding-bottom: 6px; }
@media (max-width: 860px) { .rtable { min-width: 620px; } }
