/* Dawnline-inspired product language. Game timelines and result geometry live in features.css. */
@font-face {
  font-family: Geist;
  src: url(assets/geist-latin-wght-normal.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url(assets/geist-cyrillic-wght-normal.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  /* Нейтральная шкала Outline: холст → панель → приподнятое → контрол → наведение. */
  --ink-0: #000;
  --ink-1: #0a0a0a;
  --ink-2: #111;
  --ink-3: #171717;
  --ink-4: #262626;
  --ink-5: #303030;
  --line-1: #242424;
  --line-2: #333;
  --line-3: #4a4a4a;
  /* Три роли текста: основной, вторичный, приглушённый (≥ 4.5:1 на --ink-1). */
  --text-1: #ededed;
  --text-2: #a1a1a1;
  --text-3: #858585;
  --radius-control: 10px;
  --radius-card: 16px;
  --radius-panel: 20px;
  --bg: #000;
  --panel: #0a0a0a;
  --panel2: #141414;
  --line: #ffffff17;
  --muted: #999;
  --text: #ededed;
  --mint: #ededed;
  --cyan: #5ba2fe;
  --gold: #e8bf77;
  --red: #ff7774;
  --accent: #3a83f7;
  --success: #40c977;
  --ease: cubic-bezier(.2,.8,.2,1);
  font-family: Geist, Arial, sans-serif;
  color-scheme: dark;
}
body { background: var(--bg); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
button { transition: background .16s, color .16s, border-color .16s, box-shadow .16s, transform .16s var(--ease); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
button:disabled { opacity: .45; }
input, select, textarea { accent-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
::selection { background: #3a83f745; color: #fff; }
[hidden] { display: none !important; }
.sidebar { display: none; }
.workspace { margin-left: 0; }
.topbar {
  display: flex;
  min-height: 100px; height: auto; padding: 24px max(32px, calc((100vw - 1440px) / 2));
  background: #000; border: 0; gap: 24px;
}
.brand { flex: 0 0 auto; }
.wordmark { font-family: Geist, sans-serif; font-size: 23px; letter-spacing: -1.2px; font-weight: 650; }
.wordmark span { color: var(--text-1); }
.wordmark .brand-arrow, .brand-arrow { display: none; }
.edition { color: var(--text-3); font-size: 11px; font-weight: 400; letter-spacing: 0; text-align: left; margin-top: 4px; }
.topnav {
  position: relative; isolation: isolate; display: flex; height: 48px; padding: 4px;
  gap: 2px; margin: 0 auto; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2);
}
.topnav button {
  flex: 0 0 auto; height: 38px; min-height: 38px; padding: 0 13px; gap: 7px;
  border-radius: 999px; color: var(--text-2); font-size: 13px; font-weight: 450; z-index: 1;
}
.topnav button .icon { width: 17px; height: 17px; display: block; }
.topnav button.active { color: var(--text-1); background: var(--ink-4); }
.topnav.has-cursor button.active { background: transparent; }
.topnav button:hover { color: #fff; background: #ffffff09; }
.topnav button.active:after { display: none; }
.nav-cursor { position: absolute; top: 4px; height: 38px; border-radius: 999px; background: var(--ink-4); z-index: 0; pointer-events: none; }
.tiny-badge { background: #ffffff12; color: var(--text-1); border-radius: 999px; }
.account-area { margin: 0; gap: 12px; flex: 0 0 auto; }
.balance-copy small { color: var(--text-3); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.balance { font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; }
.balance span { color: var(--text-2); }
.add-money { width: 32px; height: 32px; border-radius: 50%; color: var(--text-1); background: var(--ink-3); border: 1px solid var(--line-2); }
.add-money:hover { background: var(--ink-4); }
.avatar { background: var(--ink-3); color: var(--text-1); border: 1px solid var(--line-2); border-radius: 50%; font-weight: 500; }
.avatar:after { display: none; }
.admin-entry { background: var(--ink-3); border-color: var(--line-2); color: var(--text-1); border-radius: 999px; }
.admin-entry.active { color: #5ba2fe; background: #3a83f712; border-color: #3a83f740; }
.subnav {
  max-width: 1440px; margin: 0 auto 20px; display: flex; align-items: center; gap: 5px;
  padding: 0 0 16px; border-bottom: 1px solid var(--line);
}
.subnav button { background: transparent; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 8px 13px; font-size: 12px; }
.subnav button:hover, .subnav button.active { background: var(--ink-3); color: var(--text-1); }
.subnav .icon { width: 15px; height: 15px; }
.subnav-spacer { flex: 1; }
.subnav-status { color: var(--text-3); font-size: 12px; display: inline-flex; gap: 8px; align-items: center; margin-right: 12px; }
.online-dot { background: var(--success); box-shadow: none; }
.livefeed { max-width: 1440px; margin: 0 auto; background: #080808; border: 1px solid var(--line); border-radius: 14px; height: 86px; overflow: hidden; }
.live-label { background: var(--ink-1); border-right: 1px solid var(--line); min-width: 158px; padding-left: 20px; }
.live-label > div { color: var(--text-1); font-weight: 500; font-size: 12px; letter-spacing: 0; }
.live-label small { color: var(--text-3); font-size: 11px; }
.feed-item { border-color: var(--line); background: transparent; }
.feed-item:hover { background: #151515; }
.feed-item strong { color: var(--text-1); font-size: 11px; font-weight: 500; }
.feed-item small, .feed-empty { color: var(--text-2); font-size: 11px; }
.global-feed { min-height: 86px; }
.global-feed .feed-item { background: var(--ink-2); border-color: var(--rarity); color: var(--text-1); }
.global-feed .feed-item:hover { background: var(--ink-3); }
.global-feed .feed-item small, .global-feed .feed-item small span { color: var(--text-2); font-size: 11px; }
.content { width: 100%; max-width: 1504px; margin: 0 auto; padding: 0 32px 20px; }
.content:focus { outline: none; }
.welcome-line { margin: 24px 0; }
.breadcrumb { font-size: 12px; color: var(--text-3); }
.breadcrumb strong { color: var(--text-1); font-weight: 450; }
.session-tag { color: var(--text-3); font-size: 11px; }
.hero-grid { grid-template-columns: minmax(0, 1fr) 306px; gap: 16px; }
.hero {
  background: var(--ink-1); border: 1px solid var(--line-1); padding: 42px;
  min-height: 350px; border-radius: 20px;
}
.hero:after, .hero-word, .hero-orbit { display: none; }
.hero-copy { max-width: 56%; }
.pill { background: var(--ink-3); color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; font-size: 11px; font-weight: 450; padding: 5px 10px; }
.hero h1 { font-family: Geist, sans-serif; font-size: clamp(30px, 3vw, 46px); line-height: 1.12; letter-spacing: -1.8px; font-weight: 500; margin: 24px 0 16px; max-width: 500px; }
.hero p { font-size: 13px; color: var(--text-2); line-height: 1.65; max-width: 330px; }
.hero .primary { height: 42px; font-size: 13px; margin-top: 26px; gap: 20px; }
.hero-art { width: 48%; }
.hero-art img { width: 100%; height: 82%; top: 0; left: 0; transform: rotate(-13deg); filter: drop-shadow(0 20px 24px #000a); }
.hero-skin-label { bottom: 30px; right: 30px; font-size: 12px; }
.hero-skin-label strong { color: var(--text-1); font-size: 12px; font-weight: 450; }
.hero-skin-label span { color: var(--text-3); font-size: 11px; }
.primary { background: #ededed; color: #111; font-weight: 550; border: 1px solid #ededed; border-radius: 999px; }
.primary:hover { background: #fff; box-shadow: 0 0 0 3px #ffffff15; }
.secondary { background: var(--ink-3); border: 1px solid var(--line-2); color: var(--text-1); font-weight: 500; border-radius: 999px; }
.secondary:hover { background: var(--ink-4); border-color: var(--line-3); }
.danger { color: #ff8c89; background: #ff676412; border-radius: 999px; }
.daily-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; background: var(--ink-1); border: 1px solid var(--line-1); border-radius: 20px; }
.daily-card .gift-icon { width: 38px; height: 38px; border-radius: 12px; background: #3a83f714; color: #5ba2fe; margin: 0 0 20px; }
.daily-card .pill { top: 30px; right: 24px; color: var(--text-2); background: var(--ink-3); border-color: var(--line-2); }
.daily-card h2 { font-size: 21px; line-height: 1.25; font-weight: 500; letter-spacing: -.5px; margin-bottom: 10px; }
.daily-card h2 br { display: none; }
.daily-card p { font-size: 12px; color: var(--text-2); line-height: 1.6; max-width: none; }
.daily-card p br { display: none; }
.daily-reward { color: var(--text-1); font-size: 32px; font-weight: 500; margin: 20px 0; }
.daily-reward span { color: var(--text-2); font-weight: 400; font-size: 12px; }
.daily-card button { display: inline-flex; justify-content: space-between; gap: 8px; height: 38px; min-height: 38px; background: var(--ink-3); color: var(--text-1); border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; margin-top: auto; }
.daily-card button:hover { background: var(--ink-4); }
.quick-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-1); padding: 0; margin: 16px 0 26px; }
.quick-stat { min-width: 0; padding: 22px 24px; gap: 14px; border: 0; }
.quick-stat + .quick-stat { border-left: 1px solid var(--line); }
.quick-stat .stat-icon { width: 34px; height: 34px; background: transparent; color: var(--text-3); }
.quick-stat strong { color: var(--text-1); font-size: 23px; font-weight: 500; letter-spacing: -.7px; }
.quick-stat small { color: var(--text-2); font-size: 11px; margin-top: 6px; }
.mode-strip { gap: 12px; margin-bottom: 32px; }
.mode-strip button { border: 1px solid transparent; padding: 16px; border-radius: 14px; }
.mode-strip button:hover { background: var(--ink-2); border-color: var(--line-1); }
.mode-strip button > .icon:first-child { color: var(--text-2); }
.mode-strip strong { font-size: 14px; font-weight: 500; }
.mode-strip small { color: var(--text-2); font-size: 12px; }
.mode-strip button > .icon:last-child { color: var(--text-3); }
.section-title h2, .group-heading h3 { font-size: 24px; font-weight: 500; letter-spacing: -.7px; }
.section-description, .group-heading p { font-size: 13px; line-height: 1.6; color: var(--text-2); }
.section-title h2 span, .group-heading h3 span { color: var(--text-2); font-size: 12px; background: var(--ink-3); border-radius: 999px; padding: 3px 8px; }
.text-button { color: var(--text-2); font-size: 12px; font-weight: 450; }
.text-button:hover { color: #fff; }
.home-arcade { margin: 32px 0 44px; }
.arcade-link { background: var(--ink-1); border-color: var(--line-1); border-radius: 16px; padding: 22px; }
.arcade-link:hover, .arcade-link.active { background: var(--ink-3); border-color: color-mix(in srgb,var(--game-color) 45%,#242424); }
.arcade-link-icon { background: color-mix(in srgb,var(--game-color) 8%,transparent); }
.arcade-link strong { font-size: 20px; font-weight: 500; letter-spacing: -.5px; }
.arcade-link small { color: var(--text-2); font-size: 12px; }
.arcade-live-dot { border-radius: 999px; }
.catalog-filter-panel { background: var(--ink-1); border-color: var(--line-1); border-radius: 16px; padding: 16px; margin-bottom: 32px; }
.catalog-filter-panel .catalog-toolbar { flex-wrap: wrap; gap: 14px; }
.tabs, .auth-tabs, .market-type-tabs, .battle-mode-tabs, .quantity, .contract-mode-tabs { background: var(--ink-3); border: 1px solid var(--line-1); border-radius: 999px; padding: 4px; gap: 2px; }
.catalog-groups { background: var(--ink-3); border: 1px solid var(--line-1); padding: 4px; flex: 0 1 auto; }
.tabs button, .auth-tabs button, .market-type-tabs button, .battle-mode-tabs button, .quantity button { background: transparent; border: 0; color: var(--text-2); border-radius: 999px; font-weight: 450; font-size: 12px; padding: 0 12px; min-height: 34px; }
.tabs button.active, .auth-tabs button.active, .market-type-tabs button.active, .battle-mode-tabs button.active, .quantity button.active { color: var(--text-1); background: var(--ink-4); box-shadow: none; }
.catalog-filter-panel .tools { margin-left: auto; }
.search, .catalog-filter-panel .search, .sort-select, .catalog-filter-panel .sort-select, .form-field { background: var(--ink-1); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text-1); }
.search:focus-within, .form-field:focus-within { border-color: #3a83f7; box-shadow: 0 0 0 3px #3a83f718; }
.search input, .form-field input, .sort-select { font-size: 12px; color: var(--text-1); }
.search .icon, .form-field > .icon { color: var(--text-3); }
.price-filter-row { border-color: var(--line-1); flex-wrap: wrap; gap: 12px; }
.price-filter-row > span:first-child, .price-chips button, .affordable-switch, .catalog-count { color: var(--text-2); font-size: 12px; }
.price-chips button { border-radius: 999px; padding: 6px 10px; }
.price-chips button.active { background: var(--ink-4); color: var(--text-1); }
.case-group { margin: 0 0 42px; }
.case-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.v2-case { background: var(--ink-1); border: 1px solid var(--line-1); border-radius: 18px; padding-top: 12px; text-align: left; transition: border-color .2s, background .2s; }
.v2-case:hover { background: var(--ink-2); border-color: var(--line-3); transform: none; box-shadow: none; }
.v2-case:before, .v2-case .case-art:after { display: none; }
.v2-case .case-art { height: 200px; overflow: hidden; }
.v2-case .case-art img { transition: transform .35s var(--ease); }
.case-caption { padding: 6px 20px 20px; }
.case-kind { color: var(--text-3); font-size: 11px; margin-bottom: 6px; }
.v2-case h3 { color: var(--text-1); font-size: 18px; line-height: 1.4; font-weight: 500; letter-spacing: -.4px; text-align: left; min-height: 26px; }
.v2-case p { color: var(--text-2); font-size: 12px; line-height: 1.5; height: 36px; margin: 7px 0 16px; }
.case-card-meta { color: var(--text-3); font-size: 11px; justify-content: flex-start; gap: 12px; margin-bottom: 16px; }
.case-card-meta .icon { width: 13px; height: 13px; }
.v2-case .case-tag { font-size: 10px; border-radius: 999px; border-color: #ffffff15; background: var(--ink-3); color: var(--text-2); padding: 5px 9px; }
.case-favorite { color: var(--text-3); width: 30px; height: 30px; border-radius: 50%; }
.case-favorite:hover { background: var(--ink-4); }
.v2-case .case-bottom { border-top: 1px solid var(--line-1); padding-top: 16px; gap: 8px; flex-direction: row; align-items: center; }
.v2-case .case-price { color: var(--text-1); font-size: 20px; font-weight: 500; white-space: nowrap; letter-spacing: -.6px; }
.case-price small { color: var(--text-2); font-size: 12px; }
.v2-case .case-bottom button { background: #ededed; border: 1px solid #ededed; color: #111; border-radius: 999px; padding: 0 14px; min-height: 34px; font-size: 12px; font-weight: 500; width: auto; }
.v2-case .case-bottom button:hover { background: #fff; color: #000; }
.discovery-panels > button { background: var(--ink-1); border-color: var(--line-1); border-radius: 16px; }
.discovery-panels h3 { font-weight: 500; }
.discovery-panels p { color: var(--text-2); font-size: 12px; }
.discovery-icon, .discovery-icon.amber { background: var(--ink-3); color: var(--text-2); }
.footer { border-color: var(--line-1); margin-top: 48px; padding-top: 24px; gap: 24px; }
.footer p { color: var(--text-3); font-size: 11px; line-height: 1.7; }
.footer button { color: var(--text-2); font-size: 12px; }
.page-heading h1, .arcade-heading h1, .case-detail-header h1 { font-family: Geist, sans-serif; font-size: clamp(28px,3.2vw,42px); font-weight: 500; letter-spacing: -1.2px; }
.page-heading p, .arcade-heading p, .case-detail-header p { color: var(--text-2); font-size: 13px; line-height: 1.7; }
.back-button { color: var(--text-2); font-size: 12px; }
.detail-main, .case-detail-facts, .inventory-summary, .inventory-v2-toolbar, .selection-panel,
.upgrade-stake, .upgrade-target, .upgrade-calculation, .contract-workbench, .contract-range,
.battle-v2-arena, .battle-side, .pvp-create, .pvp-room, .pvp-room-card, .pvp-empty,
.mission-card, .profile-banner, .profile-stat, .history-row, .empty-state,
.arcade-controls, .arcade-player-panel, .arcade-history, .arcade-hub-board,
.crash-stage, .mines-stage, .jackpot-stage, .jackpot-player, .community-builder,
.admin-panel, .admin-stat, .admin-user-card, .admin-settings-section, .admin-backup-card {
  background: var(--ink-1); border-color: var(--line-1); box-shadow: none;
}
.case-detail-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 16px; }
.case-detail-facts { display: grid; grid-template-columns: minmax(0,1fr); align-content: stretch; gap: 0; padding: 4px 20px; }
.case-detail-facts > div, .case-detail-facts > button {
  position: relative; width: 100%; min-width: 0; display: grid; grid-template-columns: 20px minmax(0,1fr);
  grid-template-rows: auto auto; align-content: center; gap: 6px 12px; background: transparent;
  padding: 20px 0; border-color: var(--line-1); border-radius: 0;
}
.case-detail-facts > button { padding-right: 20px; }
.case-detail-facts > button:hover { background: #ffffff04; }
.case-detail-facts > :last-child { display: grid; }
.case-detail-facts > :is(div,button) > .icon { grid-column: 1; grid-row: 1 / 3; width: 18px; height: 18px; margin: 2px 0 0; color: var(--text-2); }
.case-detail-facts > :is(div,button) > span { grid-column: 2; grid-row: 1; color: var(--text-2); font-size: 12px; line-height: 1.5; min-width: 0; }
.case-detail-facts > :is(div,button) > strong { grid-column: 2; grid-row: 2; color: var(--text-1); font-size: 13px; font-weight: 450; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.case-detail-facts strong .icon { display: block; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; margin: 0; }
.opening-shortcut { color: var(--text-2); }
.market-case-note, .market-source-note { background: transparent; color: var(--text-2); font-size: 12px; border-color: var(--line-1); }
.market-source-note button { color: var(--text-2); font-size: 11px; }
.v2-skin {
  display: flex; flex-direction: column; align-items: stretch;
  background: linear-gradient(160deg,color-mix(in srgb,var(--rarity) 20%,#111),color-mix(in srgb,var(--rarity) 5%,#0a0a0a));
  border: 1px solid color-mix(in srgb,var(--rarity) 42%,#242424); border-bottom: 3px solid var(--rarity); border-radius: 14px;
}
.v2-skin:hover { background: linear-gradient(160deg,color-mix(in srgb,var(--rarity) 28%,#141414),color-mix(in srgb,var(--rarity) 8%,#101010)); border-color: color-mix(in srgb,var(--rarity) 70%,#333); }
.v2-skin:after { display: none; }
.v2-skin .skin-bottom { margin-top: auto; padding-top: 12px; flex-wrap: wrap; gap: 8px; }
.v2-skin .chance { font-size: 10px; color: var(--text-1); background: #0a0a0ab0; border: 1px solid #ffffff15; border-radius: 6px; padding: 3px 6px; top: 8px; right: 8px; }
.v2-skin.selected { background: #3a83f70c; outline: 1px solid #3a83f7; }
.v2-skin h3 { color: var(--text-1); font-size: 13px; font-weight: 500; }
.v2-skin .weapon, .v2-skin .wear { color: var(--text-2); font-size: 11px; }
.v2-skin .item-price { color: var(--text-1); font-size: 14px; font-weight: 500; }
.skin-select { background: var(--ink-3); border-color: var(--line-3); border-radius: 50%; color: var(--text-2); }
.skin-select.active { background: #3a83f7; border-color: #3a83f7; color: #fff; }
.item-actions { border-color: var(--line-1); }
.item-actions button { color: var(--text-2); background: var(--ink-3); border-radius: 999px; font-size: 11px; }
.item-actions button:hover { background: var(--ink-4); color: #fff; }
.item-actions button.lock { color: #e8bf77; }
.inventory-summary strong, .profile-stat strong { color: var(--text-1); font-weight: 500; }
.inventory-summary small, .profile-stat small, .selection-catalog-note { color: var(--text-2); font-size: 12px; }
.empty-state { border: 1px dashed var(--line-2); border-radius: 16px; }
.empty-state h3 { font-weight: 500; font-size: 20px; }
.empty-state p { color: var(--text-2); font-size: 13px; }
.wheel-disc { background: conic-gradient(from 0deg, #40c977 0deg var(--chance-angle), #242424 var(--chance-angle) 360deg); }
.wheel-hub { background: var(--ink-1); border-color: var(--line-2); box-shadow: 0 0 0 6px #0a0a0a; }
.wheel-zone-ring { border-color: #090909; background: none; }
.wheel-ticks i { background: #444; }
.wheel-ticks i.major { background: #999; }
.wheel-hub small, .wheel-hub-icon, .upgrade-rule { color: var(--text-2); }
.wheel-hub > strong { font-weight: 500; }
.workbench-label, .upgrade-stake-total small, .upgrade-target > .weapon, .upgrade-calculation { color: var(--text-2); }
.upgrade-multipliers button { background: var(--ink-3); border-color: var(--line-2); color: var(--text-2); border-radius: 999px; }
.upgrade-multipliers button.active { background: var(--ink-4); color: #fff; }
.reactor-core { background: var(--ink-2); border-color: var(--line-3); box-shadow: 0 0 0 8px #ffffff03; }
.reactor-socket { background: var(--ink-2); border-color: var(--line-3); }
.reactor-socket.filled { background: color-mix(in srgb,var(--rarity) 8%,#111); }
.contract-mode-tabs { border-radius: 14px; }
.contract-mode-tabs button { border-radius: 10px; background: transparent; }
.contract-mode-tabs button.active { background: var(--ink-4); border-color: var(--line-3); }
.contract-mode-tabs strong, .contract-mode-tabs button.active strong { color: var(--text-1); font-weight: 500; }
.contract-mode-tabs small, .contract-mode-tabs button.active small { color: var(--text-2); }
.contract-range-note, .contract-value-line > span { color: var(--text-2); }
.contract-create { background: #ededed; color: #111; border-radius: 999px; }
.contract-create:hover { background: #fff; }
.daily-calendar { background: var(--ink-1); border-color: var(--line-1); }
.daily-day { background: var(--ink-2); border-color: var(--line-1); }
.daily-day > small { color: var(--text-2); font-size: 11px; }
.daily-day > strong { color: var(--text-2); }
.daily-day.next { background: #40c9770a; border-color: #40c97750; }
.daily-day.next strong, .daily-day.next .icon { color: #40c977; }
.battle-mode-tabs { border-bottom: 1px solid var(--line-1); margin-bottom: 24px; width: fit-content; max-width: 100%; }
.battle-side.leading { border-color: #40c97766; box-shadow: none; }
.battle-avatar { background: var(--ink-3); color: var(--text-2); }
.pvp-sync-label { color: var(--text-2); font-size: 11px; }
.arcade-heading h1 { line-height: 1.15; }
.arcade-connection { color: var(--text-2); }
.arcade-control-note, .arcade-rules, .arcade-heading p { color: var(--text-2); }
.arcade-field { color: var(--text-2); }
.arcade-field input { background: var(--ink-2); border-color: var(--line-2); color: var(--text-1); }
.hub-community { background: var(--ink-2); border-color: var(--line-1); }
.arcade-table-head { color: var(--text-2); background: var(--ink-2); }
.crash-rounds { border-color: var(--line-1); }
.crash-grid { stroke: #242424; }
.mine-cell { background: var(--ink-3); border-color: var(--line-2); box-shadow: inset 0 -4px 0 #111; transition: background .16s, border-color .16s, transform .16s var(--ease); }
.mine-cell:not(:disabled):hover { background: var(--ink-4); border-color: #666; transform: translateY(-2px); }
.mine-cell.safe { background: #40c97714; border-color: #40c97750; box-shadow: inset 0 -4px 0 #40c97708; color: #40c977; }
.mine-cell.hazard { background: #ff676410; box-shadow: inset 0 -4px 0 #ff676408; color: #ff7774; }
.mine-cell.hit { background: #ff676426; border-color: #ff7774; }
.mine-unopened { color: var(--text-3); }
.admin-tabs { background: var(--ink-2); border-color: var(--line-1); border-radius: 14px; }
.admin-tabs button { color: var(--text-2); border-radius: 10px; }
.admin-tabs button.active { background: var(--ink-4); color: #fff; }
.admin-panel h2, .admin-panel h3 { font-weight: 500; }
.admin-panel input, .admin-panel select, .admin-panel textarea { background: var(--ink-2); border-color: var(--line-2); color: var(--text-1); }
.modal-backdrop { background: #0009; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); animation: dl-scrim-in .18s both; }
.modal { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 24px 100px #0009; animation: dl-dialog-in .24s var(--ease) both; }
.modal h2 { font-family: Geist,sans-serif; font-weight: 500; letter-spacing: -.8px; }
.modal > p, .modal-footnote { color: var(--text-2); font-size: 12px; }
.modal-close { border-radius: 50%; background: var(--ink-4); color: var(--text-2); }
.modal-close:hover { color: #fff; background: var(--ink-5); }
.modal-icon { background: #3a83f713; color: #5ba2fe; border-radius: 14px; }
.amount-grid button { background: var(--ink-3); color: var(--text-1); border: 1px solid var(--line-2); border-radius: 10px; }
.amount-grid button:hover { background: var(--ink-4); border-color: #666; }
.note, .inline-info { background: var(--ink-3); color: var(--text-2); border-color: var(--line-2); }
.result-item { background: linear-gradient(155deg,color-mix(in srgb,var(--rarity) 23%,#111),#111); border-color: color-mix(in srgb,var(--rarity) 45%,#333); border-bottom: 3px solid var(--rarity); }
.result-item h3 { font-size: 16px; font-weight: 500; }
.result-item strong { color: var(--text-1); }
.result-item small, .result-item p { color: var(--text-2); }
.inspection-stage { background: #090909; border-color: var(--line-1); }
.inspection-info, .market-price-table { background: var(--ink-2); border-color: var(--line-1); }
.toast { background: var(--ink-3); border: 1px solid var(--line-2); border-radius: 14px; color: var(--text-1); box-shadow: 0 8px 30px #0009; font-size: 13px; animation: dl-dialog-in .22s var(--ease) both; }
.toast .icon { color: #40c977; }
.toast.error .icon { color: #ff7774; }
.reel-item { position: relative; background: linear-gradient(0deg,color-mix(in srgb,var(--rarity) 25%,#101010),color-mix(in srgb,var(--rarity) 8%,#101010)); border-color: color-mix(in srgb,var(--rarity) 40%,#242424); border-bottom-color: var(--rarity); }
.roulette-viewport { background: #050505; border-color: var(--line-1); }
.reel-finished [data-winner="true"] { background: color-mix(in srgb,var(--rarity) 13%,#101010); }
.auth-page { background: #000; padding: 0 max(32px,calc((100vw - 1320px) / 2)); }
.auth-header { height: 100px; border-color: var(--line-1); }
.auth-header .wordmark { font-size: 25px; }
.auth-header > span { color: var(--text-2); font-size: 12px; }
.auth-layout { grid-template-columns: minmax(0,1fr) 410px; gap: 80px; padding: 64px 0; }
.auth-showcase { min-height: 590px; }
.auth-showcase h1 { font-family: Geist,sans-serif; font-size: clamp(38px,4.2vw,62px); line-height: 1.07; font-weight: 500; letter-spacing: -2.6px; margin: 28px 0 20px; }
.auth-showcase > p { color: var(--text-2); font-size: 14px; line-height: 1.7; }
.auth-weapon { height: 290px; margin-top: 0; }
.auth-halo { display: none; }
.auth-weapon img { filter: drop-shadow(0 16px 24px #000); }
.auth-weapon > span { color: var(--text-2); font-size: 12px; }
.auth-weapon > span strong { color: var(--text-1); font-weight: 450; }
.auth-perks { border-color: var(--line-1); gap: 24px; }
.auth-perks div { color: var(--text-2); font-size: 11px; }
.auth-perks .icon { color: var(--text-3); }
.auth-card { background: var(--ink-1); border: 1px solid var(--line-2); box-shadow: none; border-radius: 20px; padding: 32px; }
.auth-card-top { color: var(--text-2); letter-spacing: 0; font-size: 12px; font-weight: 400; }
.auth-card h2 { font-size: 30px; font-weight: 500; letter-spacing: -1px; }
.auth-card > p { color: var(--text-2); font-size: 12px; }
.auth-tabs { margin: 26px 0; }
.form-label { color: var(--text-2); font-size: 12px; font-weight: 450; }
.form-field { min-height: 46px; }
.form-field input { font-size: 13px; }
.form-field input::placeholder { color: var(--text-3); }
.auth-submit { font-size: 13px; }
.auth-note, .auth-card-bottom, .auth-footer { color: var(--text-3); font-size: 11px; border-color: var(--line-1); }
.auth-card-bottom .icon { color: var(--text-2); }
.auth-footer { gap: 12px; }
.mobile-nav { background: #0a0a0af2; border-color: var(--line-2); backdrop-filter: blur(16px); }
.mobile-nav button { color: var(--text-2); font-size: 10px; font-weight: 450; }
.mobile-nav button.active { color: #fff; }
.mobile-nav button.active:before { background: #fff; }
.balance-updated { color: #40c977; }
.dl-close-ghost { pointer-events: none !important; z-index: 1000; animation: none; }
.dl-close-ghost .modal { animation: none; }
.dl-busy { pointer-events: none; }
.dl-busy > .icon { animation: dl-wait .9s linear infinite; }
/* Shared controls, readable game labels and the remaining administrative surfaces. */
.contract-console h2, .admin-heading h1 { font-family: Geist,sans-serif; font-weight: 500; line-height: 1.2; letter-spacing: -1px; }
.contract-console h2 { font-size: 30px; }
.contract-console { min-width: 0; }
.contract-mode-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.contract-mode-tabs button { min-width: 0; }
.admin-heading h1 { font-size: 36px; }
.admin-heading p { color: var(--text-2); font-size: 13px; }
.workbench-label, .upgrade-stake-total small, .balance-contribution > label,
.upgrade-multipliers > span, .contract-value-line > span, .contract-range small { color: var(--text-2); font-size: 12px; }
.workbench-label strong, .balance-contribution label span { color: var(--text-2); font-size: 11px; font-weight: 400; }
.stake-empty, .stake-empty p, .target-empty, .target-empty p { color: var(--text-2); font-size: 12px; }
.stake-empty h3, .target-empty h3 { color: var(--text-1); font-size: 14px; font-weight: 500; }
.upgrade-stake-total strong, .contract-value-line strong { font-weight: 500; }
.balance-contribution > div { background: var(--ink-2); border-color: var(--line-2); color: var(--text-2); height: 42px; border-radius: 10px; }
.balance-contribution input { color: var(--text-1); font-size: 14px; }
.balance-contribution button { color: var(--text-2); }
.balance-contribution > div:focus-within { border-color: #3a83f7; box-shadow: 0 0 0 3px #3a83f718; }
.stake-scale button, .balance-contribution .stake-scale button { background: var(--ink-3); color: var(--text-2); border: 1px solid var(--line-2); border-radius: 6px; font-size: 12px; }
.stake-scale button:hover:not(:disabled), .balance-contribution .stake-scale button:hover:not(:disabled) { background: var(--ink-4); color: #fff; border-color: var(--line-3); }
.stake-scale button[data-factor] { color: var(--text-2); }
.wheel-hub small, .wheel-legend, .upgrade-rule { color: var(--text-2); font-size: 11px; }
.wheel-legend i { background: #40c977; }
.wheel-legend > span:nth-child(2) i { background: #555; }
.upgrade-calculation { font-size: 12px; line-height: 1.7; }
.upgrade-multipliers > span { margin-bottom: 10px; }
.contract-mode-tabs strong { font-size: 12px; }
.contract-mode-tabs small { font-size: 11px; }
.contract-range { padding: 18px; }
.contract-range strong { color: var(--text-1); font-weight: 500; font-size: 20px; }
.contract-range-note { font-size: 12px; line-height: 1.7; }
.reactor-core > small, .reactor-core strong span, .reactor-socket > small { color: var(--text-2); }
.reactor-core > small { font-size: 11px; }
.reactor-orbit { border-color: var(--line-2); }
.reactor-orbit.inner { border-color: var(--line-1); }
.forge-vault { background: var(--ink-2); border-color: var(--line-3); }
.forge-door { background: linear-gradient(135deg,#282828,#141414); border-color: var(--line-3); box-shadow: inset 0 0 0 5px #0003; }
.forge-seal { background: #161616; border-color: #777; box-shadow: 0 0 0 5px #101010; color: var(--text-1); }
.forge-progress-line { stroke: #ddd; }
.rarity-distribution { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 8px; align-items: stretch; }
.rarity-distribution > span { display: grid; grid-template-columns: 5px minmax(0,1fr) max-content; align-items: center; gap: 8px; min-width: 0; background: color-mix(in srgb,var(--rarity) 8%,#0d0d0d); color: var(--text-1); font-size: 12px; border: 1px solid color-mix(in srgb,var(--rarity) 28%,#242424); border-radius: 12px; padding: 12px; white-space: normal; }
.rarity-distribution > span > span { min-width: 0; line-height: 1.4; }
.rarity-distribution strong { font-size: 12px; font-weight: 500; white-space: nowrap; margin-left: 4px; font-variant-numeric: tabular-nums; }
.inspection-art { background: radial-gradient(ellipse,color-mix(in srgb,var(--rarity) 8%,transparent),transparent 65%),#090909; }
.inspection-weapon, .inspection-facts small, .inspection-float-note, .float-labels { color: var(--text-2); font-size: 11px; }
.inspection-facts strong { color: var(--text-1); font-size: 12px; font-weight: 450; }
.inspection-actions button, .inspection-cases button { background: var(--ink-3); color: var(--text-2); border-color: var(--line-2); border-radius: 999px; font-size: 12px; }
.inspection-actions button:hover, .inspection-cases button:hover { background: var(--ink-4); color: #fff; }
.arcade-player-row, .jackpot-item, .builder-row, .builder-results > button, .community-review { background: var(--ink-2); border-color: var(--line-1); }
.arcade-avatar, .jackpot-wheel-center { background: var(--ink-3); color: var(--text-2); }
.jackpot-wheel-center { box-shadow: 0 0 0 7px #111a; }
.jackpot-wheel { box-shadow: 0 0 0 5px #1b1b1b,0 0 0 6px #333; }
.arcade-field > span, .arcade-player-row small { color: var(--text-2); font-size: 11px; }
.arcade-personal, .arcade-empty { color: var(--text-2); }
.hub-community h2 { font-size: 28px; font-weight: 500; }
.hub-community p, .hub-crash-art p { color: var(--text-2); font-size: 13px; }
.admin-tabs { padding: 5px; }
.admin-tabs > button { background: transparent; border: 1px solid transparent; color: var(--text-2); font-weight: 450; border-radius: 10px; }
.admin-tabs > button.active { background: var(--ink-4); border-color: var(--line-2); color: var(--text-1); }
.admin-stat-grid > article { background: var(--ink-1); border-color: var(--line-1); border-radius: 16px; }
.admin-stat-grid .icon { color: var(--text-3); }
.admin-stat-grid small, .admin-stat-grid p, .admin-kv > span, .admin-note { color: var(--text-2); font-size: 12px; }
.admin-stat-grid strong { font-weight: 500; }
.admin-kv { font-size: 13px; }
.admin-kv > strong { color: var(--text-1); font-weight: 450; }
.admin-shortcuts button { background: var(--ink-3); color: var(--text-1); border-color: var(--line-1); border-radius: 10px; }
.admin-shortcuts button:hover { background: var(--ink-4); }
.admin-shortcuts .icon { color: var(--text-2); }
.admin-table th { background: var(--ink-2); color: var(--text-2); }
.admin-table td { border-color: var(--line-1); }
.admin-toggle { border-color: var(--line-1); }
.admin-toggle strong { color: var(--text-1); font-weight: 500; font-size: 13px; }
.admin-toggle small { color: var(--text-2); font-size: 12px; }
.admin-case-row, .admin-backup-row, .admin-audit-row { border-color: var(--line-1); }
.admin-settings-submit { background: #111e; border-color: var(--line-2); backdrop-filter: blur(12px); }
.switch { color: var(--text-2); font-size: 12px; }
.switch input, .admin-toggle > input {
  appearance: none; -webkit-appearance: none; position: relative; width: 34px; height: 21px;
  border: 1px solid var(--line-3); border-radius: 999px; background: var(--ink-4); margin: 0; flex: 0 0 34px;
  cursor: pointer; transition: background .16s, border-color .16s;
}
.switch input:before, .admin-toggle > input:before { content: ''; position: absolute; width: 15px; height: 15px; left: 2px; top: 2px; background: #ddd; border-radius: 50%; transition: transform .18s var(--ease); }
.switch input:checked, .admin-toggle > input:checked { background: #3a83f7; border-color: #3a83f7; }
.switch input:checked:before, .admin-toggle > input:checked:before { transform: translateX(13px); background: #fff; }
.motion-segments { position: relative; isolation: isolate; }
.motion-segments > button { position: relative; z-index: 1; }
.motion-segments > button.active { background: transparent; }
.segment-cursor { position: absolute; background: var(--ink-4); pointer-events: none; z-index: 0; }
.form-error:not(:empty) { animation: dl-error-in .2s var(--ease); }
@keyframes dl-error-in { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: translateX(0); } }
/* Outline's floating search and native popup surfaces. */
.subnav kbd, .command-footer kbd { font: inherit; font-size: 10px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 4px; }
.subnav [data-action="quick-search"] { gap: 8px; }
.command-backdrop { align-items: flex-start; padding-top: clamp(60px,20.7vh,220px); backdrop-filter: blur(3px); }
.modal.command-dialog { width: min(720px,100%); height: min(490px,75dvh); padding: 0; display: flex; flex-direction: column; border-radius: 16px; background: var(--ink-2); overflow: hidden; }
.command-input-row { display: flex; align-items: center; gap: 12px; padding: 22px 64px 18px 24px; flex-shrink: 0; }
.command-input-row > .icon { width: 19px; color: var(--text-3); }
.command-input-row input { border: 0; background: transparent; color: var(--text-1); font-size: 16px; min-width: 0; width: 100%; outline: none; height: 28px; padding: 0; }
.command-input-row input:focus-visible { outline: none; }
.command-filters { display: flex; gap: 4px; padding: 0 16px 12px; flex-shrink: 0; }
.command-filters button { background: transparent; color: var(--text-2); border-radius: 999px; padding: 8px 13px; font-size: 13px; }
.command-filters button[aria-pressed="true"] { background: var(--ink-4); color: var(--text-1); }
.command-results { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 12px; scrollbar-width: thin; }
.command-result { width: 100%; min-height: 64px; display: grid; grid-template-columns: 36px minmax(0,1fr) 18px; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 12px; background: transparent; color: var(--text-1); transition: background .12s; }
.command-result.selected { background: var(--ink-4); }
.command-result .command-icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--text-2); }
.command-icon img { width: 46px; height: 42px; object-fit: contain; }
.command-result strong { display: block; font-size: 14px; font-weight: 450; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-result small { display: block; margin-top: 4px; color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-result > .icon { color: var(--text-3); width: 16px; opacity: 0; transition: opacity .12s, transform .16s var(--ease); transform: translateX(-4px); }
.command-result.selected > .icon { opacity: 1; transform: translateX(0); }
.command-empty { padding: 40px 12px; text-align: center; color: var(--text-1); font-size: 14px; line-height: 1.8; }
.command-empty span { color: var(--text-2); font-size: 12px; }
.command-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-2); padding: 12px 24px; color: var(--text-3); font-size: 11px; flex-shrink: 0; }
.command-footer kbd { margin-right: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sort-select { border-radius: 999px; }
select:not([multiple], [size]:not([size="1"])) { cursor: pointer; }
@supports (appearance: base-select) {
  select:not([multiple], [size]:not([size="1"])), select:not([multiple], [size]:not([size="1"]))::picker(select) { appearance: base-select; }
  select:not([multiple], [size]:not([size="1"])) { align-items: center; gap: 12px; }
  select:not([multiple], [size]:not([size="1"]))::picker-icon { margin-left: auto; color: var(--text-3); transition: rotate .2s var(--ease); }
  select:not([multiple], [size]:not([size="1"])):open::picker-icon { rotate: 180deg; }
  select:not([multiple], [size]:not([size="1"]))::picker(select) {
    background: #171717ed; color: var(--text-1); border: 1px solid var(--line-2); border-radius: 16px; padding: 6px;
    margin-top: 6px; max-height: min(60vh,384px); overflow-y: auto; backdrop-filter: blur(12px);
    box-shadow: 0 12px 36px #0008; opacity: 0; transform: translateY(-5px) scale(.98); transform-origin: top;
    transition: opacity .16s var(--ease), transform .18s var(--ease), display .18s allow-discrete, overlay .18s allow-discrete;
  }
  select:not([multiple], [size]:not([size="1"])):open::picker(select) { opacity: 1; transform: translateY(0) scale(1); }
  @starting-style { select:not([multiple], [size]:not([size="1"])):open::picker(select) { opacity: 0; transform: translateY(-5px) scale(.98); } }
  select option { background: transparent; color: var(--text-1); min-height: 36px; padding: 8px 12px; border-radius: 10px; font-size: 13px; }
  select option:hover, select option:focus { background: var(--ink-5); color: #fff; outline: none; }
  select option:checked { background: var(--ink-4); color: #fff; }
}
.topnav .drawer-trigger { padding: 0; width: 36px; justify-content: center; color: var(--text-2); }
.drawer-backdrop { align-items: stretch; justify-content: flex-start; padding: 0; backdrop-filter: blur(4px); }
.modal.navigation-drawer { width: min(320px,calc(100vw - 48px)); max-height: 100dvh; height: 100dvh; padding: 0; border-radius: 0 20px 20px 0; display: flex; flex-direction: column; background: var(--ink-2); animation: dl-drawer-in .28s var(--ease) both; }
.navigation-drawer .modal-close { top: 23px; right: 18px; }
.drawer-heading { padding: 26px 64px 24px 24px; border-bottom: 1px solid var(--line-2); }
.drawer-heading h2 { font-size: 20px; margin: 0; letter-spacing: -.6px; }
.drawer-heading p { color: var(--text-3); font-size: 12px; margin-top: 6px; }
.drawer-navigation { overflow-y: auto; flex: 1; padding: 16px 12px; }
.drawer-group + .drawer-group { margin-top: 12px; }
.drawer-group-toggle { background: transparent; display: flex; align-items: center; justify-content: space-between; color: var(--text-2); width: 100%; font-size: 12px; font-weight: 450; padding: 12px; border-radius: 10px; }
.drawer-group-toggle:hover { color: var(--text-1); background: var(--ink-3); }
.drawer-group-toggle .icon { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .24s var(--ease); }
.drawer-group-toggle[aria-expanded="false"] .icon { transform: rotate(0); }
.drawer-group-items { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .26s var(--ease), opacity .18s; }
.drawer-group-items.closed { grid-template-rows: 0fr; opacity: 0; }
.drawer-group-items > div { overflow: hidden; min-height: 0; }
.drawer-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; background: transparent; color: var(--text-2); text-align: left; font-size: 14px; }
.drawer-link:hover { background: var(--ink-3); color: var(--text-1); }
.drawer-link.active { background: var(--ink-4); color: #fff; }
.drawer-link .icon { width: 18px; height: 18px; color: var(--text-2); }
.drawer-link.active .icon { color: var(--text-1); }
.drawer-footer { padding: 16px 24px max(20px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); color: var(--text-3); font-size: 12px; }
.interface-tooltip { position: fixed; z-index: 1100; max-width: min(260px,calc(100vw - 24px)); background: #ededed; color: #111; box-shadow: 0 4px 18px #0006; border-radius: 8px; padding: 7px 10px; font-size: 12px; line-height: 1.4; pointer-events: none; opacity: 0; transform: translateY(-3px) scale(.96); transition: opacity .13s var(--ease), transform .16s var(--ease); }
.interface-tooltip.visible { opacity: 1; transform: translateY(0) scale(1); }
.request-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 1200; pointer-events: none; transform-origin: left; background: #3a83f7; animation: dl-request-progress 1.8s var(--ease) both; }
.request-progress.complete { animation: none; transform: scaleX(1); opacity: 0; transition: transform .18s var(--ease), opacity .18s .12s; }
.admin-loading { color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 140px; }
.admin-loading:before, .loading-page:after { content: ''; display: block; width: 16px; height: 16px; border: 2px solid #333; border-top-color: #aaa; border-radius: 50%; animation: dl-wait .75s linear infinite; }
@keyframes dl-request-progress { from { transform: scaleX(.02); } to { transform: scaleX(.85); } }
@keyframes dl-drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes dl-scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dl-dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dl-wait { to { transform: rotate(360deg); } }
@media (min-width: 761px) and (max-width: 1504px) {
  .subnav, .livefeed { margin-left: 32px; margin-right: 32px; }
}
@media (max-width: 1330px) {
  .topbar { flex-wrap: wrap; gap: 20px; }
  .account-area { margin-left: auto; }
  .topnav { order: 3; width: max-content; max-width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .subnav { margin-top: 0; }
  .hero { padding: 32px; }
  .hero h1 { font-size: 36px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) 280px; }
  .catalog-groups { max-width: 100%; flex: 1 1 auto; }
  .catalog-filter-panel .tools { width: 100%; margin: 0; }
  .catalog-filter-panel .search { width: auto; flex: 1; }
  .case-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .auth-layout { gap: 40px; }
}
@media (max-width: 1000px) {
  .case-detail-layout { grid-template-columns: minmax(0,1fr); }
  .case-detail-facts { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0 18px; gap: 16px; }
  .case-detail-facts > div, .case-detail-facts > button { border-bottom: 0; padding-top: 18px; padding-bottom: 18px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); }
  .daily-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px 18px; padding: 24px; align-items: center; }
  .daily-card .gift-icon { grid-column: 1; grid-row: 1/3; margin: 0; }
  .daily-card .pill { display: none; }
  .daily-card h2 { grid-column: 2; margin: 0; font-size: 19px; }
  .daily-card p { grid-column: 2; }
  .daily-reward { grid-column: 3; grid-row: 1; margin: 0; font-size: 27px; text-align: right; }
  .daily-card button { grid-column: 3; grid-row: 2; margin: 0; width: auto; }
  .quick-stat { padding: 18px; gap: 8px; }
  .quick-stat .stat-icon { display: none; }
  .quick-stat strong { font-size: 21px; }
  .arcade-link { padding: 16px; gap: 10px; }
  .arcade-link-icon { width: 34px; height: 34px; flex-shrink: 0; }
  .arcade-link small { font-size: 11px; }
  .arcade-live-dot { display: none; }
  .auth-layout { grid-template-columns: minmax(0,1fr) 360px; gap: 30px; }
  .auth-showcase h1 { font-size: 42px; }
  .auth-perks { flex-wrap: wrap; gap: 12px; }
  .auth-card { padding: 26px; }
}
@media (max-width: 760px) {
  .case-detail-facts { grid-template-columns: minmax(0,1fr); gap: 0; padding: 0 18px; }
  .case-detail-facts > div, .case-detail-facts > button { border-bottom: 1px solid var(--line-1); min-width: 0; padding-top: 16px; padding-bottom: 16px; }
  .case-detail-facts > :last-child { border-bottom: 0; }
  .case-detail-facts > :is(div,button) > span { font-size: 11px; }
  .case-detail-facts > :is(div,button) > strong { font-size: 12px; }
  .case-detail-facts strong .icon { display: block; }
  .rarity-distribution { grid-template-columns: minmax(0,1fr); }
  .rarity-distribution > span { min-width: 0; padding: 10px 12px; font-size: 12px; }
  .rarity-distribution strong { font-size: 12px; }
  .topbar { padding: 20px 20px 16px; gap: 20px; }
  .wordmark { font-size: 22px; }
  .topbar .edition { display: block; font-size: 10px; letter-spacing: 0; }
  .balance-copy small { display: none; }
  .balance { font-size: 14px; }
  .account-area { gap: 10px; }
  .balance-box { gap: 8px; }
  .avatar { width: 34px; height: 34px; font-size: 11px; }
  .add-money { width: 28px; height: 28px; }
  .topnav { display: flex; flex-basis: 100%; margin: 0; height: 46px; }
  .topnav button { font-size: 12px; padding: 0 12px; height: 36px; min-height: 36px; }
  .nav-cursor { height: 36px; }
  .topnav button .icon { display: block; width: 15px; height: 15px; }
  .topnav .tiny-badge { display: none; }
  .subnav { margin: 0 20px 16px; padding-bottom: 14px; gap: 0; }
  .subnav button { padding: 7px 9px; font-size: 11px; }
  .subnav-status { display: none; }
  .subnav button[data-action="help"], .subnav button[data-action="settings"] { width: 32px; height: 32px; justify-content: center; padding: 0; }
  .subnav button[data-action="help"] span, .subnav button[data-action="settings"] span { display: none; }
  .subnav button[data-action="quick-search"] { width: 32px; height: 32px; justify-content: center; padding: 0; }
  .subnav [data-action="quick-search"] span, .subnav [data-action="quick-search"] kbd { display: none; }
  .livefeed { margin: 0 20px; height: 72px; min-height: 72px; }
  .live-label { min-width: 112px; width: 112px; padding-left: 12px; }
  .live-label > div { font-size: 10px; }
  .live-label small { font-size: 10px; }
  .feed-empty { font-size: 11px; padding: 14px; }
  .content { padding: 0 20px 92px; }
  .welcome-line { margin: 20px 0; }
  .breadcrumb { font-size: 11px; }
  .session-tag { display: none; }
  .hero { padding: 28px; min-height: 420px; border-radius: 18px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: 36px; line-height: 1.1; letter-spacing: -1.5px; margin: 20px 0 14px; max-width: 350px; }
  .hero p { font-size: 12px; max-width: 240px; }
  .hero .primary { height: 38px; font-size: 12px; margin-top: 20px; }
  .hero-art { width: 66%; height: 190px; top: auto; bottom: -4px; right: 0; }
  .hero-art img { height: 100%; top: 0; transform: rotate(-14deg); }
  .hero-skin-label { display: none; }
  .daily-card { grid-template-columns: 34px 1fr; gap: 6px 14px; padding: 20px; }
  .daily-card .gift-icon { width: 34px; height: 34px; grid-row: 1; }
  .daily-card h2 { font-size: 18px; }
  .daily-card p { grid-column: 1/-1; margin-top: 6px; font-size: 12px; }
  .daily-reward { grid-column: 1/-1; grid-row: 3; text-align: left; margin: 10px 0; font-size: 28px; }
  .daily-card button { grid-column: 1/-1; grid-row: 4; width: 100%; }
  .quick-stats { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 16px 0 24px; }
  .quick-stat { padding: 18px; }
  .quick-stat:nth-child(3) { border-left: 0; }
  .quick-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .quick-stat strong { font-size: 22px; }
  .quick-stat small { font-size: 11px; }
  .mode-strip { grid-template-columns: 1fr; gap: 0; padding-bottom: 18px; margin-bottom: 28px; }
  .mode-strip button { padding: 13px 6px; }
  .mode-strip small { font-size: 11px; }
  .section-title { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .section-title h2, .group-heading h3 { font-size: 22px; }
  .section-description, .group-heading p { font-size: 12px; }
  .home-arcade { margin: 26px 0 36px; }
  .arcade-links { grid-template-columns: 1fr; gap: 10px; }
  .arcade-link { padding: 18px; }
  .arcade-link strong { font-size: 18px; }
  .arcade-link small { font-size: 12px; }
  .arcade-link-icon { width: 38px; height: 38px; }
  .catalog-filter-panel { padding: 12px; margin-bottom: 26px; }
  .catalog-groups { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; justify-content: flex-start; }
  .catalog-groups button { flex-shrink: 0; }
  .catalog-filter-panel .tools { flex-wrap: wrap; gap: 10px; }
  .catalog-filter-panel .search { width: 100%; flex-basis: 100%; min-height: 40px; }
  .catalog-filter-panel .sort-select { width: 100%; min-height: 38px; }
  .price-filter-row { gap: 10px; }
  .price-filter-row > span:first-child { width: 100%; }
  .price-chips { gap: 4px; }
  .price-chips button { font-size: 11px; padding: 6px 8px; }
  .affordable-switch { margin-left: 0; }
  .catalog-count { margin-left: auto; font-size: 11px; }
  .case-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .case-group { margin-bottom: 32px; }
  .v2-case { border-radius: 14px; }
  .v2-case .case-art { height: 133px; }
  .v2-case .case-tag { font-size: 8px; padding: 4px 6px; left: 8px; top: 8px; }
  .case-caption { padding: 0 12px 12px; }
  .case-kind { font-size: 10px; margin-top: 5px; }
  .v2-case h3 { font-size: 15px; min-height: 42px; line-height: 1.4; }
  .v2-case p { font-size: 11px; line-height: 1.45; height: 32px; margin: 5px 0 10px; }
  .case-card-meta { flex-wrap: wrap; gap: 5px 8px; font-size: 10px; min-height: 30px; margin-bottom: 10px; }
  .v2-case .case-bottom { flex-direction: column; align-items: stretch; padding-top: 12px; gap: 10px; }
  .v2-case .case-price { font-size: 18px; text-align: left; }
  .v2-case .case-bottom button { width: 100%; min-height: 34px; justify-content: space-between; font-size: 11px; padding: 0 11px; }
  .case-favorite { top: 7px; right: 6px; width: 25px; height: 25px; }
  .page-heading h1, .arcade-heading h1, .case-detail-header h1 { font-size: 30px; }
  .v2-skin { padding: 10px; }
  .v2-skin h3 { font-size: 12px; }
  .v2-skin .weapon, .v2-skin .wear { font-size: 10px; }
  .v2-skin .item-price { font-size: 12px; }
  .inventory-summary small { font-size: 11px; }
  .market-case-note { font-size: 11px; }
  .footer { align-items: flex-start; margin-top: 30px; gap: 16px; }
  .footer p { font-size: 10px; }
  .auth-page { padding: 0 20px; }
  .auth-header { height: 80px; }
  .auth-header > span { display: none; }
  .auth-layout { grid-template-columns: 1fr; gap: 30px; padding: 30px 0; }
  .auth-showcase { min-height: 0; order: 2; }
  .auth-showcase h1 { font-size: 40px; letter-spacing: -1.8px; margin: 22px 0 16px; line-height: 1.1; }
  .auth-showcase > p { font-size: 13px; max-width: none; }
  .auth-showcase > p br { display: none; }
  .auth-weapon { position: relative; right: auto; bottom: auto; opacity: 1; width: 100%; height: 190px; max-width: 100%; margin: 0; }
  .auth-weapon img { height: 100%; width: 85%; transform: rotate(-12deg); }
  .auth-weapon > span { display: block; font-size: 10px; }
  .auth-perks { display: flex; flex-direction: row; flex-wrap: wrap; padding-top: 16px; gap: 12px; }
  .auth-perks div { font-size: 10px; }
  .auth-card { padding: 24px; width: 100%; order: 1; }
  .auth-card h2 { font-size: 27px; }
  .auth-card-top { display: flex; }
  .auth-footer { flex-wrap: wrap; padding: 24px 0; line-height: 1.6; }
  .mobile-nav { display: flex; height: 72px; padding: 6px 8px max(6px,env(safe-area-inset-bottom)); justify-content: space-around; }
  .mobile-nav button { flex: 1; min-width: 0; padding: 7px 0; gap: 5px; }
  .mobile-nav .tiny-badge { display: none; }
  .has-admin .admin-entry { width: 30px; min-width: 30px; height: 30px; min-height: 30px; padding: 0; }
  .admin-entry span { display: none; }
  .has-admin .topbar .wordmark { font-size: 20px; }
  .has-admin .balance { font-size: 12px; }
  .has-admin .account-area { gap: 7px; }
  .contract-console h2 { font-size: 25px; }
  .contract-mode-tabs strong { font-size: 11px; }
  .contract-mode-tabs small, .workbench-label, .upgrade-stake-total small, .balance-contribution > label { font-size: 10px; }
  .workbench-label strong, .balance-contribution label span { font-size: 9px; }
  .contract-range-note { font-size: 11px; }
  .admin-heading h1 { font-size: 28px; }
  .command-backdrop { padding: 0; }
  .modal.command-dialog { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); }
  .command-input-row { padding: 20px 56px 18px 18px; }
  .command-input-row input { font-size: 14px; }
  .command-footer { padding: 14px 18px max(18px,env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .contract-mode-tabs { grid-template-columns: minmax(0,1fr); }
  .contract-mode-tabs button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; }
  .contract-mode-tabs small { margin: 0; }
  .reactor-socket { width: 50px; height: 48px; transform: translate(-50%,-50%) rotate(var(--angle)) translateY(-102px) rotate(calc(-1 * var(--angle))); }
  .reactor-orbit { width: 204px; height: 204px; }
  .reactor-orbit.inner { width: 152px; height: 152px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .topbar .wordmark { font-size: 19px; }
  .topbar .edition { font-size: 9px; }
  .account-area { gap: 6px; }
  .has-admin .topbar .wordmark { font-size: 18px; }
  .balance { font-size: 12px; }
  .content { padding-left: 16px; padding-right: 16px; }
  .livefeed, .subnav { margin-left: 16px; margin-right: 16px; }
  .hero { padding: 24px; }
  .hero h1 { font-size: 32px; }
  .hero-art { width: 74%; }
}
@media (max-width: 600px) {
  .upgrade-arena { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .upgrade-stake { grid-column: 1; grid-row: 1; min-height: 365px; padding: 20px; }
  .upgrade-wheel-column { grid-column: 1; grid-row: 2; }
  .upgrade-target { grid-column: 1; grid-row: 3; min-height: 310px; padding: 20px; }
  .upgrade-stake-art { height: 160px; min-height: 160px; }
  .stake-empty p { line-height: 1.6; }
  .upgrade-target-art { height: 145px; }
  .target-empty { min-height: 180px; }
  .workbench-label, .upgrade-stake-total small, .balance-contribution > label { font-size: 12px; }
  .workbench-label strong, .balance-contribution label span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; }
  .modal, .modal-backdrop, .toast, .dl-busy > .icon, .form-error:not(:empty), .modal.navigation-drawer { animation: none; }
  .request-progress, .admin-loading:before, .loading-page:after { animation: none; }
  .request-progress { transform: scaleX(.85); }
  .request-progress.complete { transition: none; }
  button, .v2-case, .v2-case .case-art img, .skin-image img, .switch input, .switch input:before, .admin-toggle > input, .admin-toggle > input:before, .drawer-group-items, .drawer-group-toggle .icon, .interface-tooltip, .command-result > .icon, select::picker(select), select::picker-icon { transition: none !important; }
}
/* ─── 2.5 · Единая система ───────────────────────────────────────────────
   Хром тихий и нейтральный: шкала --ink, три роли текста, один синий акцент
   для фокуса и выбора. Цвет живёт там, где он что-то значит: редкость скина,
   рендер кейса, множитель Crash, результат. */

/* Счётчики и мета — тихий текст, а не пилюли. */
.section-title h2 span, .group-heading h3 span {
  background: none; padding: 0; margin-left: 6px; color: var(--text-3);
  font-size: .62em; font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; vertical-align: baseline;
}
.v2-case .case-tag { border-radius: 6px; }
.v2-case .case-price, .quick-stat strong, .daily-reward, .balance, .wheel-hub > strong,
.contract-range strong, .upgrade-stake-total strong, .item-price, .jackpot-wheel-center strong { font-variant-numeric: tabular-nums; }

/* Иконки в навигационных строках берут цвет текста, не свой собственный. */
.mode-strip button > .icon:first-child,
.mode-strip button:nth-child(n) > .icon:first-child { color: var(--text-2); }
.arcade-link-icon, .arcade-link:hover .arcade-link-icon, .arcade-link.active .arcade-link-icon {
  color: var(--text-2); background: var(--ink-3); border-radius: var(--radius-control);
}
.arcade-link { border-color: var(--line-1); }
.arcade-link:hover, .arcade-link.active { background: var(--ink-2); border-color: var(--line-2); }
.arcade-live-dot {
  display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 0;
  color: var(--text-3); font-size: 11px; white-space: nowrap;
}
.arcade-live-dot:before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* Переключатель Crash / Мины / Джекпот — сегменты как в остальном сайте. */
.arcade-links.compact {
  display: inline-flex; gap: 2px; padding: 4px; margin: 0 0 24px;
  background: var(--ink-3); border: 1px solid var(--line-1); border-radius: 999px;
}
.compact .arcade-link {
  padding: 0 16px; min-height: 36px; gap: 8px; border: 0; border-radius: 999px; background: transparent;
}
.compact .arcade-link strong { font-size: 13px; font-weight: 450; color: var(--text-2); }
.compact .arcade-link:hover { background: var(--ink-4); }
.compact .arcade-link.active { background: var(--ink-4); }
.compact .arcade-link.active strong { color: var(--text-1); }
.compact .arcade-link-icon, .compact .arcade-link:hover .arcade-link-icon { width: 16px; height: 16px; background: none; }
.compact .arcade-link-icon .icon { width: 16px; height: 16px; }
.compact .arcade-link.active .arcade-link-icon { color: var(--game-color); background: none; }

/* Сцены игр: ровная панель, цвет — только у числа и графика. */
.crash-stage, .mines-stage, .jackpot-stage, .arcade-controls, .arcade-hub-board, .hub-community {
  background: var(--ink-1); border: 1px solid var(--line-1); border-radius: var(--radius-panel);
}
.crash-stage-top, .mines-stage-heading, .mines-stage-bottom, .crash-axis { color: var(--text-3); }
.mines-stage-heading .icon { color: var(--text-2); }
.crash-stage-top b, .arcade-round-id { color: var(--text-2); }
.crash-hero > strong {
  font-weight: 500; letter-spacing: -.045em; line-height: 1.1; margin: 8px 0;
}
.crash-hero > span, .crash-hero > p { color: var(--text-2); }
.crash-stage.waiting { color: var(--text-1); }
.hub-crash-art strong { font-weight: 500; letter-spacing: -.045em; }
.crash-rounds > button { border-radius: 6px; font-weight: 500; font-variant-numeric: tabular-nums; }
.arcade-controls { padding: 24px; }
.arcade-controls h2 { font-size: 18px; font-weight: 500; letter-spacing: -.3px; margin-bottom: 20px; }
.arcade-field { color: var(--text-2); font-size: 12px; }
.arcade-field > span { color: var(--text-3); font-size: 11px; }
.arcade-field input, .arcade-field select {
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius-control); color: var(--text-1);
}
.arcade-field input:focus, .arcade-field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px #3a83f718; }
.stake-scale { gap: 4px; }
.stake-scale button, .stake-scale button[data-factor] {
  background: var(--ink-3); color: var(--text-2); border: 1px solid var(--line-1); border-radius: 8px; min-height: 32px;
  font-size: 12px; font-variant-numeric: tabular-nums;
}
.crash-cashout { border-radius: 999px; font-weight: 500; }
.crash-cashout:disabled { background: var(--ink-3); color: var(--text-3); border: 1px solid var(--line-1); opacity: 1; }
.arcade-control-note, .arcade-personal { font-size: 12px; line-height: 1.7; }
.arcade-player-table { border-color: var(--line-1); border-radius: var(--radius-card); }
.arcade-table-head { background: var(--ink-2); color: var(--text-3); font-size: 11px; }
.arcade-player-row { background: var(--ink-1); border-color: var(--line-1); }
.arcade-avatar { background: var(--ink-3); color: var(--text-2); }
.arcade-rules { background: transparent; border-color: var(--line-1); border-radius: var(--radius-card); color: var(--text-2); }
.arcade-rules > .icon { color: var(--text-3); }
.mine-cell { border-radius: 12px; }
.mine-unopened { color: var(--line-3); }
.jackpot-wheel { box-shadow: 0 0 0 5px var(--ink-2), 0 0 0 6px var(--line-1); }
.jackpot-wheel-center { background: var(--ink-1); box-shadow: 0 0 0 7px #0a0a0aaa; }
.jackpot-wheel-center > span, .jackpot-wheel-center small { color: var(--text-3); }

/* Баттлы и PvP. */
.pvp-create, .pvp-empty, .pvp-room, .pvp-room-card { border-radius: var(--radius-panel); }
.pvp-create label, .pvp-create .select-hint, .pvp-create small, .pvp-create p { color: var(--text-3); }
.pvp-create select, .battle-controls select { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius-control); color: var(--text-1); }
.pvp-empty { border-color: var(--line-2); }
.pvp-empty .icon { color: var(--text-3); }

/* Апгрейд и контракт: читаемые подписи и ровные мелкие контролы. */
.upgrade-multipliers button { min-height: 32px; font-size: 12px; font-variant-numeric: tabular-nums; }
.upgrade-multipliers button.active { background: var(--ink-4); border-color: var(--line-3); color: var(--text-1); }
.selection-panel h2, .upgrade-panel h2 { font-weight: 500; letter-spacing: -.3px; }
.reactor-socket > small { font-size: 10px; }

/* Недоступная главная кнопка — тихая поверхность с читаемой подписью, а не серая плашка. */
.primary:disabled, .contract-create:disabled, .arcade-main-button:disabled {
  opacity: 1; background: var(--ink-3); color: var(--text-3); border-color: var(--line-1); box-shadow: none; cursor: not-allowed;
}
.reactor-core > .icon { color: var(--text-2); }
.contract-quick-row { gap: 8px; margin: 16px 0 32px; padding: 0; }
.contract-quick-row > span { margin-right: 4px; color: var(--text-2); font-size: 12px; }
.contract-quick-row > .secondary { min-height: 32px; padding: 0 14px; font-size: 12px; }
.contract-quick-row > .text-button { margin-left: auto; font-size: 12px; }

/* Главная: строка «Апгрейд / Контракты / Баттлы» на телефоне — список, а не столбик по центру. */
@media (max-width: 760px) {
  .mode-strip { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line-1); }
  .mode-strip button {
    flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; text-align: left;
    padding: 14px 4px; border-radius: 0; border: 0; border-bottom: 1px solid var(--line-1);
  }
  .mode-strip strong { font-size: 14px; }
  .mode-strip small { display: block; font-size: 12px; }
  .mode-strip button > .icon:first-child { width: 20px; height: 20px; flex: 0 0 20px; }
  .mode-strip button > .icon:last-child { display: block; margin-left: auto; width: 14px; }
  .arcade-links:not(.compact) .arcade-link { flex-direction: row; text-align: left; gap: 14px; padding: 14px 16px; border-radius: var(--radius-card); }
  .arcade-links:not(.compact) .arcade-link small { display: block; font-size: 12px; }
  .arcade-links:not(.compact) .arcade-link strong { font-size: 16px; }
  .arcade-links:not(.compact) .arcade-live-dot { display: inline-flex; position: static; }
  .arcade-links.compact { display: flex; width: 100%; }
  .arcade-links.compact { gap: 2px; }
  .compact .arcade-link { padding: 0 8px; min-height: 36px; }
  .compact .arcade-link { flex: 1; justify-content: center; padding: 0 8px; }
  .v2-case .case-tag { font-size: 10px; }
  .contract-mode-tabs small, .workbench-label, .upgrade-stake-total small, .balance-contribution > label { font-size: 11px; }
  .workbench-label strong, .balance-contribution label span { font-size: 11px; }
}
