:root {
  --bg: #0a0e1a;
  --bg-deep: #060810;
  --bg-panel: rgba(10, 14, 26, 0.92);
  --bg-card: rgba(15, 20, 35, 0.9);
  --bg-elevated: rgba(15, 20, 35, 0.95);
  --border: rgba(255, 255, 255, 0.06);
  --gold: #d4af37;
  --gold-light: #f0d875;
  --gold-dim: #b8941f;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --blue-glow: rgba(59, 130, 246, 0.2);
  --orange-glow: rgba(251, 146, 60, 0.15);
  --text: #f0f2f5;
  --text-muted: #8b92a0;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Manrope', -apple-system, sans-serif;
  --font-display: 'Unbounded', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-content: 480px;
  --sidebar-width: 280px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  width: 100%;
  overscroll-behavior-y: none;
}
body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

.app-wrap {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ========== Cosmic background ========== */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-layer.stars {
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(212,175,55,0.25), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.2), transparent);
  background-size: 200% 200%, 180% 180%, 220% 220%, 190% 190%, 210% 210%;
  animation: starsMove 20s ease-in-out infinite;
}
@keyframes starsMove {
  0%, 100% { opacity: 1; background-position: 0% 0%, 10% 10%, 5% 5%, 15% 15%, 0% 10%; }
  50% { opacity: 0.85; background-position: 100% 100%, 90% 90%, 95% 95%, 85% 85%, 100% 90%; }
}
.bg-layer.streaks {
  background:
    linear-gradient(105deg, transparent 0%, var(--blue-glow) 25%, transparent 50%),
    linear-gradient(75deg, transparent 0%, var(--gold-glow) 20%, transparent 45%),
    linear-gradient(165deg, transparent 0%, var(--orange-glow) 30%, transparent 55%);
  background-size: 400% 400%, 350% 350%, 380% 380%;
  animation: streaksMove 12s ease-in-out infinite;
}
@keyframes streaksMove {
  0%, 100% { opacity: 0.6; background-position: 0% 0%, 100% 0%, 0% 100%; }
  50% { opacity: 1; background-position: 100% 100%, 0% 100%, 100% 0%; }
}
.bg-layer.gradient {
  background: radial-gradient(ellipse 100% 80% at 50% -20%, rgba(212, 175, 55, 0.08), transparent 50%),
              radial-gradient(ellipse 80% 60% at 100% 50%, rgba(59, 130, 246, 0.06), transparent 45%),
              radial-gradient(ellipse 60% 80% at 0% 100%, rgba(212, 175, 55, 0.05), transparent 45%);
}

/* ========== Layout: responsive ========== */
.content {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
  padding-bottom: 40px;
  max-width: 100%;
  margin: 0 auto;
}
.brand-col { display: none; }
.leaderboard-sidebar {
  margin-top: 0; padding: 16px;
  min-width: 0;
}
.leaderboard-sidebar .panel-title {
  margin-bottom: 12px; font-size: 0.8rem; line-height: 1.3;
  padding-bottom: 8px; border-bottom: 1px solid rgba(212,175,55,0.25);
}
.leaderboard-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
  margin-bottom: 14px; font-size: 0.8rem;
}
.leaderboard-stats-item {
  display: flex; flex-direction: column; gap: 2px;
  color: var(--text-muted);
}
.leaderboard-stats-item strong { color: var(--gold-light); font-size: 0.95rem; }
.leaderboard-sidebar .leaderboard-table { font-size: 0.78rem; width: 100%; table-layout: fixed; }
.leaderboard-sidebar .leaderboard-table th,
.leaderboard-sidebar .leaderboard-table td { padding: 6px 6px; }
.leaderboard-sidebar .leaderboard-table td:nth-child(2) {
  max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.leaderboard-prize-desc { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.35; }
.leaderboard-mobile-wrap { display: none; margin-bottom: 16px; }
.leaderboard-mobile-wrap.has-leaderboard { display: block; }
.leaderboard-mobile-wrap .panel-title { margin-bottom: 8px; }
.leaderboard-details {
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.leaderboard-details summary {
  padding: 14px 16px; font-weight: 600; color: var(--gold);
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  user-select: none;
}
.leaderboard-details summary::-webkit-details-marker { display: none; }
.leaderboard-details summary::before { content: '▶'; font-size: 0.75rem; transition: transform var(--transition); }
.leaderboard-details[open] summary::before { transform: rotate(90deg); }
.leaderboard-details .leaderboard-inner { padding: 0 16px 16px 16px; }

/* ========== Assistant (Помощник): bank, stats, sidebar ========== */
.assistant-bank-panel {
  margin-bottom: 10px;
  padding: 10px 12px;
}
.assistant-bank-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.assistant-bank-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.assistant-bank-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.assistant-tactic-btns {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.assistant-tactic-btns .tab { padding: 6px 10px; font-size: 0.78rem; }
.assistant-bank-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.assistant-bank-input {
  width: 88px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 20, 35, 0.8);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  transition: border-color var(--transition);
  margin-bottom: 0;
}
.assistant-bank-input:focus { outline: none; border-color: var(--gold); }
.assistant-bank-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(15, 20, 35, 0.75);
}
.assistant-bank-inline {
  font-size: 0.84rem;
  color: var(--text);
  white-space: nowrap;
}
.assistant-bank-inline-label {
  color: var(--text-muted);
  margin-right: 2px;
}
.assistant-bank-value {
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.assistant-bank-value.empty { color: var(--text-muted); font-weight: 600; }
.assistant-bank-gear {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}
.assistant-bank-gear:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}
.assistant-bank-edit-wrap .assistant-bank-input-wrap { margin-top: 0; }
.assistant-bank-edit-wrap { margin-left: auto; }
.assistant-bank-group:first-child { min-width: 0; }

@media (max-width: 680px) {
  .assistant-bank-line,
  .assistant-bank-edit-wrap {
    margin-left: 0;
    width: 100%;
  }
}
.assistant-content-tabs { gap: 6px; margin-bottom: 10px; }
.assistant-content-tabs .tab { padding: 8px 12px; font-size: 0.82rem; }
@media (min-width: 900px) {
  .assistant-content-tab[data-assistant-tab="stats"] { display: none; }
}
.assistant-suggestions-msg { margin: 0 0 8px 0; font-size: 0.85rem; color: var(--text-muted); }
.assistant-stats-inner,
.assistant-history-inner {
  font-size: 0.9rem;
  line-height: 1.5;
}
.assistant-stats-inner p,
.assistant-history-inner .tx-item { margin: 0 0 8px 0; }
.assistant-stats-inner p:last-child,
.assistant-history-inner .tx-item:last-child { margin-bottom: 0; }
.assistant-stats-panel .panel-title,
.assistant-history-panel .panel-title { margin-bottom: 12px; }
.assistant-history-panel .assistant-history-inner { padding: 0; }
.assistant-history-inner .tx-item { padding: 8px 10px; border-radius: 8px; border-left: 3px solid transparent; }
.assistant-bet-won { background: rgba(34, 197, 94, 0.12); border-left-color: #22c55e; color: #86efac; }
.assistant-bet-lost { background: rgba(239, 68, 68, 0.12); border-left-color: #ef4444; color: #fca5a5; }

.assistant-welcome-body p { margin: 0 0 10px 0; font-size: 0.9rem; line-height: 1.45; }
.assistant-welcome-body p:last-of-type { margin-bottom: 16px; }
.assistant-welcome-body .btn { width: 100%; }

/* Сайдбар статистики помощника (десктоп): под логотипом */
.assistant-stats-sidebar {
  margin-top: 0;
  margin-bottom: 20px;
}
.assistant-stats-sidebar .assistant-stats-inner { font-size: 0.82rem; }
.assistant-stats-sidebar .assistant-stats-inner p { margin: 0 0 6px 0; }
@media (max-width: 899px) {
  .assistant-stats-sidebar { display: none !important; }
}
@media (min-width: 900px) {
  #assistant-tab-stats { display: none !important; }
}
@media (min-width: 900px) {
  .assistant-stats-sidebar.visible { display: block !important; }
}

@media (min-width: 900px) {
  .content { flex-direction: row; max-width: none; padding: 0 24px 24px 24px; gap: 28px; align-items: flex-start; width: 100%; }
  .content .main-col { flex: 1; min-width: 0; max-width: none; }
  .app-header .brand-mini-btn { display: none; }
  .brand-col { display: block; width: var(--sidebar-width); flex-shrink: 0; position: sticky; top: 0; overflow: visible; }
  .app-header {
    position: relative;
    top: auto;
    margin: 0 0 22px 0;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: linear-gradient(180deg, rgba(15, 21, 38, 0.96) 0%, rgba(10, 14, 26, 0.92) 100%);
    box-shadow: 0 0 18px var(--gold-glow), inset 0 0 0 1px rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
  }
  .leaderboard-mobile-wrap.has-leaderboard { display: none; }
}
@media (max-width: 899px) {
  .leaderboard-sidebar { display: none !important; }
}

/* ========== Brand block (shield / VIBESCORE) ========== */
.brand-block {
  text-align: center;
  margin-bottom: 24px;
  padding: 20px 16px;
  background: var(--bg-panel);
  border: 2px solid var(--gold);
  border-radius: 20px;
  box-shadow: 0 0 30px var(--gold-glow), inset 0 0 40px rgba(0,0,0,0.2);
  position: relative;
  cursor: pointer;
  transition: opacity var(--transition);
}
.brand-block:hover { opacity: 0.95; }
.brand-block::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, var(--gold) 0%, transparent 40%, var(--gold-light) 70%, var(--gold) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}
.brand-logo-img {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
  border-radius: 12px;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
  letter-spacing: 0.02em;
  margin: 0 0 4px 0;
}
.brand-trophy { font-size: 1.2rem; opacity: 0.9; }

/* ========== Panel (golden frame like SPORTS PREDICTION) ========== */
.panel {
  background: var(--bg-panel);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 0 24px var(--gold-glow), 0 0 0 1px rgba(0,0,0,0.3) inset;
  position: relative;
  animation: cardIn 0.45s ease-out backwards;
}
.panel-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin: 0 0 8px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}
.panel-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}
.page-subtitle { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 20px 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Auth (login/register) — fantasy-vibe layout, VibeScore tokens */
.auth-wrap {
  min-height: calc(100dvh - 48px);
  display: grid;
  place-items: center;
  padding: 24px 8px 40px;
}
.auth-card {
  width: min(380px, 100%);
  padding: 28px 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 24px var(--gold-glow);
  display: grid;
  gap: 0;
  animation: cardIn 0.45s ease-out;
}
.auth-brand {
  margin: 0;
  display: flex;
  gap: 0;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.auth-brand-mark {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-brand-word {
  color: var(--text);
  margin-left: 2px;
}
.auth-mode {
  margin: 8px 0 18px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-form {
  display: grid;
  gap: 0;
}
.auth-form[hidden],
.auth-form [hidden] {
  display: none !important;
}
.auth-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 12px 0 6px 0;
  color: var(--text-muted);
}
.auth-form > .auth-label:first-child,
.auth-form > div > .auth-label:first-child {
  margin-top: 0;
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 0;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-form input:focus {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}
.auth-form > .btn-primary,
.auth-form > div > .btn-primary {
  margin-top: 16px;
}
.auth-email-fixed {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font-size: 0.9rem;
  word-break: break-all;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.auth-email-fixed:hover {
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--text);
}
.auth-error {
  font-size: 0.85rem;
  color: var(--danger);
  margin: 8px 0 0 0;
  min-height: 0;
}
.auth-error[hidden] {
  display: none;
}
.auth-switch {
  margin: 14px 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.auth-link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition);
}
.auth-link:hover {
  color: var(--gold-light);
}
.auth-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.auth-extra {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  justify-items: center;
}
.auth-extra[hidden] {
  display: none;
}
.auth-or {
  margin: 0;
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
.auth-hint {
  margin: 4px 0 0;
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.9;
}
.auth-hint[hidden] {
  display: none;
}
.auth-hint a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
.auth-hint a:hover {
  color: var(--gold-light);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 18px var(--gold-glow);
  background: rgba(212, 175, 55, 0.06);
}
body.auth-active .brand-col {
  display: none !important;
}
body.auth-active .main-col {
  max-width: 100%;
}
#screen-auth.active {
  display: block !important;
}

/* Balance */
.balance-block {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 20px var(--gold-glow);
  animation: cardIn 0.5s ease-out;
}
.balance-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 6px; }
.balance-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: balanceShine 5s linear infinite;
}
@keyframes balanceShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Nav */
.nav { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 20px;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  border: none; border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #0a0e1a;
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-primary:hover { box-shadow: 0 8px 28px var(--gold-glow); }
.btn-outline {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 0 18px var(--gold-glow); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  animation: cardIn 0.5s ease-out backwards;
}
.card:hover { border-color: rgba(212, 175, 55, 0.3); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.card.game-card {
  border-left: 4px solid var(--gold);
  padding-left: 18px;
}
.ai-predict-filters {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.ai-predict-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.ai-predict-leagues-wrap { flex: 1; min-width: 0; }
.ai-filter-leagues {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-league-chip {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.ai-league-chip:hover { border-color: rgba(212,175,55,0.4); color: var(--text); }
.ai-league-chip.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #0a0e1a;
  border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}
.ai-predict-dates-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.ai-date-input {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15,20,35,0.8);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  min-width: 0;
}
.ai-date-input:focus { outline: none; border-color: var(--gold); }
.ai-date-input::-webkit-calendar-picker-indicator { filter: invert(0.8); cursor: pointer; opacity: 0.7; }
.predict-card {
  background: linear-gradient(145deg, rgba(18, 22, 35, 0.95) 0%, rgba(12, 16, 28, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
  animation: cardIn 0.5s ease-out backwards;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.predict-card .predict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}
.predict-card .predict-league {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.predict-card .predict-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}
.predict-card .predict-teams-wrap {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.predict-card .predict-teams {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}
.predict-card .predict-outcome {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #0a0e1a;
  box-shadow: 0 0 12px var(--gold-glow);
}
.predict-card .predict-blocks {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.predict-card .predict-block {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.predict-card .predict-block-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.predict-card .predict-block strong { color: var(--gold-light); }
.predict-card .predict-odds {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border);
}
.card:nth-child(1){animation-delay:0.05s}.card:nth-child(2){animation-delay:0.1s}.card:nth-child(3){animation-delay:0.15s}.card:nth-child(4){animation-delay:0.2s}.card:nth-child(5){animation-delay:0.25s}.card:nth-child(n+6){animation-delay:0.3s}

.back { margin-bottom: 16px; }
.back button {
  background: none; border: none; color: var(--gold);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 0;
  transition: opacity var(--transition);
}
.back button:hover { opacity: 0.85; }

/* --- Экран сетки (подробнее) --- */
.draft-grid-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.draft-grid-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}
.draft-grid-back:hover { opacity: 0.85; }
.draft-grid-page-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.draft-grid-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dg-hero {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(212, 175, 55, 0.12), transparent 50%),
    linear-gradient(155deg, rgba(40, 48, 68, 0.55), rgba(10, 16, 28, 0.96));
}
.dg-hero.is-division {
  border-color: rgba(251, 146, 60, 0.5);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(251, 146, 60, 0.18), transparent 50%),
    linear-gradient(155deg, rgba(48, 28, 14, 0.55), rgba(10, 16, 28, 0.96));
}
.dg-hero.is-mine {
  box-shadow: inset 0 0 0 1px rgba(110, 231, 160, 0.25);
}
.dg-hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.dg-hero-pill {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}
.dg-hero-pill.is-you {
  border-color: rgba(110, 231, 160, 0.4);
  color: #b7f0cd;
  background: rgba(20, 48, 36, 0.5);
}
.dg-hero-pill.is-div {
  border-color: rgba(251, 146, 60, 0.45);
  color: #ffd8a8;
  background: rgba(251, 146, 60, 0.12);
}
.dg-hero-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
}
.dg-hero-meta {
  margin: 0 0 4px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.dg-hero-meta b { color: var(--text); }
.dg-hero-you {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(110, 231, 160, 0.3);
  background: rgba(20, 48, 36, 0.4);
  font-size: 0.78rem;
  color: #b7f0cd;
}
.dg-hero-you strong { color: #d8ffe8; }
.dg-hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.dg-hero-actions .lobby-chip {
  flex: 0 0 auto;
}
.lobby-chip-icon {
  width: 34px;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
  text-align: center;
}
.dg-bets-mount { margin: 0; }
.dg-bets-mount .duel-market-card { margin: 0; }
.dg-panel {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 16, 28, 0.92);
}
.dg-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.dg-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
}
.dg-panel-hint {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.dg-lb-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dg-lb-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  text-align: left;
}
button.dg-lb-row {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
button.dg-lb-row:hover {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
}
.dg-lb-row.is-me {
  border-color: rgba(110, 231, 160, 0.35);
  background: rgba(20, 48, 36, 0.4);
}
.dg-lb-place {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
}
.dg-lb-name {
  font-size: 0.86rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dg-lb-pts {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.dg-lb-pts b { color: var(--gold-light); }
.dg-lb-row.is-me .dg-lb-name,
.dg-lb-row.is-me .dg-lb-place { color: #b7f0cd; }

.error { color: var(--danger); margin: 12px 0; padding: 12px; background: rgba(239,68,68,0.1); border-radius: var(--radius-sm); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.choice-btn {
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text);
  font-family: var(--font); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.choice-btn:hover:not(:disabled) { border-color: rgba(212,175,55,0.5); transform: translateY(-1px); }
.choice-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #0a0e1a; border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}
.choice-btn:disabled { cursor: not-allowed; opacity: 0.7; }

/* Tabs */
.tabs {
  display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap;
}
.tab {
  padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.tab:hover { border-color: rgba(212,175,55,0.4); color: var(--text); }
.tab.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #0a0e1a; border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}
.tabs-full { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-bottom: 12px; }
.tabs-full .tab { flex: 1 1 0; min-width: 0; font-size: 0.8rem; padding: 10px 8px; text-align: center; }
@media (min-width: 400px) { .tabs-full .tab { font-size: 0.85rem; padding: 10px 12px; } }

/* Шкала джекпота: 12 побед над ИИ подряд в обычных турнирах → приз 500 USDT */
.jackpot-scale-panel {
  margin-bottom: 18px;
  padding: 16px 18px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0.05) 50%, rgba(212, 175, 55, 0.08) 100%);
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden; /* защита от горизонтального вылета контента */
}
.jackpot-scale-panel * { box-sizing: border-box; max-width: 100%; }
.jackpot-scale-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
  text-align: left;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}
.jackpot-scale-segments {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
.jackpot-scale-segment {
  flex: 1;
  height: 12px;
  border-radius: 6px;
  background: var(--border);
  overflow: hidden;
}
.jackpot-scale-segment-fill {
  height: 100%;
  min-width: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dim));
  transition: width 0.25s ease;
}
.jackpot-scale-segment-last-full .jackpot-scale-segment-fill {
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.jackpot-scale-superprize {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-light);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin-bottom: 2px;
}
.jackpot-scale-actions {
  margin: 10px 0 0 0;
}
.jackpot-scale-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.jackpot-scale-actions-row .btn {
  flex: 1 1 120px;
  min-width: 0;
}

.jackpot-rules-modal-panel {
  max-width: 600px;
  width: calc(100% - 24px);
}
.jackpot-rules-body {
  max-height: min(78vh, 640px);
  overflow-y: auto;
}
.jackpot-rules-prose {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
  text-align: left;
}
.jackpot-rules-prose p {
  margin: 0 0 10px 0;
}
.jackpot-rules-prose p:last-child {
  margin-bottom: 0;
}
.jackpot-rules-hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}
.jackpot-rules-subtitle {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
}
.jackpot-rules-label {
  margin: 0 0 4px 0;
  font-size: 0.88rem;
}
.jackpot-rules-list {
  margin: 0 0 10px 0;
  padding-left: 1.2rem;
}
.jackpot-rules-list li {
  margin-bottom: 2px;
}
.jackpot-rules-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0 !important;
}
.jackpot-rules-superprize-line {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
}
.jackpot-rules-muted {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.jackpot-leaderboard-me {
  background: rgba(212, 175, 55, 0.12);
}
.jackpot-leaderboard-me td { color: var(--gold-light); }

/* Карточка группы турниров: друг под другом, выравнивание по левой стороне */
.tournaments-group-card.card {
  padding: 16px 18px;
  margin-bottom: 14px;
  text-align: left;
}
.tournaments-group-header {
  margin-bottom: 10px;
}
.tournaments-group-title {
  margin: 0 0 4px 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  line-height: 1.3;
  text-align: left;
}
.tournaments-group-title .badge {
  font-family: var(--font);
  font-size: 0.65rem;
  padding: 2px 6px;
  vertical-align: middle;
}
.tournaments-group-time {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
  letter-spacing: 0.02em;
  text-align: left;
}
.tournaments-group-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
  justify-content: flex-start;
}
.tournament-variant-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 0;
  min-width: min(100%, 110px);
}
.tournament-variant-stats {
  margin: 0 0 6px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: left;
}
.tournament-variant-cell .tournament-variant-btn {
  width: 100%;
}
.tournament-variant-btn {
  padding: 10px 14px;
  font-size: clamp(0.68rem, 1.9vw, 0.9rem); /* при нехватке места уменьшается у всех кнопок */
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.06) 100%);
  color: var(--gold-light);
  line-height: 1.15;
  white-space: nowrap;     /* "20 USDT" не переносится */
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.tournament-variant-btn:hover {
  border-color: var(--gold-light);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.12) 100%);
  transform: translateY(-1px);
}
.tournament-variant-btn.is-paid {
  border-color: rgba(34, 197, 94, 0.6);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0.08) 100%);
  color: #86efac;
}
.tournament-variant-btn.is-paid:hover {
  border-color: #22c55e;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.28) 0%, rgba(34, 197, 94, 0.14) 100%);
  transform: translateY(-1px);
}
@media (max-width: 420px) {
  .tournaments-group-title { font-size: 1.1rem; }
  .tournament-variant-cell { min-width: calc(33.333% - 6px); }
  .tournament-variant-btn { padding: 8px 6px; font-size: clamp(0.64rem, 2.8vw, 0.82rem); }
}

