/* fonts: variable woff2 from assets/fonts; Unbounded is the display face, Manrope the text face */
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* neon arena theme: near-black green surfaces, neon green accent; --gold* names kept from the first theme */
  color-scheme: dark;
  --bg: #030806;
  --bg-2: #0c1d12;
  --card: #09140e;
  --card-2: #0d1b12;
  --line: #1a3622;
  --line-hot: rgba(66, 255, 81, .45);
  --text: #f0f8f1;
  --text-2: #c0cbc2;
  --muted: #8d9e91;
  --gold: #42ff51;      /* neon accent: borders, buttons, glow */
  --gold-2: #8bff70;    /* lighter neon for gradients and hover */
  --gold-deep: #2fd84a; /* accent as a chart series */
  --gold-ink: #6dff7a;  /* accent as text */
  --on-accent: #041006;
  /* series steps validated on the dark card (#09140e): both pass lightness, CVD and 3:1 contrast */
  --blue: #4d8ff0;
  --red: #e2504f;
  --tie: #8a938c;
  --pos: #2fd84a;
  --neg: #ff7043;
  --pos-text: #5cf27a;
  --neg-text: #ff8a5c;
  --radius: 12px;
  --glow: 0 0 22px rgba(57, 255, 80, .16);
  --shadow: 0 14px 40px rgba(0, 0, 0, .55);
  /* secondary "lounge" neon: decor and display accents only, never for bets (blue/red) or actions (green) */
  --pink: #ff3fd1;
  --pink-ink: #ff8ee8;  /* as text on dark: ~9:1 */
  --violet: #a46bff;
  --violet-ink: #c7a4ff;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.55 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 75% 10%, rgba(0, 255, 54, .10), transparent 34%), radial-gradient(ellipse at 8% 56%, rgba(0, 120, 38, .08), transparent 36%), linear-gradient(180deg, #020604, #050b07 58%, #020604);
}
a { color: var(--gold-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
/* type scale: Unbounded for h1/h2 and numbers (wide face: mild tracking, never on small text), Manrope for the rest */
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: 28px; line-height: 1.12; }
h2 { font-size: 18px; line-height: 1.2; }
h3 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-ink); }
b, strong { font-weight: 800; }
code { font: 12px/1.4 Consolas, Menlo, monospace; color: var(--text-2); word-break: break-all; }
img { max-width: 100%; }
::selection { background: rgba(66, 255, 81, .35); }

