/* Dark Carnival — тема поверх style.css.
   Принципы: один шрифт интерфейса (Golos), акцентный (Unbounded) — только для крупных заголовков;
   плоские тёмные поверхности, одна акцентная краска — золото (деньги и главные действия);
   цвет в остальном дают только картинки и редкость скинов. Без свечений, градиентного текста и капса. */
:root {
  --bg: #0b0b0e; --bg-2: #101014; --surface: #15151a; --surface-2: #1b1b21; --surface-3: #23232b;
  --line: #24242c; --line-2: #31313b;
  --text: #ededf2; --text-2: #a4a4b2; --text-3: #71717f;
  --gold: #f2b43c; --gold-hover: #f7c35e; --gold-ink: #1d1404; --gold-soft: rgba(242, 180, 60, .12);
  --accent: var(--gold); --accent-2: var(--gold); --accent-soft: var(--gold-soft);
  --ok: #3ccf7a; --bad: #f05d5d;
  --radius: 14px; --radius-sm: 10px;
  --cream: var(--text); --gold-1: var(--text); --gold-2: var(--text); --gold-3: var(--text-2); --gold-4: var(--gold); --gold-5: var(--line-2);
  --muted: var(--text-3); --violet: var(--surface-3); --green: var(--ok); --red: var(--bad);
}
body { background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--body); letter-spacing: 0; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- фон: спокойный, без свечений ---------- */
.backdrop { background: var(--bg); }
.backdrop-sky { opacity: .07; filter: grayscale(.4); animation: none; }
.backdrop-stars { display: none; }
.backdrop-vignette { background: linear-gradient(180deg, transparent 0%, var(--bg) 70%); }