.tournament-variant-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.tournament-variant-bar-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}
.tournament-variant-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tournament-variant-tab {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
}
.tournament-variant-tab.active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.2);
}
.tournament-variant-tab.is-paid {
  border-color: rgba(34, 197, 94, 0.5);
  color: #86efac;
}
.tournament-variant-add {
  margin-left: auto;
}

.bracket-entry-line {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

/* Onboarding overlay — fantasy-vibe style story + screenshots */
.onboarding-overlay {
  position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-end; justify-content: center;
  padding: 0; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
@media (min-width: 640px) {
  .onboarding-overlay { align-items: center; padding: 16px; }
}
.onboarding-overlay.show { pointer-events: auto; opacity: 1; visibility: visible; }
.onboarding-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); cursor: default;
}
.onboarding-panel {
  position: relative; width: min(100vw, 440px); max-width: 100%; max-height: 92vh;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 640px) {
  .onboarding-panel { border-radius: var(--radius); max-height: 88vh; }
}
.onboarding-chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 0; flex-shrink: 0;
}
.onboarding-skip {
  appearance: none; border: 0; background: transparent; color: var(--text-muted);
  font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; padding: 6px 0;
}
.onboarding-skip:hover { color: var(--gold-light); }
.onboarding-step-count {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
}
.onboarding-scroll {
  overflow-y: auto; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch;
  padding: 8px 0 4px;
}
.onboarding-progress {
  display: flex; gap: 6px; padding: 8px 16px 0; flex-shrink: 0;
}
.onboarding-progress-dot {
  flex: 1; height: 4px; border-radius: 2px; background: var(--border); transition: background 0.2s;
}
.onboarding-progress-dot.active { background: var(--gold); }
.onboarding-kicker {
  margin: 10px 16px 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); opacity: 0.85;
}
.onboarding-visual {
  margin: 10px 16px 0; min-height: 140px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.04) 50%, transparent 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0;
}
.onboarding-visual:empty { display: none; }
.onboarding-visual-icon {
  font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.35));
  padding: 24px 0;
}
.onboarding-shot {
  display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; object-position: top center;
}
.onboarding-shot--wide {
  max-height: 140px; object-fit: contain; object-position: center; background: #0a0e1a;
}
.onboarding-snake-diagram {
  width: 100%; display: grid; gap: 8px;
}
.onboarding-snake-board {
  display: grid; gap: 6px; padding: 4px 0 2px;
}
.onboarding-snake-row {
  display: grid; grid-template-columns: 18px repeat(4, minmax(0, 1fr));
  gap: 5px; align-items: stretch;
}
.onboarding-snake-dir {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; color: var(--gold);
}
.onboarding-snake-cell {
  border: 1px solid var(--border); border-radius: 8px; padding: 6px 5px;
  background: rgba(15, 20, 35, 0.95); display: grid; gap: 1px; min-width: 0;
  text-align: center;
}
.onboarding-snake-cell.is-you {
  border-color: rgba(212,175,55,0.55);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.2);
}
.onboarding-snake-cell.is-more {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-weight: 700;
}
.onboarding-snake-turn {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-muted);
}
.onboarding-snake-player {
  font-size: 0.68rem; font-weight: 800; color: var(--gold-light);
}
.onboarding-snake-crest {
  font-size: 0.72rem; font-weight: 900; color: var(--text); margin-top: 2px;
}
.onboarding-snake-club {
  font-size: 0.58rem; color: var(--text-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.onboarding-mock {
  width: 100%; padding: 14px 12px; display: grid; gap: 8px;
}
.onboarding-mock-title {
  font-family: var(--font-display); font-size: 0.85rem; color: var(--gold-light); margin: 0;
}
.onboarding-mock-tabs {
  display: flex; gap: 6px;
}
.onboarding-mock-tab {
  flex: 1; text-align: center; font-size: 0.68rem; font-weight: 700;
  padding: 6px 4px; border-radius: 8px; border: 1px solid var(--border);
  color: var(--text-muted); background: rgba(0,0,0,0.2);
}
.onboarding-mock-tab.is-on {
  color: #0a0e1a; background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-color: rgba(212,175,55,0.5);
}
.onboarding-mock-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px;
  background: rgba(15, 20, 35, 0.9);
}
.onboarding-mock-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px;
}
.onboarding-mock-row b { color: var(--text); }
.onboarding-mock-bar {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 8px;
}
.onboarding-mock-bar > span {
  display: block; height: 100%; width: 25%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.onboarding-mock-btn {
  display: block; width: 100%; text-align: center; font-size: 0.78rem; font-weight: 700;
  padding: 9px 8px; border-radius: 10px; margin-top: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #0a0e1a;
}
.onboarding-mock-btn--ghost {
  background: transparent; color: var(--text); border: 1px solid rgba(212,175,55,0.35);
}
.onboarding-snake {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.onboarding-snake-round {
  display: grid; gap: 6px; margin-bottom: 8px;
}
.onboarding-snake-round:last-of-type { margin-bottom: 4px; }
.onboarding-snake-label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold);
}
.onboarding-snake-round .onboarding-snake {
  grid-template-columns: repeat(4, 1fr);
}
.onboarding-snake-item {
  font-size: 0.68rem; padding: 8px 4px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(0,0,0,0.25); color: var(--text-muted); text-align: center; line-height: 1.25;
}
.onboarding-snake-item.is-you {
  border-color: rgba(212,175,55,0.55); color: var(--gold-light);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.2);
}
.onboarding-clubs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px;
}
.onboarding-club {
  text-align: center; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.02em;
  padding: 8px 2px; border-radius: 8px; border: 1px solid var(--border);
  color: var(--text); background: rgba(15,20,35,0.95);
}
.onboarding-toto-match {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem;
}
.onboarding-toto-match:last-child { border-bottom: 0; }
.onboarding-toto-choices { display: flex; gap: 4px; }
.onboarding-toto-choice {
  min-width: 32px; text-align: center; font-size: 0.68rem; font-weight: 800;
  padding: 6px 7px; border-radius: 7px; border: 1px solid var(--border); color: var(--text-muted);
}
.onboarding-toto-choice.is-on {
  color: #0a0e1a; background: var(--gold); border-color: rgba(212,175,55,0.6);
}
.onboarding-pill-row {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 18px 12px;
}
.onboarding-pill {
  font-size: 0.72rem; font-weight: 700; padding: 6px 10px; border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.35); color: var(--gold-light);
  background: rgba(212,175,55,0.08);
}
.onboarding-home-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.onboarding-home-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 26, 0.85);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.onboarding-home-row b { color: var(--text); font-size: 0.78rem; }
.onboarding-home-row.is-hot {
  border-color: rgba(110, 231, 160, 0.4);
  background: rgba(20, 48, 36, 0.55);
  color: #b7f0cd;
}
.onboarding-home-row.is-hot b { color: #d8ffe8; }
.onboarding-sidebets { gap: 8px; }
.onboarding-stacks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.onboarding-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 26, 0.9);
}
.onboarding-stack-name {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-light);
}
.onboarding-chip {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 2px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}
.onboarding-chip.is-head {
  color: #0a0e1a;
  background: var(--gold);
  border-color: rgba(212, 175, 55, 0.7);
}
.onboarding-sidebets-arrow {
  margin: 2px 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.onboarding-pot-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.onboarding-pot-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.1);
  font-size: 0.78rem;
  color: var(--text);
}
.onboarding-pot-box b { color: var(--gold-light); }
.onboarding-pot-box span {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.onboarding-pot-box.is-refund {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.1);
}
.onboarding-pot-box.is-refund b { color: #cbd5e1; }
.onboarding-places-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.onboarding-place-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 26, 0.88);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.onboarding-place-row span {
  font-weight: 800;
  color: var(--text-muted);
}
.onboarding-place-row b {
  color: var(--text);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.onboarding-place-row em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
}
.onboarding-place-row.is-you {
  border-color: rgba(110, 231, 160, 0.45);
  background: rgba(20, 48, 36, 0.55);
}
.onboarding-place-row.is-you span,
.onboarding-place-row.is-you b,
.onboarding-place-row.is-you em { color: #b7f0cd; }
.onboarding-place-row.is-opp {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(48, 20, 20, 0.4);
}
.onboarding-place-row.is-opp em { color: #fca5a5; }
.onboarding-places-win {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.1);
  font-size: 0.78rem;
  color: var(--text);
  text-align: center;
}
.onboarding-places-win b { color: var(--gold-light); }

/* Локальные подсказки «?» — отдельно от онбординга */
.guide-help-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  flex-shrink: 0;
}
.guide-help-btn:hover,
.guide-help-btn:focus-visible {
  background: rgba(212, 175, 55, 0.22);
  border-color: rgba(212, 175, 55, 0.7);
  outline: none;
}
.guide-help-btn--inline {
  margin-left: 0;
  align-self: center;
}
.page-title .guide-help-btn,
.home-section-head h3 .guide-help-btn,
.more-sheet-title .guide-help-btn,
.lineups-modal-header h3 .guide-help-btn {
  position: relative;
  top: -1px;
}
.duel-bet-guide-link {
  appearance: none;
  display: inline-flex;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.duel-bet-guide-link:hover { text-decoration: underline; }
.home-section-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.duel-market-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.duel-market-title-row .duel-market-title { margin: 0; }
.duel-market-head-main { min-width: 0; flex: 1; }
.onboarding-title {
  margin: 12px 16px 8px; font-family: var(--font-display); font-size: 1.12rem; font-weight: 700;
  color: var(--gold-light); line-height: 1.3;
}
.onboarding-body {
  padding: 0 16px 10px; font-size: 0.92rem; line-height: 1.55; color: var(--text);
}
.onboarding-body p { margin: 0 0 8px 0; }
.onboarding-body p:last-child { margin-bottom: 0; }
.onboarding-body ul, .onboarding-body ol {
  margin: 0 0 8px; padding-left: 1.15em;
}
.onboarding-body li { margin: 0 0 4px; }
.onboarding-body strong { color: var(--gold-light); }
.onboarding-example {
  padding: 10px 12px; font-size: 0.82rem; color: var(--text-muted);
  background: rgba(212, 175, 55, 0.06); border-radius: var(--radius-sm);
  margin: 0 16px 12px; border: 1px solid rgba(212, 175, 55, 0.15); line-height: 1.45;
}
.onboarding-example:empty { display: none; }
.onboarding-footer {
  flex-shrink: 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.18));
}
.onboarding-actions {
  display: flex; gap: 10px; align-items: stretch;
}
/* .btn имеет width:100% — в ряду ломает layout: «Дальше» уезжает за overflow */
.onboarding-actions .btn {
  width: auto; min-width: 0; padding: 14px 16px;
}
.onboarding-actions .onboarding-prev { flex: 0 0 auto; min-width: 96px; }
.onboarding-actions .onboarding-next { flex: 1 1 auto; }

.onboarding-highlight {
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 2px rgba(212,175,55,0.8), 0 0 22px rgba(212,175,55,0.6);
  border-radius: inherit;
  transition: box-shadow 0.25s ease;
}

/* Cabinet settings — one row, app-style buttons */
.cabinet-settings-panel {
  padding: 18px;
}
.cabinet-settings-header {
  display: block;
  margin-bottom: 12px;
}
.cabinet-settings-header .panel-title { margin: 0 0 8px 0; }
.cabinet-settings-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
}
.cabinet-settings-meta-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.cabinet-balance-badge {
  font-size: 0.83rem;
  color: var(--gold-light);
  font-weight: 700;
  white-space: nowrap;
}
.cabinet-settings-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#cabinet-settings-panel .settings-row {
  background: var(--bg-card);
  border-color: var(--border);
  min-height: 44px;
  padding: 10px 12px;
}
#cabinet-settings-panel .settings-row:hover {
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.14);
}
#cabinet-settings-panel .settings-inline-text {
  font-size: 0.9rem;
}
.settings-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-light);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 9px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.settings-edit-btn:hover {
  background: rgba(212, 175, 55, 0.24);
  border-color: rgba(212, 175, 55, 0.55);
}
.settings-edit-btn:active {
  background: rgba(212, 175, 55, 0.2);
}
.cabinet-wallet-line {
  margin: 10px 2px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 6px;
  font-size: clamp(0.76rem, 1.8vw, 0.84rem);
  color: var(--text-muted);
  line-height: 1.3;
}
.cabinet-wallet-text {
  flex: 1 1 240px;
  min-width: 0;
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 900px) {
  .cabinet-settings-row { gap: 8px; }
}
@media (max-width: 560px) {
  #cabinet-settings-panel .settings-row {
    align-items: flex-start;
  }
  .settings-edit-btn {
    margin-left: auto;
    font-size: 0.72rem;
    padding: 6px 8px;
  }
  .cabinet-wallet-line {
    gap: 2px 4px;
  }
  .cabinet-wallet-text {
    flex-basis: 100%;
  }
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.settings-row-inline {
  min-height: 42px;
}

.settings-inline-text {
  font-size: 0.9rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.password-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-field input {
  flex: 1;
}

.password-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--text);
}

/* Profile modal inputs (username/email/password) */
#username-modal input,
#email-modal input,
#password-modal input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 4px;
  -webkit-appearance: none;
  appearance: none;
}
#username-modal input::placeholder,
#email-modal input::placeholder,
#password-modal input::placeholder {
  color: var(--text-muted);
  opacity: 0.9;
}
#username-modal input:focus,
#email-modal input:focus,
#password-modal input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.14);
}