.wrap { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 20px; }
.main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.pos { color: var(--pos-text); }
.neg { color: var(--neg-text); }
.txt-blue { color: #79aaf7; font-weight: 700; }
.txt-red { color: #f07e7c; font-weight: 700; }
.txt-neon { color: var(--gold); text-shadow: 0 0 30px rgba(57, 255, 80, .3); }
.dim { opacity: .55; }
.inline { display: inline; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(3, 8, 6, .82); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(94, 255, 112, .13); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: flex; flex-direction: column; line-height: .92; white-space: nowrap; color: var(--gold); }
.logo:hover { text-decoration: none; }
.logo b { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; text-shadow: 0 0 24px rgba(57, 255, 80, .35); }
.logo small { font-size: 10px; font-weight: 800; letter-spacing: .32em; margin-top: 5px; color: var(--pink-ink); text-transform: uppercase; text-shadow: 0 0 12px rgba(255, 63, 209, .35); }
.nav { display: flex; gap: clamp(14px, 2.2vw, 30px); flex: 1; align-self: stretch; overflow-x: auto; scrollbar-width: none; }
.nav a { position: relative; display: flex; align-items: center; color: #c0cbc2; font-size: 14px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; transition: color .2s; }
.nav-short { display: none; }
.nav a:hover, .nav a.on { color: var(--gold); text-decoration: none; }
.nav a.on::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.top-user { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.top-user .link { font-size: 13px; }
.chip-balance { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(4, 16, 8, .7); border: 1px solid var(--line-hot); color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.chip-balance b { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0; }
.chip-balance:hover { text-decoration: none; border-color: var(--gold); box-shadow: var(--glow); }
.coin { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e6ffd9, var(--gold) 45%, #146d22); box-shadow: 0 0 10px rgba(66, 255, 81, .5); }

/* buttons & forms */
.btn, .btn-ghost, button.link {
  font: inherit; cursor: pointer; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
/* regular buttons speak in the display face; .btn-sm (tables, header, tight rows) stays in Manrope so it never overflows */
.btn, .btn-ghost { font-family: var(--font-display); font-size: 14px; line-height: 1.2; letter-spacing: 0; text-align: center; }
.btn { background: var(--gold); color: var(--on-accent); border: 1px solid var(--gold); padding: 11px 20px; font-weight: 700; box-shadow: 0 0 24px rgba(57, 255, 80, .23); transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { background: var(--gold-2); text-decoration: none; transform: translateY(-2px); box-shadow: 0 0 28px rgba(57, 255, 80, .38); }
.btn-ghost { background: rgba(4, 16, 8, .7); color: var(--text); border: 1px solid var(--line-hot); padding: 10px 18px; font-weight: 600; transition: transform .2s, border-color .2s, box-shadow .2s; }
.btn-ghost:hover { border-color: var(--gold); text-decoration: none; box-shadow: var(--glow); }
.btn-sm { padding: 7px 13px; font-family: var(--font); font-size: 13px; font-weight: 800; letter-spacing: .01em; }
button.link { background: none; border: 0; color: var(--muted); padding: 0; }
button.link:hover { color: var(--gold); }
a.link { color: var(--text-2); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

input, select, textarea {
  font: inherit; color: var(--text); background: #050d08; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(66, 255, 81, .4); outline-offset: 0; border-color: var(--gold); }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); }
input[type=file] { padding: 7px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.form label small { color: var(--muted); font-size: 12px; }
.form .check-row, .check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.check-row input { width: auto; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; align-items: end; }
.form + .form { margin-top: 16px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 12px; }
legend { padding: 0 6px; color: var(--gold-ink); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }
.filters input, .filters select { width: auto; min-width: 150px; }

.flash { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; border: 1px solid; }
.flash-ok { background: rgba(66, 255, 81, .08); border-color: rgba(66, 255, 81, .4); }
.flash-err { background: rgba(255, 112, 67, .1); border-color: rgba(255, 112, 67, .5); }

/* cards & layout */
.card { background: linear-gradient(135deg, #0d1911, #07100b); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.card.narrow, .narrow { max-width: 440px; margin: 24px auto; }
.card.narrow { border-color: var(--line-hot); box-shadow: 0 25px 90px #000, 0 0 35px rgba(57, 255, 80, .1); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.bonus-card { border-color: var(--line-hot); box-shadow: var(--glow); background: radial-gradient(ellipse at 90% 15%, rgba(28, 142, 28, .32), transparent 55%), linear-gradient(135deg, #0d1911, #07100b); }
.bonus-card .btn { margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 { margin-bottom: 20px; }
.grid-wide { grid-template-columns: 2fr 1fr; }
.page-head { margin-bottom: 20px; }
.page-head h1 { margin-bottom: 6px; }
.back { display: inline-block; margin-bottom: 8px; color: var(--muted); }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.subnav a { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 600; }
.subnav a.on { background: #143c1c; color: var(--gold); border-color: var(--line-hot); }
.subnav a:hover { text-decoration: none; border-color: var(--gold); }
.big-num { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--gold); margin: 0 0 8px; text-shadow: 0 0 30px rgba(57, 255, 80, .25); }
.big-num small { font-family: var(--font); font-size: 16px; color: var(--muted); font-weight: 600; text-shadow: none; }
.h-sec { margin: 34px 0 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 20px; }
.h-more { font-family: var(--font); font-size: 13px; font-weight: 800; text-transform: none; letter-spacing: .01em; color: var(--gold-ink); white-space: nowrap; }

/* stat tiles */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { background: linear-gradient(125deg, rgba(12, 27, 17, .97), rgba(4, 11, 7, .97)); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.tile span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.tile b { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile small { color: var(--muted); font-size: 12px; }
.tile-hero { border-color: var(--line-hot); box-shadow: var(--glow); }
.tile-hero b { color: var(--gold); font-size: 26px; text-shadow: 0 0 24px rgba(57, 255, 80, .3); }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: #8a9c8e; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, .04); vertical-align: middle; }
.tbl tr:hover td { background: rgba(66, 255, 81, .045); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .w-ob { min-width: 170px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid; white-space: nowrap; }
.tag-blue { color: #8db6f8; border-color: rgba(77, 143, 240, .5); background: rgba(77, 143, 240, .12); }
.tag-red { color: #f39492; border-color: rgba(226, 80, 79, .5); background: rgba(226, 80, 79, .12); }
.tag-tie { color: #b7beb9; border-color: rgba(138, 147, 140, .45); background: rgba(138, 147, 140, .12); }
.pip { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 700; font-size: 13px; color: #fff; margin-right: 3px; }
.pip-blue { background: var(--blue); }
.pip-red { background: var(--red); }
.live { color: var(--pos-text); font-weight: 700; }
.live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); margin-right: 6px; animation: pulse 1.6s infinite; }
.winner { display: inline-flex; align-items: center; gap: 6px; }
.winner img, .ava-xs { border-radius: 6px; vertical-align: middle; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 16px; color: var(--muted); }

/* outcome strip (blue / tie / red) */
.ob-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--bg-2); }
.ob-bar i { display: block; height: 100%; }
.ob-lbl { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.t-blue { background: var(--blue); fill: var(--blue); stroke: var(--blue); }
.t-red { background: var(--red); fill: var(--red); stroke: var(--red); }
.t-tie { background: var(--tie); fill: var(--tie); stroke: var(--tie); }
.t-gold { background: var(--gold-deep); fill: var(--gold-deep); stroke: var(--gold-deep); }
.t-pos { background: var(--pos); fill: var(--pos); stroke: var(--pos); }
.t-neg { background: var(--neg); fill: var(--neg); stroke: var(--neg); }

/* charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.chart .axis { stroke: #2c4a35; stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; }
.chart .hit { fill: transparent; }
.chart .mark { stroke: none; }
.chart .col:hover .mark { filter: brightness(1.15) saturate(1.1); }
.chart .col:hover .hit { fill: rgba(66, 255, 81, .06); }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.t-gold { filter: drop-shadow(0 0 4px rgba(66, 255, 81, .5)); }
.chart .area { stroke: none; opacity: .14; }
.chart .dot { opacity: 0; stroke: var(--card); stroke-width: 2; }
.chart .cross { stroke: var(--muted); stroke-dasharray: 3 3; opacity: 0; }
.chart .pt:hover .dot, .chart .pt:hover .cross { opacity: 1; }
.chart .enddot { stroke: var(--card); stroke-width: 2; }
.chart .endlbl { fill: var(--text); font-size: 12px; font-weight: 700; }
.chart-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: #0d1b12; border: 1px solid var(--line-hot); color: var(--text); padding: 7px 10px; border-radius: 8px; font-size: 13px; max-width: 300px; box-shadow: var(--shadow); }

.hbar { margin-bottom: 14px; }
.hbar-lbl { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.hbar-track { position: relative; height: 12px; background: var(--bg-2); border-radius: 6px; }
.hbar-track i { display: block; height: 100%; border-radius: 6px; }
.hbar-track em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); border-radius: 1px; }
.faces { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; margin: 8px 0 12px; }
.face-col { display: grid; justify-items: center; gap: 8px; }
.face-bars { display: flex; gap: 2px; align-items: flex-end; height: 120px; width: 100%; justify-content: center; }
.face-bars i { display: block; width: 40%; max-width: 18px; border-radius: 4px 4px 0 0; min-height: 2px; }

/* dice */
.die {
  --size: 64px;
  width: var(--size); height: var(--size); border-radius: calc(var(--size) * .2);
  display: inline-grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: calc(var(--size) * .14); gap: calc(var(--size) * .04);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 255, 255, .25), 0 8px 18px rgba(0, 0, 0, .5);
  vertical-align: middle; flex: none;
}
.die i { border-radius: 50%; background: #fff; opacity: 0; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); place-self: center; width: 78%; height: 78%; }
.die-blue { background: linear-gradient(145deg, #6aa6f7, #2a6fc9); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 255, 255, .25), 0 0 22px rgba(77, 143, 240, .45); }
.die-red { background: linear-gradient(145deg, #f38a88, #c63c3c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 255, 255, .25), 0 0 22px rgba(226, 80, 79, .45); }
.die-ivory { background: linear-gradient(145deg, #f2f8f3, #c9d6cc); }
.die-ivory i { background: #0a1a0f; }
.die.mini { --size: 28px; }
.die.micro { --size: 22px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.die[data-v="1"] i:nth-child(5),
.die[data-v="2"] i:nth-child(1), .die[data-v="2"] i:nth-child(9),
.die[data-v="3"] i:nth-child(1), .die[data-v="3"] i:nth-child(5), .die[data-v="3"] i:nth-child(9),
.die[data-v="4"] i:nth-child(1), .die[data-v="4"] i:nth-child(3), .die[data-v="4"] i:nth-child(7), .die[data-v="4"] i:nth-child(9),
.die[data-v="5"] i:nth-child(1), .die[data-v="5"] i:nth-child(3), .die[data-v="5"] i:nth-child(5), .die[data-v="5"] i:nth-child(7), .die[data-v="5"] i:nth-child(9),
.die[data-v="6"] i:nth-child(1), .die[data-v="6"] i:nth-child(3), .die[data-v="6"] i:nth-child(4), .die[data-v="6"] i:nth-child(6), .die[data-v="6"] i:nth-child(7), .die[data-v="6"] i:nth-child(9) { opacity: 1; }

/* home: hero (hp-* classes live only on the front page) */
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--pink-ink); }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--violet), var(--pink)); box-shadow: 0 0 10px var(--pink); }
.lead-sm { color: var(--text-2); }
.hp-hero {
  position: relative; isolation: isolate; display: grid; gap: 0 28px; align-items: center; min-height: clamp(520px, 38vw, 680px); margin-top: -24px; padding: 48px 0 34px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "copy art" "stats art";
}
/* the banner spans the whole window, not the 1340px column; body clips the scrollbar-wide overhang of 100vw */
body { overflow-x: clip; }
.hp-banner { position: absolute; z-index: -2; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); overflow: hidden; background: var(--bg); }
.hp-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hp-banner::after {
  content: ""; position: absolute; inset: 0;
  /* lounge lights (violet behind the headline, pink on the right) over a scrim that keeps the copy readable */
  background: radial-gradient(34% 60% at 14% 34%, rgba(164, 107, 255, .2), transparent 70%), radial-gradient(30% 50% at 82% 30%, rgba(255, 63, 209, .12), transparent 70%), linear-gradient(90deg, rgba(3, 8, 6, .93) 0%, rgba(3, 8, 6, .84) 28%, rgba(3, 8, 6, .4) 52%, rgba(3, 8, 6, 0) 72%), linear-gradient(0deg, var(--bg) 0%, rgba(3, 8, 6, 0) 26%), linear-gradient(180deg, rgba(3, 8, 6, .55) 0%, rgba(3, 8, 6, 0) 16%);
}
.hp-copy { grid-area: copy; align-self: end; position: relative; z-index: 2; padding-top: 12px; }
.hp-h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 4.7vw, 72px); line-height: .98; letter-spacing: -.02em; text-transform: none; margin: 18px 0 20px; }
.hp-h1 span {
  background: linear-gradient(92deg, var(--pink-ink) 5%, var(--pink) 45%, var(--violet-ink) 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 63, 209, .38));
}
.hp-lead { font-size: 18px; line-height: 1.55; font-weight: 500; color: var(--text-2); max-width: 32em; margin: 0; }
.hp-lead-short { display: none; }
.hp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hp-cta { padding: 16px 28px; font-size: 16px; font-weight: 700; border-radius: 12px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); animation: hp-pulse 4.2s ease-out infinite; }
.hp-cta:hover { background: var(--gold-2); }
.hp-cta-2 { padding: 15px 24px; font-size: 15px; border-radius: 12px; }
.hp-note { font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--text-2); margin: 16px 0 0; max-width: 34em; }
.hp-stats { grid-area: stats; align-self: start; display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.hp-stat { display: grid; gap: 4px; }
.hp-stat dt { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--text); }
.hp-stat dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
@keyframes hp-pulse {
  0%, 62% { box-shadow: 0 0 26px rgba(66, 255, 81, .38), 0 0 0 0 rgba(66, 255, 81, .55); }
  100% { box-shadow: 0 0 26px rgba(66, 255, 81, .38), 0 0 0 14px rgba(66, 255, 81, 0); }
}
.hero-art { position: relative; height: 380px; margin-left: -24px; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; z-index: -1; inset: 15% 5% 2% 10%; background: rgba(0, 255, 52, .13); filter: blur(75px); border-radius: 50%; }
.hp-art { grid-area: art; height: 440px; margin-left: 0; }
.hp-art::before, .hp-art::after { display: none; } /* the banner already carries the glow */
.hp-art::before { background: radial-gradient(circle at 40% 55%, rgba(66, 255, 81, .2), rgba(164, 107, 255, .16) 55%, transparent 75%); }
/* neon ring under the stage, in the lounge accent */
.hp-art::after { content: ""; position: absolute; z-index: -1; left: 14%; right: 14%; bottom: 7%; height: 16%; border-radius: 50%; border: 2px solid rgba(255, 63, 209, .5); box-shadow: 0 0 30px rgba(255, 63, 209, .35), inset 0 0 24px rgba(164, 107, 255, .3); pointer-events: none; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; filter: saturate(1.12) contrast(1.05);
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 55%, transparent 100%); }
/* hero demo roll: two floating dice over the art, re-rolled by app.js */
.hero-dice { position: absolute; z-index: 3; top: 14%; right: 7%; display: grid; grid-template-columns: auto auto; gap: 14px 22px; justify-items: center; pointer-events: none; }
.hd { display: block; animation: hd-float 4.6s ease-in-out infinite; }
.hd-red { animation-duration: 5.3s; animation-delay: -2.4s; }
.hd .die { --size: 68px; transition: transform .35s, opacity .35s, box-shadow .35s; }
.hd .die.is-rolling { animation: hd-roll .8s cubic-bezier(.25, .7, .3, 1); }
.hd .die.is-win { transform: scale(1.14); }
.hd .die-blue.is-win { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3), 0 0 0 3px rgba(255, 255, 255, .85), 0 0 46px rgba(77, 143, 240, .9); }
.hd .die-red.is-win { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3), 0 0 0 3px rgba(255, 255, 255, .85), 0 0 46px rgba(226, 80, 79, .9); }
.hd .die.is-lose { opacity: .55; transform: scale(.9); }
.hd-verdict { grid-column: 1 / -1; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--text-2); background: rgba(2, 10, 5, .82); border: 1px solid rgba(48, 255, 75, .25); transition: opacity .25s; }
.hd-verdict.is-blue { color: #8db6f8; border-color: rgba(77, 143, 240, .6); }
.hd-verdict.is-red { color: #f39492; border-color: rgba(226, 80, 79, .6); }
.hd-verdict.is-tie { color: var(--gold-ink); border-color: var(--line-hot); }
.hd-verdict.is-hidden { opacity: 0; }
@keyframes hd-float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(5deg); } }
@keyframes hd-roll { 0% { transform: translateY(0) rotate(0) scale(1); } 45% { transform: translateY(-24px) rotate(400deg) scale(.84); } 100% { transform: translateY(0) rotate(720deg) scale(1); } }
/* home: section heads */
.hp-sec { margin-top: 56px; }
.hp-hero + .hp-sec { margin-top: 36px; } /* tables peek above the fold on 1280–1440 */
.hp-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 20px; }
.hp-sec-head h2 { font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; line-height: 1.12; margin: 0; }
.hp-sec-head p { margin: 8px 0 0; font-size: 15px; color: var(--text-2); max-width: 40em; }
.hp-sec-head-in { margin-bottom: 14px; align-items: baseline; }
.hp-sec-head-in h2 { font-size: clamp(19px, 1.8vw, 22px); }

/* home: bet types — "the rule in three buttons" */
.hp-bets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hp-bet { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px 22px; color: var(--text); border-radius: 16px; border: 1px solid; transition: transform .2s, box-shadow .2s, border-color .2s; }
.hp-bet:hover { text-decoration: none; transform: translateY(-3px); }
.hp-bet-blue { border-color: rgba(77, 143, 240, .5); background: radial-gradient(90% 120% at 0% 0%, rgba(77, 143, 240, .22), transparent 60%), linear-gradient(135deg, #0b1620, #060b0d); }
.hp-bet-red { border-color: rgba(226, 80, 79, .5); background: radial-gradient(90% 120% at 0% 0%, rgba(226, 80, 79, .22), transparent 60%), linear-gradient(135deg, #1b0e0f, #0b0707); }
.hp-bet-tie { border-color: rgba(200, 210, 202, .3); background: radial-gradient(90% 120% at 0% 0%, rgba(220, 230, 222, .12), transparent 60%), linear-gradient(135deg, #121614, #070a08); }
.hp-bet-blue:hover { border-color: rgba(77, 143, 240, .9); box-shadow: 0 0 30px rgba(77, 143, 240, .28); }
.hp-bet-red:hover { border-color: rgba(226, 80, 79, .9); box-shadow: 0 0 30px rgba(226, 80, 79, .28); }
.hp-bet-tie:hover { border-color: rgba(220, 230, 222, .6); box-shadow: 0 0 30px rgba(220, 230, 222, .12); }
.hp-bet-ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .04); }
.hp-bet-ico .die { --size: 38px; }
.hp-bet-ico .tie-ico { width: 38px; height: 38px; border-radius: 9px; font-size: 20px; background: #6b746d; }
.hp-bet-copy { display: grid; gap: 4px; min-width: 0; }
.hp-bet-copy strong { font-size: 17px; font-weight: 800; line-height: 1.2; }
.hp-bet-copy small { font-size: 13px; font-weight: 600; color: var(--text-2); }
.hp-coef { font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--gold); text-shadow: 0 0 22px rgba(66, 255, 81, .45); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hp-bets-note { margin: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--text-2); }

/* home: tables */
.vs, .tc-vs, .duel-vs { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--gold); text-shadow: 0 0 8px #39ff50; text-transform: uppercase; }
.hp-more-tables { display: none; }
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.table-card { display: block; color: var(--text); background: linear-gradient(120deg, #0b1b11, #07100b); border: 1px solid rgba(75, 255, 97, .23); border-radius: 12px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.table-card:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(75, 255, 97, .65); box-shadow: 0 0 26px rgba(57, 255, 80, .12); }
.tc-girls { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 16px 10px; background: radial-gradient(ellipse at 50% 100%, rgba(28, 142, 28, .22), transparent 60%); }
.tc-girl { margin: 0; text-align: center; flex: 1; min-width: 0; }
.tc-girl img, .tc-girl .girl-video { width: 100%; max-width: 150px; height: auto; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 30%; border-radius: 12px; border: 1px solid #2f7a3c; box-shadow: 0 0 18px rgba(39, 255, 58, .12); background: var(--card-2); display: block; margin: 0 auto 8px; }
.tc-girl figcaption { font-weight: 800; display: grid; justify-items: center; }
.tc-girl small { color: var(--muted); font-weight: 500; font-size: 12px; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .05); }
.tc-foot b { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.25; }
.tc-foot span.muted { font-size: 12px; }
.tc-foot .btn-sm { border-radius: 20px; background: #0b2410; color: #b4ffb6; border: 1px solid #1c632b; box-shadow: none; padding: 6px 14px; }
.table-card:hover .tc-foot .btn-sm { background: var(--gold); color: var(--on-accent); border-color: var(--gold); }
.checker { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.checker.light { background: #eef5ef; box-shadow: inset 0 0 0 2px #7f9686; }
.checker.dark { background: #141a16; box-shadow: inset 0 0 0 2px var(--gold); }

/* home: recent sessions, leaderboard */
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 13px; }
.recent { display: flex; gap: 13px; align-items: center; padding: 12px 14px; color: var(--text); background: linear-gradient(115deg, #101b11, #07100b); border: 1px solid rgba(80, 255, 100, .2); border-radius: 11px; transition: border-color .2s; }
.recent:hover { text-decoration: none; border-color: rgba(75, 255, 97, .6); }
.recent img { border-radius: 9px; border: 1px solid #2f7a3c; }
.recent > div { flex: 1; display: grid; gap: 4px; min-width: 0; }
.recent .muted { font-size: 12px; }
.ranking { border: 1px solid rgba(70, 255, 90, .18); border-radius: 16px; background: radial-gradient(80% 60% at 100% 0%, rgba(164, 107, 255, .12), transparent 70%), linear-gradient(135deg, #0d1911, #07100b); padding: 18px; }
.ranking-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ranking-head h2 { margin: 0; font-size: clamp(19px, 1.8vw, 22px); }
.tabs { display: flex; border: 1px solid rgba(71, 255, 90, .3); border-radius: 10px; overflow: hidden; }
.tab { font: inherit; font-size: 13px; font-weight: 700; background: transparent; border: 0; color: var(--muted); padding: 8px 14px; cursor: pointer; white-space: nowrap; }
.tab.on { background: #143c1c; color: var(--gold-ink); }
.tab:hover { color: var(--text); }
.tab:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.rank-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 6px; padding: 8px 9px; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .035); border-radius: 7px; }
.rank-row:nth-child(even) { background: rgba(255, 255, 255, .025); }
.rank-row.head { color: #8a9c8e; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border-top: 0; background: none; }
.rank-num { font-family: var(--font-display); color: #a5b4a8; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-num.is-first { color: #f4d46e; font-size: 16px; text-shadow: 0 0 10px rgba(244, 212, 110, .4); }
.rank-name { display: flex; align-items: center; gap: 9px; font-weight: 700; min-width: 0; }
.rank-name img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 1px solid #62956a; }
.rank-score { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-empty { padding: 18px 9px; color: var(--muted); font-size: 14px; }
.promo-label { color: var(--pink-ink); font-size: 12px; letter-spacing: .2em; font-weight: 800; text-transform: uppercase; }

/* home: table cards — live badge, a catchphrase, a timer */
.hp-table { position: relative; border-radius: 16px; }
.hp-table .tc-girls { position: relative; padding-top: 46px; background: radial-gradient(ellipse at 50% 100%, rgba(28, 142, 28, .24), transparent 60%), radial-gradient(ellipse at 50% 0%, rgba(164, 107, 255, .16), transparent 65%); }
.hp-table .tc-vs { font-size: 16px; color: var(--pink-ink); text-shadow: 0 0 14px rgba(255, 63, 209, .6); }
.hp-table .tc-girl figcaption { gap: 2px; font-size: 15px; }
.hp-table .tc-girl small { font-variant-numeric: tabular-nums; font-weight: 600; }
.hp-live { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 7px; width: max-content; max-width: calc(100% - 24px); padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--text); background: rgba(3, 8, 6, .82); border: 1px solid var(--line-hot); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.hp-live b { color: var(--gold); letter-spacing: .12em; font-weight: 800; }
.hp-live i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 1.4s infinite; }
.hp-live.is-idle { color: var(--muted); border-color: rgba(255, 255, 255, .12); }
.hp-quote { margin: 0; padding: 4px 18px 12px; font-size: 14px; font-weight: 600; font-style: italic; line-height: 1.4; color: var(--pink-ink); text-align: center; overflow-wrap: anywhere; }
.hp-quote span { font-style: normal; font-weight: 500; color: var(--muted); }
.hp-timer { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hp-timer svg { color: var(--gold-ink); flex: none; }
.hp-table .tc-foot .btn-sm { border-color: rgba(66, 255, 81, .55); color: var(--gold-ink); white-space: nowrap; }

/* home: full-width bonus band — the biggest number on the page after the H1 */
.hp-bonus {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 56px; padding: 30px 34px; border-radius: 20px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 40px;
  border: 1px solid rgba(255, 63, 209, .4); box-shadow: 0 0 50px rgba(164, 107, 255, .18), inset 0 0 60px rgba(255, 63, 209, .06);
  background: radial-gradient(60% 120% at 0% 50%, rgba(66, 255, 81, .14), transparent 60%), radial-gradient(55% 130% at 100% 0%, rgba(255, 63, 209, .24), transparent 60%), radial-gradient(50% 120% at 70% 100%, rgba(164, 107, 255, .26), transparent 65%), linear-gradient(120deg, #0a1410, #150a1c 60%, #1a0920);
}
.hp-bonus-num { display: grid; gap: 4px; }
.hp-bonus-num strong { font-family: var(--font-display); font-size: clamp(40px, 4.6vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--gold); text-shadow: 0 0 30px rgba(66, 255, 81, .5); font-variant-numeric: tabular-nums; margin-top: 6px; }
.hp-bonus-num strong.is-text { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; max-width: 12em; }
.hp-bonus-num > span:last-child:not(.promo-label) { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); }
.hp-bonus-text { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--text); max-width: 30em; }
.hp-bonus-btn { padding: 15px 26px; font-size: 15px; border-radius: 12px; position: relative; z-index: 1; }
.hp-bonus-dice { position: absolute; z-index: -1; right: 22%; top: -18px; display: flex; gap: 14px; opacity: .22; transform: rotate(14deg); pointer-events: none; }
.hp-bonus-dice .die { --size: 74px; }
.hp-bonus-dice .die + .die { margin-top: 64px; transform: rotate(-24deg); }

/* home: leaderboard + recent games side by side */
.hp-duo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; margin-top: 56px; align-items: start; }
.hp-recent { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hp-recent .recent { border-radius: 14px; }
.hp-recent .recent b { font-family: var(--font-display); font-weight: 600; font-size: 14px; }

/* home: trust facts */
.hp-trust-btn { flex: none; }
.hp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hp-fact { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(135deg, #0d1911, #07100b); }
.hp-fact svg { color: var(--gold-ink); filter: drop-shadow(0 0 8px rgba(66, 255, 81, .4)); }
.hp-fact svg text { font-family: var(--font); }
.hp-fact h3 { margin: 12px 0 8px; font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--text); }
.hp-fact p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }

/* game page */
.game-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.game-head h1 { margin: 0; }
.session-pill { padding: 6px 14px; border-radius: 20px; background: #0b2410; border: 1px solid #1c632b; color: #b4ffb6; font-size: 13px; font-weight: 600; }
.session-pill:hover { text-decoration: none; border-color: var(--gold); }
/* the arena: dark stage with a green spotlight over the board */
.arena { display: grid; grid-template-columns: 200px 1fr 200px; gap: 20px; align-items: start; padding: 22px; border-radius: 18px; background: radial-gradient(70% 70% at 50% 40%, rgba(28, 142, 28, .22), transparent 70%), linear-gradient(135deg, #0a170e, #040a06); border: 1px solid rgba(67, 255, 89, .22); box-shadow: var(--shadow); }
.arena .girl-a { order: 1; }
.arena .board-wrap { order: 2; }
.arena .girl-b { order: 3; }
.girl { text-align: center; transition: transform .3s; }
.girl-photo { position: relative; }
/* photo, SVG avatar and video avatar share one 5:6 frame; 4:5 videos are cropped a little top/bottom */
.girl-photo img, .girl-photo .girl-video { width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 30%; display: block; border-radius: 14px; border: 1px solid #2f7a3c; background: var(--card-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: box-shadow .3s, border-color .3s; }
.girl.is-turn .girl-photo img, .girl.is-turn .girl-photo .girl-video { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 34px rgba(57, 255, 80, .45); }
/* reaction clip lies exactly over the idle loop; transparent border keeps the frame of the video below visible */
.girl-photo .girl-react { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 30%; border: 1px solid transparent; border-radius: 14px; background: transparent; pointer-events: none; animation: fadein .2s ease-out; }
.girl-photo .girl-react[hidden] { display: none; }
.girl.is-rolling { animation: lean .5s ease-in-out 2; }
.girl-name { font-size: 18px; font-weight: 900; margin-top: 10px; }
.girl-meta { color: var(--muted); font-size: 13px; }
.turn-flag { visibility: hidden; color: var(--gold); font-weight: 700; }
.girl.is-turn .turn-flag { visibility: visible; }
.girl-bio { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
/* what the girl says: a speech bubble under her photo, the slot keeps its height so the column doesn't jump */
.girl-say { min-height: 86px; padding-top: 12px; }
.bubble { position: relative; background: #f0fff1; color: #06140a; padding: 8px 12px; border-radius: 14px; font-size: 14px; font-weight: 700; line-height: 1.35; text-align: left; overflow-wrap: anywhere; box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(57, 255, 80, .35); animation: say-in .25s ease-out; }
.bubble::after { content: ""; position: absolute; left: 50%; top: -7px; margin-left: -7px; border: 7px solid transparent; border-top: 0; border-bottom-color: #f0fff1; }
@keyframes say-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.board-wrap { position: relative; }
#board { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 26px rgba(57, 255, 80, .14)) drop-shadow(0 18px 28px rgba(0, 0, 0, .6)); }
#board .chk { transition: transform .45s ease; }
#board .chk.moved { stroke: #f4d46e; stroke-width: 3; }
.dice-tray { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 18px; pointer-events: none; }
.dice-tray .die { --size: clamp(44px, 7vw, 70px); transition: transform .3s; }
.dice-tray .die.rolling { animation: tumble .18s linear infinite; }
.dice-tray .die.win { transform: scale(1.15); box-shadow: 0 0 0 3px rgba(255, 255, 255, .8), 0 0 36px rgba(139, 255, 112, .7); }
.dice-tray .die.lose { opacity: .55; transform: scale(.92); }
.verdict { position: absolute; left: 50%; top: calc(50% + 58px); transform: translateX(-50%); padding: 6px 16px; border-radius: 999px; font-weight: 800; color: #fff; white-space: nowrap; animation: pop .3s ease-out; box-shadow: var(--shadow); }
.verdict.v-blue { background: var(--blue); }
.verdict.v-red { background: var(--red); }
.verdict.v-tie { background: #5d665f; }
.verdict.v-win { background: var(--gold); color: var(--on-accent); box-shadow: 0 0 30px rgba(57, 255, 80, .5); }

.clock { margin: 18px 0; }
.clock-text { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.clock-text b { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 18px; color: var(--gold); text-shadow: 0 0 12px rgba(57, 255, 80, .4); }
.clock-bar { height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.clock-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1fae35, var(--gold)); box-shadow: 0 0 12px var(--gold); border-radius: 3px; transition: width .2s linear; }
.clock.locked .clock-bar i { background: var(--tie); box-shadow: none; }

.bet-zone { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.bet-zone > .card { margin: 0; border-color: rgba(67, 255, 89, .27); }
.bet-panel { box-shadow: 0 0 30px rgba(57, 255, 80, .07); }
.bp-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.bp-row label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.amount { display: flex; gap: 6px; }
.amount input { width: 120px; text-align: center; font-size: 18px; font-weight: 800; }
.amount .btn-ghost { padding: 6px 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-family: inherit; font-weight: 800; font-size: 13px; color: var(--gold); border: 2px dashed rgba(66, 255, 81, .55); background: radial-gradient(circle, #174b22, #07140b); width: 50px; height: 50px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 14px rgba(57, 255, 80, .18); transition: transform .15s, box-shadow .15s; }
.chip:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(57, 255, 80, .4); }
.choices { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 12px; }
.choice { font: inherit; color: var(--text); background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; display: grid; justify-items: center; gap: 4px; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.choice:hover:not(:disabled) { transform: translateY(-2px); }
.choice b { font-size: 14px; text-transform: uppercase; letter-spacing: .02em; }
.choice small { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.choice em { font-style: normal; font-size: 12px; color: var(--muted); }
.choice em::before { content: "в банке: "; }
.c-blue { border-color: rgba(77, 143, 240, .55); background: linear-gradient(180deg, rgba(77, 143, 240, .18), rgba(9, 20, 14, .9)); }
.c-red { border-color: rgba(226, 80, 79, .55); background: linear-gradient(180deg, rgba(226, 80, 79, .17), rgba(9, 20, 14, .9)); }
.c-tie { border-color: rgba(138, 147, 140, .45); background: linear-gradient(180deg, rgba(138, 147, 140, .14), rgba(9, 20, 14, .9)); }
.c-blue:hover:not(:disabled):not(.has-bet) { box-shadow: 0 0 22px rgba(77, 143, 240, .3); }
.c-red:hover:not(:disabled):not(.has-bet) { box-shadow: 0 0 22px rgba(226, 80, 79, .3); }
.c-tie:hover:not(:disabled):not(.has-bet) { box-shadow: 0 0 22px rgba(138, 147, 140, .25); }
.choice:disabled { opacity: .4; cursor: not-allowed; }
.choice.has-bet { box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgba(57, 255, 80, .35); }
.tie-ico { width: 28px; height: 28px; border-radius: 7px; background: #5d665f; color: #fff; font-weight: 800; display: grid; place-items: center; }
.bp-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--text-2); }
.my-bets .tag { margin-right: 4px; }
.bet-msg { color: var(--gold-ink); }
.bet-msg.err { color: var(--neg-text); }
.guest { text-align: center; }
.side h3 { margin-top: 0; }
.side h3 + * { margin-bottom: 18px; }
.history { display: flex; flex-wrap: wrap; gap: 6px; }
.hist { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.hist.o-blue { border-color: rgba(77, 143, 240, .75); }
.hist.o-red { border-color: rgba(226, 80, 79, .75); }
.hist .pip { width: 18px; height: 18px; font-size: 11px; margin: 0; border-radius: 4px; }
.hist .pip.lo { opacity: .4; }
.fair-line { font-size: 12px; color: var(--muted); margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; padding: 14px 22px; border-radius: 14px; font-weight: 800; font-size: 17px; box-shadow: var(--shadow); animation: pop .3s ease-out; }
.toast.win { background: var(--gold); color: var(--on-accent); box-shadow: 0 0 40px rgba(57, 255, 80, .5); }
.toast.lose { background: var(--card-2); border: 1px solid var(--line); color: var(--text); }

/* session page */
.duel { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.duel-girl { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: 14px; }
.duel-girl img { border-radius: 12px; border: 1px solid var(--line); }
.duel-girl.is-winner img { border-color: var(--gold); box-shadow: 0 0 26px rgba(57, 255, 80, .4); }
.duel-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.crown { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--on-accent); background: var(--gold); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.mini-stats { display: flex; gap: 18px; margin: 0; }
.mini-stats dt { color: var(--muted); font-size: 12px; }
.mini-stats dd { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 8px; }
.steps li::marker { color: var(--gold); font-weight: 800; }
.check { display: grid; gap: 8px; margin: 16px 0 0; }
.check div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; }
.check dt { color: var(--muted); }
.check dd { margin: 0; }

/* admin */
.girls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.girl-card { background: linear-gradient(120deg, #0b1b11, #07100b); border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--text); display: grid; gap: 4px; text-align: center; }
.girl-card:hover { text-decoration: none; border-color: var(--gold); }
.girl-card img { border-radius: 10px; width: 100%; height: auto; }
.girl-edit { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.girl-edit aside { display: grid; gap: 10px; justify-items: center; }
.portrait { border-radius: 14px; border: 1px solid var(--gold); box-shadow: var(--glow); }
.av-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.av-grid > div > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sw { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; position: relative; border: 2px solid rgba(255, 255, 255, .15); }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sw input:checked + span { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--gold); }
.sw-custom { width: 34px; height: 30px; padding: 2px; border-radius: 8px; }

.foot { border-top: 1px solid rgba(255, 255, 255, .07); padding: 18px 0 26px; color: #6f8474; font-size: 13px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: #9fb3a4; }
.foot a:hover { color: var(--gold); text-decoration: none; }

@keyframes tumble { 0% { transform: rotate(0) translateY(0); } 50% { transform: rotate(14deg) translateY(-6px); } 100% { transform: rotate(-10deg) translateY(0); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -80%) scale(.9); } to { opacity: 1; } }
.verdict, .toast { animation-name: pop2; }
@keyframes pop2 { from { opacity: 0; transform: translateX(-50%) scale(.85); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes lean { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* grid children may shrink below their content width (long names, svg, tables) */
.arena > *, .bet-zone > *, .grid-2 > *, .girl-edit > *, .top-in > *, .bp-row > *, .hp-hero > *, .hp-duo > * { min-width: 0; }

@media (max-width: 1000px) {
  .arena { grid-template-columns: 1fr 1fr; }
  .arena .board-wrap { order: 3; grid-column: 1 / -1; }
  .arena .girl-b { order: 2; }
  .girl { display: grid; grid-template-columns: 90px 1fr; gap: 0 12px; text-align: left; align-items: center; }
  .girl-photo { grid-row: span 3; }
  .girl-name { margin-top: 0; font-size: 17px; }
  .girl-bio { display: none; }
  .girl-say { grid-column: 1 / -1; grid-row: 4; min-height: 58px; padding-top: 8px; }
  .bubble { font-size: 13px; }
  .bubble::after { left: 45px; }
  .bet-zone, .grid-2, .grid-wide, .girl-edit, .hp-duo { grid-template-columns: 1fr; }
  .hp-hero { gap: 0 16px; min-height: 0; }
  .hp-art { height: 340px; }
  .hero-dice { top: 8%; right: 6%; gap: 12px 18px; }
  .hd .die { --size: 54px; }
  .hp-lead { font-size: 17px; }
  .hp-cta { padding: 15px 20px; font-size: 15px; }
  .hp-bets { grid-template-columns: 1fr; gap: 10px; }
  .hp-bonus { grid-template-columns: auto minmax(0, 1fr); }
  .hp-bonus-btn { grid-column: 1 / -1; justify-self: start; }
  .hp-facts { grid-template-columns: 1fr; gap: 10px; }
  .hp-fact { display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; padding: 18px; }
  .hp-fact svg { grid-row: span 2; }
  .hp-fact h3 { margin: 2px 0 2px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 21px; }
  h2 { font-size: 17px; }
  /* compact two-row header: logo + account, then the nav strip */
  .top-in { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; min-height: 0; }
  .logo b { font-size: 18px; }
  .logo small { font-size: 8px; margin-top: 4px; }
  .nav { order: 3; flex-basis: 100%; height: 36px; }
  .nav { gap: 12px; }
  .nav a { font-size: 13px; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .nav a.on::before { top: auto; bottom: 0; }
  .top-user { margin-left: auto; gap: 8px; }
  .big-num { font-size: 32px; }
  .tile b { font-size: 19px; }
  .tile-hero b { font-size: 22px; }
  .btn, .btn-ghost { font-size: 13px; }
  .btn-sm { font-size: 13px; }

  /* home on a phone: H1, short lead, full-width CTA and the 18+ line fit the first screen; dice art right under */
  .hp-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; margin-top: -24px; padding: 168px 0 0; }
  .hp-banner { bottom: auto; height: 330px; }
  .hp-banner img { object-position: 4% 50%; } /* the left die stays whole above the headline */
  .hp-banner::after { background: linear-gradient(180deg, rgba(3, 8, 6, .2) 0%, rgba(3, 8, 6, .3) 38%, rgba(3, 8, 6, .88) 70%, var(--bg) 100%); }
  .hp-art { display: none; }
  .hp-eyebrow { display: none; }
  .hp-h1 { font-size: clamp(34px, 10.8vw, 44px); line-height: 1; margin: 6px 0 12px; }
  .hp-lead-long { display: none; }
  .hp-lead-short { display: block; font-size: 16px; line-height: 1.5; }
  .hp-ctas { display: grid; gap: 8px; margin-top: 18px; }
  .hp-cta { width: 100%; padding: 15px 16px; font-size: 15px; }
  .hp-cta-2 { width: 100%; padding: 12px 16px; font-size: 14px; }
  .hp-note { margin-top: 12px; }
  .hp-art { height: 210px; margin: 6px -16px 0; }
  .hp-art::after { left: 18%; right: 18%; }
  .hero-dice { top: 12px; right: 18px; gap: 10px 14px; }
  .hd .die { --size: 44px; }
  .hd-verdict { font-size: 10px; padding: 3px 10px; }
  .hp-stats { margin-top: 10px; gap: 12px 22px; justify-content: space-between; }
  .hp-stat dt { font-size: 18px; }
  .hp-stat dd { font-size: 12px; }

  .hp-sec, .hp-bonus, .hp-duo { margin-top: 40px; }
  .hp-sec-head { margin-bottom: 14px; }
  .hp-sec-head h2 { font-size: 21px; }
  .hp-sec-head p { font-size: 14px; }
  .hp-bet { gap: 12px; padding: 14px 16px; border-radius: 14px; }
  .hp-bet-ico { width: 46px; height: 46px; border-radius: 12px; }
  .hp-bet-ico .die { --size: 30px; }
  .hp-bet-ico .tie-ico { width: 30px; height: 30px; font-size: 17px; }
  .hp-bet-copy strong { font-size: 15px; }
  .hp-coef { font-size: 28px; }
  .hp-bonus { grid-template-columns: 1fr; gap: 12px; padding: 24px 20px; border-radius: 18px; }
  .hp-bonus-num strong { font-size: 40px; }
  .hp-bonus-text { font-size: 15px; }
  .hp-bonus-btn { width: 100%; }
  .hp-bonus-dice { right: -8px; top: -10px; }
  .hp-bonus-dice .die { --size: 56px; }
  .ranking { padding: 14px; }
  .tab { padding: 8px 11px; }
  .hp-recent { grid-template-columns: 1fr; }
  .hp-recent > :nth-child(n+4) { display: none; }
  /* 12 cards make a 4000px scroll on a phone: show four, the rest behind a button */
  .hp-tables-grid:not(.is-open) > :nth-child(n+5) { display: none; }
  .hp-more-tables { display: flex; width: 100%; margin-top: 12px; }
  .hp-trust-btn { width: 100%; }
  .choices { grid-template-columns: 1fr 1fr; }
  .choices .c-tie { grid-column: 1 / -1; order: 3; grid-template-columns: auto auto auto; gap: 10px; align-items: center; }
  .arena { gap: 12px; padding: 12px; border-radius: 14px; }
  .girl { grid-template-columns: 52px 1fr; gap: 0 8px; }
  .girl-photo img, .girl-photo .girl-video, .girl-photo .girl-react { border-radius: 10px; }
  .girl-name { font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
  .girl-meta { font-size: 12px; }
  .game-head h1 { font-size: 22px; }
  .amount input { width: 90px; }
  .chip { width: 44px; height: 44px; font-size: 12px; }
  .check div { grid-template-columns: 1fr; gap: 2px; }
  .tables-grid { grid-template-columns: 1fr; }
  .foot-in { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .hd, .hd .die, .hp-cta, .hp-live i { animation: none !important; }
}

/* marketing blocks: hero points, register perks, FAQ */
.hero-points, .perks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.hero-points li, .perks li { position: relative; padding-left: 28px; color: var(--text-2); }
.hero-points li::before, .perks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--on-accent); background: var(--gold); box-shadow: 0 0 10px rgba(57, 255, 80, .4);
}
details { border-top: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--text-2); }

/* living photo: a still AI portrait slowly breathes, sways and catches the light inside a fixed frame */
.live-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 5 / 6; border-radius: 14px; border: 1px solid #2f7a3c; background: var(--card-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: box-shadow .3s, border-color .3s; }
.girl-photo .live-photo img, .tc-girl .live-photo img { width: 100%; height: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 70%; animation: live-breathe 7s ease-in-out infinite; animation-delay: var(--live-delay, 0s); will-change: transform; }
.live-photo::after { content: ""; position: absolute; inset: -40%; pointer-events: none; background: linear-gradient(115deg, transparent 42%, rgba(139, 255, 112, .13) 50%, transparent 58%); animation: live-sheen 11s ease-in-out infinite; animation-delay: var(--live-delay, 0s); }
.tc-girl .live-photo { max-width: 150px; margin: 0 auto 8px; border-radius: 12px; box-shadow: 0 0 18px rgba(39, 255, 58, .12); }
.girl.is-turn .live-photo { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 34px rgba(57, 255, 80, .45); }
.girl.is-rolling .live-photo img { animation: live-lean .5s ease-in-out 2; }
@keyframes live-breathe {
  0%, 100% { transform: scale(1.06) translate(0, 0) rotate(0deg); }
  30% { transform: scale(1.085) translate(-1%, -1.2%) rotate(-.6deg); }
  65% { transform: scale(1.07) translate(1%, -.4%) rotate(.5deg); }
}
@keyframes live-sheen { 0%, 70% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@keyframes live-lean { 50% { transform: scale(1.12) translate(0, 2%) rotate(-1.2deg); } }
@media (max-width: 680px) { .live-photo { border-radius: 10px; } }

/* balance chip: "+" invites to top up */
.chip-plus { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-accent); font-weight: 900; font-size: 14px; line-height: 1; }

/* crypto top-up */
.coin-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0; }
.coin-tabs a { display: grid; gap: 2px; justify-items: center; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); text-align: center; }
.coin-tabs a:hover { text-decoration: none; border-color: var(--gold); }
.coin-tabs a.on { border-color: var(--gold); box-shadow: var(--glow); background: #143c1c; }
.coin-tabs b { font-size: 15px; }
.coin-tabs small { font-size: 11px; color: var(--muted); }
.addr-box { display: grid; gap: 8px; justify-items: start; padding: 16px; border: 1px dashed var(--line-hot); border-radius: 12px; background: rgba(66, 255, 81, .04); }
.addr-box p { margin: 0; }
.addr-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.addr { font-size: 15px; color: var(--text); background: #050d08; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; user-select: all; }
.warn { color: #ffcf7a; margin: 12px 0 0; }
@media (max-width: 680px) {
  .coin-tabs { grid-template-columns: repeat(3, 1fr); }
}

/* phones: compact table cards */
@media (max-width: 680px) {
  .tc-girls { padding: 12px 10px 6px; gap: 6px; }
  .hp-table .tc-girls { padding-top: 44px; }
  .tc-girl img, .tc-girl .girl-video, .tc-girl .live-photo { max-width: 118px; }
  .tc-girl figcaption, .hp-table .tc-girl figcaption { font-size: 14px; }
  .tc-foot { padding: 10px 12px; }
  .hp-quote { padding: 2px 12px 10px; font-size: 13px; }
}

/* top-up orders and withdrawals */
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pack { position: relative; cursor: pointer; }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack span { display: grid; gap: 2px; justify-items: center; padding: 14px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); transition: border-color .15s, box-shadow .15s, transform .15s; }
.pack b { font-family: var(--font-display); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pack small { font-size: 13px; font-weight: 700; color: var(--text-2); }
.pack:hover span { border-color: var(--line-hot); transform: translateY(-1px); }
.pack input:checked + span { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(66, 255, 81, .25); background: linear-gradient(180deg, rgba(66, 255, 81, .1), rgba(66, 255, 81, .02)); }
.pack input:checked + span small { color: var(--gold-ink); }
.pack input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.buy-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 14px 16px; border-radius: 12px; background: rgba(164, 107, 255, .08); border: 1px solid rgba(164, 107, 255, .3); }
.buy-total span { font-weight: 700; color: var(--text-2); }
.buy-total b { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--gold-ink); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(66, 255, 81, .35); }
.buy-btn { width: 100%; padding: 14px 18px; }
.pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.pay-summary { display: grid; gap: 14px; justify-items: start; }
.pay-sum { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; }
.pay-sum dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.pay-sum dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pay-usd dd, .pay-amount { color: var(--gold-ink); text-shadow: 0 0 18px rgba(66, 255, 81, .35); }
.pay-summary p { margin: 0; }
.pay-frame { border-radius: 18px; padding: 10px; background: linear-gradient(160deg, rgba(66, 255, 81, .5), rgba(164, 107, 255, .45) 55%, rgba(255, 63, 209, .45)); box-shadow: 0 0 40px rgba(66, 255, 81, .15), 0 0 60px rgba(164, 107, 255, .12); }
.pay-frame-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 8px 10px; color: #fff; }
.pay-frame-head span { font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.pay-frame-head small { font-size: 12px; font-weight: 600; opacity: .8; }
.pay-frame iframe { display: block; margin: 0 auto; max-width: 100%; border: 0; border-radius: 12px; background: #fff; overflow: hidden; }
.st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; border: 1px solid var(--line); color: var(--text-2); }
.st-new, .st-pending { color: #ffcf7a; border-color: rgba(255, 207, 122, .45); background: rgba(255, 207, 122, .08); }
.st-paid { color: var(--gold-ink); border-color: var(--line-hot); background: rgba(66, 255, 81, .08); }
.st-rejected { color: var(--neg-text); border-color: rgba(255, 112, 67, .45); }
.meter { height: 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; margin: 12px 0 6px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); box-shadow: 0 0 12px rgba(66, 255, 81, .5); }
.row-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row-form input { width: 110px; padding: 6px 8px; }
.stack-form { display: grid; gap: 6px; margin-top: 8px; min-width: 200px; }
.stack-form input { padding: 6px 8px; }
.tabs-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.addr-sm { font-size: 11px; word-break: break-all; }
@media (max-width: 1000px) {
  .pay-layout { grid-template-columns: 1fr; }
  .pay-frame { justify-self: center; max-width: 100%; }
}
@media (max-width: 680px) {
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy-total b { font-size: 24px; }
  .pay-sum dd { font-size: 24px; }
  .pay-frame { padding: 6px; border-radius: 14px; }
}

/* "no crypto?" link card on the top-up pages */
.crypto-help {
  position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "ico title go" "ico sub go"; align-items: center; gap: 2px 14px;
  justify-self: stretch; width: 100%; margin: 14px 0; padding: 14px 16px; border-radius: 14px; color: var(--text);
  border: 1px solid rgba(164, 107, 255, .5);
  background: radial-gradient(70% 140% at 0% 50%, rgba(66, 255, 81, .12), transparent 60%), radial-gradient(60% 140% at 100% 0%, rgba(255, 63, 209, .14), transparent 65%), linear-gradient(120deg, #0b1510, #120b19);
  box-shadow: 0 0 24px rgba(164, 107, 255, .12); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.crypto-help::before {
  content: "$"; grid-area: ico; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font: 800 20px/1 var(--font-display); color: var(--on-accent);
  background: radial-gradient(circle at 35% 30%, #e6ffd9, var(--gold) 45%, #146d22); box-shadow: 0 0 0 3px rgba(66, 255, 81, .18), 0 0 18px rgba(66, 255, 81, .45);
}
.crypto-help::after { content: "→"; grid-area: go; font: 700 20px/1 var(--font-display); color: var(--pink-ink); transition: transform .2s; }
.crypto-help b { grid-area: title; font-size: 16px; font-weight: 800; line-height: 1.25; color: #fff; }
.crypto-help span { grid-area: sub; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-2); }
.crypto-help:hover { text-decoration: none; border-color: var(--pink); box-shadow: 0 0 30px rgba(255, 63, 209, .22); transform: translateY(-2px); }
.crypto-help:hover::after { transform: translateX(4px); }
.crypto-help:focus-visible { outline: 2px solid var(--pink-ink); outline-offset: 3px; }
@media (max-width: 680px) {
  .crypto-help { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; }
  .crypto-help::before { width: 40px; height: 40px; font-size: 17px; }
  .crypto-help b { font-size: 15px; }
}

/* ===== buy-crypto guide: every class is bc-* ===== */
.bc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.bc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bc-ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bc-page { max-width: 1140px; margin: 0 auto; }
.bc-page [id] { scroll-margin-top: 96px; }
.bc-page a:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

/* hero */
.bc-hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: 24px 40px;
  padding: 44px 44px 40px; border-radius: 24px; border: 1px solid rgba(164, 107, 255, .3); box-shadow: 0 0 60px rgba(164, 107, 255, .1);
  background: radial-gradient(50% 70% at 0% 0%, rgba(66, 255, 81, .13), transparent 70%), radial-gradient(45% 70% at 100% 10%, rgba(255, 63, 209, .15), transparent 70%), radial-gradient(50% 80% at 85% 100%, rgba(164, 107, 255, .2), transparent 70%), linear-gradient(135deg, #0a1610, #0b0a14 70%);
}
.bc-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(66, 255, 81, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(66, 255, 81, .06) 1px, transparent 1px); background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 55% 80% at 82% 45%, #000, transparent 75%); mask-image: radial-gradient(ellipse 55% 80% at 82% 45%, #000, transparent 75%);
}
.bc-hero-copy { min-width: 0; }
.bc-hero-copy .eyebrow { margin: 0; }
.bc-h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.04; letter-spacing: -.02em; margin: 16px 0 18px; }
.bc-h1 span {
  display: block; margin-top: 12px; font-size: .48em; font-weight: 700; line-height: 1.3; letter-spacing: -.005em;
  background: linear-gradient(92deg, var(--pink-ink), var(--violet-ink)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bc-lead { margin: 0 0 10px; font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 38em; }
.bc-lead-2 { color: var(--text); font-weight: 600; }
.bc-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bc-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.bc-facts div { display: grid; gap: 4px; }
.bc-facts dt { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.1; color: var(--gold); text-shadow: 0 0 18px rgba(66, 255, 81, .35); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-facts dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.bc-hero .bc-note { margin: 22px 0 0; max-width: 38em; }
.bc-hero-art { min-width: 0; }
.bc-hero-svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; overflow: visible; filter: drop-shadow(0 0 24px rgba(66, 255, 81, .18)); }
.bc-svg-big { font: 800 24px var(--font-display); fill: var(--on-accent); letter-spacing: -.01em; }
.bc-svg-sm { font: 800 13px var(--font-display); fill: #062b0c; letter-spacing: .08em; }
.bc-svg-chip { font: 700 13px var(--font-display); }
.bc-svg-violet { fill: var(--violet-ink); }
.bc-svg-pink { fill: var(--pink-ink); }
.bc-svg-green { fill: var(--gold-ink); }
.bc-svg-cap { font: 700 12px var(--font); fill: var(--text-2); }
.bc-orbit { transform-box: view-box; transform-origin: 200px 160px; }
.bc-float { transform-box: fill-box; transform-origin: center; }

/* sections */
.bc-sec { margin-top: 56px; }
.bc-sec-head { margin: 0 0 20px; }
.bc-sec-head .eyebrow { margin: 0; }
.bc-sec-head h2 { font-size: clamp(21px, 2.2vw, 28px); line-height: 1.15; margin: 10px 0 0; }
.bc-sec-head > p:not(.eyebrow) { margin: 12px 0 0; font-size: 15.5px; color: var(--text-2); max-width: 48em; }
.bc-sec-head b { color: var(--text); }
.bc-h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--text); margin: 0 0 10px; }
.bc-fig { margin: 0; min-width: 0; }
.bc-fig figcaption { margin-top: 8px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* quick overview strip: six mini-steps, each jumps to its step */
.bc-quick { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bc-quick::before { content: ""; position: absolute; top: 36px; left: 8%; right: 8%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--violet), var(--pink)); opacity: .5; }
.bc-quick > li { min-width: 0; }
.bc-q { position: relative; display: grid; justify-items: center; align-content: start; gap: 12px; height: 100%; padding: 10px 8px 16px; border-radius: 16px; text-align: center; color: var(--text); transition: background .2s, transform .2s; }
.bc-q:hover { text-decoration: none; background: rgba(66, 255, 81, .05); transform: translateY(-3px); }
.bc-q-ico { position: relative; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--gold-ink); background: #07120b; border: 1px solid var(--line-hot); box-shadow: 0 0 0 5px var(--bg), 0 0 20px rgba(66, 255, 81, .18); transition: box-shadow .2s, border-color .2s; }
.bc-q-ico .bc-ico { width: 26px; height: 26px; }
.bc-q:hover .bc-q-ico { border-color: var(--gold); box-shadow: 0 0 0 5px var(--bg), 0 0 26px rgba(66, 255, 81, .4); }
.bc-q-num { position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--on-accent); font: 800 11px/22px var(--font-display); text-align: center; }
.bc-q-text { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text-2); }
.bc-q:hover .bc-q-text { color: var(--text); }

/* terms */
.bc-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.bc-term { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(135deg, #0d1911, #07100b); }
.bc-term p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.bc-term b { color: var(--text); }
.bc-term .bc-term-name { margin: 0 0 12px; font: 800 24px/1 var(--font-display); letter-spacing: -.01em; }
.bc-term-green { border-color: rgba(66, 255, 81, .3); }
.bc-term-green .bc-term-name { color: var(--gold); text-shadow: 0 0 20px rgba(66, 255, 81, .4); }
.bc-term-violet { border-color: rgba(164, 107, 255, .35); background: radial-gradient(80% 60% at 100% 0%, rgba(164, 107, 255, .12), transparent 70%), linear-gradient(135deg, #0d1911, #07100b); }
.bc-term-violet .bc-term-name { color: var(--violet-ink); text-shadow: 0 0 20px rgba(164, 107, 255, .45); }
.bc-term-pink { border-color: rgba(255, 63, 209, .3); background: radial-gradient(80% 60% at 100% 0%, rgba(255, 63, 209, .1), transparent 70%), linear-gradient(135deg, #0d1911, #07100b); }
.bc-term-pink .bc-term-name { color: var(--pink-ink); text-shadow: 0 0 20px rgba(255, 63, 209, .4); }

/* callouts: tip (green), warn (amber), stop (red, the loudest) */
.bc-note { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; margin: 16px 0; padding: 14px 16px; border-radius: 14px; border: 1px solid; }
.bc-note p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text); }
.bc-note-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.bc-note-ico .bc-ico { width: 20px; height: 20px; }
.bc-note-label { display: block; margin: 1px 0 3px; font: 800 11px/1.3 var(--font); letter-spacing: .16em; text-transform: uppercase; }
.bc-note-tip { border-color: rgba(66, 255, 81, .35); background: rgba(66, 255, 81, .06); }
.bc-note-tip .bc-note-ico { background: rgba(66, 255, 81, .14); color: var(--gold-ink); }
.bc-note-tip .bc-note-label { color: var(--gold-ink); }
.bc-note-warn { border-color: rgba(255, 198, 92, .45); background: rgba(255, 198, 92, .07); }
.bc-note-warn .bc-note-ico { background: rgba(255, 198, 92, .16); color: #ffcf7a; }
.bc-note-warn .bc-note-label { color: #ffcf7a; }
.bc-note-warn a { color: #ffdc9a; text-decoration: underline; }
.bc-note-stop { padding-left: 18px; border-width: 1.5px; border-color: rgba(255, 90, 82, .75); background: linear-gradient(90deg, rgba(255, 60, 50, .2), rgba(255, 60, 50, .06)); box-shadow: inset 4px 0 0 #ff5a52, 0 0 28px rgba(255, 60, 50, .14); }
.bc-note-stop .bc-note-ico { background: #ff5a52; color: #1a0303; box-shadow: 0 0 16px rgba(255, 90, 82, .55); }
.bc-note-stop .bc-note-ico .bc-ico { stroke-width: 2.2; }
.bc-note-stop .bc-note-label { color: #ff9b94; }

/* money route scheme */
.bc-route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.bc-route li { position: relative; min-width: 0; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 18px 10px 16px; text-align: center; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, #0e1b13, #070e0a); }
.bc-route li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -14px; width: 9px; height: 9px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: translateY(-50%) rotate(45deg); filter: drop-shadow(0 0 4px rgba(66, 255, 81, .8)); }
.bc-route-ico { width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; display: grid; place-items: center; color: var(--gold-ink); background: rgba(66, 255, 81, .08); border: 1px solid var(--line-hot); }
.bc-route b { font: 700 15px/1.2 var(--font-display); overflow-wrap: anywhere; }
.bc-route small { font-size: 12.5px; line-height: 1.35; color: var(--text-2); }
.bc-route li.is-key { border-color: rgba(255, 63, 209, .6); box-shadow: 0 0 30px rgba(255, 63, 209, .2); background: radial-gradient(90% 70% at 50% 0%, rgba(255, 63, 209, .16), transparent 70%), linear-gradient(160deg, #1a0d1d, #0b0710); }
.bc-route li.is-key .bc-route-ico { color: var(--pink-ink); border-color: rgba(255, 63, 209, .55); background: rgba(255, 63, 209, .12); box-shadow: 0 0 18px rgba(255, 63, 209, .3); }
.bc-route li.is-key small { color: var(--pink-ink); font-weight: 700; }
.bc-route-bad { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; border: 1px dashed rgba(255, 90, 82, .55); background: rgba(255, 70, 60, .06); font-size: 14px; line-height: 1.5; color: var(--text-2); }
.bc-route-bad b { color: #ff9b94; }
.bc-route-x { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 90, 82, .18); color: #ff9b94; }
.bc-route-x .bc-ico { width: 15px; height: 15px; stroke-width: 2.6; }
.bc-reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.bc-reason { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(135deg, #0d1911, #07100b); }
.bc-reason-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--violet-ink); background: rgba(164, 107, 255, .12); border: 1px solid rgba(164, 107, 255, .4); }
.bc-reason .bc-h3 { margin: 14px 0 8px; font-size: 15px; }
.bc-reason p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }

/* steps: big neon numbers on a vertical progress line */
.bc-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; view-timeline: --bc-steps block; }
.bc-steps::before, .bc-steps::after { content: ""; position: absolute; left: 43px; top: 44px; bottom: 44px; width: 2px; border-radius: 2px; pointer-events: none; }
.bc-steps::before { background: rgba(66, 255, 81, .12); }
.bc-steps::after { background: linear-gradient(180deg, var(--gold), var(--violet) 55%, var(--pink)); box-shadow: 0 0 12px rgba(66, 255, 81, .45); transform-origin: top; }
.bc-step { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 0 26px; align-items: start; }
.bc-step-num {
  position: sticky; top: 92px; z-index: 1; width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%;
  font: 800 30px/1 var(--font-display); letter-spacing: -.02em; color: var(--gold); text-shadow: 0 0 16px rgba(66, 255, 81, .7); font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 50% 35%, #0f2a16, #050c08 70%); border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px var(--bg), 0 0 28px rgba(66, 255, 81, .35), inset 0 0 18px rgba(66, 255, 81, .18);
}
.bc-step-body { min-width: 0; padding: 28px 30px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(135deg, #0d1911, #07100b); }
.bc-step-body h2 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; margin: 0 0 14px; }
.bc-kicker { display: block; margin-bottom: 8px; font: 800 12px/1.2 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--pink-ink); }
.bc-step-body > p, .bc-sub > p, .bc-split > div > p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 72ch; }
.bc-step-body b { color: var(--text); }
.bc-step-body > .bc-h3 { margin-top: 22px; }
.bc-step-body .bc-h3-gap { margin-top: 28px; }
.bc-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px 28px; align-items: start; margin: 18px 0; }
.bc-split > * { min-width: 0; }
.bc-num-list { list-style: none; counter-reset: bcn; margin: 0; padding: 0; display: grid; gap: 12px; }
.bc-num-list > li { counter-increment: bcn; position: relative; min-height: 28px; padding-left: 42px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.bc-num-list > li::before { content: counter(bcn); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font: 700 13px/1 var(--font-display); color: var(--gold-ink); background: rgba(66, 255, 81, .08); border: 1px solid var(--line-hot); }
.bc-dots { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.bc-dots li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.bc-dots li::before { content: ""; position: absolute; left: 4px; top: .64em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.bc-sub { margin-top: 24px; padding: 20px 22px; border-radius: 16px; border: 1px solid rgba(164, 107, 255, .32); background: radial-gradient(60% 100% at 100% 0%, rgba(164, 107, 255, .12), transparent 70%), rgba(255, 255, 255, .015); }
.bc-sub .bc-note:last-child { margin-bottom: 0; }
.bc-sub .bc-dots:last-child { margin-bottom: 0; }
.bc-step-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 22px 0 6px; }
.bc-step-cta-note { font-size: 13px; font-weight: 600; color: var(--text-2); }

/* BestChange direction buttons (external) */
.bc-dirs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 24px; }
.bc-dir {
  position: relative; display: grid; align-content: start; gap: 8px; padding: 16px 44px 16px 18px; border-radius: 14px; color: var(--text);
  border: 1px solid var(--line); background: linear-gradient(135deg, #0f1d14, #08110c); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.bc-dir:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 0 26px rgba(66, 255, 81, .18); }
.bc-dir-from { font-size: 15px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.bc-dir-cur { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.5; color: var(--violet-ink); border: 1px solid rgba(164, 107, 255, .45); vertical-align: 1px; white-space: nowrap; }
.bc-dir-to { display: flex; align-items: center; gap: 8px; font: 700 14px/1.2 var(--font-display); color: var(--gold-ink); }
.bc-dir-to .bc-ico { width: 18px; height: 18px; stroke-width: 2.2; }
.bc-dir .bc-dir-ext { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; color: var(--muted); transition: color .2s; }
.bc-dir:hover .bc-dir-ext { color: var(--gold); }
.bc-dir-solo { width: min(100%, 340px); margin: 4px 0 4px; border-color: rgba(255, 63, 209, .4); }
.bc-dir-solo .bc-dir-to { color: var(--pink-ink); }
.bc-dir-solo:hover { border-color: var(--pink); box-shadow: 0 0 26px rgba(255, 63, 209, .2); }

/* schematic illustrations (no real exchangers, no real rates) */
.bc-pick, .bc-mon, .bc-addr-check { border-radius: 16px; border: 1px dashed rgba(164, 107, 255, .45); background: rgba(12, 9, 22, .55); }
.bc-pick { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 8px; align-items: center; padding: 14px; }
.bc-pick-col { display: grid; gap: 6px; align-self: start; min-width: 0; }
.bc-pick-head { padding: 0 4px 4px; font: 800 11px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.bc-pick-item { padding: 8px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--text-2); background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); overflow-wrap: anywhere; }
.bc-pick-item.is-on { font-weight: 800; color: var(--text); border-color: var(--gold); background: rgba(66, 255, 81, .1); box-shadow: 0 0 16px rgba(66, 255, 81, .18); }
.bc-pick-item.is-on .bc-ico { width: 15px; height: 15px; margin-right: 5px; vertical-align: -3px; color: var(--gold); stroke-width: 2.8; }
.bc-pick-item.is-bad { color: var(--muted); border-color: rgba(255, 90, 82, .3); }
.bc-pick-item small { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: #ff9b94; }
.bc-pick-arrow { display: grid; place-items: center; color: var(--gold-ink); }
.bc-mon { padding: 8px; }
.bc-mon-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr .8fr; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; font-size: 13px; }
.bc-mon-row + .bc-mon-row { margin-top: 2px; }
.bc-mon-row:not(.bc-mon-head):not(.is-top) { background: rgba(255, 255, 255, .02); }
.bc-mon-head { font: 800 11px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.bc-mon-head span { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.bc-mon-n { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font: 800 10px/1 var(--font-display); font-style: normal; color: #0b0614; background: var(--violet-ink); }
.bc-mon-row.is-top { background: rgba(66, 255, 81, .08); box-shadow: inset 3px 0 0 var(--gold); }
.bc-mon-name { min-width: 0; font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
.bc-mon-name small { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--gold-ink); }
.bc-mon-cell { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.bc-bar { display: inline-block; flex: 0 1 auto; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(192, 203, 194, .55), rgba(192, 203, 194, .2)); vertical-align: middle; }
.bc-bar.w1 { width: 38%; } .bc-bar.w2 { width: 52%; } .bc-bar.w3 { width: 66%; } .bc-bar.w4 { width: 82%; }
.bc-bar.is-good { background: linear-gradient(90deg, rgba(66, 255, 81, .85), rgba(66, 255, 81, .3)); }
.bc-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 16px 0 0; }
.bc-legend div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.bc-legend dt { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); }
.bc-legend dd { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.bc-marks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.bc-marks li { padding: 10px 12px; border-radius: 10px; border-left: 3px solid var(--violet); background: rgba(255, 255, 255, .03); font-size: 14px; line-height: 1.5; color: var(--text-2); }
.bc-marks q { display: block; margin-bottom: 2px; font-weight: 700; color: var(--text); quotes: "«" "»"; }
.bc-phone { display: grid; justify-items: center; gap: 12px; width: 100%; max-width: 270px; margin: 0 auto; padding: 16px 16px 20px; border-radius: 30px; border: 2px solid rgba(164, 107, 255, .5); background: linear-gradient(180deg, #0d1512, #070b09); box-shadow: inset 0 0 0 4px #030806, 0 0 40px rgba(164, 107, 255, .16); }
.bc-phone-bar { justify-self: stretch; display: flex; align-items: baseline; gap: 8px; padding: 2px 4px 0; font-size: 14px; font-weight: 800; color: var(--text); }
.bc-phone-bar small { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--text-2); }
.bc-phone-asset { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 15px; }
.bc-tag { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--gold-ink); border: 1px solid var(--line-hot); background: rgba(66, 255, 81, .08); white-space: nowrap; }
.bc-qr { width: 132px; height: 132px; padding: 10px; border-radius: 12px; background: #eaf5ec; box-shadow: 0 0 20px rgba(66, 255, 81, .15); }
.bc-qr svg { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; }
.bc-phone-addr, .bc-addr { font: 600 13px/1.3 Consolas, Menlo, monospace; color: var(--text-2); padding: 7px 10px; border-radius: 8px; background: #050d08; border: 1px solid var(--line); word-break: break-all; }
.bc-phone-addr mark, .bc-addr mark { padding: 0 2px; border-radius: 4px; color: var(--gold-ink); background: rgba(66, 255, 81, .18); }
.bc-fake-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px; font-size: 13px; font-weight: 800; color: var(--on-accent); background: var(--gold); box-shadow: 0 0 16px rgba(66, 255, 81, .3); }
.bc-fake-btn .bc-ico { width: 16px; height: 16px; stroke-width: 2.2; }
.bc-addr-check { display: grid; gap: 10px; padding: 16px; }
.bc-addr-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) 24px; align-items: center; gap: 10px; }
.bc-addr-lbl { font-size: 12px; font-weight: 700; color: var(--text-2); }
.bc-addr { font-size: 14px; }
.bc-ok { display: grid; place-items: center; color: var(--gold); }
.bc-ok .bc-ico { stroke-width: 2.6; filter: drop-shadow(0 0 6px rgba(66, 255, 81, .6)); }
.bc-addr-hint { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.bc-paywin { max-width: 330px; margin: 0 auto; padding: 8px; border-radius: 18px; background: linear-gradient(160deg, rgba(66, 255, 81, .5), rgba(164, 107, 255, .45) 55%, rgba(255, 63, 209, .45)); box-shadow: 0 0 36px rgba(164, 107, 255, .14); }
.bc-paywin-in { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: #08100b; }
.bc-paywin-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font: 700 13px/1.2 var(--font-display); color: var(--text); }
.bc-paywin-timer { display: inline-flex; align-items: center; gap: 5px; font: 700 12px/1.2 var(--font); color: #ffcf7a; }
.bc-paywin-timer .bc-ico { width: 16px; height: 16px; }
.bc-paywin-row { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.bc-paywin-row small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.bc-paywin-row b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text); }
.bc-paywin-row .bc-bar { width: 56px; }
.bc-paywin-addr .bc-addr { padding: 4px 8px; font-size: 13px; }
.bc-paywin-addr .bc-ico { width: 18px; height: 18px; color: var(--gold-ink); }

/* pre-send checklist: real checkboxes; counter and "ready" line are CSS only */
.bc-checklist { counter-reset: bcdone; padding: 28px 30px; border-radius: 20px; border: 1px solid rgba(66, 255, 81, .35); box-shadow: var(--glow); background: radial-gradient(60% 90% at 100% 0%, rgba(164, 107, 255, .14), transparent 70%), linear-gradient(135deg, #0d1911, #07100b); }
.bc-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bc-check { display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: 14.5px; line-height: 1.5; color: var(--text-2); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.bc-check:hover { border-color: var(--line-hot); }
.bc-check b { color: var(--text); }
.bc-check input {
  -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; margin: 0; padding: 0; border-radius: 7px; cursor: pointer;
  border: 2px solid var(--line-hot); background: #050d08; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.bc-check input:checked {
  counter-increment: bcdone; border-color: var(--gold); box-shadow: 0 0 12px rgba(66, 255, 81, .5);
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23041006' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.bc-check input:focus { outline: none; }
.bc-check input:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.bc-check:has(input:checked) { border-color: var(--line-hot); background: rgba(66, 255, 81, .06); color: var(--text); }
.bc-check-status { margin: 16px 0 0; font-size: 13px; font-weight: 700; color: var(--text-2); }
.bc-check-status::before { content: "Отмечено: " counter(bcdone) " из 6"; }
.bc-check-ready { display: none; align-items: center; gap: 8px; margin: 16px 0 0; font-weight: 800; color: var(--gold-ink); }
.bc-check-ready .bc-ico { stroke-width: 2.6; }
.bc-checklist:not(:has(input:not(:checked))) .bc-check-ready { display: flex; }
.bc-checklist:not(:has(input:not(:checked))) .bc-check-status { display: none; }

/* FAQ */
.bc-faq { padding: 6px 26px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(135deg, #0d1911, #07100b); }
.bc-faq details { padding: 16px 0; }
.bc-faq details:first-child { border-top: 0; }
.bc-faq details:last-of-type { border-bottom: 0; }
.bc-faq summary { font-size: 15.5px; line-height: 1.4; transition: color .2s; }
.bc-faq summary:hover, .bc-faq details[open] summary { color: var(--gold-ink); }
.bc-faq summary:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 4px; border-radius: 4px; }
.bc-faq details p { max-width: 75ch; line-height: 1.6; }

/* final CTA band + disclaimer */
.bc-final {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 32px; margin-top: 56px; padding: 30px 34px; border-radius: 20px;
  border: 1px solid rgba(255, 63, 209, .4); box-shadow: 0 0 50px rgba(164, 107, 255, .18), inset 0 0 60px rgba(255, 63, 209, .06);
  background: radial-gradient(60% 120% at 0% 50%, rgba(66, 255, 81, .14), transparent 60%), radial-gradient(55% 130% at 100% 0%, rgba(255, 63, 209, .22), transparent 60%), linear-gradient(120deg, #0a1410, #150a1c 60%, #1a0920);
}
.bc-final .promo-label { margin: 0; }
.bc-final-h { font-size: clamp(24px, 2.6vw, 34px); margin: 8px 0; }
.bc-final-text { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.55; color: var(--text); max-width: 42em; }
.bc-disclaimer { margin: 28px 0 0; max-width: 100ch; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* motion: entrance, floating art, flowing dashes; scroll-driven fill and reveal where supported */
@media (prefers-reduced-motion: no-preference) {
  html:has(.bc-page) { scroll-behavior: smooth; }
  .bc-hero-copy > * { animation: bc-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .bc-hero-copy > :nth-child(2) { animation-delay: .06s; }
  .bc-hero-copy > :nth-child(3) { animation-delay: .12s; }
  .bc-hero-copy > :nth-child(4) { animation-delay: .16s; }
  .bc-hero-copy > :nth-child(5) { animation-delay: .22s; }
  .bc-hero-copy > :nth-child(n+6) { animation-delay: .28s; }
  .bc-hero-art { animation: bc-fade .9s .15s ease-out both; }
  .bc-orbit { animation: bc-spin 60s linear infinite; }
  .bc-orbit-2 { animation-duration: 90s; animation-direction: reverse; }
  .bc-float { animation: bc-float 5s ease-in-out infinite; }
  .bc-float-2 { animation-duration: 6s; animation-delay: -2s; }
  .bc-float-3 { animation-duration: 5.6s; animation-delay: -3.5s; }
  .bc-flow { stroke-dasharray: 5 7; animation: bc-dash 1.4s linear infinite; }
  .bc-note-stop .bc-note-ico { animation: bc-alarm 2.6s ease-in-out infinite; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bc-steps::after { animation: bc-fill linear both; animation-timeline: --bc-steps; animation-range: entry 50% exit 50%; }
    .bc-step-body, .bc-term, .bc-reason, .bc-route li, .bc-checklist, .bc-final { animation: bc-in linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@keyframes bc-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bc-fade { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bc-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes bc-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bc-spin { to { transform: rotate(360deg); } }
@keyframes bc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bc-dash { to { stroke-dashoffset: -24; } }
@keyframes bc-alarm { 0%, 100% { box-shadow: 0 0 10px rgba(255, 90, 82, .45); } 50% { box-shadow: 0 0 22px rgba(255, 90, 82, .85); } }

@media (max-width: 1000px) {
  .bc-hero { grid-template-columns: minmax(0, 1fr) 210px; gap: 20px 24px; padding: 34px 30px; }
  .bc-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .bc-quick::before { display: none; }
  .bc-terms, .bc-reasons { grid-template-columns: 1fr; }
  .bc-term, .bc-reason { padding: 18px; }
  .bc-reason { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; }
  .bc-reason-ico { grid-row: span 2; }
  .bc-reason .bc-h3 { margin: 2px 0 0; }
  .bc-steps::before, .bc-steps::after { left: 31px; top: 32px; bottom: 32px; }
  .bc-step { grid-template-columns: 64px minmax(0, 1fr); gap: 0 18px; }
  .bc-step-num { width: 64px; height: 64px; font-size: 22px; box-shadow: 0 0 0 5px var(--bg), 0 0 24px rgba(66, 255, 81, .35), inset 0 0 14px rgba(66, 255, 81, .18); }
  .bc-split { grid-template-columns: 1fr; }
  .bc-dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .bc-route { grid-template-columns: 1fr; gap: 14px; }
  .bc-route li { grid-template-columns: 44px minmax(0, 1fr); justify-items: start; align-items: center; gap: 2px 14px; padding: 12px 14px; text-align: left; }
  .bc-route-ico { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .bc-route li:not(:last-child)::after { top: auto; right: auto; left: 32px; bottom: -13px; transform: rotate(135deg); }
}
@media (max-width: 680px) {
  .bc-page [id] { scroll-margin-top: 112px; }
  .bc-hero { grid-template-columns: 1fr; padding: 26px 18px 22px; border-radius: 18px; }
  .bc-hero-art { display: none; }
  .bc-h1 { font-size: clamp(22px, 7vw, 32px); margin: 12px 0 14px; }
  .bc-h1 span { font-size: max(15px, .5em); }
  .bc-lead { font-size: 15.5px; }
  .bc-ctas { display: grid; gap: 8px; margin-top: 18px; }
  .bc-facts { gap: 12px 22px; margin-top: 20px; padding-top: 14px; }
  .bc-facts dt { font-size: 17px; }
  .bc-facts dd { font-size: 12px; }
  .bc-sec, .bc-final { margin-top: 40px; }
  .bc-note { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .bc-note-stop { padding-left: 14px; }
  .bc-note-ico { width: 30px; height: 30px; border-radius: 9px; }
  .bc-note-ico .bc-ico { width: 18px; height: 18px; }
  .bc-note p { font-size: 14px; }
  .bc-steps { gap: 22px; }
  .bc-steps::before, .bc-steps::after { display: none; }
  .bc-step { grid-template-columns: 1fr; }
  .bc-step-num { position: relative; top: auto; width: 60px; height: 60px; margin: 0 0 -30px 16px; font-size: 21px; }
  .bc-step-body { padding: 42px 16px 20px; border-radius: 16px; }
  .bc-step-body h2 { font-size: 20px; }
  .bc-step-body > p, .bc-sub > p, .bc-split > div > p, .bc-num-list > li, .bc-dots li { font-size: 14.5px; }
  .bc-num-list > li { padding-left: 38px; }
  .bc-sub { padding: 16px 14px; }
  .bc-dirs { grid-template-columns: 1fr; gap: 10px; }
  .bc-dir { padding: 14px 42px 14px 16px; }
  .bc-dir-solo { width: 100%; }
  .bc-step-cta .btn { width: 100%; }
  /* monitoring table becomes one card per exchanger */
  .bc-mon-head { display: none; }
  .bc-mon-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 12px; }
  .bc-mon-row + .bc-mon-row { margin-top: 6px; }
  .bc-mon-name { grid-column: 1 / -1; }
  .bc-mon-cell { flex-wrap: wrap; gap: 4px 6px; }
  .bc-mon-cell::before { content: attr(data-l); flex-basis: 100%; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
  .bc-addr-row { grid-template-columns: minmax(0, 1fr) 24px; gap: 4px 10px; }
  .bc-addr-lbl { grid-column: 1 / -1; }
  .bc-checklist { padding: 20px 14px; border-radius: 16px; }
  .bc-checks { grid-template-columns: 1fr; }
  .bc-faq { padding: 2px 16px; border-radius: 16px; }
  .bc-faq summary { font-size: 15px; }
  .bc-final { grid-template-columns: 1fr; padding: 24px 18px; border-radius: 18px; }
  .bc-final-btn { width: 100%; }
}
@media (max-width: 560px) {
  .bc-quick { grid-template-columns: 1fr; gap: 8px; }
  .bc-q { grid-template-columns: 48px minmax(0, 1fr); justify-items: start; align-items: center; gap: 14px; padding: 10px 12px; text-align: left; border: 1px solid var(--line); background: linear-gradient(135deg, #0d1911, #07100b); }
  .bc-q-ico { width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 0 16px rgba(66, 255, 81, .15); }
  .bc-q-ico .bc-ico { width: 24px; height: 24px; }
}
@media (max-width: 400px) {
  .bc-pick { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); gap: 6px; padding: 10px; }
  .bc-pick-arrow .bc-ico { width: 16px; height: 16px; }
  .bc-pick-item { padding: 7px 8px; font-size: 12px; }
  .bc-facts { flex-direction: column; gap: 10px; }
}

/* buy-crypto v2: crypto basics, coin choice, directions grouped by currency, withdrawal note */
.bc-basics .bc-term-name { display: flex; align-items: center; gap: 10px; font-size: 19px; line-height: 1.15; }
.bc-term-ico { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bc-coin-grid { display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 14px; margin-bottom: 16px; }
.bc-coin { padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(135deg, #0d1911, #07100b); }
.bc-coin header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 14px; }
.bc-coin header b { font: 800 26px/1 var(--font-display); color: var(--text); }
.bc-coin header span { font-size: 13px; font-weight: 700; color: var(--muted); }
.bc-coin header em { margin-left: auto; padding: 3px 10px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-ink); border: 1px solid rgba(164, 107, 255, .45); }
.bc-coin dl { display: grid; gap: 10px; margin: 0; }
.bc-coin dl div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.45; }
.bc-coin dt { font-weight: 700; color: var(--muted); }
.bc-coin dd { margin: 0; color: var(--text-2); }
.bc-coin dd b { color: var(--text); }
.bc-coin code { font-size: 12.5px; color: var(--gold-ink); background: rgba(66, 255, 81, .08); padding: 0 5px; border-radius: 5px; word-break: normal; }
.bc-coin.is-best { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(66, 255, 81, .35), 0 0 34px rgba(66, 255, 81, .14); background: radial-gradient(70% 60% at 100% 0%, rgba(66, 255, 81, .12), transparent 70%), linear-gradient(135deg, #0d1911, #07100b); }
.bc-coin.is-best header b { color: var(--gold); text-shadow: 0 0 20px rgba(66, 255, 81, .4); }
.bc-coin.is-best header em { color: var(--on-accent); background: var(--gold); border-color: var(--gold); }
.bc-coin.is-minor { opacity: .9; }
.bc-src-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 18px 0 18px; }
.bc-src-title { margin: 0 0 10px; font: 700 13px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--pink-ink); }
.bc-src-list { display: grid; gap: 8px; }
.bc-src { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(135deg, #0f1d14, #08110c); }
.bc-src .bc-dir-from { font-size: 14.5px; }
.bc-src-links { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-src-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font: 700 12.5px/1.2 var(--font-display); color: var(--gold-ink); border: 1px solid rgba(66, 255, 81, .35); background: rgba(66, 255, 81, .05); white-space: nowrap; transition: border-color .2s, box-shadow .2s, background .2s; }
.bc-src-links a .bc-ico { width: 14px; height: 14px; stroke-width: 2.4; }
.bc-src-links a:hover { text-decoration: none; border-color: var(--gold); background: rgba(66, 255, 81, .12); box-shadow: 0 0 18px rgba(66, 255, 81, .2); }
.bc-out { margin-top: 0; }
.bc-out .bc-h3 { font-size: 20px; }
.bc-out p { margin: 0; color: var(--text-2); line-height: 1.6; }
@media (max-width: 1000px) {
  .bc-coin-grid { grid-template-columns: 1fr 1fr; }
  .bc-coin.is-minor { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .bc-src-groups { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .bc-coin-grid { grid-template-columns: 1fr; }
  .bc-coin { padding: 18px; }
  .bc-coin dl div { grid-template-columns: 74px minmax(0, 1fr); }
  .bc-src { padding: 12px; }
}
.nav-count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; color: var(--on-accent); background: #ffcf7a; }

/* SEO: keyword kicker inside the home H1 (looks like the old eyebrow) and the text block at the bottom of the home page */
.hp-h1 .hp-h1-kw {
  display: flex; margin: 0 0 16px; font-family: var(--font); font-size: 12px; font-weight: 800; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--pink-ink); filter: none;
}
.hp-seo-text { display: grid; gap: 14px; max-width: 78ch; }
.hp-seo-text p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.hp-seo-text b { color: var(--text); }
.hp-seo-text a, .hp-seo-faq a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.hp-seo-faq { max-width: 78ch; margin-top: 28px; }
.hp-seo-faq h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--text); }
.hp-seo-faq summary:hover, .hp-seo-faq details[open] summary { color: var(--gold-ink); }
.hp-seo-faq details p { line-height: 1.6; }
.hp-seo-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); max-width: 78ch; }
.game > .hp-seo-note { margin-top: 22px; }
.hp-seo-note a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) {
  .hp-h1 .hp-h1-kw { font-size: 11px; margin-bottom: 8px; letter-spacing: .14em; }
  .hp-seo-text p { font-size: 14px; }
}

/* ===== app shell v2: shared tokens, icons, badges, focus ===== */
:root { --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --tabbar-h: 64px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico .f { fill: currentColor; stroke: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .btn-ghost:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.btn:active, .btn-ghost:active { transform: translateY(0) scale(.98); }
.badge { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.badge-new { color: #1a0216; background: var(--pink); box-shadow: 0 0 12px rgba(255, 63, 209, .45); }
.badge-hot { color: #1b0a00; background: #ffb547; box-shadow: 0 0 12px rgba(255, 181, 71, .4); }
.badge-live { color: var(--on-accent); background: var(--gold); box-shadow: 0 0 12px rgba(66, 255, 81, .45); }
.tile { transition: border-color .2s; }
.tile:hover { border-color: rgba(66, 255, 81, .32); }

/* header: balance pill + bright top-up button; guests get "Вход" and "Регистрация" with the start bonus badge */
.logo { flex: none; }
.top-user { gap: 8px; min-width: 0; }
.chip-balance { gap: 8px; height: 40px; min-width: 0; padding: 0 15px 0 6px; background: linear-gradient(180deg, rgba(14, 32, 19, .92), rgba(4, 14, 8, .92)); border-color: rgba(66, 255, 81, .32); transition: border-color .2s, box-shadow .2s; }
.chip-balance .coin { flex: none; width: 26px; height: 26px; }
.chip-balance b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.hdr-topup { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; font-size: 14px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.hdr-topup .ico { stroke-width: 2.6; }
.hdr-icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; color: var(--text-2); border: 1px solid var(--line); background: rgba(4, 16, 8, .7); transition: color .2s, border-color .2s; }
.hdr-icon:hover { color: var(--gold-ink); border-color: var(--line-hot); text-decoration: none; }
.hdr-reg { position: relative; }
.hdr-bonus { position: absolute; top: -9px; right: -8px; padding: 1px 6px; border-radius: 999px; font: 800 10.5px/1.5 var(--font); letter-spacing: .02em; white-space: nowrap; color: #1a0216; background: var(--pink); box-shadow: 0 0 12px rgba(255, 63, 209, .55); pointer-events: none; }
@media (max-width: 1100px) {
  .nav-long { display: none; }
  .nav-short { display: inline; }
}
@media (min-width: 681px) and (max-width: 1000px) {
  .hdr-topup { width: 40px; padding: 0; }
  .hdr-topup span { display: none; }
}

/* phone tab bar (fixed, safe-area aware); the body reserves its height so nothing hides under it */
.tabbar { display: none; }
@media (max-width: 680px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  /* one-line header: logo + wallet; the menu moves to the tab bar */
  .top-in { flex-wrap: nowrap; gap: 10px; padding-top: 0; min-height: 58px; }
  .nav { display: none; }
  .top-user { margin-left: auto; gap: 6px; }
  .hdr-logout { display: none; }
  .chip-balance { height: 36px; gap: 6px; padding: 0 12px 0 5px; }
  .chip-balance .coin { width: 22px; height: 22px; }
  .chip-balance b { font-size: 14px; }
  .hdr-topup { height: 36px; padding: 0 12px 0 9px; font-size: 13px; }
  .hdr-icon { width: 36px; height: 36px; }

  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .tabbar {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left));
    background: rgba(3, 8, 6, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(94, 255, 112, .16); box-shadow: 0 -10px 30px rgba(0, 0, 0, .45);
  }
  .tb-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; height: var(--tabbar-h); color: #a3b3a7; font-size: 11px; font-weight: 700; line-height: 1.1; -webkit-tap-highlight-color: transparent; transition: color .2s; }
  .tb-item:hover { color: var(--text); text-decoration: none; }
  .tb-item.on { color: var(--gold-ink); }
  .tb-item.on .tb-ico { filter: drop-shadow(0 0 8px rgba(66, 255, 81, .6)); }
  .tb-item:focus-visible { outline-offset: -4px; border-radius: 12px; }
  .tb-ico { display: grid; place-items: center; }
  .tb-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tb-main { justify-content: flex-end; padding-bottom: 7px; color: var(--text); }
  .tb-main .tb-ico { width: 52px; height: 52px; margin-top: -22px; border-radius: 50%; color: var(--on-accent); background: radial-gradient(circle at 35% 30%, #d9ffcf, var(--gold-2) 32%, var(--gold) 72%); box-shadow: 0 0 0 4px var(--bg), 0 0 22px rgba(66, 255, 81, .55); transition: transform .2s; }
  .tb-main.on .tb-ico { filter: none; }
  .tb-main .ico { stroke-width: 2.4; }
  .tb-main:active .tb-ico { transform: scale(.94); }
  .toast { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 420px) {
  .hdr-topup { width: 36px; padding: 0; }
  .hdr-topup span { display: none; }
  .hdr-login { display: none; } /* "Вход" lives in the tab bar */
}
@media (max-width: 360px) {
  .hdr-admin { display: none; }
}

/* home: promo strip — three banners in a row on desktop, a swipeable scroll-snap strip below 1000px */
.hp-hero + .pr { margin-top: 28px; }
.pr + .hp-sec { margin-top: 40px; }
.pr-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; }
.pr-slide { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 76px; align-items: center; gap: 12px; min-height: 150px; padding: 20px 18px 18px 22px; border-radius: var(--r-lg); border: 1px solid; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pr-slide:hover { transform: translateY(-3px); }
.pr-green { color: var(--gold-ink); border-color: rgba(66, 255, 81, .38); background: radial-gradient(80% 120% at 100% 0%, rgba(66, 255, 81, .18), transparent 60%), linear-gradient(135deg, #0d1d12, #060d09); }
.pr-pink { color: var(--pink-ink); border-color: rgba(255, 63, 209, .4); background: radial-gradient(80% 120% at 100% 0%, rgba(255, 63, 209, .2), transparent 60%), linear-gradient(135deg, #1a0d18, #0a070b); }
.pr-violet { color: var(--violet-ink); border-color: rgba(164, 107, 255, .45); background: radial-gradient(80% 120% at 100% 0%, rgba(164, 107, 255, .24), transparent 60%), linear-gradient(135deg, #120d1d, #08070d); }
.pr-green:hover { border-color: rgba(66, 255, 81, .75); box-shadow: 0 0 28px rgba(66, 255, 81, .16); }
.pr-pink:hover { border-color: rgba(255, 63, 209, .75); box-shadow: 0 0 28px rgba(255, 63, 209, .18); }
.pr-violet:hover { border-color: rgba(164, 107, 255, .8); box-shadow: 0 0 28px rgba(164, 107, 255, .2); }
.pr-copy { display: grid; justify-items: start; gap: 4px; min-width: 0; }
.pr-kicker { font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; color: inherit; }
.pr-title { margin: 0; font: 700 19px/1.15 var(--font-display); letter-spacing: -.01em; color: #fff; overflow-wrap: break-word; }
.pr-text { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--text-2); }
.pr-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 14px; border-radius: 999px; font: 700 13px/1.2 var(--font-display); color: var(--on-accent); background: var(--gold); box-shadow: 0 0 18px rgba(66, 255, 81, .28); transition: background .2s, box-shadow .2s; }
.pr-btn::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* the whole banner is the tap target */
.pr-btn:hover { text-decoration: none; }
.pr-slide:hover .pr-btn { background: var(--gold-2); box-shadow: 0 0 26px rgba(66, 255, 81, .5); }
.pr-art { width: 76px; height: 76px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 12px currentColor); opacity: .95; }
.pr-18 { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; line-height: 1.5; color: var(--text-2); border: 1px solid rgba(255, 255, 255, .22); background: rgba(3, 8, 6, .65); pointer-events: none; }
.pr-dots { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .pr-art { animation: pr-float 5s ease-in-out infinite; }
  .pr-slide:nth-child(2) .pr-art { animation-delay: -1.6s; }
  .pr-slide:nth-child(3) .pr-art { animation-delay: -3.2s; }
}
@keyframes pr-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@media (max-width: 1000px) {
  .pr-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 -20px; padding: 4px 20px 6px; scroll-padding: 0 20px; }
  .pr-track::-webkit-scrollbar { display: none; }
  .pr-slide { flex: 0 0 min(440px, 86%); scroll-snap-align: center; }
  .pr-dots { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
  .pr-dot { display: grid; place-items: center; width: 28px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
  .pr-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .28); transition: width .25s, background .25s; }
  .pr-dot.on::before { width: 22px; background: var(--gold); box-shadow: 0 0 10px rgba(66, 255, 81, .6); }
}
@media (max-width: 680px) {
  .hp-hero + .pr { margin-top: 24px; }
  .pr + .hp-sec { margin-top: 32px; }
  .pr-track { margin: 0 -16px; padding: 4px 16px 6px; scroll-padding: 0 16px; }
  .pr-slide { flex-basis: 86%; min-height: 136px; grid-template-columns: minmax(0, 1fr) 54px; gap: 10px; padding: 16px 12px 16px 16px; }
  .pr-art { width: 54px; height: 54px; }
  .pr-title { font-size: 17px; }
  .pr-text { font-size: 13px; }
}

/* home: denser lobby — 4 / 3 / 2 columns, 1 on phones; badges row on top of each card */
.hp-tables-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hp-tc-badges { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hp-tc-badges .hp-live { position: static; min-width: 0; max-width: 100%; }
.hp-table .tc-girls { padding: 44px 12px 6px; gap: 6px; }
.hp-table .tc-girl img, .hp-table .tc-girl .girl-video, .hp-table .tc-girl .live-photo { max-width: 124px; }
.hp-table .tc-girl figcaption { font-size: 14px; }
.hp-table .hp-quote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; padding: 2px 14px 10px; font-size: 13px; }
.hp-table .tc-foot { padding: 10px 12px; }
.hp-table .tc-foot b { font-size: 14px; }
.hp-table .hp-timer { font-size: 12px; }
@media (max-width: 1240px) { .hp-tables-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .hp-tables-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .hp-tables-grid { grid-template-columns: 1fr; }
  .hp-table .tc-girl img, .hp-table .tc-girl .girl-video, .hp-table .tc-girl .live-photo { max-width: 118px; }
}

/* provably fair: shield button next to a roll (bet history, game page) and clickable roll chips at the table */
.fair-chk { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; vertical-align: middle; color: var(--gold-ink); border: 1px solid rgba(66, 255, 81, .35); background: rgba(66, 255, 81, .06); transition: border-color .2s, background .2s, box-shadow .2s; }
.fair-chk:hover { text-decoration: none; border-color: var(--gold); background: rgba(66, 255, 81, .12); box-shadow: 0 0 14px rgba(66, 255, 81, .25); }
.fair-chk .ico { stroke-width: 2; }
td > .fair-chk:first-child { margin-left: 0; }
a.hist { color: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
a.hist:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 0 12px rgba(66, 255, 81, .3); }
.fair-hint { display: flex; align-items: center; gap: 6px; margin: -8px 0 16px; font-size: 12px; font-weight: 600; color: var(--muted); }
.fair-hint .ico { color: var(--gold-ink); }

/* account: dashboard — wallet card with the money actions, fair-play card next to it */
.acc-dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.acc-wallet, .acc-bonus { position: relative; overflow: hidden; display: grid; align-content: start; justify-items: start; gap: 6px; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.acc-wallet { border-color: var(--line-hot); box-shadow: 0 0 34px rgba(66, 255, 81, .1); background: radial-gradient(60% 90% at 100% 0%, rgba(66, 255, 81, .16), transparent 65%), radial-gradient(50% 80% at 0% 100%, rgba(164, 107, 255, .12), transparent 70%), linear-gradient(135deg, #0d1d12, #060d09); }
.acc-bonus { border-color: rgba(255, 63, 209, .35); box-shadow: none; background: radial-gradient(70% 90% at 100% 0%, rgba(255, 63, 209, .16), transparent 65%), linear-gradient(135deg, #160d16, #08070a); }
.acc-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.acc-num { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 2px 0 0; }
.acc-num .coin { flex: none; width: 34px; height: 34px; }
.acc-num b { font: 800 clamp(30px, 4vw, 44px)/1 var(--font-display); letter-spacing: -.02em; color: var(--gold); text-shadow: 0 0 24px rgba(66, 255, 81, .35); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.acc-num small { font-size: 14px; font-weight: 700; color: var(--text-2); }
.acc-usd { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.acc-topup, .acc-withdraw { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; font-size: 15px; border-radius: var(--r-md); }
.acc-topup { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.acc-topup .ico { stroke-width: 2.6; }
.acc-help { margin-top: 6px; font-size: 13px; font-weight: 700; }
.acc-bonus-num { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--text-2); }
.acc-bonus-num b { margin-right: 4px; font: 800 22px/1.15 var(--font-display); color: var(--pink-ink); font-variant-numeric: tabular-nums; }
.acc-bonus-text { margin: 0; font-size: 14px; color: var(--text-2); }
.acc-bonus-btn { margin-top: 8px; }
.acc-logout { display: none; margin: 8px 0 0; }
@media (max-width: 680px) {
  .acc-dash { grid-template-columns: 1fr; gap: 10px; }
  .acc-wallet, .acc-bonus { padding: 18px 16px; }
  .acc-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .acc-actions > :only-child { grid-column: 1 / -1; }
  .acc-topup, .acc-withdraw { padding: 13px 10px; }
  .acc-logout { display: block; }
  .acc-logout .btn-ghost { width: 100%; }
}

/* footer: brand + coins, three link columns, the responsible-play line */
.foot { padding: 40px 0 28px; color: var(--muted); font-size: 14px; background: linear-gradient(180deg, rgba(4, 12, 7, 0), rgba(4, 12, 7, .85) 40%); }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.ft-brand p { margin: 12px 0 0; max-width: 34ch; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.ft-h { margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.ft-brand .ft-h { margin: 22px 0 10px; color: var(--text); max-width: none; font-size: 11px; line-height: 1.3; }
.ft-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ft-col a { color: #a9bbad; font-size: 14px; font-weight: 600; transition: color .2s, transform .2s; }
.ft-col a:hover { color: var(--gold-ink); text-decoration: none; transform: translateX(2px); }
.ft-fair { display: inline-flex; align-items: center; gap: 6px; }
.ft-fair .ico { color: var(--gold-ink); }
.ft-coins { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ft-coins li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--text-2); }
.ft-coins svg { flex: none; }
.ft-legal { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .07); }
.ft-18 { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--pink-ink); color: var(--pink-ink); font: 800 14px/1 var(--font-display); }
.ft-legal p { margin: 0; max-width: 100ch; font-size: 13px; line-height: 1.6; color: var(--muted); }
.ft-legal .ft-resp { margin-bottom: 4px; font-size: 14px; font-weight: 800; color: var(--text); }
.ft-legal .ft-copy { margin-top: 8px; }
@media (max-width: 1000px) {
  .ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .foot { padding: 32px 0 24px; }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .ft-col a { padding: 3px 0; }
  .ft-legal { grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
}

/* the phone .wrap rule resets padding shorthand and with it the gap under the one-line header */
@media (max-width: 680px) { .main { padding-top: 18px; } }

/* live bets feed (home and table) */
.feed { padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(60% 80% at 100% 0%, rgba(164, 107, 255, .08), transparent 70%), linear-gradient(135deg, #0b170f, #07100b); }
.feed-at-table { margin-top: 18px; }
.feed-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.feed-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(19px, 2vw, 24px); }
.feed-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.feed-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(66, 255, 81, .15), 0 0 14px var(--gold); flex: none; }
.feed-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.feed-tabs button { font: 700 13px/1 var(--font); color: var(--text-2); background: transparent; border: 0; border-radius: 9px; padding: 9px 13px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.feed-tabs button small { font-weight: 600; color: var(--muted); }
.feed-tabs button:hover { color: var(--text); }
.feed-tabs button.on { color: var(--on-accent); background: var(--gold); box-shadow: 0 0 16px rgba(66, 255, 81, .3); }
.feed-tabs button.on small { color: var(--on-accent); opacity: .75; }
.feed-cols, .feed-row { display: grid; grid-template-columns: 1fr 1.3fr .9fr .8fr .6fr .9fr; gap: 10px; align-items: center; }
.feed-cols { padding: 0 12px 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.feed-cols .fc-num, .feed-amount, .feed-coef, .feed-result { text-align: right; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.feed-row { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .04); font-size: 14px; }
.feed-row.is-new { animation: feed-in .5s ease-out; }
.feed-player { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.feed-table { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-table:hover { color: var(--gold-ink); }
.feed-choice { justify-self: start; }
.feed-amount, .feed-coef { font-variant-numeric: tabular-nums; color: var(--text-2); }
.feed-result { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.feed-row.is-won .feed-result { color: var(--gold-ink); text-shadow: 0 0 12px rgba(66, 255, 81, .35); }
.feed-row.is-won { border-color: rgba(66, 255, 81, .18); }
.feed-row.is-lost .feed-result, .feed-row.is-refund .feed-result { color: var(--muted); }
/* show eight rows, the rest behind "Показать ещё" (a checkbox, no JS) */
.feed-list > :nth-child(n+9) { display: none; }
.feed-more-cb:checked ~ .feed-list > * { display: grid; }
.feed-more { display: none; margin-top: 10px; text-align: center; font-size: 13px; font-weight: 700; color: var(--gold-ink); cursor: pointer; }
.feed:has(.feed-list > :nth-child(9)) .feed-more { display: block; }
.feed-more .fm-close, .feed-more-cb:checked ~ .feed-more .fm-open { display: none; }
.feed-more-cb:checked ~ .feed-more .fm-close { display: inline; }
.feed-empty { margin: 4px 0 0; padding: 18px; border-radius: 12px; border: 1px dashed var(--line); text-align: center; color: var(--text-2); font-size: 14px; }
.feed-empty > span { display: none; }
.feed-empty .fe-all { display: inline; }
.feed:has([data-feed-tab="big"].on) .feed-empty .fe-all, .feed:has([data-feed-tab="mine"].on) .feed-empty .fe-all { display: none; }
.feed:has([data-feed-tab="big"].on) .feed-empty .fe-big, .feed:has([data-feed-tab="mine"].on) .feed-empty .fe-mine { display: inline; }
.feed-empty .btn-ghost { margin-left: 8px; }
.feed-guest { margin: 12px 0 0; font-size: 13px; color: var(--text-2); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-6px); background: rgba(66, 255, 81, .12); } to { opacity: 1; transform: none; } }

/* players at a table: home cards and the table head */
.hp-players { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text); background: rgba(3, 8, 6, .78); border: 1px solid rgba(255, 255, 255, .12); white-space: nowrap; }
.hp-players::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet-ink); box-shadow: 0 0 8px var(--violet); }
.players-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--text-2); border: 1px solid rgba(164, 107, 255, .4); background: rgba(164, 107, 255, .08); }
.players-pill[hidden] { display: none; }
.players-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--violet-ink); box-shadow: 0 0 10px var(--violet); }
.players-pill b { color: var(--text); font-variant-numeric: tabular-nums; }

/* money notices: toasts under the header, away from the tab bar and the bet panel */
.nt-stack { position: fixed; top: 84px; right: 20px; z-index: 60; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.nt { position: relative; display: block; padding: 14px 40px 14px 16px; border-radius: 14px; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text); background: #0d1b12; border: 1px solid var(--line); box-shadow: var(--shadow); pointer-events: auto; animation: nt-in .3s ease-out; text-decoration: none; }
a.nt:hover { text-decoration: none; border-color: var(--gold); }
.nt-credit, .nt-payout { border-color: rgba(66, 255, 81, .55); box-shadow: var(--shadow), 0 0 26px rgba(66, 255, 81, .18); }
.nt-reject { border-color: rgba(255, 207, 122, .6); }
.nt-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.nt-x:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
@keyframes nt-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nt-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nt-item { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .025); border-left: 3px solid var(--line); font-size: 14px; }
.nt-item.nt-credit, .nt-item.nt-payout { border-left-color: var(--gold); }
.nt-item.nt-reject { border-left-color: #ffcf7a; }
.nt-time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

@media (max-width: 680px) {
  .feed { padding: 16px 14px; }
  .feed-tabs { width: 100%; }
  .feed-tabs button { flex: 1; padding: 9px 6px; }
  .feed-cols { display: none; }
  /* phone: two lines per bet — who and where, then outcome, stake and result */
  .feed-row { grid-template-columns: auto 1fr auto; grid-template-areas: "player table result" "choice amount coef"; gap: 6px 10px; }
  .feed-player { grid-area: player; }
  .feed-table { grid-area: table; font-size: 13px; }
  .feed-result { grid-area: result; }
  .feed-choice { grid-area: choice; }
  .feed-amount { grid-area: amount; text-align: left; font-size: 13px; }
  .feed-amount::after { content: " ток."; color: var(--muted); }
  .feed-coef { grid-area: coef; font-size: 13px; }
  .nt-stack { top: 66px; left: 16px; right: 16px; width: auto; }
  .game-head .players-pill { font-size: 12px; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .feed-row.is-new, .nt { animation: none; }
}

/* admin: site texts */
.tx-groups { margin-bottom: 16px; }
.tx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.tx-form { display: grid; gap: 16px; }
.tx-form h2 { margin: 0; }
.tx-item { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.tx-item.is-edited { border-color: rgba(66, 255, 81, .4); background: rgba(66, 255, 81, .03); }
.tx-item > label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.tx-item textarea { resize: vertical; min-height: 60px; line-height: 1.5; }
.tx-badge { margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--on-accent); background: var(--gold); vertical-align: 1px; }
.tx-default summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.tx-default p { margin: 6px 0 0; font-size: 13px; color: var(--text-2); white-space: pre-line; }
.tx-reset { font-size: 13px; color: var(--text-2); }
.tx-help { position: sticky; top: 90px; font-size: 14px; }
.tx-help h2 { font-size: 16px; }
.tx-help h3 { margin-top: 16px; }
.tx-syntax, .tx-vars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--text-2); }
.tx-help code { color: var(--gold-ink); background: rgba(66, 255, 81, .08); padding: 1px 5px; border-radius: 5px; word-break: normal; }
@media (max-width: 1000px) {
  .tx-layout { grid-template-columns: 1fr; }
  .tx-help { position: static; order: -1; }
}
