/* Layout concept: a private card-room ledger. Porcelain paper, cobalt ink, brass only for VIP marks; rows read like a dealer's ledger. */
:root {
  --bg: #eef0f4; --surface: #ffffff; --surface-2: #f6f7fa; --ink: #12141b; --muted: #596072; --line: #d8dce5;
  --accent: #2b36d9; --accent-ink: #ffffff; --accent-soft: #e6e8fd; --brass: #9a7124; --brass-soft: #f5ecd9;
  --ok: #1f7a4d; --ok-soft: #e1f2e9; --warn: #9a5b00; --warn-soft: #fbefd9; --bad: #b3261e; --bad-soft: #fbe3e1;
  --shadow: 0 1px 2px rgba(18, 20, 40, .06), 0 8px 24px rgba(18, 20, 40, .06);
  --f-display: 'Prata', 'Georgia', 'Times New Roman', serif;
  --f-body: 'Golos Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 10px; --r-sm: 6px; --max: 1180px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b0d14; --surface: #141826; --surface-2: #10131f; --ink: #e9ebf2; --muted: #9aa0b4; --line: #272c3f;
  --accent: #8a93ff; --accent-ink: #0b0d14; --accent-soft: #1d2148; --brass: #d6b26a; --brass-soft: #2a2416;
  --ok: #6fd3a0; --ok-soft: #12291e; --warn: #f0b860; --warn-soft: #2b2112; --bad: #ff8a80; --bad-soft: #2e1515;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0b0d14; --surface: #141826; --surface-2: #10131f; --ink: #e9ebf2; --muted: #9aa0b4; --line: #272c3f;
  --accent: #8a93ff; --accent-ink: #0b0d14; --accent-soft: #1d2148; --brass: #d6b26a; --brass-soft: #2a2416;
  --ok: #6fd3a0; --ok-soft: #12291e; --warn: #f0b860; --warn-soft: #2b2112; --bad: #ff8a80; --bad-soft: #2e1515;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3); color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.4vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 500 12px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 12px; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sp { flex: 1; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn.brass { background: var(--brass); border-color: var(--brass); color: var(--surface); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* header */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; font-family: var(--f-display); font-size: 22px; letter-spacing: .01em; }
.logo b { font-weight: 400; }
.logo .tag { font: 600 10px/1 var(--f-mono); letter-spacing: .14em; padding: 4px 6px; border: 1px solid var(--brass); color: var(--brass); border-radius: 3px; transform: translateY(-3px); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.lang { position: relative; }
.lang > button { font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; min-width: 180px; display: grid; z-index: 30; }
.menu-pop button { display: flex; justify-content: space-between; gap: 12px; background: none; border: 0; padding: 9px 10px; border-radius: var(--r-sm); font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.menu-pop button:hover, .menu-pop button.on { background: var(--accent-soft); }
.menu-pop small { font-family: var(--f-mono); color: var(--muted); }
.burger { display: none; }
.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(8, 10, 20, .45); display: flex; justify-content: flex-end; }
.drawer-in { width: min(360px, 88vw); height: 100%; background: var(--surface); padding: calc(20px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 20px 20px; display: grid; align-content: start; gap: 6px; }
.drawer-in a { padding: 12px 4px; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--line); }
@media (max-width: 1060px) { .nav, .hdr .lang { display: none; } .burger { display: inline-flex; margin-left: auto; } }
.nav { flex-wrap: nowrap; white-space: nowrap; }
.nav-promo span { color: var(--brass); }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 46ch; margin-top: 18px; }
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; }
.ledger .big { font: 400 clamp(40px, 6vw, 60px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.ledger .delta { font: 600 15px var(--f-mono); color: var(--ok); }
.ledger .pair { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); }
.marquee-track { display: flex; gap: 40px; width: max-content; padding-block: 12px; animation: mq 38s linear infinite; font: 500 13px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.marquee-track span::after { content: "◆"; margin-left: 40px; color: var(--brass); }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } html { scroll-behavior: auto; } }

/* collab banner */
.collab-bar { margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 22px; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); }
.collab-bar .eyebrow { color: inherit; opacity: .8; }
.collab-bar strong { font: 400 24px var(--f-display); }
.collab-bar .btn { background: var(--surface); color: var(--ink); border-color: transparent; }
.collab-chip { font: 600 13px var(--f-mono); padding: 8px 10px; border: 1px solid currentColor; border-radius: 4px; }
@media (max-width: 680px) { .collab-bar { grid-template-columns: 1fr; } }

