/* Спокойная светлая тема: тёплый фон, тёмный текст, один терракотовый акцент. */
:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-2: #f0eee6;
  --border: #e6e3d9;
  --border-strong: #d4d0c3;
  --text: #1f1e1d;
  --muted: #6f6c64;
  --accent: #c96442;
  --accent-hover: #b4563a;
  --accent-soft: #f6e7df;
  --pos: #3d7a4f;
  --neg: #b4453a;
  --radius: 12px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #262624;
    --surface: #30302e;
    --surface-2: #3a3a37;
    --border: #41403c;
    --border-strong: #55534d;
    --text: #f0eee6;
    --muted: #a8a59b;
    --accent: #d97757;
    --accent-hover: #e38a6c;
    --accent-soft: #4a3329;
    --pos: #7fbf8e;
    --neg: #e3887c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 32px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.inline { display: inline; margin: 0; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.main { flex: 1; padding-top: 28px; padding-bottom: 48px; }

/* Шапка */
.topbar { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 23px; text-decoration: none; letter-spacing: -.01em; }
.logo-mark { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .12); }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.user-box { display: flex; align-items: center; gap: 8px; }
.balance-pill {
  text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}

/* Кнопки и формы */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  padding: 9px 16px; border-radius: 10px; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { color: var(--neg); }
.btn-sm { padding: 6px 12px; font-size: 14px; }
.btn-block { width: 100%; }

label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 10px; padding: 9px 12px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: flex-start; color: var(--text); }
.check input { margin-top: 4px; }
.field { margin-bottom: 16px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1; min-width: 160px; }