/* Cabinet modals (email/password/wallet) */
.cabinet-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cabinet-modal-note {
  margin: 0 0 2px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cabinet-modal-body label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 2px 0 2px;
}
.cabinet-modal-body input {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  -webkit-appearance: none;
  appearance: none;
}
.cabinet-modal-body input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.14);
}
.cabinet-modal-body .btn {
  margin-top: 4px;
}
#cabinet-link-send-code {
  align-self: flex-start;
}
.cabinet-modal-body .password-field {
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
}
.cabinet-modal-body .password-field input {
  border: none;
  background: transparent;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.cabinet-modal-body .password-field input:focus {
  box-shadow: none;
}
.cabinet-modal-body .password-toggle {
  width: 42px;
  height: 42px;
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

/* Draft priority modal */
.draft-priority-panel {
  width: min(96vw, 420px) !important;
  max-width: 420px !important;
  max-height: min(92vh, 740px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.draft-priority-panel .lineups-modal-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: var(--font-display);
}
.draft-priority-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px 8px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.draft-priority-hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.draft-priority-hint b { color: var(--gold-light); }

.draft-priority-hero {
  min-height: 78px;
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(155deg, rgba(55, 42, 18, 0.45), rgba(8, 14, 28, 0.94));
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  gap: 12px;
}
.draft-priority-hero.is-empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: none;
  color: var(--text-muted);
  justify-content: center;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
}
.draft-priority-hero-rank {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.draft-priority-hero-crest {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.draft-priority-hero-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.draft-priority-hero-text { min-width: 0; flex: 1; }
.draft-priority-hero-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.draft-priority-hero-name {
  margin: 2px 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.draft-priority-hero-sub {
  margin: 2px 0 0;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.draft-priority-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
#draft-priority-progress {
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.draft-priority-text-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 0;
  cursor: pointer;
}
.draft-priority-text-btn:active { opacity: 0.75; }

.draft-priority-queue-block { flex-shrink: 0; }
.draft-priority-pool-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.draft-priority-queue {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  padding: 2px 2px 8px;
  min-height: 82px;
}
.draft-priority-queue.is-empty {
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  min-height: 72px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.16);
}
.draft-priority-qitem {
  flex: 0 0 auto;
  width: 62px;
  appearance: none;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(15, 20, 35, 0.9);
  border-radius: 14px;
  padding: 8px 6px 7px;
  color: inherit;
  cursor: grab;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  touch-action: pan-x;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.draft-priority-qitem:active { opacity: 0.85; }
.draft-priority-queue.is-reordering {
  touch-action: none !important;
  overflow-x: hidden !important;
  overscroll-behavior: none;
}
.draft-priority-queue.is-reordering .draft-priority-qitem {
  touch-action: none !important;
}
.draft-priority-qitem.is-dragging {
  opacity: 0.95;
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 3;
  cursor: grabbing;
  transform: scale(1.04);
}
.draft-priority-qitem.is-first {
  width: 68px;
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.1);
}
.draft-priority-qitem-rank {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.draft-priority-qitem .draft-priority-crest {
  width: 34px;
  height: 34px;
}
.draft-priority-qitem.is-first .draft-priority-crest {
  width: 38px;
  height: 38px;
}
.draft-priority-qitem-code {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draft-priority-qitem.is-first .draft-priority-qitem-code { color: var(--gold-light); }

.draft-priority-pool {
  flex: 1;
  min-height: 160px;
  max-height: min(42vh, 340px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 2px 1px 8px;
  align-content: start;
}
.draft-priority-tile {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 20, 35, 0.88);
  border-radius: 14px;
  padding: 10px 6px 8px;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 82px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.draft-priority-tile:active { opacity: 0.88; }
.draft-priority-tile.is-picked {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
}
.draft-priority-tile .draft-priority-crest {
  width: 38px;
  height: 38px;
}
.draft-priority-tile-code {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draft-priority-tile-rank {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.draft-priority-tile:disabled {
  cursor: default;
  opacity: 0.55;
}

/* Priority-only crest sizing; do not override global .draft-club-crest */
.draft-priority-crest {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.draft-priority-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.draft-priority-crest-fb {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.draft-priority-actions {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: rgba(10, 14, 26, 0.96);
}
.draft-priority-actions .btn {
  width: auto;
  min-width: 0;
  padding: 12px 8px;
  font-size: 0.88rem;
}

@media (max-width: 380px) {
  .draft-priority-pool { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 480px) {
  .draft-priority-pool {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-height: 360px;
  }
}

.draft-pick-timeout-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
#draft-pick-countdown { color: var(--gold-light); font-variant-numeric: tabular-nums; }
.lineups-modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 16px; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.lineups-modal.show { pointer-events: auto; opacity: 1; visibility: visible; }
.lineups-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.7); cursor: pointer;
}
.lineups-modal-panel {
  position: relative; width: min(96vw, 1520px); max-width: 100%; max-height: 85vh; overflow: hidden;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); display: flex; flex-direction: column;
}
.lineups-modal-header {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.lineups-modal-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex-wrap: wrap;
}
.lineups-modal-close {
  width: 36px; height: 36px; border: none; border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text-muted); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.lineups-modal-close:hover { color: var(--text); }
.lineups-modal-body {
  padding: 16px; overflow-y: auto; flex: 1; min-height: 0;
}
.leaderboard-lineups-wrap { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.lineups-table-wrap {
  overflow: auto;
  max-height: 62vh;
  -webkit-overflow-scrolling: touch;
}
.lineups-table {
  width: 100%; min-width: 100%; border-collapse: collapse; font-size: 0.9rem;
  --lineup-col-user-max: clamp(180px, 24vw, 340px);
}
.lineups-table th, .lineups-table td {
  padding: 6px 6px; text-align: left; border-bottom: 1px solid var(--border);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.lineups-table th:nth-child(n+4),
.lineups-table td:nth-child(n+4) {
  text-align: center;
}
.lineups-table th:last-child, .lineups-table td:last-child { border-right: none; }
.lineups-table th {
  color: var(--gold); font-weight: 600; font-size: 0.75rem; white-space: nowrap;
  position: sticky; top: 0; z-index: 6;
  background: rgba(10, 14, 26, 0.98);
  backdrop-filter: blur(8px);
}
.lineups-table tbody tr.lineup-row-ai {
  position: sticky;
  top: 2rem;
  z-index: 5;
  background: rgba(10, 14, 26, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.lineups-table tbody tr.lineup-row-ai td {
  background: inherit;
}
.lineups-table tbody tr.lineup-row-ai td.lineup-cell-success,
.lineups-table tbody tr.lineup-row-ai td.lineup-cell-fail {
  background: unset;
}
.lineups-table tbody tr.lineup-row-ai td.lineup-cell-success {
  background: rgba(34,197,94,0.18);
  color: #22c55e;
}
.lineups-table tbody tr.lineup-row-ai td.lineup-cell-fail {
  background: rgba(239,68,68,0.18);
  color: #ef4444;
}
.lineup-match-th {
  min-width: 64px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 2px !important;
  padding-right: 2px !important;
}
.lineup-match-head {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 1;
  gap: 0;
  white-space: nowrap;
}
.lineup-match-head span { display: inline-block; }
.lineup-match-head span + span::before {
  content: "–";
  color: var(--text-muted);
  margin: 0 2px;
}
.lineups-table td:first-child { color: var(--text-muted); }
.lineup-username { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lineups-table th:nth-child(2), .lineups-table td:nth-child(2) {
  width: var(--lineup-col-user-max);
  max-width: var(--lineup-col-user-max);
  min-width: 96px;
  position: sticky; left: 0; z-index: 7;
  background: rgba(10, 14, 26, 0.98);
  border-right: 1px solid rgba(212,175,55,0.28);
  box-shadow: 8px 0 12px -10px rgba(0, 0, 0, 0.7);
}
.lineups-table th:nth-child(3), .lineups-table td:nth-child(3) {
  border-right: 1px solid rgba(212,175,55,0.22);
}
.lineups-table tbody td:nth-child(2) { z-index: 5; }
.lineup-cell { text-align: center; vertical-align: middle; font-weight: 600; min-width: 44px; }
@media (max-width: 600px) {
  .lineups-modal { padding: 0; }
  .lineups-modal-panel {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .lineups-modal-header { padding: 12px; }
  .lineups-modal-body { padding: 8px; }
  .lineups-table-wrap { max-height: calc(100dvh - 110px); }
  .lineups-table { table-layout: auto; min-width: max-content; }
  .lineups-table th, .lineups-table td { padding: 4px 3px; }
  .lineups-table th { font-size: 0.66rem; line-height: 1.15; }
  .lineups-table th:nth-child(2), .lineups-table td:nth-child(2) {
    width: 40vw;
    max-width: 40vw;
    min-width: 128px;
    position: sticky;
    left: 0;
    overflow: hidden;
    box-shadow: 4px 0 8px -8px rgba(0, 0, 0, 0.7);
  }
  .lineup-username { font-size: 0.86rem; min-width: 0; white-space: nowrap; }
  .lineups-table th:nth-child(1), .lineups-table td:nth-child(1) { width: 24px; min-width: 24px; }
  .lineups-table th:nth-child(3), .lineups-table td:nth-child(3) { width: 36px; min-width: 36px; }
  .lineup-cell { min-width: 34px; }
  .lineup-match-th {
    min-width: 54px;
    max-width: 54px;
    text-align: center;
    white-space: normal;
  }
  .lineup-match-head {
    font-size: 0.62rem;
    flex-direction: column;
    line-height: 1.05;
    gap: 1px;
  }
  .lineup-match-head span + span::before { content: none; }
  .lineup-choice-emblem { width: 20px; min-width: 20px; height: 20px; }
  .lineup-check { font-size: 0.68rem; }
}
.lineup-cell-pending { background: rgba(148,163,184,0.16); color: #cbd5e1; }
.lineup-cell-success { background: rgba(34,197,94,0.18); color: #22c55e; }
.lineup-cell-fail { background: rgba(239,68,68,0.18); color: #ef4444; }
.fantasy-header { margin-bottom: 10px; }
.fantasy-header-title { margin: 0; font-weight: 800; font-size: 1.05rem; }
.fantasy-header-sub { margin: 6px 0 0 0; color: var(--text-muted); font-size: 0.86rem; }
.fantasy-tournaments-list { display: grid; gap: 10px; }
.fantasy-tournament-card { border: 1px solid rgba(255,255,255,0.08); }
.fantasy-tournament-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.fantasy-tournament-title { margin: 0; font-size: 1rem; font-weight: 700; }
.fantasy-tournament-meta { margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.85rem; }
.fantasy-tournament-actions { margin-top: 10px; }
.fantasy-status-unpaid { color: #fca5a5; border: 1px solid rgba(252,165,165,0.35); }
.fantasy-lineup { margin-top: 10px; padding: 12px; }
.fantasy-lineup-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.fantasy-lineup-progress { font-size: 0.78rem; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 3px 8px; color: var(--gold-light); }
.fantasy-pitch {
  position: relative;
  min-height: 300px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08) 0 1px, transparent 1px) 0 0/12px 12px,
    linear-gradient(180deg, rgba(26,119,66,0.35), rgba(16,78,44,0.35));
  margin-bottom: 12px;
}
.fantasy-pitch-slot {
  position: absolute;
  width: 46%;
  max-width: 190px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: rgba(10, 16, 28, 0.82);
  color: var(--text);
  padding: 9px;
  text-align: left;
  transition: transform .15s ease, border-color .15s ease;
}
.fantasy-pitch-slot:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 194, 88, 0.55);
}
.fantasy-slot-pos {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.fantasy-slot-name {
  display: block;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fantasy-slot-gk { left: 4%; top: 44%; }
.fantasy-slot-def { left: 26%; top: 74%; }
.fantasy-slot-mid { left: 52%; top: 56%; }
.fantasy-slot-fwd { left: 26%; top: 24%; }
.fantasy-slot-flex { left: 52%; top: 9%; }
.fantasy-slots-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fantasy-slot-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255,255,255,0.03);
}
.fantasy-slot-item-label { color: var(--text-muted); font-size: 0.75rem; margin-bottom: 3px; }
.fantasy-slot-item-value { font-size: 0.86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fantasy-toolbar { margin-top: 10px; }
.fantasy-extra { margin-top: 10px; }
.fantasy-picker-head { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.fantasy-search {
  min-width: 200px;
  flex: 1;
  max-width: 320px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.7);
  border-radius: 10px;
  color: var(--text);
  padding: 8px 10px;
}
.fantasy-players-list { display: grid; gap: 7px; max-height: 360px; overflow: auto; }
.fantasy-player-row {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  padding: 8px 10px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}
.fantasy-player-row:hover { border-color: rgba(245, 194, 88, 0.5); }
.fantasy-player-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fantasy-player-name { font-size: 0.86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fantasy-player-club { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fantasy-player-pos { font-size: 0.72rem; color: var(--gold-light); border: 1px solid rgba(245,194,88,0.4); border-radius: 999px; padding: 2px 8px; }
@media (max-width: 640px) {
  .fantasy-pitch { min-height: 260px; }
  .fantasy-pitch-slot { width: 46%; max-width: none; padding: 7px; }
  .fantasy-slot-name { font-size: 0.76rem; }
  .fantasy-slots-grid { grid-template-columns: 1fr; }
  .fantasy-search { min-width: 0; max-width: none; width: 100%; }
}
.lineup-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 0;
  gap: 0;
  white-space: nowrap;
  line-height: 1;
  margin: 0 auto;
}
.lineup-choice-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.lineup-choice-emblem {
  width: 20px;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(255,255,255,0.04);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.lineup-choice-emblem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lineup-choice-fallback {
  width: 100%; height: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.58rem; font-weight: 700; color: var(--gold-light);
}
.lineup-choice-abbr { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em; }
.lineup-choice-draw { font-size: 0.85rem; font-weight: 700; min-width: 16px; line-height: 1; }
.lineup-choice-double .lineup-choice-draw { font-size: 0.8rem; font-weight: 700; color: var(--gold-light); }
.lineup-check {
  position: absolute;
  top: -4px;
  right: -6px;
  font-size: 0.75rem;
  line-height: 1;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  pointer-events: none;
}
.lineups-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.withdraw-panel { display: none; margin-top: 12px; }
.withdraw-panel.show { display: block; }
.withdraw-panel-note { margin: 0 0 10px 0; font-size: 0.85rem; color: var(--text-muted); }
.cabinet-replay-onboarding {
  margin-top: 20px;
  padding-bottom: 8px;
}
.cabinet-replay-onboarding .btn {
  width: 100%;
}
.withdraw-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.withdraw-error {
  margin: 0 0 10px 0; padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.12);
  color: var(--danger);
  font-size: 0.85rem;
  display: none;
}

/* Match card: emblems + outcomes */
.match {
  margin: 0 0 20px 0; padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  animation: cardIn 0.4s ease-out backwards;
}
.match:last-child { margin-bottom: 0; }
.match.match-key { border-color: rgba(212,175,55,0.5); box-shadow: 0 0 16px var(--gold-glow); }
.key-match-btn {
  margin-top: 10px; padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-panel);
  color: var(--text-muted); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.key-match-btn:hover { border-color: rgba(212,175,55,0.4); color: var(--gold-light); }
.key-match-btn.active { border-color: var(--gold); background: rgba(212,175,55,0.15); color: var(--gold); }
.leaderboard-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem; table-layout: fixed;
}
.leaderboard-table th, .leaderboard-table td {
  padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border);
}
.leaderboard-table th {
  color: var(--gold); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.leaderboard-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.leaderboard-table tbody tr.leaderboard-row-ai { background: rgba(120, 160, 255, 0.06); }
.leaderboard-table tbody tr.leaderboard-row-ai td:first-child { color: var(--text-muted); }
.leaderboard-table td:first-child { width: 36px; color: var(--text-muted); font-size: 0.85rem; }
.leaderboard-table td:nth-child(2) {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 0;
}
.leaderboard-table td:last-child { text-align: right; color: var(--gold-light); font-weight: 600; width: 52px; }
.match-outcomes {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
.outcome-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.outcome-btn:hover:not(:disabled) {
  border-color: rgba(212,175,55,0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--gold-glow);
}
.outcome-btn:disabled { cursor: not-allowed; opacity: 0.7; }
.outcome-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #0a0e1a; border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}
.outcome-btn .outcome-icon { font-size: 1.2rem; }
.outcome-btn .outcome-label { font-size: 0.75rem; opacity: 0.95; }
.outcome-btn--team {
  flex-direction: column; align-items: center; gap: 6px;
}
.outcome-btn--team .outcome-btn-top {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px;
}
.outcome-btn--team .outcome-emblem {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  background: linear-gradient(145deg, rgba(212,175,55,0.2) 0%, rgba(20,20,30,0.9) 100%);
  border: 2px solid rgba(212,175,55,0.4);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.outcome-btn--team .outcome-emblem img { width: 100%; height: 100%; object-fit: contain; }
.outcome-btn--team .outcome-emblem .outcome-emblem-fb {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 800; color: var(--gold-light);
}
.outcome-btn--team .outcome-label {
  font-size: 0.8rem; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.outcome-btn--guest { align-items: center; }
.outcome-btn--guest .outcome-btn-top { flex-direction: row-reverse; justify-content: center; }
.outcome-btn--guest .outcome-label { text-align: center; }
.outcome-btn--draw { flex-direction: column; gap: 6px; }
.outcome-btn--draw .outcome-btn-top {
  min-height: 40px; display: flex; align-items: center; justify-content: center;
}
.outcome-btn--draw .outcome-label { font-size: 0.95rem; }
.outcome-pts {
  font-size: 0.95rem; font-weight: 700;
  color: var(--gold-light);
  background: rgba(212,175,55,0.2);
  padding: 4px 10px; border-radius: 999px;
}
.outcome-btn.active .outcome-pts { color: #0a0e1a; background: rgba(0,0,0,0.2); }
.outcome-btn:active:not(:disabled) { transform: scale(0.96); }

/* Двойной шанс (1X / X2) — отдельный ряд под основными исходами */
.match-outcomes-double {
  grid-template-columns: 1fr 1fr;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.outcome-btn--double {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.75rem;
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.25);
}
.outcome-btn--double .outcome-double-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.outcome-btn--double {
  min-width: 0;
}
.outcome-btn--double .outcome-pts {
  font-size: 0.85rem;
  padding: 3px 8px;
  flex-shrink: 0;
}
.outcome-btn--double:hover:not(:disabled) {
  border-color: rgba(212,175,55,0.5);
  background: rgba(212,175,55,0.12);
}
.outcome-btn--double.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  border-color: var(--gold);
}
.outcome-btn--double.active .outcome-double-label { color: #0a0e1a; }

/* Game-style: progress bar, level cards */
.game-progress {
  height: 8px; border-radius: 999px;
  background: var(--bg-elevated); overflow: hidden;
  margin: 10px 0 0 0;
}
.game-progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dim) 0%, var(--gold) 100%);
  transition: width 0.4s ease-out;
  box-shadow: 0 0 10px var(--gold-glow);
}
.level-card {
  position: relative;
  border-left: 4px solid var(--gold);
  padding-left: 14px;
}
.level-card .level-num {
  position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #0a0e1a; font-size: 0.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.game-stat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-muted);
  margin-top: 6px;
}
.game-stat strong { color: var(--gold-light); }
.jackpot-warning {
  font-size: 0.75rem; color: var(--text-muted);
  margin: 0 0 10px 0; padding: 8px 10px;
  background: rgba(212, 175, 55, 0.08); border-radius: var(--radius-sm);
  border-left: 3px solid rgba(212, 175, 55, 0.4);
}

/* ========== App header & bottom nav (game-style) ========== */
.app-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; margin: -16px -16px 16px -16px;
  background: var(--bg-panel); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.app-header .brand-mini {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.02em;
}
.app-header .brand-mini-btn {
  background: none; border: none; padding: 4px 0;
  cursor: pointer; transition: color var(--transition), opacity var(--transition);
}
.app-header .brand-mini-btn:hover { color: var(--gold-light); opacity: 0.95; }
.app-header .brand-mini-btn:active { opacity: 0.85; }
.app-header .balance-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: rgba(212,175,55,0.12); border: 1px solid rgba(212,175,55,0.35);
  font-size: 0.9rem; font-weight: 600; color: var(--gold-light);
  flex-shrink: 0;
  white-space: nowrap;
}
.app-header .balance-wrap #header-balance {
  white-space: nowrap;
}
.app-header .btn-profile {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-size: 1.25rem; cursor: pointer;
  transition: all var(--transition);
}
.app-header .btn-profile:hover {
  border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
}
.app-header .btn-fullscreen {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 1.2rem; cursor: pointer;
  transition: all var(--transition);
}
.app-header .btn-fullscreen:hover {
  border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 6px 8px max(8px, env(safe-area-inset-bottom, 0px));
  background: rgba(10, 14, 26, 0.94);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
}
.bottom-nav.hidden { display: none; }
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 10px 8px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-muted);
  font-family: var(--font); font-size: 0.7rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.bottom-nav-item:hover { color: var(--text); }
.bottom-nav-item.active {
  color: var(--gold); background: rgba(212,175,55,0.15);
  box-shadow: 0 0 12px var(--gold-glow);
}
.bottom-nav-item .nav-icon { font-size: 1.25rem; }
@media (max-width: 380px) {
  .bottom-nav-item { font-size: 0.65rem; padding: 8px 4px; }
  .bottom-nav-item .nav-icon { font-size: 1.1rem; }
}
/* Запас под закреплённый tab bar на всех экранах */
.main-content {
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
body.has-bottom-nav .content {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* --- АПЛ Draft League --- */
.draft-screen { position: relative; overflow: hidden; }
.draft-screen-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 8%, rgba(212, 175, 55, 0.14), transparent 42%),
    radial-gradient(ellipse at 12% 92%, rgba(30, 90, 180, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(8, 14, 28, 0.2), transparent 40%);
}
.draft-screen-content { position: relative; z-index: 1; }
.draft-hero { margin-bottom: 6px; }
.draft-hero-eyebrow {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.draft-page-title {
  margin: 0 0 6px;
  text-shadow: 0 2px 18px rgba(212, 175, 55, 0.2);
}
.draft-hub-intro {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
.draft-format-tabs {
  margin: 0 0 14px;
}
.draft-hub {

  display: flex;
  flex-direction: column;
  gap: 14px;
}
.draft-season-card {
  position: relative;
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: linear-gradient(155deg, rgba(55, 42, 18, 0.45), rgba(8, 14, 28, 0.94));
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.draft-season-card::after {
  content: "";
  position: absolute;
  top: -48px;
  right: -28px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 70%);
}
.draft-season-badge {
  display: inline-block;
  position: relative;
  z-index: 1;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffd080;
  margin-bottom: 4px;
}
.draft-season-title {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.2;
}
.draft-season-desc {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.draft-stat-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.draft-stat {
  padding: 7px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.draft-stat-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}
.draft-stat-label {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.draft-grid-fill {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}
.draft-grid-fill-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 0.85rem;
}
.draft-grid-fill-top strong { color: var(--text); }
.draft-grid-fill-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.draft-grid-fill-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  box-shadow: 0 0 12px var(--gold-glow);
  transition: width 0.35s ease;
}
.draft-my-status {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20, 40, 30, 0.45);
  border: 1px solid rgba(110, 231, 160, 0.22);
  font-size: 0.88rem;
}
.draft-my-status.is-out {
  background: rgba(40, 30, 20, 0.4);
  border-color: rgba(212, 175, 55, 0.2);
}
.draft-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-light);
}
.draft-entries-block {
  position: relative;
  z-index: 1;
  margin: 4px 0 10px;
}
.draft-entries-head {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 220, 150, 0.75);
}
.draft-entries-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.draft-entry-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: stretch;
}
.draft-entry-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.draft-entry-main:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
}
.draft-entry-row.is-urgent .draft-entry-main {
  border-color: rgba(212, 175, 55, 0.5);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.14), rgba(0, 0, 0, 0.2));
}
.draft-entry-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
}
.draft-entry-info {
  min-width: 0;
  overflow: hidden;
}
.draft-entry-info strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.draft-entry-cta {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
}
.draft-entry-cta.is-urgent {
  padding: 5px 9px;
  border-radius: 999px;
  color: #1a1408;
  background: linear-gradient(135deg, #f0d078, #d4af37);
}
.draft-entry-prio {
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.draft-entry-prio:hover {
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
}
.draft-hub-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.draft-hub-actions .btn { width: 100%; }

/* Friends draft lobbies */
.draft-format-tabs .tab { font-size: 0.78rem; padding: 8px 6px; }
.friends-create-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.friends-create-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.draft-friends-card-focus {
  outline: 2px solid rgba(212, 175, 55, 0.85);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.12);
}
.friends-create-box[hidden] {
  display: none !important;
}
.friends-key-metric {
  padding: 12px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
}
.friends-key-metric-title {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.friends-key-metric-sub {
  margin: 0 0 10px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}
.friends-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.friends-field input,
.friends-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.friends-field input:focus,
.friends-field select:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.45);
}
.friends-field-hint {
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.42);
}
.friends-prize-preview {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(212, 175, 55, 0.22);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.friends-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.friends-preview-row b {
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.friends-preview-place b { color: #fff; }
.friends-create-hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.42);
}
.friends-reg-timer-line {
  font-variant-numeric: tabular-nums;
}
.friends-reg-countdown {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.friends-reg-countdown.is-expired {
  color: #e07070;
}
.friends-places-line { margin-top: -4px !important; }
/* Фильтры друзей — тот же компактный стиль, что у турниров */
.friends-filters {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 12px;
}
.friends-filters .tournaments-filter-block {
  margin: 0;
}
.friends-filters .tabs-full {
  gap: 5px;
  margin-bottom: 0;
  align-items: stretch;
}
.friends-filters .tab {
  padding: 7px 5px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 7px;
  box-shadow: none;
  min-height: 2.5em;
  white-space: nowrap;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.friends-filters .friends-scope-tabs .tab {
  flex: 1 1 0;
  min-width: 0;
}
.friends-filters .tournaments-filter-block-header .friends-mine-tabs .tab {
  flex: 0 1 auto;
  min-width: 2.75rem;
  white-space: nowrap;
}
.friends-filters .tab.active {
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}
@media (min-width: 380px) {
  .friends-filters .tab {
    padding: 7px 7px;
    font-size: 0.78rem;
  }
}
@media (min-width: 420px) {
  .friends-filters .tab {
    font-size: 0.82rem;
    padding: 8px 8px;
  }
}
.lobby-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.lobby-filters .draft-format-tabs {
  margin: 0;
}
.lobby-filters .friends-filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.lobby-filters .friends-filters .tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 6px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}
.lobby-filters .friends-filters .tab.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.45);
  color: #fff;
}
.lobby-filters-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lobby-filters-row .lobby-mine-filters {
  flex: 1 1 auto;
}
.lobby-league-filter-btn {
  flex: 0 0 auto;
  position: relative;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.lobby-league-filter-btn.is-active {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.14);
  color: #fff;
}
.lobby-league-filter-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
}
.lobby-league-sheet-panel {
  max-height: min(70vh, 520px);
}
.lobby-league-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.lobby-league-sheet-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.lobby-league-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 50vh;
  overflow-y: auto;
}
.lobby-league-option {
  text-align: left;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.lobby-league-option.is-active {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.14);
  color: #fff;
}
.lobby-hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 0;
  margin-bottom: 10px;
  border: 1.5px solid rgba(251, 146, 60, 0.55);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(251, 146, 60, 0.16), transparent 48%),
    linear-gradient(155deg, rgba(42, 24, 14, 0.72), rgba(8, 12, 22, 0.98));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.lobby-hero-banner.is-division {
  border-color: rgba(251, 146, 60, 0.65);
  box-shadow:
    0 0 0 1px rgba(251, 146, 60, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.28);
}
.lobby-hero-ribbon {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #ffd8a8;
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.28), rgba(212, 175, 55, 0.12));
  border-bottom: 1px solid rgba(251, 146, 60, 0.35);
}
.lobby-hero-body {
  padding: 10px 12px 12px;
}
.lobby-hero-info {
  appearance: none;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(251, 146, 60, 0.55);
  background: rgba(251, 146, 60, 0.12);
  color: #ffd8a8;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
}
.lobby-hero-info:hover,
.lobby-hero-info:focus-visible {
  background: rgba(251, 146, 60, 0.22);
  outline: none;
}
.lobby-season-strip {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 10px;
}
.lobby-strip-leagues {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}
.lobby-strip-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 46px;
  padding: 6px 5px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.lobby-strip-crest.is-gold {
  background: linear-gradient(160deg, rgba(90, 62, 12, 0.55), rgba(20, 16, 10, 0.92));
  border-color: rgba(232, 196, 90, 0.4);
}
.lobby-strip-crest.is-silver {
  background: linear-gradient(160deg, rgba(70, 78, 92, 0.5), rgba(14, 18, 26, 0.94));
  border-color: rgba(180, 190, 205, 0.32);
}
.lobby-strip-crest.is-bronze {
  background: linear-gradient(160deg, rgba(92, 52, 28, 0.5), rgba(18, 12, 10, 0.94));
  border-color: rgba(196, 120, 72, 0.36);
}
.lobby-strip-crest.is-mine {
  box-shadow:
    inset 0 0 0 2px rgba(255, 208, 128, 0.85),
    0 0 0 1px rgba(255, 208, 128, 0.35),
    0 6px 16px rgba(212, 175, 55, 0.25);
  transform: translateY(-1px);
}
.lobby-strip-you {
  display: block;
  margin-top: 1px;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd080;
}
.lobby-fs-spoiler {
  margin: 0 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
}
.lobby-fs-spoiler > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold-light);
}
.lobby-fs-spoiler > summary::-webkit-details-marker { display: none; }
.lobby-fs-spoiler[open] > summary { margin-bottom: 10px; }
.lobby-fs-spoiler .lobby-fs-rules-block {
  margin-top: 8px;
}
.lobby-fs-spoiler .lobby-fs-rules-block:first-of-type { margin-top: 0; }
.lobby-strip-crest-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.is-gold .lobby-strip-crest-mark {
  background: radial-gradient(circle at 35% 30%, #ffe7a0, #c9962a 55%, #6a4a10);
  color: #2a1c05;
}
.is-silver .lobby-strip-crest-mark {
  background: radial-gradient(circle at 35% 30%, #f4f6fa, #9aa4b5 55%, #4a5363);
  color: #1a2030;
}
.is-bronze .lobby-strip-crest-mark {
  background: radial-gradient(circle at 35% 30%, #f0b888, #a85a2e 55%, #4a2412);
  color: #2a1408;
}
.lobby-strip-crest-name {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.lobby-strip-lb {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  text-align: left;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background:
    linear-gradient(120deg, rgba(40, 32, 14, 0.7), rgba(10, 14, 24, 0.95)),
    radial-gradient(ellipse at 100% 0%, rgba(212, 175, 55, 0.16), transparent 55%);
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
}
.lobby-strip-lb-kicker {
  grid-column: 1;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 208, 128, 0.8);
}
.lobby-strip-fund {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffd080;
  white-space: nowrap;
}
.lobby-strip-top {
  grid-column: 1;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lobby-strip-top.muted { color: var(--text-muted); }
.lobby-strip-top b { color: var(--gold-light); }
.lobby-strip-chevron {
  display: none;
}
.lobby-lb-sheet-hero {
  text-align: center;
  margin: 0 0 14px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.22), transparent 60%),
    rgba(12, 14, 22, 0.9);
}
.lobby-lb-sheet-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 208, 128, 0.8);
}
.lobby-lb-sheet-fund {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #ffd080;
  letter-spacing: -0.02em;
}
.lobby-lb-sheet-sub {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.lobby-hero-banner.is-short {
  border-color: rgba(251, 146, 60, 0.65);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(251, 146, 60, 0.22), transparent 45%),
    radial-gradient(ellipse at 90% 100%, rgba(212, 175, 55, 0.1), transparent 50%),
    linear-gradient(155deg, rgba(42, 24, 14, 0.78), rgba(8, 12, 22, 0.98));
}
.lobby-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.lobby-hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 208, 128, 0.85);
}
.lobby-hero-fund {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffd080;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.12);
}
.lobby-hero-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lobby-hero-sub {
  margin: 0 0 10px;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.lobby-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lobby-hero-actions-primary,
.lobby-hero-actions-row {
  display: flex;
  gap: 8px;
}
.lobby-hero-actions-primary .btn,
.lobby-hero-actions-row .btn {
  flex: 1 1 0;
  min-width: 0;
}
.lobby-hero-you {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(110, 231, 160, 0.35);
  background: rgba(20, 48, 36, 0.45);
  font-size: 0.78rem;
  color: #b7f0cd;
}
.lobby-hero-you strong { color: #d8ffe8; font-weight: 800; }
.lobby-hero-you span { color: rgba(183, 240, 205, 0.75); font-weight: 600; }
.lobby-hero-banner.is-joined {
  border-color: rgba(110, 231, 160, 0.45);
}
.lobby-hero-sub b { color: var(--text); font-weight: 700; }
.draft-divs-featured {
  margin-bottom: 12px;
}
.lobby-season-lb {
  margin-bottom: 12px;
}
.lobby-card {
  position: relative;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(155deg, rgba(40, 48, 68, 0.55), rgba(10, 16, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.lobby-card-creator {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 46%;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 22, 0.82);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
  overflow: hidden;
}
.lobby-card-creator span {
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.58rem;
}
.lobby-card-creator b {
  color: var(--gold-light);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lobby-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.lobby-card-actions .btn { flex: 0 1 auto; min-width: 0; }
.lobby-card-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-left: auto;
}
.lobby-hero-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  margin-bottom: 6px;
}
.lobby-chip {
  appearance: none;
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.lobby-chip-primary {
  color: #0a0e1a;
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
}
.lobby-hero-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lobby-text-link {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.lobby-text-link:hover { text-decoration: underline; }
.lobby-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lobby-card.is-bettable {
  border-color: rgba(212, 175, 55, 0.35);
  background:
    linear-gradient(155deg, rgba(55, 42, 18, 0.4), rgba(10, 16, 28, 0.96)),
    radial-gradient(ellipse at 100% 0%, rgba(212, 175, 55, 0.12), transparent 50%);
}
.lobby-card.is-division {
  border-color: rgba(251, 146, 60, 0.5);
  background:
    linear-gradient(155deg, rgba(48, 28, 14, 0.55), rgba(10, 16, 28, 0.96)),
    radial-gradient(ellipse at 0% 0%, rgba(251, 146, 60, 0.16), transparent 55%);
  box-shadow:
    0 0 0 1px rgba(251, 146, 60, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.25);
}
.lobby-card-pill.is-division {
  border-color: rgba(251, 146, 60, 0.5);
  color: #ffd8a8;
  background: rgba(251, 146, 60, 0.14);
}
.lobby-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.lobby-card-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.lobby-card-meta b { color: var(--text); }
.lobby-card-pill {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
}
.lobby-card-pill.soft {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}
.lobby-card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  padding-right: 0;
}
.lobby-card.has-creator .lobby-card-title {
  padding-right: 42%;
}
.lobby-card-sub {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.lobby-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.lobby-card-actions .btn { flex: 0 1 auto; min-width: 0; }
.lobby-spoiler {
  margin: 0 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 20, 34, 0.7);
  padding: 8px 12px;
}
.lobby-spoiler > summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  list-style: none;
}
.lobby-spoiler > summary::-webkit-details-marker { display: none; }
.lobby-spoiler[open] > summary { margin-bottom: 8px; }
.lobby-spoiler .draft-divs-arena { margin: 0; }
.duel-bet-spoiler {
  margin-top: 6px;
}
.duel-bet-spoiler summary {
  cursor: pointer;
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 700;
}
.duel-bet-clubs {
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
}
.duel-bet-clubs-head {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.duel-bet-clubs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.duel-bet-club {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.duel-bet-club.is-captain {
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold-light);
}
.duel-bet-clubs-empty {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.duel-bet-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.duel-bet-actions .btn { flex: 1; }
.draft-friends-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.draft-friends-create {
  padding: 10px 12px;
}
.draft-friends-create-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.draft-friends-create-copy {
  min-width: 0;
  flex: 1;
}
.draft-friends-create .draft-season-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.15;
}
.draft-friends-create .draft-season-desc {
  margin: 2px 0 0;
  font-size: 0.72rem;
  line-height: 1.25;
  -webkit-line-clamp: 1;
}
.draft-friends-create .draft-hub-actions {
  flex-direction: row;
  flex-shrink: 0;
  gap: 6px;
  width: auto;
}
.draft-friends-create .draft-hub-actions .btn {
  width: auto;
  padding: 7px 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.draft-friends-create .btn-primary { width: auto; }
.draft-tour-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.draft-tour-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}
.draft-tour-tab.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.45);
  color: #fff;
}
.draft-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.draft-schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}
.draft-schedule-home,
.draft-schedule-away {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.draft-schedule-away { justify-content: flex-end; text-align: right; }
.draft-schedule-club {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}
.draft-schedule-away .draft-schedule-club { align-items: flex-end; }
.draft-schedule-club b {
  font-weight: 700;
  font-size: 0.84rem;
}
.draft-schedule-owner {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold-light);
  opacity: 0.9;
  max-width: 7.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draft-schedule-mid {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.7);
}
.draft-schedule-when { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }
.draft-friends-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  background:
    linear-gradient(160deg, rgba(72, 52, 18, 0.55), rgba(10, 16, 30, 0.96) 55%),
    radial-gradient(ellipse at 100% 0%, rgba(212, 175, 55, 0.16), transparent 48%);
  border-color: rgba(212, 175, 55, 0.38);
}
.draft-friends-card.is-bettable {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 220, 140, 0.08);
}
.draft-friends-card.is-open {
  background:
    linear-gradient(160deg, rgba(28, 52, 86, 0.5), rgba(10, 16, 30, 0.96) 58%),
    radial-gradient(ellipse at 0% 0%, rgba(80, 140, 220, 0.18), transparent 46%);
  border-color: rgba(110, 160, 230, 0.35);
}
.draft-friends-card.is-finished {
  opacity: 0.88;
  filter: saturate(0.85);
}
.friends-card-top { position: relative; z-index: 1; }
.friends-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px;
}
.friends-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1408;
  background: linear-gradient(135deg, #f0d078, #d4af37);
}
.friends-pill.soft {
  color: rgba(255, 230, 170, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.friends-pill.status {
  color: #d9f99d;
  background: rgba(80, 140, 60, 0.22);
  border: 1px solid rgba(160, 220, 100, 0.28);
}
.draft-friends-card .draft-season-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.friends-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.friends-card-meta b {
  color: var(--gold-light);
  font-weight: 800;
}
.friends-places-line {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.friends-players-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.friends-player-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
}
.friends-player-chip.is-me {
  border-color: rgba(110, 231, 160, 0.4);
  color: #86efac;
}
.friends-player-chip.is-creator {
  border-color: rgba(212, 175, 55, 0.35);
}
.friends-bet-board {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(212, 175, 55, 0.28);
}
.friends-bet-board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.friends-bet-board-head strong {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffe6a8;
}
.friends-bet-board-head span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.friends-bet-targets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.friends-bet-target {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(212, 175, 55, 0.08));
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.friends-bet-target:hover,
.friends-bet-target:active {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.18));
  transform: translateY(-1px);
}
.friends-bet-target.is-me {
  border-color: rgba(110, 231, 160, 0.35);
}
.friends-bet-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a1408;
  background: linear-gradient(145deg, #f3d98a, #c9a227);
}
.friends-bet-who {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.friends-bet-who strong {
  font-size: 0.9rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.friends-bet-who em {
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}
.friends-bet-cta {
  flex-shrink: 0;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1a1408;
  background: linear-gradient(135deg, #f0d078, #d4af37);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}
.draft-friends-card .draft-hub-actions {
  margin-top: 2px;
}
.friends-card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}
.friends-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.friends-text-btn {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--gold-light);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.friends-text-btn:hover { text-decoration: underline; }
.friends-text-btn.soft { color: rgba(255, 255, 255, 0.62); font-weight: 600; }
.friends-text-btn.danger { color: #fca5a5; font-weight: 600; }
.friends-card-primary { display: flex; }
.friends-card-cta {
  width: 100%;
  padding: 11px 14px !important;
}
.friends-card-manage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.friends-pool-lead {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
}
.friends-pool-hint {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.friends-pool-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 55vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
}
.friends-pool-club {
  display: grid;
  grid-template-columns: 28px 22px 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.friends-pool-rank {
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}
.friends-pool-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.friends-pool-name b {
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.friends-pool-name em {
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.friends-pool-sched { width: 100%; }
.draft-lb-card {
  border-radius: 14px;
  padding: 12px;
  background:
    linear-gradient(160deg, rgba(28, 36, 54, 0.9), rgba(10, 14, 26, 0.96)),
    radial-gradient(ellipse at 100% 0%, rgba(212, 175, 55, 0.1), transparent 50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.draft-lb-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.draft-lb-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.draft-lb-sub {
  margin: 3px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.draft-lb-count {
  flex-shrink: 0;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.22);
}
.draft-lb-cols {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 52px;
  gap: 8px;
  padding: 0 10px 6px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.draft-lb-cols span:last-child { text-align: right; }
.draft-lb { display: flex; flex-direction: column; gap: 4px; }
.draft-lb-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 52px;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  text-align: left;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.draft-lb-row:hover,
.draft-lb-row:active {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
}
.draft-lb-row:disabled {
  opacity: 1;
  cursor: default;
}
.draft-lb-row.is-me {
  border-color: rgba(212, 175, 55, 0.5);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.16), rgba(0, 0, 0, 0.18));
}
.draft-lb-row.is-top1 {
  border-color: rgba(240, 208, 120, 0.45);
  background: linear-gradient(90deg, rgba(240, 208, 120, 0.16), rgba(0, 0, 0, 0.16));
}
.draft-lb-row.is-top2 {
  border-color: rgba(190, 200, 220, 0.35);
}
.draft-lb-row.is-top3 {
  border-color: rgba(196, 140, 90, 0.35);
}
.draft-lb-row .place {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.05);
  font-variant-numeric: tabular-nums;
}
.draft-lb-row.is-top1 .place {
  color: #1a1408;
  background: linear-gradient(145deg, #f3d98a, #c9a227);
}
.draft-lb-row.is-top2 .place {
  color: #111827;
  background: linear-gradient(145deg, #e5e7eb, #9ca3af);
}
.draft-lb-row.is-top3 .place {
  color: #1a1408;
  background: linear-gradient(145deg, #e8b48a, #b07248);
}
.draft-lb-row .who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.draft-lb-row .name {
  font-size: 0.86rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draft-lb-row .grid {
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
}
.draft-lb-row .pts {
  text-align: right;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.draft-lb-me-gap {
  margin: 10px 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 220, 150, 0.7);
}
.draft-lb-more {
  width: 100%;
  margin-top: 10px;
}
.draft-lb-row-link {
  cursor: pointer;
}
.draft-lb-empty {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.draft-grid-table-card .panel-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.draft-grid-lb-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.draft-grid-lb-table th,
.draft-grid-lb-table td {
  padding: 7px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}
.draft-grid-lb-table th {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.draft-grid-lb-table td:first-child,
.draft-grid-lb-table th:first-child { color: rgba(255, 255, 255, 0.45); width: 28px; }
.draft-grid-lb-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draft-grid-lb-table td:last-child,
.draft-grid-lb-table th:last-child { text-align: right; }
.draft-grid-lb-table tr.draft-lb-me td { color: var(--gold-light); }
.draft-lb-clickable { cursor: pointer; }
.draft-lb-clickable:active td { opacity: 0.85; }
.draft-roster-hint {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.1);
}
.draft-roster-hint-lock {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  letter-spacing: 0;
  text-transform: none;
}
.draft-cap-lock-msg { color: #e07070 !important; }
.draft-cap-panel { padding: 12px; }
.draft-cap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.draft-cap-head strong { font-size: 0.95rem; }
.draft-cap-pts {
  margin-left: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}
.draft-cap-tours { margin: 0 0 8px; }
.draft-cap-tours .draft-tour-tab { padding: 5px 8px; font-size: 0.74rem; }
.draft-cap-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.draft-cap-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: default;
}
.draft-cap-row.is-pickable { cursor: pointer; }
.draft-cap-row.is-pickable:active { background: rgba(255, 255, 255, 0.07); }
.draft-cap-row.is-captain {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.1);
}
.draft-cap-row:disabled { opacity: 1; }
.draft-cap-crest { width: 24px; height: 24px; flex-shrink: 0; }
.draft-cap-code {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.draft-cap-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: #1a1408;
  background: var(--gold);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.3;
  flex-shrink: 0;
}
.draft-cap-opp {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.draft-roster-coef {
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
  margin-left: auto;
  flex-shrink: 0;
}
.draft-teams-table th:last-child,
.draft-teams-table td:last-child {
  text-align: left;
  min-width: 140px;
}
.draft-teams-clubs-cell {
  white-space: nowrap;
}
.draft-teams-club-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  vertical-align: middle;
}
.draft-teams-club-chip.is-captain {
  color: var(--gold-light);
  font-weight: 700;
}
.draft-teams-club-chip.is-captain b {
  margin-left: 2px;
  font-size: 0.58rem;
  color: #1a1408;
  background: var(--gold);
  border-radius: 3px;
  padding: 0 3px;
}
.draft-teams-club-chip .draft-club-crest {
  width: 16px;
  height: 16px;
}
.lineups-table tbody tr.draft-lb-me td {
  color: var(--gold-light);
}

.draft-rules { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.draft-rule-block {
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(160deg, rgba(28, 38, 58, 0.75), rgba(8, 12, 22, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.draft-rule-kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.draft-rule-block h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.draft-rule-block p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.draft-rule-block p:last-child { margin-bottom: 0; }
.draft-rule-block ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.draft-rule-block li { margin: 5px 0; }
.draft-rule-block li strong { color: var(--text); }

.draft-order {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.draft-order-chip {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.draft-order-chip.me {
  border-color: var(--gold);
  color: var(--gold);
}
.draft-club-crest {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.draft-club-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.draft-club-crest-fb {
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.draft-clubs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.draft-club-btn {
  width: 100%;
  font-size: 0.85rem;
  padding: 10px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
}
.draft-club-btn-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 380px) {
  .draft-stat-row { grid-template-columns: 1fr 1fr; }
  .draft-stat-row .draft-stat:last-child { grid-column: 1 / -1; }
  .draft-clubs { grid-template-columns: 1fr; }
  .draft-lb-cols,
  .draft-lb-row { grid-template-columns: 34px minmax(0, 1fr) 46px; }
}

/* --- Дивизионы: игровая лестница --- */
.draft-divs-arena {
  position: relative;
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(18, 14, 10, 0.96), rgba(8, 12, 22, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.22);
  overflow: hidden;
}
.draft-divs-arena-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.draft-divs-arena-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.draft-divs-fund {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffd080;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.28);
}
.draft-divs-hint {
  margin: 0 0 8px;
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.42);
}
.draft-divs-ladder {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
button.draft-div-crest,
.draft-div-crest {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 96px;
  margin: 0;
  padding: 10px 6px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.draft-div-crest:active { transform: scale(0.97); }
.draft-div-crest-cta {
  display: block;
  margin-top: 2px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 208, 128, 0.85);
}
.draft-div-crest.is-silver .draft-div-crest-cta {
  color: rgba(200, 210, 225, 0.85);
}
.draft-div-crest.is-bronze .draft-div-crest-cta {
  color: rgba(240, 180, 120, 0.85);
}
.draft-div-crest.is-mine {
  box-shadow: inset 0 0 0 1px rgba(255, 208, 128, 0.55);
}
.draft-div-crest.is-gold {
  background: linear-gradient(160deg, rgba(90, 62, 12, 0.55), rgba(20, 16, 10, 0.92));
  border-color: rgba(232, 196, 90, 0.4);
}
.draft-div-crest.is-silver {
  background: linear-gradient(160deg, rgba(70, 78, 92, 0.5), rgba(14, 18, 26, 0.94));
  border-color: rgba(180, 190, 205, 0.32);
}
.draft-div-crest.is-bronze {
  background: linear-gradient(160deg, rgba(92, 52, 28, 0.5), rgba(18, 12, 10, 0.94));
  border-color: rgba(196, 120, 72, 0.36);
}
.draft-div-crest-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.18);
}
.draft-div-crest.is-gold .draft-div-crest-mark {
  background: radial-gradient(circle at 35% 30%, #ffe7a0, #c9962a 55%, #6a4a10);
  color: #2a1c05;
}
.draft-div-crest.is-silver .draft-div-crest-mark {
  background: radial-gradient(circle at 35% 30%, #f4f6fa, #9aa4b5 55%, #4a5363);
  color: #1a2030;
}
.draft-div-crest.is-bronze .draft-div-crest-mark {
  background: radial-gradient(circle at 35% 30%, #f0b888, #a85a2e 55%, #4a2412);
  color: #2a1408;
}
.draft-div-crest-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  line-height: 1.15;
}
.draft-div-crest-count {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}
.draft-div-you {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  color: #ffd080;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.draft-div-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.draft-div-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.draft-div-modal.is-fullscreen {
  align-items: stretch;
  padding: 0;
}
.draft-div-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(4px);
}
.draft-div-modal.is-fullscreen .draft-div-modal-backdrop {
  background: rgba(4, 6, 12, 0.92);
}
.draft-div-modal-panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  border-radius: 20px 20px 16px 16px;
  padding: 20px 16px 18px;
  background: linear-gradient(180deg, #16120e 0%, #0a0e18 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
  transform: translateY(18px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.draft-div-modal.is-fullscreen .draft-div-modal-panel {
  width: 100%;
  max-width: none;
  max-height: none;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transform: translateY(8px);
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #121018 0%, #080c16 40%, #060810 100%);
}
.draft-div-modal.show .draft-div-modal-panel { transform: translateY(0); }
.draft-div-modal.is-fullscreen.show .draft-div-modal-panel { transform: none; }
.draft-div-modal-close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.lobby-fs-sheet {
  padding-top: 8px;
  padding-right: 28px;
}
.lobby-fs-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.lobby-fs-kicker {
  margin: 0 0 2px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 208, 128, 0.78);
}
.lobby-fs-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.lobby-fs-fund-pill {
  flex-shrink: 0;
  margin-top: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffd080;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.12);
}
.lobby-fs-rules-btn {
  width: 100%;
  margin: 0 0 10px;
}
.lobby-fs-rules {
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lobby-fs-rules-block {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.lobby-fs-rules-block h4 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--gold-light);
}
.lobby-fs-rules-block ul {
  margin: 0;
  padding-left: 1.1em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lobby-fs-rules-block li {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}
.lobby-fs-rules-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.lobby-fs-lb {
  margin-bottom: 12px;
}
.draft-div-sheet-hero {
  text-align: center;
  padding: 8px 8px 16px;
  margin-bottom: 12px;
  border-radius: 14px;
}
.draft-div-sheet-hero.is-gold {
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 196, 90, 0.22), transparent 70%);
}
.draft-div-sheet-hero.is-silver {
  background: radial-gradient(ellipse at 50% 0%, rgba(180, 190, 205, 0.18), transparent 70%);
}
.draft-div-sheet-hero.is-bronze {
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 120, 72, 0.2), transparent 70%);
}
.draft-div-sheet-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.draft-div-sheet-hero.is-gold .draft-div-sheet-mark {
  background: radial-gradient(circle at 35% 30%, #ffe7a0, #c9962a 55%, #6a4a10);
  color: #2a1c05;
}
.draft-div-sheet-hero.is-silver .draft-div-sheet-mark {
  background: radial-gradient(circle at 35% 30%, #f4f6fa, #9aa4b5 55%, #4a5363);
  color: #1a2030;
}
.draft-div-sheet-hero.is-bronze .draft-div-sheet-mark {
  background: radial-gradient(circle at 35% 30%, #f0b888, #a85a2e 55%, #4a2412);
  color: #2a1408;
}
.draft-div-sheet-name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.draft-div-sheet-motto {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.4;
}
.draft-div-sheet-section {
  margin-bottom: 14px;
}
.draft-div-sheet-section h4 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.draft-div-sheet-section p,
.draft-div-sheet-section li {
  margin: 0 0 6px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.draft-div-sheet-section ul {
  margin: 0;
  padding-left: 1.1rem;
}
.draft-div-sheet-section strong { color: var(--text); }
.draft-div-roster {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.draft-div-roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}
.draft-div-roster-row .n {
  width: 22px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.draft-div-roster-empty {
  padding: 18px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}
.draft-div-roster-empty strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
}
.draft-div-roster-empty span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.draft-div-sheet-foot {
  margin-top: 4px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

.screen { display: none; animation: screenIn 0.3s ease-out; }
.screen.active { display: block; }
@keyframes screenIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.link-text { font-size: 0.85rem; color: var(--text-muted); word-break: break-all; }

.topup-label {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text);
}
.topup-copy-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.topup-copy-value {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  padding: 12px 12px !important;
  font-size: 0.82rem !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  word-break: break-all;
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default;
  cursor: text;
}
.topup-copy-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(15, 20, 35, 0.8);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.topup-copy-icon:active {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.45);
}
.topup-copy-icon:disabled {
  opacity: 0.4;
  cursor: default;
}
.tx-item {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  animation: cardIn 0.4s ease-out backwards;
}
.tx-item:last-child { border-bottom: none; }
input[type="text"], input[type="number"] {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(15,20,35,0.8);
  color: var(--text); font-family: var(--font); font-size: 1rem; margin-bottom: 12px;
  transition: border-color var(--transition);
}
input:focus { outline: none; border-color: var(--gold); }
label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: var(--text-muted); }

.loading { text-align: center; padding: 32px 16px; color: var(--text-muted); }
.loading-dots::after { content: ''; animation: loadingDots 1.2s steps(4, end) infinite; }
@keyframes loadingDots {
  0%, 20% { content: ''; } 40% { content: '.'; } 60% { content: '..'; } 80%, 100% { content: '...'; }
}

.dev-banner {
  background: var(--bg-panel); border: 1px solid var(--border);
  padding: 14px 16px; border-radius: var(--radius); margin-top: 16px;
  font-size: 0.85rem; display: none;
}
.dev-banner .panel-title { margin-bottom: 8px; }
.dev-banner input { margin-right: 8px; margin-bottom: 8px; width: 140px; display: inline-block; vertical-align: middle; }
.dev-banner .btn { width: auto; display: inline-block; padding: 10px 16px; margin: 0; vertical-align: middle; }

.toast {
  position: fixed; bottom: 88px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
  color: #fff; padding: 14px 24px; border-radius: var(--radius);
  font-weight: 600; box-shadow: 0 8px 32px rgba(34,197,94,0.3);
  z-index: 1000; opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-icon { margin-right: 8px; }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--gold-glow); color: var(--gold); margin-left: 8px;
}
.badge-success { background: rgba(34,197,94,0.2); color: var(--success); }

@media (max-width: 599px) {
  .brand-block { padding: 14px 12px; margin-bottom: 20px; }
  .brand-title { font-size: 1.2rem; }
  .brand-logo-img { max-width: 120px; }
  .match-outcomes { gap: 6px; }
  .match-outcomes-double {
    margin-top: 4px;
    padding-top: 6px;
    gap: 6px;
    grid-template-columns: 1fr;
  }
  .outcome-btn { padding: 10px 6px; }
  .outcome-btn--double {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
  .outcome-btn--double .outcome-double-label {
    font-size: 0.75rem;
    white-space: normal;
    text-overflow: unset;
    line-height: 1.25;
  }
  .outcome-btn--team .outcome-label { font-size: 0.75rem; }
  .outcome-btn--draw .outcome-label { font-size: 0.85rem; }
  .outcome-pts { font-size: 0.85rem; padding: 3px 8px; }

  /* Фильтры турниров: компактные табы на мобильных */
  .tabs-full { gap: 6px; margin-bottom: 10px; }
  .tabs-full .tab {
    font-size: 0.75rem;
    padding: 10px 6px;
    min-height: 44px;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
  }
  .tournaments-phase-tabs .tab { flex: 1 1 28%; min-width: 0; }
  .tournaments-my-tabs .tab { flex: 1 1 45%; min-width: 0; }
  .tournaments-price-tabs .tab { flex: 1 1 28%; min-width: 0; }
  .tournaments-phase-tabs { margin-bottom: 8px; }
  .tournaments-my-tabs { margin-bottom: 8px; }
  .tournaments-price-tabs { margin-bottom: 12px; }

  /* Фильтры предикта ИИ: колонка на мобильных */
  .ai-predict-filters { padding: 12px; margin-bottom: 12px; }
  .ai-predict-filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .ai-predict-leagues-wrap { min-width: 0; }
  .ai-filter-leagues { gap: 8px; }
  .ai-league-chip {
    font-size: 0.78rem;
    padding: 8px 10px;
  }
  .ai-predict-dates-wrap {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
  .ai-date-input {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    padding: 12px 10px;
    box-sizing: border-box;
  }
}

@media (max-width: 380px) {
  .tabs-full .tab { font-size: 0.7rem; padding: 8px 4px; }
  .tournaments-phase-tabs .tab { flex: 1 1 30%; }
}

/* --- Турниры: панель фильтров (отдельные блоки + перенос текста во вкладках) --- */
.tournaments-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}
.tournaments-filter-block {
  padding: 8px 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.tournaments-filter-block-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px 0;
  line-height: 1.2;
}
#screen-tournaments .tournaments-filters .tabs-full {
  gap: 5px;
  margin-bottom: 0;
  align-items: stretch;
}
#screen-tournaments .tournaments-filters .tab {
  padding: 7px 5px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 7px;
  box-shadow: none;
  min-height: 2.5em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Режим и этапы: одна строка, без переноса через дефис */
#screen-tournaments .tournaments-type-tabs .tab {
  white-space: nowrap;
  -webkit-hyphens: none;
  hyphens: none;
}
/* Этапы: короткие подписи, равные колонки */
#screen-tournaments .tournaments-phase-tabs .tab {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
  flex: 1 1 0;
  min-width: 0;
}
#screen-tournaments .tournaments-filter-block-header .tournaments-my-tabs .tab {
  flex: 0 1 auto;
  min-width: 2.75rem;
  white-space: nowrap;
  hyphens: none;
}
#screen-tournaments .tournaments-filters .tab.active {
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}
@media (min-width: 380px) {
  #screen-tournaments .tournaments-filters .tab {
    padding: 7px 7px;
    font-size: 0.78rem;
  }
}
@media (min-width: 420px) {
  #screen-tournaments .tournaments-filters .tab {
    font-size: 0.82rem;
    padding: 8px 8px;
  }
}

/* --- Турниры: первая строка — только вкладки «Турниры / Против ИИ» (заголовок h2 — sr-only) --- */
.tournaments-head-row {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tournaments-head-row .tournaments-type-tabs {
  flex: 1;
  min-width: 0;
  width: auto;
  margin-bottom: 0;
  flex-wrap: nowrap;
}
/* --- Турниры: этап (полная ширина) и ниже — все/мои --- */
.tournaments-filter-block-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  min-width: 0;
}
.tournaments-filter-block-header .tournaments-filter-block-label {
  margin-bottom: 0;
  flex: 0 1 auto;
  min-width: 0;
}
.tournaments-filter-block-header .tournaments-my-tabs {
  flex: 0 0 auto;
}
.tournaments-phase-strip {
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
}
.tournaments-phase-strip .tournaments-phase-tabs {
  width: 100%;
}
.tabs-inline {
  display: inline-flex;
  flex-wrap: nowrap;
  width: auto;
  flex: 0 0 auto;
  gap: 5px;
  margin-bottom: 0;
}
.tabs-inline .tab {
  flex: 0 1 auto;
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}
/* --- Турниры: подтип (обычные / против ИИ) --- */
.tournaments-type-tabs .tab {
  flex: 1 1 50%;
  min-width: 0;
  font-weight: 600;
}

/* --- Задания и колесо --- */
.quests-screen { padding-bottom: 12px; }
.quests-vault {
  position: relative;
  overflow: hidden;
  margin: 0 0 16px;
  padding: 16px 14px 14px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background:
    radial-gradient(90% 80% at 8% 0%, rgba(240, 216, 117, 0.22), transparent 46%),
    radial-gradient(70% 90% at 100% 100%, rgba(168, 85, 247, 0.12), transparent 48%),
    linear-gradient(160deg, #1a1408 0%, #0b0e18 52%, #10141f 100%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.quests-vault-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 236, 170, 0.14) 48%, transparent 64%);
  transform: translateX(-120%);
  animation: hmShine 4.2s ease-in-out infinite;
  pointer-events: none;
}
.quests-vault-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.quests-vault-copy { min-width: 0; }
.quests-vault-kicker {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 800;
}
.quests-vault-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.15;
}
.quests-vault-hint {
  margin: 4px 0 0;
  font-size: 0.74rem;
  color: #d7dbe6;
}
.quests-vault-tickets {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.qv-ticket {
  padding: 10px 10px 9px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.22);
}
.qv-ticket em {
  display: block;
  font-style: normal;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.qv-ticket b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 2px 0;
}
.qv-ticket span {
  font-size: 0.66rem;
  color: var(--text-muted);
}
.qv-ticket.is-epic {
  border-color: rgba(196, 140, 255, 0.4);
  background: rgba(168, 85, 247, 0.12);
}
.qv-ticket.is-epic b { color: #e9d5ff; }
.quests-vault-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qv-open {
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #1a1408;
  background: linear-gradient(180deg, #f6e08a, #d4af37);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.28);
  cursor: pointer;
}
.qv-buy {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
}
.qv-buy:disabled,
.qv-open:disabled { opacity: 0.4; }
.quests-week-hint {
  margin: 0 0 12px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.quests-tickets-hint {
  margin: 0 0 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.quests-spins-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.quests-spins-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 140px;
}
.quests-spins-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quests-spins-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.quests-spins-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
}
.quest-item {
  margin-bottom: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.quest-item-title {
  font-weight: 700;
  margin: 0 0 6px 0;
  font-size: 0.95rem;
}
.quest-item-desc {
  margin: 0 0 10px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.quest-progress-track {
  height: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.quest-progress-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  transition: width 0.35s ease;
}
.quest-progress-meta {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.quest-done-badge {
  color: var(--success);
  font-weight: 600;
  font-size: 0.78rem;
}
.quests-admin-panel {
  margin-top: 20px;
}
.quests-admin-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 12px 0;
}
.quests-admin-note code {
  font-size: 0.72rem;
  color: var(--gold-light);
}
.quests-admin-list {
  font-size: 0.8rem;
  margin-bottom: 12px;
  max-height: 220px;
  overflow-y: auto;
}
.quests-admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.quests-admin-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quests-admin-form label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.quests-admin-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font-size: 0.9rem;
}
.quests-admin-row-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.quests-admin-row-inline .quests-admin-input {
  flex: 1 1 160px;
  min-width: 0;
}

.quest-group-card {
  margin-bottom: 20px;
  padding: 16px 16px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(165deg, rgba(15, 20, 35, 0.95) 0%, rgba(10, 14, 26, 0.88) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.quest-group-title {
  margin: 0 0 8px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.quest-group-progress {
  margin: 0 0 12px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.quest-group-bonus {
  margin: 0 0 12px 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--success);
}
.quest-group-list .quest-item {
  margin-bottom: 10px;
}
.quest-group-list .quest-item:last-child {
  margin-bottom: 0;
}

#fortune-wheel-modal.case-modal {
  align-items: center;
  justify-content: center;
  padding: 12px;
}
#fortune-wheel-modal.case-modal .lineups-modal-backdrop {
  background: rgba(2, 4, 10, 0.82);
  backdrop-filter: blur(8px);
}
#fortune-wheel-modal.case-modal .fortune-wheel-modal-panel,
#fortune-wheel-modal .fortune-wheel-modal-panel {
  width: min(520px, 100%);
  max-width: 520px;
  height: auto;
  max-height: 92dvh;
  border-radius: 22px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(240, 216, 117, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(18, 22, 38, 0.98) 0%, rgba(8, 10, 18, 0.99) 100%);
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 40px rgba(212, 175, 55, 0.12);
}
#fortune-wheel-modal.is-epic-mode .fortune-wheel-modal-panel {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(168, 85, 247, 0.28), transparent 52%),
    radial-gradient(80% 50% at 80% 100%, rgba(240, 216, 117, 0.16), transparent 50%),
    linear-gradient(180deg, #14081c 0%, #080610 100%);
  border-color: rgba(196, 140, 255, 0.45);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 48px rgba(168, 85, 247, 0.22);
}
@media (max-width: 600px) {
  #fortune-wheel-modal.case-modal {
    align-items: center;
    padding: 10px;
  }
  #fortune-wheel-modal.case-modal .fortune-wheel-modal-panel,
  #fortune-wheel-modal .fortune-wheel-modal-panel {
    width: min(100%, 520px);
    height: auto;
    max-height: 92dvh;
    border-radius: 22px;
  }
}
.fortune-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 16px;
}
.fortune-mode-btn {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border-radius: 14px;
  padding: 11px 8px;
  cursor: pointer;
  font-family: var(--font);
}
.fortune-mode-btn strong { display: block; font-size: 0.92rem; color: var(--text); }
.fortune-mode-btn span { font-size: 0.68rem; }
.fortune-mode-btn.active {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.14);
}
.fortune-mode-btn.active strong { color: var(--gold-light); }
#fortune-wheel-modal.is-epic-mode .fortune-mode-btn.active {
  border-color: rgba(196, 140, 255, 0.65);
  background: rgba(168, 85, 247, 0.18);
}
#fortune-wheel-modal.is-epic-mode .fortune-mode-btn.active strong { color: #e9d5ff; }
.fortune-wheel-modal-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fortune-wheel-stage {
  position: relative;
  width: min(460px, 100%);
  height: 196px;
  margin: 4px auto 16px;
}
.fortune-wheel-stage--kitoboy {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}
.fortune-wheel-stage.is-epic {
  height: 214px;
  filter: drop-shadow(0 16px 36px rgba(140, 60, 220, 0.35));
}
.fortune-fx {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
#fortune-wheel-modal.is-epic-mode .fortune-fx,
.fortune-wheel-stage.is-spinning .fortune-fx { opacity: 1; }
.fortune-fx i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5d76e;
  box-shadow: 0 0 10px #f5d76e;
  animation: fortuneSpark 2.4s ease-in-out infinite;
}
.fortune-fx i:nth-child(1) { left: 8%; top: 18%; animation-delay: 0s; }
.fortune-fx i:nth-child(2) { left: 88%; top: 22%; animation-delay: -0.4s; }
.fortune-fx i:nth-child(3) { left: 16%; top: 78%; animation-delay: -0.8s; }
.fortune-fx i:nth-child(4) { left: 80%; top: 72%; animation-delay: -1.2s; }
.fortune-fx i:nth-child(5) { left: 48%; top: 6%; animation-delay: -1.6s; }
.fortune-fx i:nth-child(6) { left: 52%; top: 90%; animation-delay: -2s; }
#fortune-wheel-modal.is-epic-mode .fortune-fx i {
  background: #e9d5ff;
  box-shadow: 0 0 12px #c084fc;
}
@keyframes fortuneSpark {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.3); }
}
.fortune-wheel-outer-glow {
  position: absolute;
  inset: -10%;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: fortuneWheelGlowPulse 3.5s ease-in-out infinite;
}
#fortune-wheel-modal.is-epic-mode .fortune-wheel-outer-glow {
  background: radial-gradient(circle, rgba(192, 132, 252, 0.4) 0%, transparent 68%);
}
@keyframes fortuneWheelGlowPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.fortune-case-window {
  position: absolute;
  inset: 22px 6px 10px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background:
    linear-gradient(180deg, rgba(17, 24, 40, 0.96) 0%, rgba(8, 12, 22, 0.96) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 -16px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 2;
}
#fortune-wheel-modal.is-epic-mode .fortune-case-window {
  border-color: rgba(196, 140, 255, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(233, 213, 255, 0.08),
    0 0 24px rgba(168, 85, 247, 0.2);
}
.fortune-case-window::before,
.fortune-case-window::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  z-index: 4;
  pointer-events: none;
}
.fortune-case-window::before {
  left: 0;
  background: linear-gradient(90deg, rgba(8, 10, 16, 0.88), transparent);
}
.fortune-case-window::after {
  right: 0;
  background: linear-gradient(270deg, rgba(8, 10, 16, 0.88), transparent);
}
.fortune-case-track-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.fortune-case-track {
  position: absolute;
  top: 10px;
  left: 0;
  height: calc(100% - 20px);
  display: flex;
  align-items: stretch;
  gap: 10px;
  will-change: transform;
}
.fortune-case-track.is-idle {
  filter: saturate(1.05);
}
.fortune-case-item {
  width: 118px;
  min-width: 118px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(28, 38, 62, 0.95) 0%, rgba(17, 24, 38, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 6px 16px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 8px;
}
.fortune-wheel-stage.is-epic .fortune-case-item {
  width: 132px;
  min-width: 132px;
}
.fortune-case-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #1a1408;
  background: linear-gradient(180deg, #f6e08a, #d4af37);
}
#fortune-wheel-modal.is-epic-mode .fortune-case-ico {
  background: linear-gradient(180deg, #f3d27a, #a855f7);
  color: #fff;
}
.fortune-case-item.is-usdt {
  border-color: rgba(34, 197, 94, 0.45);
}
.fortune-case-item.is-premium_days {
  border-color: rgba(147, 51, 234, 0.48);
}
.fortune-case-item.is-none {
  border-color: rgba(248, 113, 113, 0.36);
}
.fortune-case-label {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: #f8f6ef;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  margin: 0 0 4px 0;
}
.fortune-case-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.2;
}
.fortune-wheel-pointer {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
}
.fortune-wheel-pointer--kitoboy {
  top: 4px;
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 20px solid var(--gold);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.45));
}
#fortune-wheel-modal.is-epic-mode .fortune-wheel-pointer--kitoboy {
  border-top-color: #e9d5ff;
  filter: drop-shadow(0 0 12px rgba(196, 140, 255, 0.7));
}
.fortune-case-pointer::after {
  content: '';
  position: absolute;
  left: -1px;
  top: 20px;
  width: 2px;
  height: 150px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.8) 0%, rgba(212, 175, 55, 0.02) 100%);
}
#fortune-wheel-modal.is-epic-mode .fortune-case-pointer::after {
  background: linear-gradient(180deg, rgba(233, 213, 255, 0.85) 0%, transparent 100%);
}
.fortune-wheel-status {
  min-height: 1.4em;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 10px 0;
}
.fortune-case-reveal {
  margin: 0 0 12px 0;
}
.fortune-case-reveal-card {
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: linear-gradient(165deg, rgba(30, 40, 62, 0.95) 0%, rgba(15, 20, 34, 0.95) 100%);
  padding: 12px 12px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.fortune-case-reveal-title {
  margin: 0 0 4px 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fortune-case-reveal-label {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-light);
}
.fortune-case-reveal-meta {
  margin: 4px 0 10px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.fortune-wheel-spin-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0 auto 16px;
}
.fortune-spin-main {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 15px 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1408;
  background: linear-gradient(180deg, #f6e08a, #d4af37);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.32);
  cursor: pointer;
}
.fortune-spin-main.is-epic {
  color: #fff;
  background: linear-gradient(180deg, #e9d5ff, #a855f7 55%, #7c3aed);
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.4);
}
.fortune-spin-main:disabled,
.fortune-spin-paid:disabled {
  opacity: 0.4;
  cursor: default;
}
.fortune-spin-paid {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 11px 14px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
}
.fortune-catalog {
  text-align: left;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.fortune-catalog-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fortune-catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fortune-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.22);
}
.fortune-cat-item .fortune-case-ico {
  margin: 0;
  flex-shrink: 0;
}
.fortune-cat-item b {
  display: block;
  font-size: 0.74rem;
  line-height: 1.2;
}
.fortune-cat-item em {
  display: block;
  font-style: normal;
  font-size: 0.64rem;
  color: var(--text-muted);
}
.fortune-catalog-empty {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ЛЧ — starball branding (navy / horizon blue / silver) */
body.ucl-theme {
  --ucl-navy: #00050a;
  --ucl-navy-2: #020b1a;
  --ucl-cyan: #4db8ff;
  --ucl-cyan-soft: rgba(0, 136, 206, 0.22);
  --ucl-cyan-line: rgba(120, 200, 255, 0.38);
  --ucl-silver: #e8eef6;
  --ucl-horizon: #0088ce;
  --ucl-glass: rgba(2, 10, 24, 0.62);
  --ucl-glass-strong: rgba(0, 6, 16, 0.82);
  background: var(--ucl-navy);
  color: var(--ucl-silver);
}
body.ucl-theme .app-wrap {
  /* официальный starball-баннер; cover + center — обрезка слева/справа */
  background-color: var(--ucl-navy);
  background-image:
    linear-gradient(180deg, rgba(0, 5, 12, 0.35) 0%, rgba(0, 5, 12, 0.08) 38%, rgba(0, 5, 12, 0.58) 100%),
    url("/assets/ucl-bg.png?v=20260809starball1");
  background-position: center center, center center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll;
  min-height: 100vh;
  min-height: 100dvh;
}
body.ucl-theme .bg-layer {
  opacity: 0 !important;
  visibility: hidden;
}
body.ucl-theme .content,
body.ucl-theme .main-col,
body.ucl-theme .main-content,
body.ucl-theme .app-header,
body.ucl-theme .brand-col {
  background: transparent !important;
}
body.ucl-theme .app-header,
body.ucl-theme .page-title,
body.ucl-theme .brand-name {
  color: #f2f7ff;
  text-shadow: 0 0 18px rgba(0, 232, 255, 0.22);
}
body.ucl-theme .bottom-nav {
  background: rgba(0, 10, 26, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid var(--ucl-cyan-line);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
}
body.ucl-theme .bottom-nav-item {
  color: rgba(216, 230, 245, 0.72);
}
body.ucl-theme .bottom-nav-item.active {
  color: var(--ucl-cyan);
  text-shadow: 0 0 12px rgba(0, 232, 255, 0.35);
}
body.ucl-theme .btn-primary {
  background: linear-gradient(180deg, #3aa8ef 0%, #0069a8 100%);
  border-color: rgba(120, 200, 255, 0.55);
  color: #041018;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 136, 206, 0.35);
}
body.ucl-theme .btn-primary:active {
  filter: brightness(1.06);
}
body.ucl-theme select,
body.ucl-theme #ucl-team-select,
body.ucl-theme .ucl-team-select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background-color: rgba(0, 10, 28, 0.88);
  background-image:
    linear-gradient(45deg, transparent 50%, #8fd0ff 50%),
    linear-gradient(135deg, #8fd0ff 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: #f4f9ff;
  border: 1px solid rgba(120, 200, 255, 0.45);
  border-radius: 12px;
  padding: 11px 36px 11px 12px;
  font: inherit;
  font-weight: 600;
  color-scheme: dark;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
body.ucl-theme select:focus,
body.ucl-theme #ucl-team-select:focus,
body.ucl-theme .ucl-team-select:focus {
  outline: none;
  border-color: rgba(143, 208, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(0, 136, 206, 0.2);
}
body.ucl-theme select option {
  background: #061428;
  color: #f4f9ff;
}
body.ucl-theme .back button {
  color: var(--ucl-cyan);
  background: transparent;
  border: none;
}
.ucl-screen {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 120px);
  background: transparent;
}
.ucl-screen-bg {
  display: none;
}
.ucl-screen-content {
  position: relative;
  z-index: 1;
}
.ucl-page-title,
.ucl-season-hero .page-title {
  color: #f4f9ff;
  text-shadow: 0 0 22px rgba(0, 232, 255, 0.35), 0 2px 12px rgba(0, 0, 0, 0.55);
}
.ucl-hub-intro {
  margin: -8px 0 12px 0;
  color: rgba(216, 230, 245, 0.78);
  font-size: 0.95rem;
}
.ucl-hub-bullets {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ucl-glass);
  border: 1px solid var(--ucl-cyan-line);
  box-shadow: 0 0 24px rgba(0, 232, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.88rem;
  color: rgba(216, 230, 245, 0.85);
}
.ucl-hub-bullets li { margin: 4px 0; }
.ucl-campaigns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ucl-campaign-card {
  position: relative;
  border-radius: 18px;
  padding: 20px 16px 16px;
  background:
    linear-gradient(155deg, rgba(0, 40, 72, 0.55), rgba(0, 10, 28, 0.88)),
    radial-gradient(ellipse 80% 60% at 90% 0%, rgba(0, 232, 255, 0.14), transparent 55%);
  border: 1px solid var(--ucl-cyan-line);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.ucl-campaign-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ucl-cyan);
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(0, 232, 255, 0.4);
}
.ucl-campaign-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #f4f9ff;
}
.ucl-campaign-desc {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: rgba(216, 230, 245, 0.75);
}
.ucl-campaign-facts {
  margin: 0 0 14px;
  padding-left: 1.1em;
  font-size: 0.88rem;
  color: rgba(216, 230, 245, 0.72);
}
.ucl-admin-panel {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--ucl-cyan-line);
  background: rgba(0, 0, 0, 0.28);
}
.ucl-admin-panel h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--ucl-silver);
}
.ucl-season-hero {
  margin-bottom: 10px;
}
.ucl-season-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 4px;
}
.ucl-season-hero-top .page-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.ucl-phase-pill {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ucl-cyan);
  background: var(--ucl-cyan-soft);
  border: 1px solid var(--ucl-cyan-line);
  box-shadow: 0 0 16px rgba(77, 184, 255, 0.18);
  white-space: nowrap;
}
.ucl-season-tagline {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: rgba(232, 238, 246, 0.72);
}
.ucl-season-dash {
  margin-bottom: 14px;
}
.ucl-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.ucl-metric {
  padding: 10px 8px;
  border-radius: 12px;
  background: var(--ucl-glass);
  border: 1px solid rgba(120, 200, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}
.ucl-metric-bank {
  border-color: rgba(120, 200, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 136, 206, 0.14);
}
.ucl-metric-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 238, 246, 0.55);
  margin-bottom: 4px;
}
.ucl-metric-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f4f9ff;
  line-height: 1.15;
}
.ucl-metric-value small {
  display: inline-block;
  margin-left: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ucl-cyan);
  vertical-align: 1px;
}
.ucl-reg-timer {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(0, 48, 80, 0.55), rgba(0, 10, 28, 0.82));
  border: 1px solid rgba(120, 200, 255, 0.4);
  box-shadow: 0 0 22px rgba(0, 136, 206, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ucl-reg-timer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ucl-reg-timer-label {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(232, 238, 246, 0.78);
}
.ucl-reg-countdown {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 800;
  color: #8fd0ff;
  text-shadow: 0 0 12px rgba(0, 136, 206, 0.35);
  letter-spacing: 0.02em;
}
.ucl-reg-countdown.is-expired,
.ucl-reg-countdown--pending {
  color: rgba(232, 238, 246, 0.55);
  text-shadow: none;
  font-size: 0.9rem;
}
.ucl-reg-timer-match {
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(232, 238, 246, 0.55);
  line-height: 1.3;
}
.ucl-dash-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.ucl-dash-actions .btn {
  flex: 1 1 0;
  min-width: 0;
}
.ucl-btn-rules {
  border-color: rgba(120, 200, 255, 0.4) !important;
  color: var(--ucl-silver) !important;
  background: rgba(0, 10, 24, 0.45) !important;
}
.ucl-dash-hint {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(232, 238, 246, 0.65);
  line-height: 1.35;
}
.ucl-team-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(0, 36, 64, 0.55), rgba(0, 10, 28, 0.82));
  border: 1px solid rgba(120, 200, 255, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.ucl-team-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ucl-team-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8fd0ff;
}
.ucl-team-select-wrap {
  width: 100%;
}
.ucl-team-hint {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(232, 238, 246, 0.55);
}
/* Отдельный онбординг правил ЛЧ (не связан с общим) */
.ucl-onboarding {
  position: fixed; inset: 0; z-index: 1200;
  display: none; align-items: flex-end; justify-content: center;
  padding: 0; pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.ucl-onboarding.show {
  pointer-events: auto; opacity: 1; visibility: visible;
}
@media (min-width: 640px) {
  .ucl-onboarding { align-items: center; padding: 16px; }
}
.ucl-onboarding-backdrop {
  position: absolute; inset: 0; background: rgba(0, 4, 12, 0.78);
}
.ucl-onboarding-panel {
  position: relative; width: min(100vw, 440px); max-width: 100%; max-height: 92vh;
  background: linear-gradient(180deg, #061428 0%, #020810 100%);
  border: 1px solid rgba(120, 200, 255, 0.35);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 136, 206, 0.12);
  display: flex; flex-direction: column; overflow: hidden;
  color: #e8eef6;
}
@media (min-width: 640px) {
  .ucl-onboarding-panel { border-radius: 16px; max-height: 88vh; }
}
.ucl-onboarding-chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 0; flex-shrink: 0;
}
.ucl-onboarding-skip {
  appearance: none; border: 0; background: transparent;
  color: rgba(232, 238, 246, 0.65); font: inherit; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; padding: 6px 0;
}
.ucl-onboarding-skip:hover { color: #8fd0ff; }
.ucl-onboarding-count {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(232, 238, 246, 0.55);
}
.ucl-onboarding-scroll {
  overflow-y: auto; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch;
  padding: 8px 0 4px;
}
.ucl-onboarding-progress {
  display: flex; gap: 6px; padding: 8px 16px 0;
}
.ucl-onboarding-dot {
  flex: 1; height: 4px; border-radius: 2px;
  background: rgba(120, 200, 255, 0.15);
}
.ucl-onboarding-dot.active {
  background: linear-gradient(90deg, #4db8ff, #0088ce);
}
.ucl-onboarding-kicker {
  margin: 10px 16px 0; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #4db8ff;
}
.ucl-onboarding-visual {
  margin: 10px 16px 0; min-height: 120px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(0, 136, 206, 0.16), rgba(0, 136, 206, 0.04));
  border: 1px solid rgba(120, 200, 255, 0.28);
  border-radius: 12px; overflow: hidden;
}
.ucl-onboarding-visual:empty { display: none; }
.ucl-onboarding-title {
  margin: 12px 16px 0; font-size: 1.25rem; font-weight: 800; color: #f4f9ff;
}
.ucl-onboarding-body {
  margin: 8px 16px 0; font-size: 0.92rem; line-height: 1.45;
  color: rgba(232, 238, 246, 0.9);
}
.ucl-onboarding-body p { margin: 0 0 10px; }
.ucl-onboarding-body ul, .ucl-onboarding-body ol {
  margin: 0 0 10px; padding-left: 1.2em;
}
.ucl-onboarding-body li { margin: 0 0 6px; }
.ucl-onboarding-example {
  margin: 8px 16px 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(0, 136, 206, 0.12);
  border: 1px solid rgba(120, 200, 255, 0.22);
  font-size: 0.84rem; color: rgba(232, 238, 246, 0.78); line-height: 1.35;
}
.ucl-onboarding-footer {
  flex-shrink: 0; padding: 12px 16px 16px;
  border-top: 1px solid rgba(120, 200, 255, 0.15);
  background: rgba(0, 6, 16, 0.6);
}
.ucl-onboarding-actions {
  display: flex; gap: 8px;
}
.ucl-onboarding-actions .btn { flex: 1; }
.ucl-onboarding-actions .btn-primary {
  background: linear-gradient(180deg, #3aa8ef 0%, #0069a8 100%);
  border-color: rgba(120, 200, 255, 0.55);
  color: #041018; font-weight: 700;
}
.ucl-onboarding-actions .btn-outline {
  border-color: rgba(120, 200, 255, 0.35);
  color: #e8eef6; background: transparent;
}

.ucl-ob-mock { width: 100%; padding: 12px; display: grid; gap: 8px; }
.ucl-ob-hero-line {
  text-align: center; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: #8fd0ff;
}
.ucl-ob-vs {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center;
}
.ucl-ob-side {
  padding: 10px 8px; border-radius: 10px; text-align: center;
  background: rgba(0, 10, 24, 0.65); border: 1px solid rgba(120, 200, 255, 0.2);
}
.ucl-ob-side b { display: block; color: #f4f9ff; font-size: 0.9rem; }
.ucl-ob-side span { display: block; margin-top: 2px; font-size: 0.68rem; color: rgba(232,238,246,0.55); }
.ucl-ob-side.is-you { border-color: rgba(120, 200, 255, 0.55); box-shadow: 0 0 14px rgba(0,136,206,0.2); }
.ucl-ob-score {
  font-size: 0.85rem; font-weight: 900; color: #4db8ff;
  padding: 6px 8px; border-radius: 999px; background: rgba(0,136,206,0.18);
}
.ucl-ob-caption {
  margin: 0; text-align: center; font-size: 0.72rem; color: rgba(232,238,246,0.65); line-height: 1.3;
}
.ucl-ob-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.ucl-ob-metrics > div {
  padding: 8px 6px; border-radius: 10px; text-align: center;
  background: rgba(0,10,24,0.65); border: 1px solid rgba(120,200,255,0.2);
}
.ucl-ob-metrics span { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(232,238,246,0.5); }
.ucl-ob-metrics b { display: block; margin-top: 3px; font-size: 0.78rem; color: #f4f9ff; }
.ucl-ob-fake-btn {
  text-align: center; font-size: 0.82rem; font-weight: 800; padding: 10px;
  border-radius: 10px; color: #041018;
  background: linear-gradient(180deg, #3aa8ef, #0069a8);
}
.ucl-ob-match {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid rgba(120,200,255,0.12); font-size: 0.8rem;
}
.ucl-ob-match:last-of-type { border-bottom: 0; }
.ucl-ob-picks { display: flex; gap: 4px; }
.ucl-ob-picks i {
  font-style: normal; min-width: 30px; text-align: center; font-size: 0.72rem; font-weight: 800;
  padding: 5px 6px; border-radius: 7px; border: 1px solid rgba(120,200,255,0.25); color: rgba(232,238,246,0.55);
}
.ucl-ob-picks i.is-on {
  color: #041018; background: #4db8ff; border-color: #8fd0ff;
}
.ucl-ob-diff { display: grid; gap: 4px; font-size: 0.72rem; }
.ucl-ob-diff-h, .ucl-ob-diff > div {
  display: grid; grid-template-columns: 1.4fr 0.5fr 0.5fr 0.8fr; gap: 4px; align-items: center;
  padding: 7px 8px; border-radius: 8px;
}
.ucl-ob-diff-h { color: rgba(232,238,246,0.5); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.ucl-ob-diff > div { background: rgba(0,10,24,0.55); border: 1px solid rgba(120,200,255,0.15); }
.ucl-ob-diff > div.is-same { opacity: 0.75; }
.ucl-ob-diff > div.is-win { border-color: rgba(120,200,255,0.45); }
.ucl-ob-diff > div.is-lose { border-color: rgba(255,142,200,0.35); }
.ucl-ob-mini-title {
  margin: 0; font-size: 0.8rem; font-weight: 800; color: #8fd0ff; text-align: center;
}
.ucl-ob-ex-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.ucl-ob-ex-grid > div {
  padding: 8px; border-radius: 10px; text-align: center;
  background: rgba(0,10,24,0.65); border: 1px solid rgba(120,200,255,0.2);
}
.ucl-ob-ex-grid > div.is-you { border-color: rgba(120,200,255,0.55); }
.ucl-ob-ex-grid b { display: block; font-size: 0.82rem; color: #f4f9ff; }
.ucl-ob-ex-grid span { display: block; margin-top: 2px; font-size: 0.68rem; color: rgba(232,238,246,0.55); }
.ucl-ob-result {
  padding: 8px 10px; border-radius: 10px; text-align: center; font-size: 0.78rem;
}
.ucl-ob-result.is-goal {
  background: rgba(0,136,206,0.18); border: 1px solid rgba(120,200,255,0.4); color: #d8f0ff;
}
.ucl-ob-result.is-void {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: rgba(232,238,246,0.7);
}
.ucl-ob-points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.ucl-ob-points > div {
  padding: 8px 4px; border-radius: 10px; text-align: center;
  background: rgba(0,10,24,0.65); border: 1px solid rgba(120,200,255,0.2);
}
.ucl-ob-points span { display: block; font-size: 0.62rem; color: rgba(232,238,246,0.5); text-transform: uppercase; }
.ucl-ob-points b { display: block; margin-top: 2px; color: #8fd0ff; font-size: 0.95rem; }
.ucl-ob-path {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
}
.ucl-ob-path > div {
  flex: 1; padding: 8px 4px; border-radius: 10px; text-align: center;
  background: rgba(0,10,24,0.65); border: 1px solid rgba(120,200,255,0.2);
}
.ucl-ob-path > div.is-on { border-color: rgba(120,200,255,0.55); box-shadow: 0 0 12px rgba(0,136,206,0.2); }
.ucl-ob-path b { display: block; color: #4db8ff; font-size: 0.85rem; }
.ucl-ob-path span { display: block; font-size: 0.62rem; color: rgba(232,238,246,0.65); margin-top: 2px; }
.ucl-ob-path > i { font-style: normal; color: #4db8ff; font-weight: 800; font-size: 0.75rem; }
.ucl-ob-zones { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.ucl-ob-zones span {
  font-size: 0.68rem; font-weight: 700; padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(120,200,255,0.25); color: rgba(232,238,246,0.7);
}
.ucl-ob-zones .is-direct { color: #8fd0ff; border-color: rgba(120,200,255,0.5); }
.ucl-ob-zones .is-playoff { color: #ff8ec8; border-color: rgba(255,142,200,0.4); }
.ucl-ob-zones .is-out { opacity: 0.55; }
.ucl-ob-prize {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(0,10,24,0.65); border: 1px solid rgba(120,200,255,0.22);
}
.ucl-ob-prize.is-1 { border-color: rgba(143,208,255,0.55); box-shadow: 0 0 16px rgba(0,136,206,0.16); }
.ucl-ob-prize span {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(77,184,255,0.18); color: #8fd0ff; font-weight: 800; font-size: 0.78rem;
}
.ucl-ob-prize b { color: #f4f9ff; font-size: 0.88rem; }
.ucl-ob-prize em { font-style: normal; color: #8fd0ff; font-weight: 800; font-size: 0.85rem; white-space: nowrap; }
.ucl-ob-tabs {
  display: flex; gap: 6px;
}
.ucl-ob-tabs span {
  flex: 1; text-align: center; font-size: 0.7rem; font-weight: 700; padding: 7px 4px;
  border-radius: 8px; border: 1px solid rgba(120,200,255,0.2); color: rgba(232,238,246,0.55);
}
.ucl-ob-tabs span.is-on {
  color: #041018; background: linear-gradient(180deg, #8fd0ff, #2a9adf); border-color: transparent;
}
.ucl-ob-tab-card {
  border: 1px solid rgba(120,200,255,0.22); border-radius: 10px; padding: 10px;
  background: rgba(0,10,24,0.65);
}
.ucl-ob-tab-card > div {
  display: flex; justify-content: space-between; gap: 8px; font-size: 0.78rem;
  margin-bottom: 6px; color: rgba(232,238,246,0.55);
}
.ucl-ob-tab-card > div:last-child { margin-bottom: 0; }
.ucl-ob-tab-card b { color: #f4f9ff; font-weight: 700; text-align: right; }

.ucl-ob-slider-wrap {
  padding: 10px 8px 4px;
  border-radius: 12px;
  background: rgba(0, 10, 24, 0.55);
  border: 1px solid rgba(120, 200, 255, 0.22);
}
.ucl-ob-slider-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: rgba(232, 238, 246, 0.65); margin-bottom: 6px;
}
.ucl-ob-slider-head strong { color: #8fd0ff; font-size: 1rem; }
#ucl-ob-zone-slider {
  width: 100%; accent-color: #2a9adf; cursor: pointer;
}
.ucl-ob-slider-scale {
  display: flex; justify-content: space-between;
  font-size: 0.65rem; color: rgba(232, 238, 246, 0.45); margin-top: 2px;
}
#ucl-ob-zone-preview { margin-top: 4px; }
.ucl-ob-zone-list {
  margin: 0; padding-left: 1.1em; font-size: 0.78rem; line-height: 1.4;
}
.ucl-ob-zone-list li { margin: 0 0 4px; }
.ucl-ob-zone-list .is-direct { color: #8fd0ff; font-weight: 700; }
.ucl-ob-zone-list .is-playoff { color: #ff8ec8; font-weight: 700; }
.ucl-ob-zone-list .is-out { color: rgba(232, 238, 246, 0.55); font-weight: 700; }
.ucl-ob-zone-round {
  margin: 6px 0 0; font-size: 0.72rem; color: rgba(232, 238, 246, 0.65); text-align: center;
}
.ucl-ob-zone-empty {
  margin: 0; font-size: 0.78rem; color: rgba(232, 238, 246, 0.65); text-align: center;
}
.ucl-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 10, 28, 0.45);
  border: 1px solid rgba(0, 232, 255, 0.2);
}
.ucl-tab {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(216, 230, 245, 0.65);
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ucl-tab.active {
  color: #041018;
  font-weight: 700;
  border-color: rgba(120, 200, 255, 0.7);
  background: linear-gradient(180deg, #8fd0ff 0%, #2a9adf 100%);
  box-shadow: 0 0 18px rgba(0, 136, 206, 0.35);
}
.ucl-panel {
  padding: 4px 0 20px;
}
.ucl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  background: var(--ucl-glass);
  border: 1px solid rgba(0, 232, 255, 0.28);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ucl-table th {
  background: rgba(0, 232, 255, 0.1);
  color: var(--ucl-cyan);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.ucl-table th, .ucl-table td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 232, 255, 0.1);
  color: var(--ucl-silver);
}
.ucl-table tr:last-child td { border-bottom: none; }
.ucl-table th:nth-child(2), .ucl-table td:nth-child(2) {
  text-align: left;
}
.ucl-table tr.zone-direct td:first-child { color: var(--ucl-cyan); text-shadow: 0 0 8px rgba(0, 232, 255, 0.35); }
.ucl-table tr.zone-playoff td:first-child { color: #ff8ec8; }
.ucl-table tr.zone-out td:first-child { color: rgba(216, 230, 245, 0.45); }
.ucl-match-card {
  padding: 14px;
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(0, 36, 64, 0.55), rgba(0, 10, 28, 0.82));
  border: 1px solid var(--ucl-cyan-line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 232, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 12px;
  color: var(--ucl-silver);
}
.ucl-match-card h3,
.ucl-match-card strong {
  color: #f4f9ff;
}
.ucl-slate-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 232, 255, 0.12);
  font-size: 0.88rem;
}
.ucl-slate-row:last-child { border-bottom: none; }
.ucl-pick-btns {
  display: flex;
  gap: 4px;
}
.ucl-pick-btns button {
  min-width: 36px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0, 232, 255, 0.28);
  background: rgba(0, 8, 22, 0.45);
  color: var(--ucl-silver);
  cursor: pointer;
}
.ucl-pick-btns button.active {
  border-color: rgba(0, 232, 255, 0.85);
  background: linear-gradient(180deg, rgba(0, 232, 255, 0.35), rgba(0, 140, 180, 0.35));
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 232, 255, 0.35);
  font-weight: 700;
}
.ucl-bracket-round {
  margin-bottom: 16px;
}
.ucl-bracket-round h3 {
  color: var(--ucl-cyan);
  font-size: 0.95rem;
  margin: 0 0 8px;
  text-shadow: 0 0 12px rgba(0, 232, 255, 0.25);
}
.ucl-bracket-match {
  padding: 10px 12px;
  margin: 6px 0;
  border-radius: 12px;
  background: var(--ucl-glass);
  border: 1px solid rgba(0, 232, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.88rem;
  color: var(--ucl-silver);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.ucl-bracket-match strong {
  color: var(--ucl-cyan);
}
body.has-bottom-nav .bottom-nav-item {
  min-width: 0;
}
@media (max-width: 380px) {
  .bottom-nav-item span:not(.nav-icon) { font-size: 0.6rem; }
}

/* ЧМ-26 hub */
body.wc-theme .app-main {
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(20, 80, 140, 0.35), transparent 55%),
    var(--bg, #0a1220);
}
.wc-screen {
  position: relative;
  overflow: hidden;
}
.wc-screen-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 200, 60, 0.1), transparent 35%),
    radial-gradient(circle at 15% 88%, rgba(40, 120, 220, 0.12), transparent 40%);
  opacity: 0.85;
}
.wc-screen-content {
  position: relative;
  z-index: 1;
}
.wc-page-title {
  text-shadow: 0 2px 20px rgba(80, 160, 255, 0.25);
}
.wc-hub-intro {
  margin: -8px 0 16px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.wc-campaigns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wc-campaign-card {
  position: relative;
  border-radius: 18px;
  padding: 20px 16px 16px;
  background: linear-gradient(155deg, rgba(35, 70, 120, 0.5), rgba(8, 16, 32, 0.92));
  border: 1px solid rgba(100, 180, 255, 0.22);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.wc-campaign-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 80, 0.15), transparent 70%);
}
.wc-campaign-bracket {
  border-color: rgba(255, 190, 70, 0.4);
  background: linear-gradient(155deg, rgba(60, 45, 20, 0.35), rgba(8, 16, 32, 0.92));
}
.wc-campaign-road {
  border-color: rgba(80, 220, 160, 0.3);
}
.wc-campaign-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd080;
  margin-bottom: 6px;
}
.bracket-intro {
  margin-bottom: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(20, 40, 70, 0.45);
  border: 1px solid rgba(100, 180, 255, 0.18);
}
.bracket-intro-body { margin-bottom: 4px; }
.bracket-intro-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #c8daf0;
  white-space: pre-line;
}
.bracket-intro-desc:last-child { margin-bottom: 0 !important; }
.bracket-intro-hint {
  margin: 0;
  font-size: 0.88rem;
  color: #c8daf0;
  line-height: 1.45;
}
.bracket-intro-block { margin-top: 10px; }
.bracket-intro-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.bracket-reg-wave {
  font-size: 0.85rem;
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.bracket-reg-wave:first-of-type { border-top: none; }
.bracket-status-ok { color: #6ee7a0; font-weight: 600; }
.bracket-status-sub {
  width: 100%;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.wc-campaign-title {
  margin: 0 0 10px 0;
  font-family: var(--font-display, inherit);
  font-size: 1.2rem;
}
.wc-campaign-desc {
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.wc-campaign-facts {
  margin: 0 0 14px 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.wc-campaign-facts li { margin: 4px 0; }

/* Экран кубка */
.bracket-hero {
  margin-bottom: 16px;
}
.bracket-hero .page-title { margin: 0 0 6px 0; font-size: 1.25rem; }
.bracket-phase-pill {
  margin: 4px 0 0;
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 200, 80, 0.15);
  color: #ffd080;
  border: 1px solid rgba(255, 200, 80, 0.25);
}
.bracket-tour-cta {
  margin-bottom: 14px;
}
.bracket-tour-btn {
  width: 100%;
  font-size: 1rem;
  padding: 14px 16px;
  box-shadow: 0 6px 20px rgba(80, 140, 255, 0.25);
}
.bracket-tour-hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
.bracket-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.bracket-chip {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bracket-my-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30, 60, 100, 0.35);
  border: 1px solid rgba(100, 180, 255, 0.2);
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.bracket-status-label { color: var(--text-muted); font-size: 0.8rem; }
.bracket-status-main { color: #7eb8ff; font-weight: 600; }
.bracket-status-cons { color: #ffd080; }
.bracket-duel-note { width: 100%; margin: 4px 0 0; font-size: 0.85rem; }
.bracket-reg-actions { margin-bottom: 16px; }
.bracket-teams-panel {
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(160deg, rgba(22, 42, 72, 0.92), rgba(8, 14, 28, 0.98));
  border: 1px solid rgba(100, 180, 255, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.bracket-teams-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.bracket-teams-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e8f2ff;
}
.bracket-teams-panel-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
  white-space: nowrap;
}
.bracket-teams-panel-badge.is-empty {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.12);
}
.bracket-team-list {
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bracket-team-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.bracket-team-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.bracket-team-item-body {
  flex: 1;
  min-width: 0;
}
.bracket-team-item-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #e8f0ff;
}
.bracket-team-item-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.bracket-team-item-check {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #6ee7a0;
  font-weight: 700;
}
.bracket-teams-empty-state {
  margin: 0 0 14px 0;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(100, 180, 255, 0.28);
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}
.bracket-teams-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bracket-add-team-btn {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
}
.bracket-teams-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}
.bracket-enter-modal-text {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}
.bracket-enter-modal-actions {
  display: flex;
  gap: 10px;
}
.bracket-enter-modal-actions .btn { flex: 1; }
/* === BRACKET PLAYOFF — dark theme match === */
.bracket-hero {
  margin-bottom: 16px;
}
.bracket-hero .page-title {
  margin: 0 0 6px 0;
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  background: linear-gradient(135deg, #ffd080 30%, #d4af37 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Playoff section */
.bracket-section-playoff {
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 190, 70, 0.18);
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.bracket-playoff-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
}
.bracket-playoff-header .bracket-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* Playoff stage tabs */
.bracket-playoff-tabs {
  display: flex;
  gap: 0;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bracket-playoff-tab {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-align: center;
}
.bracket-playoff-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.2s;
}
.bracket-playoff-tab.active {
  color: var(--gold-light);
}
.bracket-playoff-tab.active::after {
  background: var(--gold);
}
.bracket-playoff-tab:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* Playoff tree container */
.bracket-playoff-tree {
  padding: 14px 12px;
}

/* Matchup card */
.bracket-matchup-card {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.bracket-matchup-card:last-child {
  margin-bottom: 0;
}
.bracket-matchup-card:hover {
  border-color: rgba(255, 190, 70, 0.2);
}
.bracket-matchup-card.processed {
  border-color: rgba(255, 190, 70, 0.12);
}

.bracket-matchup-players {
  display: flex;
  flex-direction: column;
}

.bracket-matchup-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  gap: 10px;
}
.bracket-matchup-player:first-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.bracket-matchup-player.winner {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.08) 0%, transparent 60%);
}
.bracket-matchup-player.is-me {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
}
.bracket-matchup-player.winner.is-me {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(34, 197, 94, 0.06) 100%);
}

.bracket-player-name {
  font-size: 0.88rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  color: var(--text);
}
.bracket-player-name.me {
  color: #7eb8ff;
  font-weight: 600;
}
.bracket-player-name.winner {
  color: var(--success);
  font-weight: 600;
}

.bracket-player-score {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e8f0ff;
  min-width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bracket-player-score.pending {
  color: var(--text-muted);
  font-weight: 400;
}

.bracket-matchup-vs {
  text-align: center;
  padding: 2px 0;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

/* Live indicator */
.bracket-matchup-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.bracket-matchup-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: bracket-pulse 1.5s ease-in-out infinite;
}
@keyframes bracket-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { opacity: 0.5; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

/* Bracket two-column layout */
.bracket-playoff-dual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bracket-playoff-half {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bracket-playoff-half-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 2px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bracket-playoff-final-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.bracket-playoff-final-wrap .bracket-matchup-card {
  max-width: 280px;
  width: 100%;
}
.bracket-playoff-final-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 2px;
}

/* Two-column bracket for wider screens */
@media (min-width: 520px) {
  .bracket-playoff-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .bracket-playoff-half {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .bracket-playoff-half-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0 2px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .bracket-playoff-final-wrap {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .bracket-playoff-final-wrap .bracket-matchup-card {
    max-width: 280px;
    width: 100%;
  }
  .bracket-playoff-final-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 2px;
  }
}


/* Collapsible groups — matches bracket-section style */
.bracket-section-collapsible {
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 14px;
}
.bracket-collapsible-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.bracket-collapsible-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
}
.bracket-collapsible-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.25s;
}
.bracket-section-collapsible.open .bracket-collapsible-arrow {
  transform: rotate(90deg);
}
.bracket-collapsible-body {
  padding: 0 14px 14px;
}

/* Play button in matchup card */
.bracket-matchup-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--gold-light);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.bracket-matchup-play-btn:hover {
  background: rgba(212, 175, 55, 0.08);
}

/* Consolation */
.bracket-consolation-lb .bracket-mini-row:first-child { border-top: none; }

/* Groups (existing, untouched) */
.bracket-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.bracket-group-tab {
  min-width: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.bracket-group-tab.active {
  background: rgba(255, 200, 80, 0.2);
  border-color: rgba(255, 200, 80, 0.45);
  color: #ffd080;
}
.bracket-group-panel {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bracket-group-panel-head {
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}
.bracket-group-lineups-wrap {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.bracket-group-lineups-btn {
  width: 100%;
}
.bracket-mini-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.bracket-mini-row.is-me {
  background: rgba(80, 160, 255, 0.12);
}
.bracket-mini-row.qualifies .bracket-mini-place { color: #6ee7a0; }
.bracket-mini-place { color: var(--text-muted); font-weight: 600; }
.bracket-mini-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bracket-mini-pts { font-weight: 700; color: #e8f0ff; }
.bracket-q-mark { color: #6ee7a0; font-size: 0.7rem; margin-left: 2px; }


/* Fantasy: отдельное мини-приложение /fantasy/ + блок в кабинете */
.fantasy-standalone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.fantasy-standalone-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  flex: 1;
  text-align: center;
  margin: 0;
}
.fantasy-standalone-main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.cabinet-fantasy-entry {
  margin-bottom: 14px;
}
.cabinet-fantasy-hint {
  font-size: 0.85rem;
  margin: 0 0 10px 0;
  line-height: 1.35;
}
.fantasy-empty-title { margin: 0 0 8px 0; font-weight: 700; }
.fantasy-empty-help { margin: 0; color: var(--text-muted); font-size: 0.86rem; line-height: 1.4; }
.fantasy-empty-help code { font-size: 0.78rem; }
.text-muted { color: var(--text-muted); }

/* Admin Withdrawals */
.admin-wl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.admin-wl-table th,
.admin-wl-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
  text-align: left;
  vertical-align: middle;
  word-break: break-word;
}
.admin-wl-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-wl-table tr:hover td {
  background: rgba(255,255,255,0.03);
}
.wl-status-pending {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255,193,7,0.15);
  color: #ffc107;
  font-weight: 600;
  font-size: 0.8rem;
}
.wl-status-done {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(40,167,69,0.15);
  color: #28a745;
  font-weight: 600;
  font-size: 0.8rem;
}
.admin-wl-filter.active {
  font-weight: 600;
}

/* Admin Withdrawals — card layout (mobile) */
.admin-wl-card {
  background: var(--bg-card, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.admin-wl-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
}
.admin-wl-card-id {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.admin-wl-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-wl-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
}
.admin-wl-card-label {
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 90px;
}
.admin-wl-card-wallet {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.admin-wl-card-wallet code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.admin-wl-card-amount {
  font-weight: 600;
  color: var(--gold-light);
}
.admin-wl-card-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.06));
  text-align: right;
}
.admin-an-panel { margin-bottom: 12px; }
.admin-an-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 720px) {
  .admin-an-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.admin-an-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.admin-an-card-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.3;
}
.admin-an-card-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light, #e8c547);
  letter-spacing: -0.02em;
}
.admin-an-card-hint {
  margin-top: 3px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}
.admin-an-subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}
.admin-an-subgrid div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
}
.admin-an-subgrid b { color: #fff; font-weight: 600; }
.admin-an-note { margin: 8px 0 16px; font-size: 0.78rem; line-height: 1.4; }

.admin-wl-copy-btn {
  background: none;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 3px 6px;
  line-height: 1;
  transition: border-color 0.15s;
}
.admin-wl-copy-btn:hover {
  border-color: var(--gold);
}

/* Profile badge for pending withdrawals */
.btn-profile {
  position: relative;
}
.profile-pending-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffc107;
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  animation: profile-badge-pulse 2s infinite;
}
@keyframes profile-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,193,7,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(255,193,7,0); }
}


/* Fantasy: отдельное мини-приложение /fantasy/ + блок в кабинете */
.fantasy-standalone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.fantasy-standalone-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  flex: 1;
  text-align: center;
  margin: 0;
}
.fantasy-standalone-main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.cabinet-fantasy-entry {
  margin-bottom: 14px;
}
.cabinet-fantasy-hint {
  font-size: 0.85rem;
  margin: 0 0 10px 0;
  line-height: 1.35;
}
.fantasy-empty-title { margin: 0 0 8px 0; font-weight: 700; }
.fantasy-empty-help { margin: 0; color: var(--text-muted); font-size: 0.86rem; line-height: 1.4; }
.fantasy-empty-help code { font-size: 0.78rem; }
.text-muted { color: var(--text-muted); }

a.bottom-nav-item {
  text-decoration: none;
  color: inherit;
}
button.bottom-nav-item {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* --- Главная --- */
.home-screen { position: relative; overflow: hidden; }
.home-screen-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(212, 175, 55, 0.12), transparent 45%),
    radial-gradient(ellipse at 10% 80%, rgba(40, 90, 180, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(8, 14, 28, 0.15), transparent 50%);
}
.home-screen-content { position: relative; z-index: 1; }
.home-hero { margin-bottom: 12px; }
.home-page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.home-hero-sub {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.home-hub { display: flex; flex-direction: column; gap: 18px; }
.home-portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.home-portal-card {
  text-align: left;
  padding: 12px 12px 11px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: linear-gradient(155deg, rgba(55, 42, 18, 0.4), rgba(10, 16, 28, 0.94));
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
}
.home-portal-card.is-toto {
  border-color: rgba(96, 165, 250, 0.32);
  background: linear-gradient(155deg, rgba(24, 42, 72, 0.55), rgba(10, 16, 28, 0.94));
}
.home-portal-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.home-portal-card span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.home-portal-card:active { filter: brightness(1.08); }
.home-bet-howto {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 20, 34, 0.75);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-bet-howto p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text-muted);
}
.home-bet-howto b { color: var(--gold-light); }
.home-bet-howto em { font-style: normal; color: var(--text); }
.duel-bet-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
}
.duel-bet-hint p {
  margin: 0 0 6px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.duel-bet-hint p:last-child { margin-bottom: 0; }
.duel-bet-hint strong { color: var(--text); font-weight: 700; }
.duel-bet-hint em { font-style: normal; color: var(--gold-light); }
.home-section { display: flex; flex-direction: column; gap: 8px; }
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.home-section-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.home-section-more {
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.home-section-hint {
  margin: -2px 0 2px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.home-missions-teaser { gap: 8px; }
.hm-teaser {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 20px;
  padding: 14px 12px 12px;
  overflow: hidden;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(90% 80% at 8% 0%, rgba(240, 216, 117, 0.22), transparent 46%),
    radial-gradient(70% 90% at 100% 100%, rgba(96, 165, 250, 0.12), transparent 48%),
    linear-gradient(160deg, #1a1408 0%, #0b0e18 52%, #10141f 100%);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-tap-highlight-color: transparent;
}
.hm-teaser:active { transform: scale(0.985); }
.hm-teaser.is-ready {
  border-color: rgba(240, 216, 117, 0.7);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(212, 175, 55, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.hm-teaser-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 236, 170, 0.16) 48%, transparent 64%);
  transform: translateX(-120%);
  animation: hmShine 4.2s ease-in-out infinite;
  pointer-events: none;
}
.hm-teaser-orb {
  position: absolute;
  right: -40px;
  top: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(240, 216, 117, 0.28), transparent 68%);
  animation: hmGlow 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hmShine {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}
@keyframes hmGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
.hm-teaser-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hm-case {
  position: relative;
  width: 56px;
  height: 52px;
  flex-shrink: 0;
}
.hm-case-body {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 4px;
  height: 26px;
  border-radius: 6px 6px 8px 8px;
  background: linear-gradient(180deg, #f0d36a 0%, #c9a227 55%, #8a6a12 100%);
  box-shadow: 0 6px 14px rgba(212, 175, 55, 0.38);
}
.hm-case-body::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 7px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #d4af37);
  box-shadow: 0 0 8px rgba(255, 220, 120, 0.8);
}
.hm-case-lid {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 8px;
  height: 16px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #fff1b0, #e0b83a);
  transform-origin: 18% 100%;
  animation: hmLid 3.4s ease-in-out infinite;
  box-shadow: 0 -2px 8px rgba(255, 220, 120, 0.25);
}
.hm-case-glow {
  position: absolute;
  inset: 14px 10px 2px;
  background: radial-gradient(circle, rgba(255, 230, 140, 0.75), transparent 70%);
  animation: hmCaseGlow 3.4s ease-in-out infinite;
}
@keyframes hmLid {
  0%, 68%, 100% { transform: rotate(0deg); }
  78% { transform: rotate(-22deg) translateY(-2px); }
}
@keyframes hmCaseGlow {
  0%, 68%, 100% { opacity: 0.35; }
  78% { opacity: 1; }
}
.hm-teaser-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hm-teaser-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 800;
}
.hm-teaser-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.15;
}
.hm-teaser-hook {
  font-size: 0.76rem;
  color: #d7dbe6;
  line-height: 1.3;
}
.hm-teaser-ready {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1a1408;
  background: linear-gradient(180deg, #f6e08a, #d4af37);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.45);
  animation: hmPulse 1.6s ease-in-out infinite;
}
@keyframes hmPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.hm-teaser-strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hm-teaser-strip-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: hmStrip 14s linear infinite;
}
.hm-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.28);
  color: #f4f1e6;
  white-space: nowrap;
}
.hm-chip.is-cash { border-color: rgba(34, 197, 94, 0.45); color: #86efac; }
.hm-chip.is-prem { border-color: rgba(167, 139, 250, 0.5); color: #ddd6fe; }
.hm-chip.is-play { border-color: rgba(96, 165, 250, 0.45); color: #bfdbfe; }
.hm-chip.is-ucl { border-color: rgba(240, 216, 117, 0.5); color: #fde68a; }
.hm-chip.is-merch { border-color: rgba(251, 146, 60, 0.5); color: #fdba74; }
@keyframes hmStrip {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.hm-teaser-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hm-meters {
  display: flex;
  gap: 10px;
  min-width: 0;
}
.hm-meter {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hm-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(#f0d875 calc(var(--p) * 1%), rgba(255,255,255,0.08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
}
.hm-meter.is-epic .hm-ring {
  background: conic-gradient(#60a5fa calc(var(--p) * 1%), rgba(255,255,255,0.08) 0);
}
.hm-meter-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.hm-meter-txt em {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hm-meter-txt b { font-size: 0.82rem; }
.hm-teaser-cta {
  flex-shrink: 0;
  font-size: 0.74rem;
  font-weight: 800;
  color: #1a1408;
  background: linear-gradient(180deg, #f6e08a, #d4af37);
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.28);
}
.hm-teaser-spin {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  color: #1a1408;
  background: linear-gradient(180deg, #f3d27a, #d4af37);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.28);
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .hm-teaser-shine,
  .hm-teaser-orb,
  .hm-case-lid,
  .hm-case-glow,
  .hm-teaser-strip-track,
  .hm-teaser-ready { animation: none; }
}
.home-missions-tabs {
  display: flex;
  gap: 6px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 12px;
}
.home-missions-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 0;
  cursor: pointer;
}
.home-missions-tab.active {
  color: #1a1408;
  background: var(--gold);
}
.home-mission-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  margin-bottom: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(165deg, rgba(22, 28, 46, 0.92), rgba(12, 16, 28, 0.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.home-mission-row.is-done { opacity: 0.62; }
.home-mission-row.is-epic {
  border-color: rgba(196, 140, 255, 0.32);
  background:
    linear-gradient(165deg, rgba(42, 22, 58, 0.92), rgba(14, 12, 24, 0.9));
}
.home-mission-main { flex: 1; min-width: 0; }
.home-mission-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}
.home-mission-desc {
  margin: 4px 0 0;
  font-size: 0.74rem;
  color: var(--text-muted);
}
.home-mission-track {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.home-mission-bar {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.home-mission-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #b8941f, #f0d875);
}
.home-mission-prog {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.home-mission-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.home-mission-reward {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
}
.home-mission-reward.is-epic {
  background: linear-gradient(180deg, rgba(233, 213, 255, 0.22), rgba(168, 85, 247, 0.22));
  color: #e9d5ff;
}
.home-mission-go {
  border: 0;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 9px;
}
.home-mission-done {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success);
}
.quests-spins-value--epic { color: #f5c16c; }
.quests-benefits { margin-top: 14px; }
.quest-benefit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.82rem;
}
.btn-epic {
  background: linear-gradient(180deg, #f3c56a, #c9922a);
  color: #1a1408;
  border: 0;
  font-weight: 800;
}
.fortune-wheel-stage.is-epic {
  box-shadow: 0 0 0 1px rgba(245, 193, 108, 0.35), 0 12px 40px rgba(180, 120, 20, 0.25);
}
.fortune-case-item.is-draft_free,
.fortune-case-item.is-draft_half,
.fortune-case-item.is-toto_free_5,
.fortune-case-item.is-toto_free_10,
.fortune-case-item.is-toto_free_20,
.fortune-case-item.is-toto_half,
.fortune-case-item.is-ucl_free_entry {
  border-color: rgba(96, 165, 250, 0.45);
}
.fortune-case-item.is-merch_keychain {
  border-color: rgba(245, 193, 108, 0.55);
}
.home-inbox { display: flex; flex-direction: column; gap: 8px; }
.home-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 20, 34, 0.88);
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
}
.home-action-row.is-urgent {
  border-color: rgba(110, 231, 160, 0.4);
  background: rgba(20, 48, 36, 0.55);
}
.home-action-row.is-toto {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(20, 36, 56, 0.72);
}
.home-action-row:active { filter: brightness(1.08); }
.home-action-row strong { display: block; font-size: 0.88rem; margin-bottom: 2px; }
.home-action-row span { display: block; font-size: 0.74rem; color: var(--text-muted); }
.home-action-cta {
  flex-shrink: 0 !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  color: var(--gold-light) !important;
}
.home-bet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-bet-swipe {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  padding: 2px 2px 10px;
  margin: 0 -2px;
  scrollbar-width: none;
}
.home-bet-swipe::-webkit-scrollbar { display: none; }
.home-bet-card-slide {
  flex: 0 0 min(86vw, 320px);
  width: min(86vw, 320px);
  max-width: 320px;
  scroll-snap-align: start;
}
.home-bet-card {
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  background:
    linear-gradient(160deg, rgba(44, 34, 16, 0.55), rgba(10, 14, 24, 0.96));
  overflow: hidden;
}
.home-bet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.home-bet-card-head-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.home-bet-card-head-main strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-bet-pill {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
}
.home-bet-card-bank {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffd080;
}
.home-bet-card-name {
  margin: 0 0 2px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-bet-card-meta,
.home-bet-card-deadline {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.home-bet-players {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.home-bet-player {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
}
.home-bet-player:active {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.12);
}
.home-bet-av {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #2a1c05;
  background: radial-gradient(circle at 35% 30%, #ffe7a0, #c9962a 60%, #6a4a10);
}
.home-bet-player-name {
  font-size: 0.86rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-bet-player-amt {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-light);
  white-space: nowrap;
}
.home-bet-player-cta {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 208, 128, 0.85);
  white-space: nowrap;
}
.home-bet-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 2px;
}
.home-bet-link {
  border: none;
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}
.home-markets {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 8px;
  margin: 0 -2px;
  scrollbar-width: thin;
}
.home-markets-scroll .market-card-slide {
  flex: 0 0 min(82vw, 300px);
  scroll-snap-align: start;
  max-width: 300px;
}
.home-markets-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  margin: 0 0 10px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.home-markets-filters::-webkit-scrollbar { display: none; }
.home-market-tab {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.home-market-tab em {
  font-style: normal;
  opacity: 0.65;
  margin-left: 2px;
}
.home-market-tab.active {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.16);
  color: #fff;
}
.market-bet-compact .friends-bet-board-head { display: none; }
.market-bet-row {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.market-bet-row .friends-bet-target {
  flex: 0 0 auto;
  min-width: 118px;
}
.home-featured-banner {
  border-radius: 18px;
  padding: 16px 14px 14px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background:
    radial-gradient(ellipse at 85% -10%, rgba(212, 175, 55, 0.28), transparent 50%),
    linear-gradient(160deg, rgba(52, 38, 12, 0.72), rgba(8, 12, 22, 0.98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.home-featured-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.home-featured-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 208, 128, 0.9);
}
.home-featured-fund {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffd080;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.12);
}
.home-featured-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.15;
}
.home-featured-sub {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.home-featured-lb {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}
.home-featured-lb-head {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.home-featured-lb-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  padding: 3px 0;
}
.home-featured-lb-row .n {
  font-weight: 800;
  color: var(--gold-light);
}
.home-featured-lb-row .who {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-featured-lb-row .pts {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
}
.home-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-featured-actions .btn {
  flex: 1 1 auto;
  min-width: 110px;
}
.home-more-bets {
  width: 100%;
  margin-top: 10px;
}
.home-quick-links { display: flex; gap: 8px; flex-wrap: wrap; }
.home-empty-state { padding-top: 8px; }
.market-card {
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    linear-gradient(155deg, rgba(55, 42, 18, 0.5), rgba(10, 16, 28, 0.96)),
    radial-gradient(ellipse at 100% 0%, rgba(212, 175, 55, 0.14), transparent 50%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.market-card-head { display: flex; flex-direction: column; gap: 2px; }
.market-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.market-card-title b { color: var(--gold-light); }
.market-card-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.market-card-sub em {
  font-style: normal;
  font-weight: 800;
  color: var(--gold-light);
}
.market-card-meta {
  margin: 0 0 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.market-card-meta b { color: var(--gold-light); font-weight: 700; }
.market-card-meta em {
  font-style: normal;
  font-weight: 800;
  color: var(--gold-light);
}
.market-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  scrollbar-width: thin;
}
.market-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.market-chip-name {
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 6.5em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.market-chip-bet {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-light);
}
.market-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.market-card .friends-bet-board {
  margin: 0;
}
.market-btn-rosters,
.market-btn-grid {
  padding: 8px 12px !important;
  font-size: 0.8rem !important;
}
.home-link-btn {
  border: none;
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}
.home-cards { display: flex; flex-direction: column; gap: 10px; }
.home-empty {
  margin: 0;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.home-live-card,
.home-duel-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(110, 231, 160, 0.22);
  border-radius: 16px;
  padding: 14px 14px 12px;
  background: linear-gradient(155deg, rgba(20, 48, 36, 0.5), rgba(8, 14, 28, 0.92));
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s;
}
.home-duel-card {
  border-color: rgba(212, 175, 55, 0.28);
  background: linear-gradient(155deg, rgba(55, 42, 18, 0.42), rgba(8, 14, 28, 0.94));
}
.home-live-card:hover,
.home-duel-card:hover { transform: translateY(-1px); border-color: rgba(212, 175, 55, 0.45); }
.home-live-top,
.home-duel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.home-live-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-light);
}
.home-live-alert {
  font-size: 0.72rem;
  font-weight: 800;
  color: #86efac;
}
.home-live-title {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.home-live-meta,
.home-duel-stats {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.home-duel-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.home-fill-bar { margin: 10px 0 12px; }

/* Универсальная презентабельная карточка */
.tour-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: linear-gradient(155deg, rgba(40, 32, 16, 0.55), rgba(8, 14, 28, 0.96));
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  color: var(--text);
  font-family: var(--font);
  animation: cardIn 0.45s ease-out backwards;
}
button.tour-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.tour-card-glow {
  position: absolute;
  top: -50px;
  right: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 70%);
  pointer-events: none;
}
.tour-card-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd080;
}
.tour-card-title {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold-light);
}
.tour-card-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.tour-card-stats-2 { grid-template-columns: 1fr 1fr; }
.tour-card-stats > div {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.tour-card-stat-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.2;
}
.tour-card-stat-label {
  display: block;
  margin-top: 3px;
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tour-card-time {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
}
.tour-card-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tour-card-actions .btn { flex: 1 1 auto; min-width: 110px; }

.tournaments-group-card.tour-card {
  margin-bottom: 14px;
  padding: 18px 16px 16px;
}
.tournaments-group-card .tournaments-group-header { position: relative; z-index: 1; }
.tournaments-group-card .tournaments-group-buttons { position: relative; z-index: 1; margin-top: 4px; }

@media (min-width: 900px) {
  .home-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .home-section:first-child .home-cards { grid-template-columns: 1fr; }
  .tour-card-title { font-size: 1.28rem; }
  .tournaments-group-card.tour-card { padding: 20px 18px 18px; }
}

/* --- Ещё (sheet) --- */
.more-sheet {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* sheet над контентом, tab bar остаётся снизу */
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
.more-sheet[hidden] { display: none !important; }
.more-sheet-backdrop {
  position: absolute;
  inset: 0;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.55);
}
.more-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 10px 16px 18px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(22, 28, 44, 0.98), rgba(10, 14, 26, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  animation: moreSheetUp 0.22s ease-out;
}
@keyframes moreSheetUp {
  from { transform: translateY(16px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
.more-sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin: 2px auto 12px;
}
.more-sheet-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1rem;
}
.more-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.more-sheet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.more-sheet-item:hover {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
}
.more-sheet-icon { font-size: 1.35rem; line-height: 1; }

/* --- Дуэли на составы --- */
.duel-market-mount { margin: 10px 0; min-width: 0; }
.duel-market-card {
  border-radius: 14px;
  padding: 12px;
  background: rgba(12, 16, 28, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.22);
  min-width: 0;
  overflow: hidden;
}
.duel-market-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin-bottom: 10px;
}
.duel-market-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.duel-market-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-light);
  min-width: 0;
}
.duel-market-sub {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.duel-market-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.duel-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  min-width: 0;
}
.duel-stat em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.duel-stat b {
  font-size: 0.86rem;
  color: var(--gold-light);
}
.duel-market-closed {
  margin: 0 0 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.duel-part-list { display: flex; flex-direction: column; gap: 6px; }
.duel-part-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  min-width: 0;
}
button.duel-part-row { cursor: pointer; -webkit-appearance: none; appearance: none; }
button.duel-part-row:active { background: rgba(212, 175, 55, 0.1); }
.duel-part-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0a0e1a;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  flex-shrink: 0;
}
.duel-part-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.duel-part-name {
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.duel-part-meta {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.duel-part-bank {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--gold-light);
  text-align: right;
  white-space: nowrap;
}
.duel-part-cta {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.1);
  white-space: nowrap;
}
.duel-pots { margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.duel-pot-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 0;
}
.duel-pot-row > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dg-grid-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  margin-bottom: 2px;
}
.dg-grid-tab {
  appearance: none;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.dg-grid-tab.active {
  color: #0a0e1a;
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
}
.lobby-hero-my-grids .btn {
  flex: 1 1 calc(50% - 8px);
}
.duel-bet-hint {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.duel-bet-quick {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}
.duel-bet-quick .btn { flex: 1; }