/* ---------- типографика ---------- */
h1, h2, h3 { font-family: var(--body); font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--text); }
h1 { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; }
.gold-text { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); filter: none; }
.muted { color: var(--text-3); }
.num, .balance, .ct-price, .stat b, .bet-value { font-variant-numeric: tabular-nums; }

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: 64px; padding: 0 24px; gap: 20px; flex-wrap: nowrap;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: none;
}
.brand { position: static; flex: 0 0 auto; width: auto; animation: none; filter: none; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand span { font: 600 15px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.nav { flex: 1; justify-content: flex-start; gap: 2px; order: 0; margin: 0; padding: 0; flex-basis: auto; }
.nav a { gap: 8px; padding: 9px 12px; border-radius: 8px; font: 500 14px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--text-2); flex-direction: row; text-shadow: none; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.active { background: var(--surface-2); color: var(--text); box-shadow: none; }
.nav a::after, .nav a::before { display: none; }
.nav a .ic { width: 17px; height: 17px; opacity: .75; filter: none; }
.nav a.active .ic { color: var(--gold); opacity: 1; filter: none; }
.topbar-right { gap: 8px; }
.icon-btn { width: 36px; height: 36px; flex-basis: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--text-3); box-shadow: none; }
.icon-btn:hover { filter: none; background: var(--surface); color: var(--text); }
.icon-btn.off { color: var(--text-3); opacity: .7; }
.user { gap: 8px; padding: 2px 2px 2px 2px; height: 36px; border-radius: 8px; background: transparent; border: 0; box-shadow: none; }
.user img, .user-ph { width: 32px; height: 32px; border-radius: 50%; border: 0; box-shadow: none; }
.user-ph { background: var(--surface-3); }
.user span { font: 500 14px/1 var(--body); color: var(--text); }
.user .icon-btn { width: 30px; height: 30px; flex-basis: 30px; }
.inv-btn { height: 36px; border-radius: 8px; background: transparent; border: 1px solid var(--line-2); color: var(--text); font: 500 14px/1 var(--body); letter-spacing: 0; text-transform: none; padding: 0 10px; box-shadow: none; }
.inv-btn b { background: var(--surface-3); color: var(--text); font: 600 12px/1 var(--body); }
.inv-btn:hover, .inv-btn.active { border-color: var(--text-3); background: var(--surface); color: var(--text); }
.inv-btn .ic { color: var(--text-2); }
.balance { min-width: 0; height: 36px; gap: 7px; padding: 0 14px 0 10px; border-radius: 8px 0 0 8px; background: var(--surface-2); border: 1px solid var(--line-2); border-right: 0; box-shadow: none; font: 600 15px/1 var(--body); color: var(--text); }
.balance img { width: 20px; height: 20px; filter: none; }
.dep-btn { height: 36px; border-radius: 0 8px 8px 0; padding: 0 14px 0 10px; margin-left: -8px; gap: 6px; border: 0; background: var(--gold); color: var(--gold-ink); font: 600 14px/1 var(--body); letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; }
.dep-btn:hover { background: var(--gold-hover); filter: none; }
.dep-btn b { width: auto; height: auto; background: none; border: 0; box-shadow: none; }
.dep-btn b .ic { color: var(--gold-ink); width: 16px; height: 16px; }
.steam-btn { height: 36px; padding: 0 14px; border-radius: 8px; background: var(--text); border: 0; color: var(--bg); font: 600 14px/1 var(--body); letter-spacing: 0; text-transform: none; box-shadow: none; gap: 8px; }
.steam-btn:hover { filter: none; background: #fff; }

/* ---------- лента последних дропов ---------- */
.feed { position: relative; top: 0; z-index: 1; display: flex; align-items: stretch; height: 58px; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.feed[hidden] { display: none; }
.feed-label { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 18px; font: 500 13px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--text-2); border-right: 1px solid var(--line); }
.feed-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: none; animation: none; }
.feed-track { display: flex; gap: 6px; padding: 7px 8px; overflow: hidden; mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
.drop { --rc: var(--r-rare); position: relative; flex: 0 0 196px; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: 1fr 1fr; column-gap: 10px; align-items: center; padding: 0 10px 0 0; border-radius: 8px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--rc); }
.drop img { position: static; grid-row: 1 / 3; width: 52px; height: 42px; object-fit: contain; translate: none; filter: none; padding-left: 6px; }
.drop span { align-self: end; font: 500 12px/1.2 var(--body); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: none; }
.drop em { align-self: start; font-style: normal; font-size: 11.5px; line-height: 1.3; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop.new { animation: DropIn .35s ease-out; }
@keyframes DropIn { from { transform: translateX(-16px); opacity: 0; } }
.drop.r-common { --rc: var(--r-common); } .drop.r-uncommon { --rc: var(--r-uncommon); } .drop.r-mythical { --rc: var(--r-mythical); }
.drop.r-legendary { --rc: var(--r-legendary); } .drop.r-immortal { --rc: var(--r-immortal); } .drop.r-arcana { --rc: var(--r-arcana); } .drop.r-seasonal { --rc: var(--r-seasonal); }

/* ---------- общие элементы ---------- */
.view { padding: 32px 24px 64px; max-width: 1240px; }
.panel { border-radius: var(--radius); padding: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.panel.bolted::before, .panel.bolted::after { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 0; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; background: var(--surface-3); color: var(--text);
  font: 600 15px/1 var(--body); letter-spacing: 0; text-transform: none; box-shadow: none; isolation: auto; cursor: pointer; transition: background-color .15s, border-color .15s, opacity .15s; }
.btn::before, .btn::after { display: none; }
.btn > span { display: inline; background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: inherit; filter: none; line-height: 1; }
.btn:hover:not(:disabled) { filter: none; background-color: #2c2c36; transform: none; }
.btn:active:not(:disabled) { transform: none; filter: brightness(.92); }
.btn:disabled { filter: none; opacity: .4; cursor: not-allowed; }
.btn.gold { background: var(--gold); color: var(--gold-ink); }
.btn.gold:hover:not(:disabled) { background: var(--gold-hover); }
.btn.purple { background: var(--surface-3); color: var(--text); border-color: var(--line-2); }
.btn.purple:hover:not(:disabled) { background: #2c2c36; }
.btn.green { background: #1f8f52; color: #fff; }
.btn.green:hover:not(:disabled) { background: #24a35e; }
.btn.red { background: #c93f3f; color: #fff; }
.btn.red:hover:not(:disabled) { background: #d94b4b; }
.btn.big { height: 52px; padding: 0 30px; font-size: 16px; border-radius: 12px; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn.glow { animation: none; }

.chip { border: 1px solid var(--line-2); background: transparent; color: var(--text-2); border-radius: 8px; padding: 7px 12px; font: 500 14px/1 var(--body); letter-spacing: 0; text-transform: none; box-shadow: none; }
.chip:hover:not(:disabled) { border-color: var(--text-3); color: var(--text); background: var(--surface); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.help-chip { margin: 0; }

/* заголовок страницы */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.ph-eyebrow { display: none; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; }
.page-head p { margin: 8px 0 0; color: var(--text-2); max-width: 64ch; }

.section-title { display: flex; align-items: baseline; gap: 12px; margin: 44px 0 0; font: 700 20px/1.2 var(--body); letter-spacing: -.01em; text-transform: none; color: var(--text); }
.section-title::after { display: none; }
.section-title .muted, .section-title a { font: 400 14px/1 var(--body); }
.section-title a { margin-left: auto; color: var(--text-2); text-decoration: none; }
.section-title a:hover { color: var(--text); }

/* ставка и управление в играх */
.controls { margin-top: 16px; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.bet { gap: 8px; }
.bet-label { font: 500 13px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--text-3); }
.bet-value { min-width: 128px; padding: 10px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: none; font: 600 19px/1 var(--body); color: var(--text); }
.result-line { font: 600 18px/1.3 var(--body); letter-spacing: 0; text-transform: none; text-shadow: none; }
.field input { border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); font: 600 17px/1 var(--body); box-shadow: none; }

/* сцены игр */
.stage { border-radius: 16px; border: 1px solid var(--line); background-color: #0d0d12; box-shadow: none; }
.stage::before, .stage::after { display: none; }
.slot-stage, .wheel-stage, .tarot-stage { padding-left: 4%; padding-right: 4%; }
.slot-frame { background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.slot-frame::before, .slot-frame::after { display: none; }
.reels { background: #08080b; }
.reel { background: #0f0f14; box-shadow: inset 0 0 0 1px var(--line); }
.slot-win { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.wheel { box-shadow: 0 0 0 6px var(--surface-2), 0 0 0 7px var(--line-2), 0 20px 50px rgba(0, 0, 0, .6); }
.wheel-hub { background: var(--surface-2); border-color: var(--gold); }
.wheel-legend span { border-radius: 8px; border-color: var(--line-2); background: var(--surface); font: 600 13px/1 var(--body); }
.tarot-pot { font: 500 13px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--text-3); }
.tarot-pot b { font-family: var(--body); color: var(--text); }
.tcard-label { font: 600 12.5px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--text-2); }
.ladder span, .crash-history span { border-radius: 8px; font-family: var(--body); }
.crash-mult { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; }
.crash-note { font: 600 18px/1.2 var(--body); letter-spacing: 0; text-transform: none; }

/* ---------- карточки скинов ---------- */
.item-card { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.item-card:hover { border-color: var(--line-2); transform: none; }
.item-card .ic-meta { border-top: 0; padding: 9px 11px 11px; }
.item-card .ic-name { font: 500 13.5px/1.25 var(--body); letter-spacing: 0; color: var(--text); }
.item-card .ic-sub { font-size: 12px; filter: none; color: color-mix(in srgb, var(--rc) 75%, #fff); }
.item-card .ic-val { color: var(--text); font: 600 13px/1 var(--body); background: none; border: 0; padding: 0; }
.item-card .ic-odds { border-radius: 6px; font: 500 11px/1 var(--body); background: rgba(11, 11, 14, .8); color: var(--text-2); }
.item-card::before { background: linear-gradient(0deg, var(--rc) 0 2px, transparent 2px); background-position: 0 100%; }
.inv-grid .item-card .btn { width: calc(100% - 22px); margin: 0 11px 11px; }

/* ---------- лобби ---------- */
.lobby-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 32px; align-items: stretch; padding: 48px; border-radius: 20px; overflow: hidden; isolation: isolate;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 11, 14, .88) 40%, rgba(11, 11, 14, .35) 100%), url("../assets/bg/splash.jpg") 70% 30% / cover; border: 1px solid var(--line); box-shadow: none; }
.lobby-hero::after { display: none; }
.lh-copy { display: flex; flex-direction: column; justify-content: center; }
.lh-copy h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; margin: 0 0 16px; max-width: 17ch; }
.lh-copy p { margin: 0 0 28px; color: var(--text-2); font-size: 17px; line-height: 1.55; max-width: 50ch; }
.lh-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 32px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-3); line-height: 1.3; }
.facts b { color: var(--text); font-size: 15px; font-weight: 600; }

.featured { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; text-align: left; padding: 20px; border-radius: 16px; text-decoration: none; color: inherit;
  background: rgba(21, 21, 26, .92); border: 1px solid var(--line-2); transition: border-color .15s; }
.featured:hover { transform: none; border-color: var(--text-3); }
.featured .ft-tag { position: static; align-self: flex-start; padding: 0; background: none; color: var(--text-3); font: 500 13px/1 var(--body); letter-spacing: 0; text-transform: none; }
.featured img { width: min(210px, 80%); margin: 12px auto 14px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .6)); animation: none; }
.featured h3 { font-size: 20px; margin-bottom: 2px; }
.featured .ft-range { color: var(--text-3); font-size: 13.5px; margin-bottom: 16px; }
.featured .btn { width: 100%; }

.case-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.case-tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 14px 16px; border-radius: 14px; cursor: pointer; text-decoration: none; color: inherit; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: none; transition: border-color .15s, background-color .15s; }
.case-tile::before { display: none; }
.case-tile:hover { transform: none; background: var(--surface-2); border-color: var(--line-2); box-shadow: none; }
.case-tile.on { transform: none; background: var(--surface-2); border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.case-tile img { height: 112px; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 14px; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .55)); transition: transform .25s; }
.case-tile:hover img { transform: translateY(-3px); }
.case-tile h3, .case-tile.case-card h3 { font: 600 15px/1.25 var(--body); letter-spacing: 0; text-transform: none; color: var(--text); min-height: 2.5em; display: grid; place-items: center; overflow-wrap: anywhere; }
.case-tile .ct-range { font-size: 12.5px; color: var(--text-3); margin: 2px 0 12px; }
.case-tile .ct-price { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: var(--surface-3); border: 0; font: 600 14px/1 var(--body); color: var(--text); }
.case-tile:hover .ct-price, .case-tile.on .ct-price { background: var(--gold); color: var(--gold-ink); }
.case-tile:hover .ct-price .coin-i, .case-tile.on .ct-price .coin-i { filter: brightness(.35); }
.case-tile.case-card { filter: none; }
.case-tile.case-card .price { display: none; }

.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.game-tile { position: relative; display: flex; flex-direction: column; min-height: 240px; padding: 18px; border-radius: 14px; text-decoration: none; color: inherit; overflow: hidden; isolation: isolate; border: 1px solid var(--line); transition: border-color .15s; }
.game-tile .gt-bg { position: absolute; inset: 0; z-index: -2; background: center / cover; filter: saturate(.8) brightness(.5); transition: transform .4s, filter .25s; }
.game-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 22%, rgba(11, 11, 14, .25) 75%); }
.game-tile img.gt-art { width: 96px; height: 96px; object-fit: contain; margin: 4px auto 8px; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .6)); }
.game-tile h3 { font-size: 17px; margin-top: auto; }
.game-tile p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.game-tile .gt-tag { position: absolute; top: 14px; right: 14px; padding: 5px 8px; border-radius: 6px; background: rgba(11, 11, 14, .75); border: 0; color: var(--text-2); font: 500 12px/1 var(--body); letter-spacing: 0; text-transform: none; }
.game-tile:hover { transform: none; border-color: var(--line-2); }
.game-tile:hover .gt-bg { transform: scale(1.04); filter: saturate(.9) brightness(.6); }

.lobby-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; margin-top: 16px; }
.bonus-box { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.bonus-box img { width: 68px; height: 68px; object-fit: contain; filter: none; }
.bonus-box h3 { font-size: 16px; }
.bonus-box p { margin: 4px 0 12px; font-size: 13.5px; color: var(--text-2); }
.stats { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; text-align: left; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.stat b { font: 600 20px/1.2 var(--body); color: var(--text); }
.stat span { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.how { margin-top: 0; gap: 12px; }
.how-step { border-radius: 14px; padding: 16px; }
.how-step i { flex: 0 0 32px; height: 32px; background: var(--surface-3); border: 0; color: var(--text); font: 600 14px/1 var(--body); }
.how-step b { font: 600 15px/1.25 var(--body); letter-spacing: 0; text-transform: none; color: var(--text); }
.how-step span { color: var(--text-2); font-size: 13.5px; }

/* ---------- сундуки ---------- */
.t-stage { height: clamp(250px, 34vh, 320px); background-image: linear-gradient(rgba(11, 11, 14, .6), rgba(11, 11, 14, .92)), url("../assets/bg/room_storage.jpg"); }
.marker { width: 2px; margin-left: -1px; top: 8px; bottom: 8px; background: var(--gold); box-shadow: none; }
.marker::before, .marker::after { border-color: var(--gold) transparent; }
.strip-wrap { mask-image: linear-gradient(90deg, transparent 2%, #000 18%, #000 82%, transparent 98%); }
.reward { background: rgba(11, 11, 14, .96); }
.reward-side h2 { font-size: 26px; text-transform: none; color: var(--text); }
.reward-side .rar { font: 600 13px/1 var(--body); letter-spacing: 0; text-transform: none; }
.price-note { color: var(--text-3); font-size: 13px; }
.t-controls { justify-content: space-between; }
.fast-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-2); font-size: 14px; user-select: none; }
.fast-toggle input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.fast-toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform .2s, background .2s; }
.fast-toggle input:checked { background: var(--gold); border-color: var(--gold); }
.fast-toggle input:checked::after { transform: translateX(16px); background: var(--gold-ink); }

/* ---------- маркет / инвентарь ---------- */
.market-filters { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.m-input { border-radius: 8px; background: var(--bg); border-color: var(--line-2); color: var(--text); font: 400 14px/1 var(--body); }
.m-input:focus { outline: none; border-color: var(--text-3); box-shadow: none; }
.market-info { color: var(--text-3); }
.market-info b { color: var(--text); }
.inv-head { padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.empty { color: var(--text-2); }

/* ---------- модалки, тосты, подвал ---------- */
.modal { background: rgba(5, 5, 7, .78); backdrop-filter: none; }
.modal-card { border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal-card::before, .modal-card::after { display: none; }
.modal-card h2 { font: 500 21px/1.25 var(--display); letter-spacing: -.02em; text-transform: none; color: var(--text); }
.modal-card p { color: var(--text-2); }
.steps li { border-radius: 10px; background: var(--surface-2); border-color: var(--line); }
.steps li::before { background: var(--surface-3); border: 0; color: var(--text); font: 600 14px/1 var(--body); }
.steps b { font: 600 15px/1.25 var(--body); letter-spacing: 0; text-transform: none; color: var(--text); }
.steps span { color: var(--text-2); }
.toast { border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-family: var(--body); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.dep-rate { color: var(--text-3); }
.dep-label { font: 500 13px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--text-3); }
.dep-method { border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font: 500 15px/1.2 var(--body); }
.dep-method:hover { border-color: var(--text-3); }
.dep-method.on { background: var(--surface-3); border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.dep-method > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dep-method b { font-weight: 600; }
.dep-method small { font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.dep-ico { background: var(--surface-3); border: 0; box-shadow: none; }
.dep-ico.dep-sbp, .dep-ico.dep-card { background: var(--surface-3); }
.dep-ico .ic { color: var(--text); }
.dep-amount input { background: var(--bg); border-color: var(--line-2); color: var(--text); font-family: var(--body); }
.dep-total b { color: var(--text); }
.dep-row { border-radius: 8px; background: var(--surface-2); border-color: var(--line); }
.dep-note { color: var(--text-3); }
.footer { margin-top: 48px; background: var(--bg); border-top: 1px solid var(--line); }
.footer h4 { font: 600 13px/1 var(--body); color: var(--text); letter-spacing: 0; text-transform: none; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer p, .footer-about p { color: var(--text-3); }

/* ---------- адаптив ---------- */
@media (max-width: 1240px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 10px 18px 0; row-gap: 6px; }
  .nav { order: 3; flex: 0 0 calc(100% + 36px); margin: 0 -18px; padding: 0 12px 8px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .topbar-right { margin-left: auto; }
  .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lobby-row { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .view { padding: 22px 14px 44px; }
  .lobby-hero { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; background: linear-gradient(180deg, rgba(11, 11, 14, .7), var(--bg) 85%), url("../assets/bg/splash.jpg") 60% 20% / cover; }
  .featured { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 2px 14px; padding: 14px; }
  .featured .ft-tag { grid-column: 2; grid-row: 1; }
  .featured img { grid-column: 1; grid-row: 1 / 4; width: 88px; margin: 0; }
  .featured h3 { grid-column: 2; font-size: 17px; }
  .featured .ft-range { grid-column: 2; margin: 0; }
  .featured > .btn { grid-column: 1 / -1; width: 100%; margin-top: 12px; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .case-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .case-tile img { height: 88px; }
  .game-grid { gap: 10px; }
  .game-tile { min-height: 200px; padding: 14px; }
  .game-tile img.gt-art { width: 76px; height: 76px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .user span, .inv-btn span, .dep-btn span { display: none; }
  .dep-btn { padding: 0 11px; }
  .controls { padding: 12px; }
  .feed-label span { display: none; }
  .feed-label { padding: 0 12px; }
  .drop { flex-basis: 168px; }
}
@media (max-width: 480px) {
  .topbar { padding: 8px 12px 0; gap: 6px; }
  .nav { flex-basis: calc(100% + 24px); margin: 0 -12px; padding: 0 6px 6px; justify-content: space-between; gap: 0; }
  .nav a { flex-direction: column; gap: 4px; padding: 7px 6px; font-size: 11px; }
  .topbar-right { gap: 4px; }
  .icon-btn { width: 32px; height: 32px; flex-basis: 32px; }
  .balance { font-size: 14px; padding: 0 10px 0 8px; }
  .lh-copy p { font-size: 15.5px; }
  .lh-actions .btn { flex: 1 1 100%; }
  .facts { gap: 12px 20px; }
  .game-grid { grid-template-columns: 1fr; }
}
.crash-mult.gold-text, .slot-win.gold-text { color: var(--gold); }
.slot-win small { font-family: var(--body); font-weight: 600; letter-spacing: .02em; }
.footer-logo { display: flex; align-items: center; gap: 10px; width: auto; height: auto; margin-bottom: 14px; }
.footer-logo img { width: 32px; height: 32px; border-radius: 50%; }
.footer-logo span { font: 600 15px/1 var(--display); color: var(--text); }
.dep-check { color: var(--text-2); }
.dep-check input, input[type="checkbox"] { accent-color: var(--gold); }
.dep-total { color: var(--text-2); }
.dep-total b { font: 600 19px/1 var(--body); }
.dep-amount input { font: 600 20px/1 var(--body); }
.dep-amount input:focus { border-color: var(--text-3); box-shadow: none; }
.dep-amount span { color: var(--text-3); font: 500 17px/1 var(--body); }
.page-head p { max-width: 80ch; }
.section-title { flex-wrap: wrap; row-gap: 4px; }
.section-title .muted { white-space: normal; }
@media (max-width: 480px) {
  .dep-btn { margin-left: -4px; }
  .market-filters select { font-size: 13.5px; padding-left: 10px; }
}