.card-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.narrow { max-width: 420px; margin: 24px auto; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.stack > * + * { margin-top: 20px; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; border: 1px solid var(--border); background: var(--surface); }
.alert-error { border-color: #e6b8b0; background: #fbeeeb; color: #8a3127; }
.alert-success { border-color: #bfd8c4; background: #edf5ee; color: #2d5e3a; }
.alert-info { background: var(--surface-2); }
@media (prefers-color-scheme: dark) {
  .alert-error { background: #43302c; border-color: #6b443d; color: #f0c0b7; }
  .alert-success { background: #2c3b2f; border-color: #45604b; color: #bfe0c6; }
}

/* Лобби */
.lobby-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.lobby-head h1 { margin: 0; }
.search { display: flex; gap: 8px; min-width: 280px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  text-decoration: none; font-size: 14px; color: var(--muted);
  border: 1px solid var(--border); background: var(--surface); padding: 5px 12px; border-radius: 999px;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { color: var(--text); border-color: var(--text); }
.chip .count { opacity: .6; margin-left: 4px; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.game { display: flex; flex-direction: column; }
.game-thumb {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
}
.thumb-link { position: absolute; inset: 0; display: block; }
.game-thumb img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.game-demo-touch { display: none; align-self: flex-start; }
.game-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 12px; font-family: var(--serif); font-size: 17px; color: var(--muted);
}
.game-thumb .badge { position: absolute; top: 8px; left: 8px; }
.game-actions {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center;
  background: rgba(31, 30, 29, .55); opacity: 0; transition: opacity .15s;
}
.game-thumb:hover .game-actions, .game-thumb:focus-within .game-actions { opacity: 1; }
.game-actions .btn { min-width: 110px; }
.game-actions .btn-demo { background: rgba(255,255,255,.92); border-color: transparent; color: #1f1e1d; }
.game-name { margin-top: 10px; font-weight: 500; line-height: 1.3; }
.game-name a { text-decoration: none; }
.game-provider { font-size: 13px; color: var(--muted); }
@media (hover: none) {
  .game-actions { display: none; }
  .game-demo-touch {
    display: inline-block; margin-top: 6px; font-size: 13px; color: var(--muted);
    border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 10px; text-decoration: none;
  }
}
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.badge-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }

/* Экран игры */
body.play { height: 100vh; overflow: hidden; }
body.play .main { padding: 0; max-width: none; display: flex; flex-direction: column; }
body.play .footer { display: none; }
.play-bar { display: flex; align-items: center; gap: 12px; padding: 8px 20px; border-bottom: 1px solid var(--border); }
.play-bar .title { font-family: var(--serif); font-size: 18px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-frame { flex: 1; width: 100%; border: 0; background: #000; }

/* Таблицы */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-weight: 500; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.copy-line { display: flex; gap: 8px; }
.copy-line input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat .label { font-size: 13px; color: var(--muted); }
.stat .value { font-family: var(--serif); font-size: 26px; margin-top: 4px; font-variant-numeric: tabular-nums; }

.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 28px 0 0; color: var(--muted); }
.pager a { text-decoration: none; color: var(--text); border: 1px solid var(--border-strong); padding: 6px 14px; border-radius: 10px; background: var(--surface); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 0 12px; }
.section-title h2 { margin: 0; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; }
.prose { white-space: pre-line; }

.footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-in { display: flex; gap: 20px; align-items: center; padding: 20px; flex-wrap: wrap; }
.footer .age { border: 1px solid var(--border-strong); border-radius: 6px; padding: 0 6px; font-weight: 600; font-size: 12px; }

/* Главная */
.btn-lg { padding: 12px 22px; font-size: 16px; border-radius: 12px; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 36px 44px; margin-bottom: 24px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
}
.eyebrow { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 16px; }
.hero-lead { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-art { position: relative; display: flex; justify-content: center; }
.wheel {
  width: min(300px, 100%); aspect-ratio: 1; border-radius: 50%; position: relative;
  background: repeating-conic-gradient(from 0deg, var(--accent) 0 12deg, var(--surface-2) 12deg 24deg, #d9a57f 24deg 36deg, var(--surface-2) 36deg 48deg);
  box-shadow: inset 0 0 0 10px var(--surface), 0 0 0 1px var(--border), 0 18px 40px rgba(31, 30, 29, .10);
  animation: wheel-spin 90s linear infinite;
}
.wheel::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.wheel-hub { position: absolute; inset: 41%; border-radius: 50%; background: var(--accent); z-index: 1; }
.wheel-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 20px solid var(--text);
}
@keyframes wheel-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wheel { animation: none; } }

.home-search { display: flex; gap: 8px; margin-bottom: 28px; }
.home-search input { font-size: 16px; padding: 12px 16px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; padding: 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.tile-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px;
  background: var(--accent-soft); color: var(--accent);
}
.tile-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-icon svg .dot { fill: currentColor; stroke: none; }
.tile-title { font-family: var(--serif); font-size: 20px; }
.tile-hint { font-size: 13px; color: var(--muted); line-height: 1.4; flex: 1; }
.tile-count { font-size: 13px; font-weight: 600; margin-top: 8px; }

.shelf { margin-top: 36px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.shelf-head h2 { margin: 0; }
.shelf-more { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.shelf-more:hover { color: var(--text); }
.shelf-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 18px) / 6); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin;
}
.shelf-row > .game { scroll-snap-align: start; }

.badge-live { display: inline-flex; align-items: center; gap: 5px; }
.badge-live i { width: 7px; height: 7px; border-radius: 50%; background: #d64545; animation: live-pulse 2s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .35; } }

.wins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.win {
  display: flex; gap: 12px; align-items: center; padding: 10px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; min-width: 0;
}
.win:hover { border-color: var(--border-strong); }
.win-thumb { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--surface-2); flex-shrink: 0; }
.win-thumb img { width: 100%; height: 100%; object-fit: cover; }
.win-body { display: flex; flex-direction: column; min-width: 0; }
.win-amount { font-weight: 600; color: var(--pos); font-variant-numeric: tabular-nums; }
.win-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.providers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.provider {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-decoration: none;
}
.provider:hover { border-color: var(--border-strong); }
.provider-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.provider-count { font-size: 13px; color: var(--muted); }

.steps { margin-top: 44px; padding: 28px 32px; border-radius: 20px; background: var(--surface-2); }
.steps ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; }
.steps li::before {
  content: counter(step); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 600; margin-bottom: 6px;
}
.steps li span { color: var(--muted); font-size: 14px; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr 200px; padding: 28px; gap: 24px; }
  .hero h1 { font-size: 36px; }
  .tiles, .wins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf-row { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
}

/* Меню пользователя (на телефоне вместо кнопок в шапке) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.user-links { display: flex; align-items: center; gap: 4px; }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 38px; height: 38px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--border); background: var(--surface);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 16px; height: 2px; border-radius: 1px; background: var(--text); }
.menu[open] summary { background: var(--surface-2); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(31, 30, 29, .14); padding: 6px;
}
.menu-user { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; overflow-wrap: anywhere; }
.menu-panel a, .menu-panel button {
  display: block; width: 100%; text-align: left; font: inherit; color: var(--text); text-decoration: none;
  background: none; border: 0; padding: 11px 12px; border-radius: 8px; cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); }
.menu-panel form { margin: 0; }
.menu-panel button { color: var(--neg); }
.show-mobile { display: none; }
.provider-select { margin-bottom: 24px; max-width: 360px; }
.account-balance { min-width: 220px; }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .main { padding-top: 20px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .hide-mobile { display: none; }
  .show-mobile { display: inline; }

  /* Шапка: логотип, баланс, меню; разделы — прокручиваемая строка ниже */
  .topbar-in { gap: 8px; padding-top: 10px; padding-bottom: 0; }
  .logo { font-size: 21px; }
  .user-box { margin-left: auto; gap: 8px; }
  .user-links { display: none; }
  .menu { display: block; }
  .balance-pill { padding: 7px 12px; font-size: 14px; }
  .nav {
    order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 2px;
    margin: 0 -16px; padding: 6px 16px 8px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 6px 12px; }

  /* Лобби */
  .lobby-head { margin-bottom: 16px; }
  .search { min-width: 0; width: 100%; }
  .filters {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 20px; padding: 0 16px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex-shrink: 0; }
  .provider-select { max-width: none; margin-bottom: 20px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .game-name { font-size: 14px; }

  /* Экран игры: только тонкая полоса управления, всё остальное — игре */
  body.play { height: 100vh; height: 100dvh; }
  body.play .topbar { display: none; }
  .play-bar { gap: 8px; padding: 6px 10px; padding-top: max(6px, env(safe-area-inset-top)); }
  .play-bar .title { font-size: 16px; }
  .play-bar .btn { padding: 6px 10px; }
  .play-bar .show-mobile { font-size: 18px; line-height: 1; }

  /* Карточки и формы */
  .card-box { padding: 18px; }
  .grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
  .stat { padding: 12px 14px; }
  .stat .value { font-size: 20px; overflow-wrap: anywhere; }
  .toolbar > * { flex: 1 1 140px; }
  .toolbar input, .toolbar select { width: 100%; }
  .section-title { margin-top: 28px; }
  .footer-in { gap: 10px 16px; }

  /* Таблицы → карточки «подпись — значение» */
  .table-wrap { overflow: visible; background: none; border: 0; border-radius: 0; }
  table.stackable, table.stackable tbody, table.stackable tr, table.stackable td { display: block; width: 100%; }
  table.stackable tr.head-row { display: none; }
  table.stackable tr {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 6px 14px; margin-bottom: 10px;
  }
  table.stackable td {
    position: relative; border: 0; padding: 7px 0 7px 42%; min-height: 34px;
    text-align: right; overflow-wrap: anywhere;
  }
  table.stackable td + td { border-top: 1px solid var(--border); }
  table.stackable td::before {
    content: attr(data-label); position: absolute; left: 0; top: 7px; width: 40%;
    text-align: left; color: var(--muted); font-size: 13px; white-space: normal;
  }
  table.stackable td:not([data-label]) { padding-left: 0; text-align: left; }
  table.stackable td:not([data-label])::before { content: none; }
  table.stackable td:empty { display: none; }
  table.stackable td.num { text-align: right; }
  table.stackable td .toolbar { justify-content: flex-end; margin: 0; }
  table.stackable td .toolbar > * { flex: 0 1 auto; }
  table.stackable td form { display: inline-block; }
  table.stackable td select { width: auto; max-width: 100%; }
  table.stackable td .thumb { width: 56px; height: 56px; }

  /* История операций игрока — компактный список: операция и дата слева, сумма и баланс справа */
  table.tx-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px;
    padding: 10px 14px; margin-bottom: 8px;
  }
  table.tx-table td { padding: 0; min-height: 0; border: 0 !important; }
  table.tx-table td::before { content: none !important; }
  table.tx-table td:nth-child(1) { grid-column: 1; grid-row: 3; font-size: 12px; color: var(--muted); text-align: left; }
  table.tx-table td:nth-child(2) { grid-column: 1; grid-row: 1; font-weight: 500; text-align: left; }
  table.tx-table td:nth-child(3) { grid-column: 1; grid-row: 2; font-size: 13px; color: var(--muted); text-align: left; }
  table.tx-table td:nth-child(4) { grid-column: 2; grid-row: 1; font-weight: 600; }
  table.tx-table td:nth-child(5) { grid-column: 2; grid-row: 2 / span 2; font-size: 12px; color: var(--muted); }
  table.tx-table td:nth-child(3):empty { display: none; }
  .account-balance { min-width: 0; width: 100%; }

  /* Главная на телефоне */
  .hero { grid-template-columns: 1fr; padding: 22px 20px 24px; gap: 0; border-radius: 16px; position: relative; overflow: hidden; }
  .hero-art { position: absolute; right: -110px; top: -110px; opacity: .14; pointer-events: none; }
  .hero-art .wheel { width: 220px; }
  .hero-art .wheel-pointer { display: none; }
  .hero-text { position: relative; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 15px; margin-bottom: 20px; }
  .hero-actions .btn-lg { flex: 1 1 auto; padding: 11px 16px; font-size: 15px; }
  .home-search { margin-bottom: 20px; }
  .tiles { gap: 10px; }
  .tile { padding: 14px; }
  .tile-icon { width: 38px; height: 38px; margin-bottom: 6px; }
  .tile-title { font-size: 17px; }
  .tile-hint { display: none; }
  .tile-count { margin-top: 2px; font-weight: 500; color: var(--muted); }
  .shelf { margin-top: 28px; }
  .shelf-row { grid-auto-columns: 42%; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; scrollbar-width: none; }
  .shelf-row::-webkit-scrollbar { display: none; }
  .wins { grid-template-columns: 1fr; gap: 8px; }
  .win:nth-child(n+5) { display: none; }
  .providers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .provider { padding: 12px 14px; }
  .steps { padding: 22px 20px; margin-top: 32px; }
  .steps ol { grid-template-columns: 1fr; gap: 18px; }
}