/* catalog controls */
.cat-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font: 500 14px var(--f-body); color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--ink); color: var(--surface); }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 500 13px var(--f-body); cursor: pointer; }
.chip.on { border-color: var(--brass); background: var(--brass-soft); color: var(--brass); }
select, input, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; min-height: 42px; width: 100%; }
select { width: auto; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

/* casino card */
.cards { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(220px, .8fr); }
.card.choice { border-color: var(--brass); }
.card > div { padding: 20px; min-width: 0; }
.card > div + div { border-left: 1px dashed var(--line); }
.c-top { display: flex; gap: 14px; align-items: center; }
.c-logo { width: 52px; height: 52px; flex: none; border-radius: 12px; display: grid; place-items: center; font: 600 16px var(--f-mono); color: #fff; background: hsl(var(--h) 55% 42%); letter-spacing: .04em; }
.c-name { font: 400 23px/1.1 var(--f-display); text-decoration: none; }
.c-kind { font-size: 12px; color: var(--muted); }
.c-num { margin-left: auto; font: 500 13px var(--f-mono); color: var(--muted); align-self: start; }
.badge-ec { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 14px; }
.fact { font-size: 12px; padding: 4px 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.fact b { font-weight: 600; }
.fact.kyc { background: var(--ok-soft); border-color: transparent; color: var(--ok); font-weight: 600; }
.c-desc { color: var(--muted); font-size: 14px; }
.kv { display: grid; gap: 10px; }
.kv .k { font-size: 12px; color: var(--muted); }
.kv .v { font-weight: 600; }
.kv > div { display: grid; gap: 2px; }
.c-side { display: flex; flex-direction: column; gap: 14px; background: var(--surface-2); border-radius: 0 var(--r) var(--r) 0; }
.c-side .btn { margin-top: auto; }
.measured { font: 500 12px var(--f-mono); color: var(--ok); }
.more { margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.extra { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
@media (max-width: 960px) { .card { grid-template-columns: 1fr 1fr; } .card > div:first-child { grid-column: 1 / -1; } .card > div:nth-child(2) { border-left: 0; border-top: 1px dashed var(--line); } .card > div:nth-child(3) { border-top: 1px dashed var(--line); } .c-side { border-radius: 0 0 var(--r) 0; } }
@media (max-width: 600px) { .card { grid-template-columns: 1fr; } .card > div + div { border-left: 0; border-top: 1px dashed var(--line); } .c-side { border-radius: 0 0 var(--r) var(--r); } }
.empty { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.center { display: flex; justify-content: center; margin-top: 22px; }

/* club */
.club { background: var(--ink); color: var(--bg); border-radius: 14px; padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.club .eyebrow { color: var(--brass); }
.club h2 b { font-weight: 400; color: var(--brass); }
.club-tabs { display: grid; gap: 6px; }
.club-tabs button { display: flex; gap: 14px; align-items: baseline; text-align: left; background: none; border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); border-radius: var(--r-sm); padding: 12px 14px; color: inherit; font: 500 16px var(--f-body); cursor: pointer; }
.club-tabs button span { font: 500 12px var(--f-mono); opacity: .6; }
.club-tabs button.on { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 14%, transparent); }
.club-panel { border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); padding-top: 16px; margin-top: 16px; opacity: .9; }
@media (max-width: 820px) { .club { grid-template-columns: 1fr; } }

.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); background: var(--surface); border-radius: 14px; }
@media (max-width: 680px) { .cta-band { grid-template-columns: 1fr; } }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pick { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 120px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.pick:hover { border-color: var(--accent); }
.pick span:last-child { font: 400 19px/1.2 var(--f-display); }

/* footer */
.ftr { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface); }
.ftr .wrap { padding-block: 40px 28px; display: grid; gap: 28px; }
.ftr-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.ftr-top nav { display: grid; gap: 8px; align-content: start; }
.ftr-top a { text-decoration: none; }
.ftr-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.ftr-legal button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.age { font: 600 12px var(--f-mono); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
@media (max-width: 760px) { .ftr-top { grid-template-columns: 1fr 1fr; } .ftr-top > div:first-child { grid-column: 1 / -1; } }

/* modal */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(8, 10, 20, .55); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: max(24px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 24px max(12px, env(safe-area-inset-left, 0px)); }
.modal { background: var(--surface); border-radius: 14px; width: min(980px, 100%); box-shadow: var(--shadow); position: relative; }
.modal.narrow { width: min(520px, 100%); }
.modal-h { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.modal-b { padding: 22px 24px; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; color: var(--ink); flex: none; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
@media (max-width: 820px) { .app-grid { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.step.done { background: var(--ok-soft); border-color: transparent; }
.step-h { font: 600 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.field { display: grid; gap: 6px; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 600; }
.hint { font-size: 12px; color: var(--muted); }
.field.err input, .field.err .opt-grid, .field.err .ms { outline: 2px solid var(--bad); outline-offset: 2px; border-radius: var(--r-sm); }
.errtxt { font-size: 12px; color: var(--bad); }
.opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.opt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 10px; cursor: pointer; font-size: 14px; background: var(--surface); }
.opt input { width: auto; min-height: 0; margin: 0; accent-color: var(--accent); }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 480px) { .opt-grid { grid-template-columns: 1fr 1fr; } }
.ms { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; display: grid; gap: 6px; background: var(--surface); }
.ms-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-tag { display: inline-flex; gap: 6px; align-items: center; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 6px 4px 10px; font-size: 13px; }
.ms-tag button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; }
.ms input { border: 0; min-height: 34px; padding: 4px 6px; }
.ms-list { max-height: 180px; overflow: auto; border-top: 1px solid var(--line); }
.ms-list button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; font: inherit; color: var(--ink); cursor: pointer; }
.ms-list button:hover { background: var(--accent-soft); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.side-cond { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; align-content: start; }
.restore { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; background: var(--accent-soft); padding: 10px 12px; border-radius: var(--r-sm); }
.success { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 30px 10px; }
.success .seal { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: 32px; }

/* drafts widget */
.drafts { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px; display: grid; gap: 6px; width: min(300px, calc(100vw - 32px)); }
.drafts-h { display: flex; justify-content: space-between; align-items: center; font: 600 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 2px 4px; }
.draft-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 0; background: var(--surface-2); padding: 8px; border-radius: var(--r-sm); cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.draft-item .c-logo { width: 30px; height: 30px; border-radius: 7px; font-size: 11px; }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--accent); }

/* toast */
.toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: grid; gap: 8px; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow); max-width: 340px; font-size: 14px; }

/* article / content pages */
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.prose { max-width: 68ch; display: grid; gap: 16px; font-size: 17px; }
.prose h2 { font-size: 28px; margin-top: 12px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose a { color: var(--accent); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 32px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 14px; }
.sticky { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pc li { padding-left: 24px; position: relative; }
.pc .pros li::before { content: "+"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
.pc .cons li::before { content: "−"; position: absolute; left: 4px; color: var(--bad); font-weight: 700; }
@media (max-width: 640px) { .pc { grid-template-columns: 1fr; } }
details { border-bottom: 1px solid var(--line); padding-block: 14px; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; font-family: var(--f-mono); color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; color: var(--muted); }
.postlist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.postlist a { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); text-decoration: none; }
.postlist h3 { margin-bottom: 6px; }
@media (max-width: 600px) { .postlist a { grid-template-columns: 1fr; gap: 6px; } }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: s; }
.steps > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.steps > div::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 500 13px var(--f-mono); color: var(--brass); }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat .n { font: 400 34px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.qlist { display: grid; gap: 14px; }
.qrow { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.qrow .num { font: 500 14px var(--f-mono); color: var(--brass); padding-top: 10px; }
.offer-tag { font: 600 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; overflow-x: auto; font: 13px/1.5 var(--f-mono); margin: 0; }
code { font-family: var(--f-mono); font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
pre code { background: none; padding: 0; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--f-mono); }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font: 600 11px var(--f-mono); padding: 3px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.new { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill.opened { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.deposit, .pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.vip { background: var(--brass-soft); color: var(--brass); border-color: transparent; }
.pill.rejected { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 12px 14px; font: 500 14px var(--f-body); color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--accent); }
.funnel { display: grid; gap: 8px; }
.f-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 70px 70px; gap: 12px; align-items: center; font-size: 14px; }
.f-bar { height: 28px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.f-bar i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 600px) { .f-row { grid-template-columns: 1fr 60px 60px; } .f-row .f-bar { grid-column: 1 / -1; grid-row: 2; } }
.mix { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); }
.mix i:nth-child(1) { background: var(--accent); } .mix i:nth-child(2) { background: var(--muted); } .mix i:nth-child(3) { background: var(--brass); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--c); }
.notice { padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.notice.info { background: var(--accent-soft); color: var(--accent); }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .formgrid { grid-template-columns: 1fr; } }
.demo-stub { border: 2px dashed var(--brass); border-radius: 14px; padding: clamp(20px, 4vw, 40px); background: var(--surface); }
.copyline { display: flex; gap: 8px; align-items: center; }
.copyline input { font-family: var(--f-mono); font-size: 13px; }
.bigprice { font: 400 clamp(56px, 10vw, 120px)/1 var(--f-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.rate { font: 400 clamp(80px, 14vw, 160px)/1 var(--f-display); color: var(--accent); }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

/* demo build only */
.demo-bar { background: var(--brass-soft); color: var(--ink); border-bottom: 1px solid var(--line); font-size: 13px; }
.demo-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding-block: 8px; }
.demo-bar b { color: var(--brass); font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.boot-err { max-width: 560px; margin: 60px auto; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.collab-chip { justify-self: start; }

/* application step 1 */
.contact-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px; }
.contact-row select { width: 100%; }

/* partner cabinet */
.cab { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding-block: 28px 56px; align-items: start; }
.cab-side { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 14px; }
.cab-brand { display: flex; gap: 10px; align-items: center; }
.cab-brand .c-logo { border-radius: 9px; font-size: 12px; }
.cab-nav { display: grid; gap: 2px; }
.cab-nav a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.cab-nav a span { width: 18px; text-align: center; color: var(--muted); }
.cab-nav a.on { background: var(--accent); color: var(--accent-ink); }
.cab-nav a.on span { color: inherit; }
.cab-foot { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.cab-foot a { text-decoration: none; }
.cab-main { min-width: 0; display: grid; gap: 4px; align-content: start; }
.cab-h { font-size: clamp(28px, 3.4vw, 38px); }
.onboard { gap: 12px; }
.steps-ck { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.steps-ck > div { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; }
.steps-ck > div.done { color: var(--muted); text-decoration: line-through; }
.steps-ck .ck { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--f-mono); border: 1px solid var(--line); background: var(--surface); }
.steps-ck .done .ck { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.feed-day { gap: 8px; margin-top: 12px; }
.feed-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; background: var(--surface-2); border-radius: var(--r-sm); font-size: 14px; }
.feed-ic { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.macro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: var(--r-sm); padding: 12px; }
.macro-grid code { color: var(--accent); }
.rules { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
tr.muted td { color: var(--muted); }
td .lang .menu-pop { right: 0; }
@media (max-width: 860px) {
  .cab { grid-template-columns: 1fr; padding-block: 16px 40px; }
  .cab-side { position: static; }
  .cab-nav { display: flex; overflow-x: auto; }
  .cab-nav a { white-space: nowrap; }
  .steps-ck, .macro-grid { grid-template-columns: 1fr; }
}

/* theme switch */
.theme-btn { width: 38px; padding: 0; flex: none; }
.theme-btn svg { display: block; flex: none; width: 18px; height: 18px; }
@media (max-width: 1060px) { .hdr .theme-btn { margin-left: auto; } .burger { margin-left: 0; } }

/* all casinos table */
.cas-table td { vertical-align: middle; }
.cas-table td:first-child { min-width: 200px; }
.cas-table td:last-child { text-align: right; }
.cas-table .c-logo { border-radius: 10px; font-size: 12px; }
@media (max-width: 760px) {
  .cas-table thead { display: none; }
  .cas-table, .cas-table tbody, .cas-table tr, .cas-table td { display: block; width: 100%; }
  .cas-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .cas-table td { border: 0; padding: 4px 12px; }
  .cas-table td:last-child { text-align: left; padding-top: 8px; }
}

/* agents */
.deal { display: grid; gap: 6px; padding: 18px; border-radius: var(--r); background: var(--brass-soft); border: 1px solid color-mix(in srgb, var(--brass) 35%, transparent); }
.deal b { font: 400 22px/1.25 var(--f-display); }
.agent-code { font-size: 26px; letter-spacing: .06em; color: var(--accent); }
tr.row-bad td { background: var(--bad-soft); }

/* country picker list floats over the form so closing it never shifts what is under the cursor */
.ms { position: relative; }
.ms-list { position: absolute; left: -1px; right: -1px; top: calc(100% + 4px); z-index: 6; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.copyline { flex-wrap: wrap; }
.copyline input { flex: 1 1 220px; min-width: 0; }

/* VIP / regular player switch */
.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; max-width: 640px; }
.mode-toggle button { display: grid; gap: 2px; text-align: left; border: 0; border-radius: 10px; padding: 12px 16px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; transition: background .15s; }
.mode-toggle button b { font: 400 19px/1.2 var(--f-display); }
.mode-toggle button span { font-size: 12px; color: var(--muted); }
.mode-toggle button.on { background: var(--accent); color: var(--accent-ink); }
.mode-toggle button.on span { color: inherit; opacity: .8; }
.mode-toggle button[data-pmode="vip"].on { background: var(--brass); color: var(--surface); }
@media (max-width: 520px) { .mode-toggle { grid-template-columns: 1fr; } }
