:root {
  color-scheme: dark;
}

.lobby-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 6px;
}

.lobby-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), filter 160ms;
}
.lobby-brand:active {
  transform: scale(0.96);
  filter: brightness(1.08);
}

.lobby-brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--emerald);
  font-size: 17px;
  line-height: 1;
}
.lobby-brand-icon.pe {
  --pe-size: 22px;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 8px rgba(0, 199, 77, 0.35));
}
.pe-preload {
  color: inherit;
}

.lobby-brand-word {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.lobby-view[hidden] {
  display: none !important;
}

.game-detail-back {
  margin: 0 16px 12px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(33, 61, 87, 0.65);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #172332, #0f1923);
  color: var(--text-main);
  font-family: var(--font-native);
  font-size: 12px;
  font-weight: 600;
}

.selected-game-preview {
  padding: 0 16px 12px;
}

.selected-game-preview-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(33, 61, 87, 0.65);
  background: #08111a;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.selected-game-preview-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 12, 19, 0.34) 0%, rgba(6, 12, 19, 0.12) 44%, rgba(6, 12, 19, 0.54) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.selected-game-preview-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) brightness(0.54);
  transform: scale(1.03);
}

.selected-game-preview-video {
  width: 100%;
  height: 156px;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 2;
  opacity: 0.8;
  filter: saturate(1.04) brightness(0.72);
}

.selected-game-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 16px 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(33, 61, 87, 0.65);
  background: linear-gradient(165deg, #172332 0%, #0d1922 55%, #0a1018 100%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.selected-game-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 85% 18%, rgba(35, 232, 110, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(7, 13, 20, 0.96) 0%, rgba(7, 13, 20, 0.9) 38%, rgba(7, 13, 20, 0.68) 100%);
  pointer-events: none;
}

.selected-game-panel > :not(.selected-game-panel-banner) {
  position: relative;
  z-index: 1;
}

.selected-game-panel-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center right;
  opacity: 0.34;
  filter: saturate(1.08) brightness(0.64);
  transform: scale(1.04);
}

.selected-game-copy {
  min-width: 0;
}

.selected-game-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 199, 77, 0.1);
  border: 1px solid rgba(0, 199, 77, 0.2);
  color: var(--emerald);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-game-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.selected-game-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.selected-game-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 199, 77, 0.2);
  background: rgba(0, 199, 77, 0.08);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-game-tagline {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.selected-game-art {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(33, 61, 87, 0.65);
  background: rgba(10, 16, 24, 0.82);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  position: relative;
}

.selected-game-art-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.selected-game-art-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: rgba(10, 16, 24, 0.82);
}

.selected-game-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.selected-game-metric {
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(33, 61, 87, 0.5);
  background: rgba(10, 18, 28, 0.72);
  backdrop-filter: blur(8px);
}

.selected-game-metric-label {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-game-metric-value {
  display: block;
  margin-top: 4px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
}

.custom-bet-label {
  display: block;
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

#screen-results {
  display: none;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 0;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at top, rgba(0, 199, 77, 0.08), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(21, 100, 212, 0.05), transparent 24%),
    #0b141d;
  overflow-anchor: none;
}
#screen-results.active {
  display: flex;
}

.results-hero {
  flex: 0 0 176px;
  position: relative;
  z-index: 8;
  margin: 12px 16px 0;
  height: 176px;
  border-color: rgba(0, 199, 77, 0.18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.44);
  overflow-anchor: none;
}

.results-hero::after {
  content: '';
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 199, 77, 0.55), transparent);
  z-index: 2;
}

.results-hero-content {
  padding: 15px 16px 16px;
}

.results-hero-badge {
  background: rgba(0, 199, 77, 0.09);
  border-color: rgba(0, 199, 77, 0.2);
  color: #9bf0b8;
}

.results-hero-title {
  gap: 6px;
}

.results-hero-title .main {
  font-size: 28px;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.results-hero-title .sub {
  max-width: 34ch;
  color: rgba(200, 216, 232, 0.74);
  letter-spacing: 0.05em;
  text-transform: none;
  line-height: 1.35;
  white-space: normal;
}

.results-feed-wrap {
  flex: 1 1 auto;
  min-height: 0;
  margin: 14px 16px 0;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  overflow-anchor: none;
}

.results-feed-empty {
  border-style: solid;
  border-color: rgba(0, 199, 77, 0.14);
  background: linear-gradient(180deg, rgba(19, 32, 46, 0.96), rgba(12, 22, 31, 0.98));
  color: rgba(200, 216, 232, 0.68);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.result-feed-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(33, 61, 87, 0.58);
  background:
    radial-gradient(circle at top right, rgba(0, 199, 77, 0.06), transparent 28%),
    linear-gradient(180deg, #13202e 0%, #0d1822 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.result-feed-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 24%);
}

.result-feed-card.is-verified {
  border-color: rgba(0, 199, 77, 0.26);
}

.result-feed-card.is-unverified {
  border-color: rgba(232, 64, 64, 0.22);
}

.result-feed-mode {
  font-size: 15px;
}

.result-feed-duel,
.result-feed-time {
  color: rgba(200, 216, 232, 0.48);
}

.result-feed-players {
  color: rgba(225, 236, 245, 0.82);
}

.result-feed-outcome {
  line-height: 1.45;
}

.result-feed-amount {
  color: rgba(200, 216, 232, 0.8);
}

.result-feed-hashes {
  border-color: rgba(33, 61, 87, 0.48);
  background: rgba(7, 14, 22, 0.56);
}

.hash-line .label {
  color: rgba(200, 216, 232, 0.5);
}

.hash-line .value {
  color: rgba(236, 246, 255, 0.9);
}

.result-feed-foot {
  padding-top: 6px;
}

.result-feed-verify.ok {
  color: #7df0a7;
}

.result-feed-open {
  border-color: rgba(0, 199, 77, 0.28);
  background: linear-gradient(180deg, rgba(0, 199, 77, 0.16), rgba(0, 199, 77, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.result-feed-open:hover {
  filter: brightness(1.03);
}


#screen-bonuses {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-bottom: 92px;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 199, 77, 0.1), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(0, 199, 77, 0.06), transparent 28%),
    #0b141d;
}

.bonus-shell {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 14px 14px 12px;
}

.bonus-hero {
  position: relative;
  overflow: hidden;
  height: clamp(192px, 32vw, 240px);
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(0, 199, 77, 0.26);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.44);
}

.bonus-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bonus-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8, 16, 24, 0.08) 0%, rgba(8, 16, 24, 0.82) 64%);
  z-index: 1;
}

.bonus-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px 18px;
}

.bonus-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 27px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(0, 199, 77, 0.3);
  background: rgba(0, 199, 77, 0.1);
  color: #b8f7cb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bonus-hero-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bonus-hero-title .main {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  line-height: 1.02;
}

.bonus-hero-title .sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(200, 216, 232, 0.82);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bonus-card {
  margin: 14px 0 0;
  border-radius: 16px;
  border: 1px solid rgba(33, 61, 87, 0.58);
  background: linear-gradient(180deg, rgba(17, 30, 43, 0.98), rgba(10, 20, 29, 0.98));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  padding: 16px;
}

.bonus-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bonus-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #eaf4ff;
}

.bonus-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 199, 77, 0.24);
  background: rgba(0, 199, 77, 0.08);
  color: rgba(181, 246, 200, 0.92);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.bonus-rakeback-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bonus-kpi {
  border-radius: 12px;
  border: 1px solid rgba(33, 61, 87, 0.48);
  background: rgba(8, 15, 22, 0.74);
  padding: 12px;
}

.bonus-kpi-label {
  color: rgba(200, 216, 232, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bonus-kpi-value {
  margin-top: 6px;
  color: #edf7ff;
  font-size: 20px;
  font-weight: 700;
}

.bonus-rakeback-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bonus-note {
  color: rgba(200, 216, 232, 0.7);
  font-size: 13px;
}

.bonus-claim-btn {
  min-width: 128px;
  min-height: 40px;
  border: 1px solid rgba(0, 199, 77, 0.34);
  border-radius: 12px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(0, 199, 77, 0.22), rgba(0, 199, 77, 0.14));
  color: #d5ffe5;
  font-size: 14px;
  font-weight: 700;
}

.bonus-claim-btn:disabled {
  opacity: 0.52;
}

.bonus-leagues-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.bonus-league-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(33, 61, 87, 0.48);
  background: rgba(8, 15, 22, 0.65);
}

.bonus-league-row.is-reached {
  border-color: rgba(0, 199, 77, 0.3);
}

.bonus-league-row.is-claimed {
  border-color: rgba(0, 199, 77, 0.34);
  background: rgba(7, 34, 17, 0.45);
}

.bonus-league-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.bonus-league-level {
  color: #ecf7ff;
  font-size: 14px;
  font-weight: 700;
}

.bonus-league-reward {
  color: #8df2b1;
  font-size: 14px;
  font-weight: 700;
}

.bonus-league-sub {
  margin-top: 5px;
  color: rgba(200, 216, 232, 0.64);
  font-size: 12px;
}

.bonus-league-claim {
  min-width: 102px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0, 199, 77, 0.34);
  background: linear-gradient(180deg, rgba(0, 199, 77, 0.2), rgba(0, 199, 77, 0.1));
  color: #d5ffe5;
  font-size: 13px;
  font-weight: 700;
}

.bonus-league-claim[disabled] {
  opacity: 0.46;
}

@media (max-width: 520px) {
  .lobby-topbar {
    padding-top: 8px;
    flex-wrap: wrap;
  }

  .hero-balance-wrap {
    margin-left: auto;
  }

  .selected-game-panel {
    grid-template-columns: 1fr;
  }

  .selected-game-art {
    width: 100%;
    height: 120px;
  }

  .selected-game-metrics {
    grid-template-columns: 1fr;
  }

  .results-hero {
    height: 164px;
  }

  .results-hero-title .main {
    font-size: 24px;
  }

  .results-hero-title .sub {
    max-width: none;
    font-size: 10px;
  }

  .bonus-shell {
    padding: 12px 12px 10px;
  }

  .bonus-hero {
    height: 178px;
  }

  .bonus-hero-title .main {
    font-size: 28px;
  }

  .bonus-hero-title .sub {
    font-size: 10px;
  }

  .bonus-rakeback-grid {
    grid-template-columns: 1fr;
  }

  .bonus-card-head,
  .bonus-rakeback-foot {
    flex-wrap: wrap;
  }
}

/* 2026 premium lobby refresh */
#screen-intro {
  background:
    radial-gradient(circle at 50% 21%, rgba(0, 199, 77, 0.2), transparent 30%),
    radial-gradient(circle at 12% 82%, rgba(77, 163, 255, 0.09), transparent 34%),
    linear-gradient(180deg, #070f1a 0%, #0b1420 52%, #05080e 100%);
}

.intro-center {
  flex: 1 1 auto;
  min-height: 0;
  justify-content: center;
  gap: 18px;
  padding: 0 18px;
}
.intro-top-brand {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 10px 4px 7px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(16, 31, 45, 0.86), rgba(6, 15, 23, 0.72));
  border: 1px solid rgba(0, 199, 77, 0.28);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.intro-brand-gift {
  --pe-size: 20px;
  filter: drop-shadow(0 0 10px rgba(0, 199, 77, 0.34));
}
.intro-logo-lockup {
  width: min(92vw, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  color: #fff;
  font-family: var(--font-intro);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: none;
  transform: translateY(-10px) skewX(-7deg);
  filter:
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 22px rgba(0, 199, 77, 0.18));
  animation: introLogoRise 560ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.intro-logo-main {
  display: inline-block;
  max-width: 100%;
  letter-spacing: 0;
  white-space: nowrap;
  font-size: clamp(48px, 14.8vw, 104px);
  line-height: 1.16;
  color: transparent;
  background: linear-gradient(92deg, #ffffff 0%, #dce8ff 34%, #2cf391 58%, #ffe08a 82%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 4px 0 rgba(20, 42, 68, 0.24),
    0 0 30px rgba(44, 243, 145, 0.18);
}
@keyframes introLogoRise {
  from { opacity: 0; transform: translateY(2px) scale(0.96) skewX(-7deg); }
  to { opacity: 1; transform: translateY(-10px) scale(1) skewX(-7deg); }
}
.intro-loading-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(225, 237, 248, 0.72);
  font-family: var(--font-native);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.intro-status {
  min-height: 16px;
  color: rgba(200, 216, 232, 0.42);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: introStatusPulse 1.35s ease-in-out infinite;
}
.intro-orbit {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(200, 216, 232, 0.16);
  border-top-color: #ffe08a;
  border-right-color: var(--emerald);
  animation: introOrbit 740ms linear infinite;
}
@keyframes introOrbit { to { transform: rotate(360deg); } }
@keyframes introStatusPulse {
  0%, 100% { opacity: 0.52; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}
.intro-bar-wrap {
  position: relative;
  width: min(190px, 52vw);
  height: 5px;
  margin-top: 0;
  overflow: hidden;
  background: rgba(111, 139, 166, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}
.intro-bar-fill {
  position: relative;
  transition: width 180ms cubic-bezier(0.22, 1, 0.36, 1);
  background: linear-gradient(90deg, #ffe08a 0%, var(--emerald) 50%, #4da3ff 100%);
  box-shadow: 0 0 14px rgba(0, 199, 77, 0.5);
}
.intro-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 42px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  animation: introBarScan 900ms linear infinite;
}
@keyframes introBarScan {
  from { transform: translateX(-48px); }
  to { transform: translateX(198px); }
}

.news-cover {
  position: relative;
  min-height: 126px;
  margin: 8px 16px 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(27, 234, 132, 0.38);
  background:
    radial-gradient(circle at 18% 48%, rgba(27, 234, 132, 0.20), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(77, 163, 255, 0.12), transparent 40%),
    linear-gradient(145deg, rgba(20, 34, 52, 0.98), rgba(8, 15, 26, 0.98));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42), 0 0 28px rgba(0, 199, 77, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: profileEntry 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.news-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.05) 45%, transparent 49%),
    repeating-linear-gradient(-24deg, transparent 0 24px, rgba(255, 255, 255, 0.018) 25px 26px);
  pointer-events: none;
}
.news-cover-art {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.news-cover-dice {
  --pe-size: 76px;
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 0 24px rgba(27, 234, 132, 0.76)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
}
.news-cover-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.news-cover-kicker {
  color: #2cf391;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.news-cover p {
  margin: 0;
  color: rgba(200, 216, 232, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.news-cover-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(27, 234, 132, 0.45);
  background: linear-gradient(180deg, rgba(27, 234, 132, 0.22), rgba(27, 234, 132, 0.08));
  color: #eafff3;
  font-family: var(--font-native);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(27, 234, 132, 0.12);
  cursor: pointer;
}

.game-category-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px 0;
  color: rgba(200, 216, 232, 0.48);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.game-category-divider i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 199, 77, 0.25), transparent);
}
.game-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 66px;
  padding: 9px 9px 10px;
  text-align: left;
}
.game-card-badge {
  color: var(--game-accent, var(--emerald));
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card .game-name {
  padding: 0;
  border-top: 0;
  text-align: left;
  white-space: normal;
  line-height: 1.14;
  min-height: 27px;
}
.game-card-tagline {
  color: rgba(200, 216, 232, 0.5);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.result-feed-card {
  padding: 8px 10px;
  gap: 6px;
  border-radius: 14px;
}
.result-feed-head {
  align-items: center;
}
.result-feed-mode {
  font-size: 12px;
}
.result-feed-duel,
.result-feed-time {
  font-size: 9px;
}
.result-feed-players {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.result-feed-foot {
  justify-content: flex-end;
  padding-top: 0;
}
.result-feed-open {
  height: 28px;
  padding: 0 10px;
  font-size: 10px;
}

/* CTA-first lobby */
.lobby-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: calc(8px + env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(8, 15, 24, 0.98), rgba(8, 15, 24, 0.9) 76%, transparent);
}
.hero-balance-wrap {
  min-height: 42px;
  padding: 4px 5px 4px 14px;
  border-radius: 14px;
  border-color: rgba(0, 199, 77, 0.42);
  background: linear-gradient(180deg, rgba(11, 25, 35, 0.98), rgba(7, 14, 22, 0.98));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.lobby-balance {
  color: #eafff3;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(0, 199, 77, 0.24);
  font-variant-numeric: tabular-nums;
}
.deposit-btn {
  width: auto;
  min-width: 108px;
  height: 42px;
  gap: 7px;
  padding: 0 13px;
  border-radius: 13px;
  background: linear-gradient(180deg, #17cf5a, #087f36);
  color: #f6fff9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 199, 77, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.action-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 8px 16px 10px;
  padding: 16px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(0, 199, 77, 0.24);
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 199, 77, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(18, 31, 44, 0.98), rgba(8, 15, 23, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}
.action-hero::after {
  content: '';
  position: absolute;
  inset: auto 16px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 199, 77, 0.48), transparent);
}
.action-hero-copy,
.action-hero-panel {
  position: relative;
  z-index: 1;
}
.action-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 199, 77, 0.22);
  background: rgba(0, 199, 77, 0.08);
  color: #91f1b0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.action-hero-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22e886;
  box-shadow: 0 0 8px rgba(34, 232, 134, 0.7);
}
.action-hero-kicker.is-hot {
  color: #ffd176;
  border-color: rgba(255, 209, 118, 0.28);
  background: rgba(255, 209, 118, 0.08);
}
.action-hero-title {
  margin: 10px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}
.action-hero-subcopy {
  margin: 8px 0 0;
  max-width: 34ch;
  color: rgba(200, 216, 232, 0.68);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.action-hero-panel {
  display: grid;
  gap: 10px;
}
.action-hero-game {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 9px;
  border-radius: 14px;
  border: 1px solid rgba(33, 61, 87, 0.56);
  background: rgba(6, 13, 20, 0.62);
}
.action-hero-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  filter: saturate(0.86) brightness(0.84);
}
.action-hero-game-label {
  color: rgba(200, 216, 232, 0.52);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.action-hero-game-name {
  margin-top: 3px;
  color: #f3fbff;
  font-size: 18px;
  font-weight: 800;
}
.action-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.hero-stat {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(33, 61, 87, 0.46);
  background: rgba(6, 13, 20, 0.46);
}
.hero-stat-label,
.hero-stat-value {
  display: block;
}
.hero-stat-label {
  color: rgba(200, 216, 232, 0.46);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-stat-value {
  margin-top: 3px;
  color: #edf7ff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.action-hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.action-primary-btn,
.action-secondary-btn {
  min-height: 46px;
  border-radius: 12px;
  font-family: var(--font-native);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}
.action-primary-btn {
  border: 1px solid rgba(0, 255, 100, 0.32);
  background: linear-gradient(180deg, #15d965, #07983d);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 199, 77, 0.24);
}
.action-secondary-btn {
  padding: 0 13px;
  border: 1px solid rgba(33, 61, 87, 0.72);
  background: rgba(8, 15, 23, 0.72);
  color: rgba(224, 238, 248, 0.86);
}
.live-strip {
  margin: 0 16px 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(33, 61, 87, 0.5);
  background: rgba(7, 14, 22, 0.7);
}
.live-strip-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(200, 216, 232, 0.6);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.live-strip-head strong {
  margin-left: auto;
  color: #8ff0af;
  font-size: 10px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #20e681;
  box-shadow: 0 0 8px rgba(32, 230, 129, 0.62);
}
.live-feed {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.live-feed-item {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(16, 29, 42, 0.58);
  color: rgba(235, 246, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.live-feed-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section-label {
  padding-top: 10px;
  color: rgba(200, 216, 232, 0.44);
}
.game-card {
  background: linear-gradient(180deg, rgba(18, 30, 43, 0.96), rgba(8, 15, 23, 0.98));
  border-color: rgba(33, 61, 87, 0.48);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.game-card-img {
  filter: none;
}
.game-card.selected .game-card-img {
  filter: none;
}
.game-card.selected {
  border-color: rgba(0, 199, 77, 0.46);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38), 0 0 16px rgba(0, 199, 77, 0.12);
}
.game-card.selected .game-card-img {
  filter: none;
}
.game-card-badge {
  color: rgba(120, 240, 160, 0.76);
}
.game-card-tagline {
  color: rgba(200, 216, 232, 0.42);
}

/* Reference-style casino lobby */
#screen-lobby {
  background:
    radial-gradient(circle at 50% -8%, rgba(0, 199, 77, 0.13), transparent 27%),
    radial-gradient(circle at 88% 18%, rgba(0, 199, 77, 0.08), transparent 23%),
    linear-gradient(180deg, #020a12 0%, #061018 48%, #03080e 100%);
}
.lobby-topbar {
  padding: calc(12px + env(safe-area-inset-top)) 22px 8px;
  background: linear-gradient(180deg, rgba(2, 10, 18, 0.98), rgba(2, 10, 18, 0.82) 74%, transparent);
}
.lobby-brand-word {
  color: #f6fbff;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
}
.lobby-brand-icon.pe {
  --pe-size: 28px;
  width: 30px;
  height: 30px;
}
.lobby-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.lobby-icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: rgba(8, 17, 26, 0.72);
  color: #edf7ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.lobby-icon-btn + .lobby-icon-btn {
  position: relative;
}
.lobby-icon-btn + .lobby-icon-btn::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 9px;
  bottom: 9px;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.balance-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(124px, 35vw, 136px);
  align-items: center;
  gap: 12px;
  margin: 8px 16px 14px;
  padding: 16px 16px 16px 20px;
  border-radius: 18px;
  border: 1px solid rgba(28, 49, 66, 0.76);
  background: linear-gradient(180deg, rgba(7, 16, 25, 0.98), rgba(4, 11, 18, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 14px 32px rgba(0, 0, 0, 0.28);
}
.balance-panel-copy {
  min-width: 0;
}
.balance-panel-label {
  color: rgba(200, 216, 232, 0.45);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.balance-panel .lobby-balance {
  margin-top: 5px;
  color: #fff;
  font-size: clamp(29px, 8.8vw, 34px);
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
}
.balance-panel .deposit-btn {
  width: 100%;
  min-width: 0;
  height: 48px;
  gap: 7px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  background:
    linear-gradient(180deg, rgba(31, 221, 99, 0.96), rgba(8, 128, 55, 0.96)),
    #0b8f3d;
  box-shadow: 0 9px 20px rgba(0, 199, 77, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.deposit-plus {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  line-height: 1;
}
.action-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 274px;
  display: block;
  margin: 0 16px 22px;
  padding: 0;
  border-radius: 17px;
  border: 1px solid rgba(31, 61, 79, 0.92);
  background: #061018;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(35, 232, 110, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.32);
}

.action-hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) brightness(0.52);
  transform: scale(1.04);
}

.action-hero-bg {
  position: absolute;
  top: 12px;
  right: -16px;
  width: min(57%, 246px);
  height: calc(100% - 34px);
  object-fit: contain;
  object-position: right center;
  opacity: 0.78;
  filter: saturate(1.18) brightness(0.86) drop-shadow(0 0 28px rgba(0, 199, 77, 0.2));
  transform: translateX(8px) scale(1.02);
}
.action-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 21%, rgba(35, 232, 110, 0.2), transparent 24%),
    radial-gradient(circle at 62% 95%, rgba(35, 232, 110, 0.1), transparent 34%),
    linear-gradient(90deg, rgba(4, 10, 17, 0.98) 0%, rgba(4, 10, 17, 0.89) 43%, rgba(4, 10, 17, 0.42) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.46));
}
.action-hero::after {
  display: none;
}
.action-hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  min-width: 0;
  min-height: 274px;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  align-items: flex-start;
  padding: 18px 20px 22px;
}
.action-hero-kicker {
  max-width: min(100%, 180px);
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(35, 232, 110, 0.18);
  border-radius: 7px;
  background: rgba(35, 232, 110, 0.08);
  color: #2ee982;
  font-size: 10px;
  letter-spacing: 0.11em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.action-hero-kicker::before {
  display: block;
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
}
.action-hero-kicker.is-hot {
  color: #39f08a;
  border-color: rgba(57, 240, 138, 0.26);
  background: rgba(57, 240, 138, 0.1);
}
.action-hero-title {
  max-width: min(61%, 228px);
  margin-top: 12px;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.action-hero.has-long-title .action-hero-title {
  max-width: min(64%, 218px);
  font-size: 26px;
  line-height: 1.04;
}
.action-hero-subcopy {
  width: min(66%, 248px);
  max-width: none;
  min-height: 36px;
  margin-top: 8px;
  color: rgba(229, 239, 247, 0.68);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.36;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.action-hero-stats {
  width: min(64%, 236px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  margin-top: 12px;
}
.action-hero-stats .hero-stat {
  display: block;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(36, 70, 88, 0.58);
  border-radius: 9px;
  background: rgba(4, 12, 18, 0.62);
  backdrop-filter: blur(8px);
}
.action-hero-stats .hero-stat-label,
.action-hero-stats .hero-stat-value {
  display: block;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.action-hero-stats .hero-stat-label {
  color: rgba(229, 239, 247, 0.44);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.action-hero-stats .hero-stat-value {
  margin-top: 2px;
  color: #2ee982;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(0, 199, 77, 0.2);
}
.action-hero-footer {
  align-self: end;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(184px, 198px) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}
.action-primary-btn {
  width: 198px;
  min-height: 52px;
  max-width: 100%;
  flex: 0 0 auto;
  margin-top: 0;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 26px rgba(0, 199, 77, 0.34);
}
.action-primary-btn::after {
  content: '▶';
  margin-left: 11px;
  font-size: 12px;
}
.hero-now-playing {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-self: end;
  max-width: 100%;
  min-height: 42px;
  min-width: 0;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(35, 232, 110, 0.18);
  border-radius: 999px;
  background: rgba(4, 13, 19, 0.7);
  color: rgba(229, 239, 247, 0.66);
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.hero-now-playing[hidden] {
  display: none;
}
.hero-avatar {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-left: -8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 199, 77, 0.5);
  background: linear-gradient(145deg, #173526, #08131b);
  color: #dfffee;
  font-size: 10px;
  font-weight: 900;
}
.hero-avatar:first-child {
  margin-left: 0;
}
.hero-live-copy {
  display: grid;
  min-width: 0;
  line-height: 1.05;
}
.hero-live-copy strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.hero-live-copy span {
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 374px) {
  .action-hero,
  .action-hero-copy {
    min-height: 286px;
  }
  .action-hero-copy {
    padding-left: 16px;
    padding-right: 14px;
    padding-bottom: 24px;
  }
  .action-hero-bg {
    right: -34px;
    width: 62%;
    opacity: 0.66;
  }
  .action-hero-title,
  .action-hero.has-long-title .action-hero-title {
    max-width: 62%;
    font-size: 27px;
  }
  .action-hero-subcopy,
  .action-hero-stats {
    width: 62%;
  }
  .action-hero-footer {
    grid-template-columns: minmax(176px, 1fr);
    gap: 8px;
  }
  .action-primary-btn {
    width: 188px;
    min-height: 52px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }
  .hero-now-playing {
    justify-self: start;
    min-height: 36px;
    padding: 6px 8px;
  }
  .hero-avatar {
    width: 20px;
    height: 20px;
  }
  .hero-live-copy span {
    max-width: 52px;
  }
}
.quick-section,
.live-strip,
.lobby-view-games {
  margin: 0 16px 18px;
}
.lobby-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 11px;
}
.lobby-section-head h2 {
  margin: 0;
  color: rgba(236, 246, 255, 0.72);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-link,
.section-link-static {
  border: 0;
  background: transparent;
  color: rgba(200, 216, 232, 0.52);
  font-family: var(--font-native);
  font-size: 13px;
  font-weight: 750;
}
.section-link::after,
.section-link-static::after {
  content: '›';
  margin-left: 7px;
  color: rgba(200, 216, 232, 0.42);
  font-size: 20px;
  line-height: 0;
}
.section-link-static.section-link-arrow-only::after {
  margin-left: 0;
}
.quick-game-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.quick-game-card {
  min-width: 0;
  min-height: 106px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 9px 7px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 18, 27, 0.96), rgba(4, 11, 18, 0.98));
}
.quick-game-icon-wrap {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  flex: 0 0 auto;
}
.quick-game-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.quick-game-card .game-name {
  /* Keep every quick-tile's title at exactly the same height so a 1-line
     name ("Роулетка") doesn't collapse the card below a 2-line one
     ("Clash Royale"). Otherwise the row looks wobbly. */
  min-height: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  color: #f4fbff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  word-break: break-word;
  hyphens: auto;
  padding: 0 2px;
}
.game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}
.popular-game-card {
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 18, 27, 0.98), rgba(4, 11, 18, 0.99));
  border-color: rgba(33, 61, 87, 0.58);
}
.popular-game-card .game-card-img-wrap {
  aspect-ratio: 1.1 / 0.88;
  border-radius: 8px 8px 0 0;
}
.popular-game-card .game-card-body {
  min-height: 46px;
  padding: 7px 8px 8px;
  gap: 5px;
}
.popular-game-card .game-name {
  min-height: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.popular-game-card .game-card-badge {
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(0, 199, 77, 0.18);
  color: #5af090;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.05em;
}
.live-strip {
  padding: 0;
  border: 0;
  background: transparent;
}
.live-feed {
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(28, 49, 66, 0.8);
  background: linear-gradient(180deg, rgba(7, 16, 25, 0.96), rgba(4, 11, 18, 0.98));
}
.live-feed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 14px;
  border-radius: 0;
  border-bottom: 1px solid rgba(28, 49, 66, 0.56);
  background: transparent;
}
.live-feed-item:last-child {
  border-bottom: 0;
}
.live-feed-item span {
  white-space: normal;
}
.live-feed-item .win-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.win-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 199, 77, 0.48);
  background: linear-gradient(145deg, rgba(0, 199, 77, 0.16), rgba(6, 13, 20, 0.92));
  color: #dffff0;
  font-size: 13px;
  font-weight: 950;
}
.win-name {
  display: block;
  color: #f5fbff;
  font-size: 13px;
  font-weight: 900;
}
.win-game {
  display: block;
  margin-top: 2px;
  color: rgba(200, 216, 232, 0.44);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.win-mult {
  color: #2ee982;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0.06em;
}
.win-amount {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 900;
}

.tab-btn::after {
  left: 50%;
  bottom: 4px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
}
.tab-btn.active::after {
  transform: translateX(-50%) scaleX(1);
}

.bonus-hero {
  isolation: isolate;
  border-color: rgba(255, 213, 112, 0.22);
}
.bonus-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 84% 18%, rgba(255, 213, 112, 0.18), transparent 28%);
  pointer-events: none;
}
.bonus-hero-content { z-index: 2; }
.bonus-rake-card {
  border-color: rgba(255, 213, 112, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 213, 112, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(17, 30, 43, 0.98), rgba(10, 20, 29, 0.98));
}
.bonus-progress {
  position: relative;
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(33, 61, 87, 0.58);
}
.bonus-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe08a, var(--emerald));
  box-shadow: 0 0 10px rgba(0, 199, 77, 0.42);
}
@media (max-width: 390px) {
  .news-cover {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .news-cover-art {
    width: 78px;
    height: 78px;
  }
}

@media (max-width: 768px), (pointer: coarse) {
  #screen-intro *,
  #screen-lobby *,
  #screen-profile *,
  #screen-results *,
  #screen-bonuses *,
  #screen-deposit *,
  .tab-bar *,
  #toast-overlay * {
    animation: none !important;
    transition-duration: 80ms !important;
  }

  .intro-orbit {
    animation: introOrbit 1s linear infinite !important;
  }

  .selected-game-preview-video {
    display: none !important;
  }

  #screen-loading::before,
  .tab-bar,
  .ref-backdrop {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .intro-logo-lockup {
    filter: none !important;
  }
}

/* Reference screens with real DB users */
#screen-intro {
  background:
    radial-gradient(circle at 50% 28%, rgba(0, 199, 77, 0.18), transparent 26%),
    radial-gradient(circle at 50% 54%, rgba(0, 199, 77, 0.07), transparent 28%),
    linear-gradient(180deg, #01060c 0%, #041018 58%, #01070d 100%);
}
.intro-center {
  gap: 12px;
  transform: translateY(-12px);
}
.intro-mascot {
  --pe-size: 86px;
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 0 26px rgba(0, 199, 77, 0.48)) drop-shadow(0 18px 36px rgba(0, 0, 0, 0.46));
}
.intro-logo-lockup {
  width: auto;
  margin: 0;
  padding: 0;
  transform: skewX(-8deg);
}
.intro-logo-main {
  font-size: 42px;
  line-height: 1;
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: 0 0 26px rgba(0, 199, 77, 0.16);
}
.intro-logo-main span {
  color: #39e878;
}
.intro-tagline {
  color: rgba(232, 241, 247, 0.82);
  font-size: 14px;
  font-weight: 800;
}
.intro-bar-wrap {
  width: 188px;
  height: 5px;
  margin-top: 142px;
  border-radius: 999px;
  background: rgba(92, 111, 124, 0.24);
}
.intro-bar-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, #23e86e, #23e86e);
  box-shadow: 0 0 12px rgba(35, 232, 110, 0.5);
}
.intro-loading-line {
  margin-top: 14px;
  color: rgba(232, 241, 247, 0.66);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.intro-status {
  display: none;
}
.intro-secure {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(48px + env(safe-area-inset-bottom));
  color: rgba(232, 241, 247, 0.28);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.bell-icon,
.gear-icon,
.filter-icon,
.support-icon,
.logout-icon {
  position: relative;
  display: inline-block;
  width: 21px;
  height: 21px;
  color: currentColor;
}
.bell-icon::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 3px;
  width: 11px;
  height: 13px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 4px 4px;
}
.bell-icon::after {
  content: '';
  position: absolute;
  left: 7px;
  bottom: 2px;
  width: 7px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 3px 3px 0 -1px currentColor;
}
.gear-icon::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 -5px 0 -3px currentColor, 0 5px 0 -3px currentColor, 5px 0 0 -3px currentColor, -5px 0 0 -3px currentColor;
}
.gear-icon::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: currentColor;
}
.filter-icon::before {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  height: 11px;
  border: 2px solid currentColor;
  border-top-width: 2px;
  clip-path: polygon(0 0, 100% 0, 61% 58%, 61% 100%, 39% 100%, 39% 58%);
}
.support-icon::before {
  content: '?';
  position: absolute;
  inset: 2px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}
.logout-icon::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 5px;
  width: 9px;
  height: 11px;
  border: 2px solid currentColor;
  border-right: 0;
}
.logout-icon::after {
  content: '›';
  position: absolute;
  right: 2px;
  top: -1px;
  font-size: 27px;
  line-height: 21px;
}

#screen-profile,
#screen-results,
#screen-bonuses {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
#screen-profile {
  background:
    linear-gradient(180deg, rgba(2, 9, 16, 0.58), rgba(2, 9, 16, 0.92)),
    radial-gradient(circle at 50% -8%, rgba(0, 199, 77, 0.11), transparent 26%),
    url('assets/section-covers/generated/profile-generated.webp') center 4% / cover no-repeat,
    linear-gradient(180deg, #020910 0%, #05111a 52%, #02070d 100%);
}
#screen-results {
  background:
    linear-gradient(180deg, rgba(2, 9, 16, 0.58), rgba(2, 9, 16, 0.94)),
    radial-gradient(circle at 50% -8%, rgba(0, 199, 77, 0.11), transparent 26%),
    url('assets/section-covers/generated/results-generated.webp') center 6% / cover no-repeat,
    linear-gradient(180deg, #020910 0%, #05111a 52%, #02070d 100%);
}
#screen-bonuses {
  background:
    linear-gradient(180deg, rgba(2, 9, 16, 0.54), rgba(2, 9, 16, 0.94)),
    radial-gradient(circle at 50% -8%, rgba(255, 213, 112, 0.12), transparent 26%),
    url('assets/section-covers/generated/bonuses-generated.webp') center 8% / cover no-repeat,
    linear-gradient(180deg, #020910 0%, #05111a 52%, #02070d 100%);
}
.profile-shell,
.results-shell,
.bonus-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 16px 18px;
}
.section-topbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-topbar h1 {
  margin: 0;
  color: #f7fbff;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: 0.03em;
}
.section-title-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(241, 248, 255, 0.86);
}

.history-summary-card,
.profile-player-card,
.profile-balance-card,
.profile-stats-card,
.profile-menu-card,
.bonus-rake-reference,
.bonus-card {
  border: 1px solid rgba(30, 50, 64, 0.78);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 18, 27, 0.98), rgba(4, 11, 18, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025), 0 14px 30px rgba(0,0,0,0.26);
}
.history-summary-card {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  margin-bottom: 14px;
}
.history-summary-card h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}
.history-summary-card p {
  margin: 0;
  max-width: 25ch;
  color: rgba(213, 225, 236, 0.62);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}
.history-shield {
  width: 54px;
  height: 64px;
  flex: 0 0 auto;
  border: 2px solid rgba(35, 232, 110, 0.22);
  border-radius: 18px 18px 24px 24px;
  background: radial-gradient(circle at 50% 28%, rgba(35, 232, 110, 0.22), transparent 36%);
  box-shadow: 0 0 22px rgba(35, 232, 110, 0.1);
}
.history-shield::after {
  content: '';
  display: block;
  width: 18px;
  height: 10px;
  margin: 21px auto 0;
  border-left: 3px solid #2de873;
  border-bottom: 3px solid #2de873;
  transform: rotate(-45deg);
}
.results-feed-wrap {
  margin: 0;
  padding-bottom: 0;
  overflow: visible;
}
#results-feed-list {
  display: grid;
  gap: 12px;
}
.result-feed-card {
  display: grid;
  gap: 13px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(30, 50, 64, 0.86);
  background: linear-gradient(180deg, rgba(7, 18, 27, 0.98), rgba(4, 11, 18, 0.98));
}
.result-feed-head,
.result-feed-amount,
.result-feed-players,
.profile-menu-row {
  display: flex;
  align-items: center;
}
.result-feed-head {
  justify-content: space-between;
}
.result-feed-mode {
  color: #eef8ff;
  font-size: 14px;
  font-weight: 950;
}
.result-feed-duel,
.result-feed-time {
  margin-top: 3px;
  color: rgba(213, 225, 236, 0.46);
  font-size: 10px;
  font-weight: 800;
}
.result-feed-players {
  gap: 9px;
  color: #dce8ef;
  font-size: 12px;
  font-weight: 900;
}
.result-feed-players b {
  color: #35e876;
  font-size: 11px;
}
.result-player {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.result-player span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
}
.avatar-fallback {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(35, 232, 110, 0.38);
  background: linear-gradient(145deg, rgba(35, 232, 110, 0.16), rgba(5, 14, 21, 0.94));
  color: #dffff0;
  font-weight: 950;
}
.result-feed-outcome {
  color: #35e876;
  font-size: 13px;
  font-weight: 900;
}
.result-feed-amount {
  gap: 32px;
}
.result-feed-amount span {
  display: grid;
  gap: 4px;
}
.result-feed-amount small {
  color: rgba(213, 225, 236, 0.5);
  font-size: 10px;
  font-weight: 800;
}
.result-feed-amount strong {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
}
.result-feed-open {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(35, 232, 110, 0.2);
  background: rgba(35, 232, 110, 0.06);
  color: #ecfff3;
  font-size: 13px;
  font-weight: 900;
}

.bonus-shell {
  padding-left: 14px;
  padding-right: 14px;
}
.bonus-rake-reference {
  min-height: 152px;
  padding: 16px;
  margin-bottom: 14px;
  overflow: hidden;
}
.bonus-rake-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.bonus-rake-main h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 19px;
  font-weight: 950;
}
.bonus-rake-main p {
  margin: 0;
  max-width: 24ch;
  color: rgba(213, 225, 236, 0.64);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}
.bonus-percent-orb {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(35, 232, 110, 0.64);
  background: radial-gradient(circle at 50% 45%, rgba(35, 232, 110, 0.22), rgba(7, 18, 27, 0.96) 66%);
  color: #35e876;
  font-size: 20px;
  font-weight: 950;
  box-shadow: 0 0 28px rgba(35, 232, 110, 0.24);
}
.bonus-rake-claim-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.bonus-rake-reference .bonus-kpi-label {
  color: rgba(213, 225, 236, 0.58);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}
.bonus-rake-reference .bonus-kpi-value {
  margin-top: 4px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}
.bonus-claim-btn {
  height: 40px;
  min-width: 0;
  border-radius: 9px;
  border-color: rgba(35, 232, 110, 0.28);
  background: linear-gradient(180deg, #1bd75d, #07943a);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}
.bonus-claim-btn:disabled {
  background: rgba(35, 232, 110, 0.1);
  color: rgba(232, 241, 247, 0.48);
}
.bonus-rake-meta {
  display: none;
  gap: 12px;
  margin-top: 12px;
  color: rgba(213, 225, 236, 0.42);
  font-size: 10px;
  font-weight: 800;
}
.bonus-rake-meta b {
  color: rgba(232, 241, 247, 0.72);
}
.bonus-leagues-card {
  padding: 14px;
}
.bonus-leagues-card .bonus-card-head {
  margin-bottom: 8px;
}

/* ── Profile balance action group (Deposit + Withdraw) ───── */
.profile-balance-card:has(.profile-balance-actions) {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.profile-balance-card:has(.profile-balance-actions) .profile-balance-text {
  width: 100%;
}
.profile-balance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.profile-balance-actions .profile-dep-btn {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.profile-action-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}
.profile-wd-btn {
  background: linear-gradient(180deg, #2b3850, #1a2333) !important;
  color: #cad8ec !important;
  border: 1px solid rgba(120, 150, 200, 0.32) !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32) !important;
}
.profile-wd-btn:active { filter: brightness(0.92); }

/* ── Profile: bets / history cards ─────────────────────── */
.profile-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 26, 38, 0.96), rgba(8, 16, 24, 0.98));
  border: 1px solid rgba(40, 64, 86, 0.42);
}
.profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.profile-card-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #e8f1f7;
}
.profile-card-chip {
  font-size: 11px;
  font-weight: 800;
  color: rgba(232, 241, 247, 0.66);
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(120, 150, 200, 0.16);
}
.profile-card-link {
  background: transparent;
  border: 0;
  color: var(--emerald, #36d399);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}
.profile-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-empty {
  font-size: 12px;
  color: rgba(232, 241, 247, 0.42);
  text-align: center;
  padding: 12px 8px;
}
.profile-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(60, 80, 100, 0.22);
}
.profile-row.is-clickable {
  grid-template-columns: auto 1fr auto auto;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 120ms ease;
}
.profile-row.is-clickable:hover,
.profile-row.is-clickable:focus-visible {
  background: rgba(0, 199, 77, 0.1);
  border-color: rgba(0, 199, 77, 0.45);
  outline: none;
}
.profile-row.is-clickable:active {
  transform: scale(0.985);
}
.profile-row-chev {
  font-size: 22px;
  line-height: 1;
  color: rgba(0, 199, 77, 0.85);
  padding: 0 4px;
  font-weight: 700;
}
.profile-row-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(120, 150, 200, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.profile-row-icon.is-win  { background: rgba(54, 211, 153, 0.22); color: #36d399; }
.profile-row-icon.is-loss { background: rgba(239, 83, 80, 0.22);  color: #ff7173; }
.profile-row-icon.is-draw { background: rgba(180, 92, 255, 0.22); color: #c896ff; }
.profile-row-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-row-title {
  font-size: 13px;
  font-weight: 700;
  color: #e8f1f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-row-sub {
  font-size: 11px;
  color: rgba(232, 241, 247, 0.46);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-row-amount {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.profile-row-amount.is-win  { color: #36d399; }
.profile-row-amount.is-loss { color: #ff7173; }
.profile-row-amount.is-draw { color: #c896ff; }

/* ── Promocode card ──────────────────────────────────────── */
.bonus-promo-card { padding: 14px; }
.bonus-promo-hint {
  margin: 6px 0 12px;
  font-size: 12px;
  color: rgba(232, 241, 247, 0.66);
  line-height: 1.4;
}
.bonus-promo-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bonus-promo-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
  text-transform: uppercase;
}
.bonus-promo-input::placeholder { color: rgba(232, 241, 247, 0.32); letter-spacing: 0.04em; }
.bonus-promo-input:focus {
  border-color: var(--emerald, #36d399);
  background: rgba(54, 211, 153, 0.08);
}
.bonus-promo-input--hidden { display: none; }
.bonus-promo-input--hidden:not([hidden]) { display: block; }
.bonus-promo-card .bonus-claim-btn { width: 100%; }
.bonus-promo-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.bonus-promo-status.is-ok {
  background: rgba(54, 211, 153, 0.14);
  color: #36d399;
}
.bonus-promo-status.is-err {
  background: rgba(239, 83, 80, 0.14);
  color: #ff7173;
}
.bonus-leagues-card .bonus-chip {
  border: 0;
  background: transparent;
  color: rgba(213, 225, 236, 0.46);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}
.bonus-turnover-line {
  display: none;
  margin-top: 4px;
  color: rgba(213, 225, 236, 0.58);
  font-size: 12px;
  font-weight: 800;
}
.bonus-league-row {
  grid-template-columns: 50px minmax(0, 1fr) 64px;
  gap: 10px;
  min-height: 84px;
  padding: 12px 10px 12px 12px;
  border-color: var(--rank-line, rgba(30, 50, 64, 0.78));
  border-radius: 10px;
  background:
    radial-gradient(circle at 11% 50%, var(--rank-glow, rgba(35, 232, 110, 0.08)), transparent 34%),
    rgba(7, 18, 27, 0.74);
}
.bonus-league-row.is-reached {
  border-color: rgba(35, 232, 110, 0.38);
}
.bonus-league-row.is-claimed {
  background:
    radial-gradient(circle at 11% 50%, var(--rank-glow, rgba(35, 232, 110, 0.12)), transparent 36%),
    rgba(7, 34, 17, 0.42);
}
.bonus-league-medal {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}
.bonus-rank-cube {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.38));
}
.bonus-league-copy {
  min-width: 0;
}
.bonus-league-row .bonus-league-top {
  display: block;
}
.bonus-league-level {
  font-size: 14px;
  font-weight: 950;
}
.bonus-league-sub {
  margin-top: 6px;
  font-size: 11px;
  white-space: nowrap;
}
.bonus-league-progress-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  margin-top: 7px;
}
.bonus-league-row .bonus-progress {
  height: 5px;
  margin: 0;
}
.bonus-league-reward {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: #fff;
}
.bonus-league-reward span {
  color: rgba(213, 225, 236, 0.5);
  font-size: 10px;
  font-weight: 850;
}
.bonus-league-reward b {
  color: #fff;
  font-size: 17px;
  font-weight: 950;
}
.bonus-league-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
}
.bonus-league-percent {
  color: rgba(213, 225, 236, 0.52);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}
.bonus-league-claim {
  min-width: 58px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 10px;
}

.profile-player-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  overflow: hidden;
}
.profile-avatar-frame {
  width: 86px;
  height: 86px;
  grid-row: span 2;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid #22e86e;
  background: radial-gradient(circle, rgba(35, 232, 110, 0.2), rgba(5, 14, 21, 0.96));
}
.profile-avatar-img,
.profile-avatar-fallback {
  width: 100%;
  height: 100%;
}
.profile-avatar-img {
  display: block;
  object-fit: cover;
}
.profile-avatar-fallback {
  display: grid;
  place-items: center;
  color: #eafff3;
  font-size: 34px;
  font-weight: 950;
}
.profile-player-copy {
  min-width: 0;
  align-self: center;
}
.profile-hero-name {
  color: #f8fbff;
  font-size: 21px;
  font-weight: 950;
}
.profile-hero-meta {
  display: flex;
  gap: 12px;
  margin-top: 7px;
  color: rgba(213, 225, 236, 0.48);
  font-size: 11px;
  font-weight: 800;
}
.profile-xp-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  margin-top: 2px;
}
.profile-level {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(35, 232, 110, 0.58);
  color: #35e876;
  font-size: 16px;
  font-weight: 950;
}
.profile-xp-track,
.profile-wr-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(38, 59, 73, 0.6);
}
.profile-xp-track span,
.profile-wr-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #22e86e;
}
.profile-xp-text {
  grid-column: 2;
  color: rgba(213, 225, 236, 0.48);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}
.profile-balance-card {
  display: flex;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  flex-direction: row;
  justify-content: space-between;
}
.profile-balance-value {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}
.profile-dep-btn {
  min-width: 118px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(35, 232, 110, 0.42);
  background: linear-gradient(180deg, #17cf5a, #087f36);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(35, 232, 110, 0.18);
}
.profile-stats-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(92px, auto);
  margin-top: 14px;
  padding: 0;
  overflow: hidden;
  border-collapse: separate;
  background: linear-gradient(180deg, rgba(9, 20, 30, 0.96), rgba(5, 13, 20, 0.98));
}
.profile-stat-tile {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 17px 16px 15px;
  min-width: 0;
  border-right: 1px solid rgba(30, 50, 64, 0.62);
  border-bottom: 1px solid rgba(30, 50, 64, 0.62);
}
.profile-stat-tile:nth-child(2n) {
  border-right: 0;
}
.profile-stat-tile:nth-last-child(-n+2) {
  border-bottom: 0;
}
.profile-stat-tile:nth-child(n+5) {
  border-bottom: 0;
}
.profile-stat-tile span {
  color: rgba(213, 225, 236, 0.48);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}
.profile-stat-tile strong {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.05;
  white-space: nowrap;
}
.profile-stat-tile .profile-wr-track {
  width: 100%;
  max-width: 124px;
}
.profile-stat-tile strong.pos,
.profile-stat-tile .pos {
  color: #35e876;
}
.profile-menu-card {
  margin-top: 14px;
  overflow: hidden;
}
.profile-menu-row {
  width: 100%;
  min-height: 48px;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(30, 50, 64, 0.52);
  background: transparent;
  color: #e9f3fb;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 120ms ease;
  -webkit-tap-highlight-color: transparent;
}
.profile-menu-row:active {
  background: rgba(35, 232, 110, 0.06);
  transform: scale(0.992);
}
.profile-menu-row:last-child {
  border-bottom: 0;
}
.profile-menu-row small {
  margin-left: auto;
  color: rgba(35, 232, 110, 0.72);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.profile-menu-row::after { content: none; }
.profile-menu-row.logout {
  color: #ff4d67;
}
.profile-menu-row.logout:active {
  background: rgba(255, 77, 103, 0.08);
}
.ui-stroke-icon,
.menu-icon,
.menu-arrow {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: currentColor;
}
.ui-stroke-icon {
  width: 21px;
  height: 21px;
}
.section-icon-btn .referral-icon,
.profile-menu-row .referral-icon {
  color: #35e876;
  filter: drop-shadow(0 0 8px rgba(35, 232, 110, 0.28));
}
.menu-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-arrow {
  width: 18px;
  height: 18px;
  margin-left: 10px;
  color: rgba(213, 225, 236, 0.34);
}

#settings-sheet {
  position: fixed;
  inset: 0;
  z-index: 430;
  display: none;
  pointer-events: none;
}
#settings-sheet.open {
  display: block;
  pointer-events: auto;
}
.settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 13, 0.78);
  opacity: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 220ms ease;
}
#settings-sheet.open .settings-backdrop {
  opacity: 1;
}
.settings-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 86dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  border-top: 1px solid rgba(35, 232, 110, 0.24);
  background:
    radial-gradient(ellipse 80% 32% at 50% 0%, rgba(35, 232, 110, 0.12), transparent 62%),
    linear-gradient(180deg, #0d1b27 0%, #06111a 100%);
  box-shadow: 0 -20px 52px rgba(0, 0, 0, 0.72), 0 -1px 0 rgba(35, 232, 110, 0.18);
  transform: translateY(105%);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0 16px calc(18px + env(safe-area-inset-bottom));
}
#settings-sheet.open .settings-card {
  transform: translateY(0);
}
.settings-handle {
  width: 40px;
  height: 4px;
  margin: 10px auto 8px;
  border-radius: 99px;
  background: rgba(214, 230, 241, 0.28);
}
.settings-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(242, 248, 252, 0.76);
  font-size: 18px;
  line-height: 1;
}
.settings-head {
  padding: 4px 2px 14px;
}
.settings-head span {
  display: block;
  color: rgba(35, 232, 110, 0.78);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.settings-head h2 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.08;
}
.settings-list {
  overflow: hidden;
  border: 1px solid rgba(30, 50, 64, 0.82);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 20, 29, 0.98), rgba(4, 12, 19, 0.98));
}
.settings-group-label {
  padding: 12px 14px 7px;
  border-bottom: 1px solid rgba(30, 50, 64, 0.42);
  color: rgba(35, 232, 110, 0.66);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.settings-group-label + .settings-row {
  border-top: 0;
}
.settings-row {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(30, 50, 64, 0.58);
  background: transparent;
  color: #ecf7ff;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.settings-row:last-child {
  border-bottom: 0;
}
.settings-row:active {
  background: rgba(35, 232, 110, 0.06);
}
.settings-row-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(35, 232, 110, 0.28);
  background: rgba(35, 232, 110, 0.08);
  color: #35e876;
}
.settings-row-icon svg,
.settings-arrow {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.settings-row-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.settings-row-copy strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.05;
}
.settings-row-copy small {
  color: rgba(213, 225, 236, 0.48);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}
.settings-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.settings-switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex: 0 0 46px;
  border-radius: 99px;
  background: rgba(71, 91, 105, 0.42);
  border: 1px solid rgba(112, 135, 150, 0.22);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.settings-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #cdd9e2;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background 160ms ease;
}
.settings-toggle-input:checked + .settings-switch {
  border-color: rgba(35, 232, 110, 0.52);
  background: rgba(35, 232, 110, 0.24);
  box-shadow: 0 0 16px rgba(35, 232, 110, 0.14);
}
.settings-toggle-input:checked + .settings-switch::after {
  transform: translateX(18px);
  background: #35e876;
}
body.route-videos-disabled .section-video-media,
body.route-videos-disabled #ref-video,
body.route-videos-disabled #dep-video {
  display: none;
}

.hero-avatars {
  display: inline-flex;
}
.hero-avatar,
.win-avatar {
  display: block;
  object-fit: cover;
}
.hero-avatar.avatar-fallback,
.win-avatar.avatar-fallback {
  display: inline-grid;
}
.live-feed-empty {
  min-height: 54px;
  display: grid;
  place-items: center;
  color: rgba(213, 225, 236, 0.46);
  font-size: 12px;
  font-weight: 800;
}

.section-video-card {
  position: relative;
  height: 142px;
  margin: 0 0 14px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 14px;
  border: 1px solid rgba(30, 50, 64, 0.78);
  background: #07121b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 14px 30px rgba(0, 0, 0, 0.28);
}
.section-video-media,
.section-video-card video,
.section-video-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.7;
}
.section-video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 86% 12%, rgba(35, 232, 110, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(3, 8, 13, 0.08), rgba(3, 8, 13, 0.72) 68%, rgba(3, 8, 13, 0.94));
  pointer-events: none;
}
.section-video-card::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35, 232, 110, 0.44), transparent);
  pointer-events: none;
}
.section-video-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 15px;
  z-index: 3;
  display: grid;
  gap: 5px;
}
.section-video-copy span {
  color: #35e876;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-video-copy strong {
  color: #f8fbff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.05;
}
.profile-media-card {
  height: 132px;
}
.results-media-card {
  height: 136px;
}
.bonus-media-card {
  height: 146px;
  border-color: rgba(255, 213, 112, 0.2);
}
.bonus-media-card::before {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 213, 112, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(3, 8, 13, 0.06), rgba(3, 8, 13, 0.7) 68%, rgba(3, 8, 13, 0.94));
}
.bonus-media-card .section-video-copy span {
  color: #ffe08a;
}

/* ═══════════════════════════════════════════════════
   MSWAG UI ENHANCEMENT LAYER — 2026 Premium Refresh
   ═══════════════════════════════════════════════════ */

/* ── 1. Animated ambient background gradients ──── */
@keyframes ambientDrift {
  0%   { background-position: 0% 0%, 100% 100%, center; }
  50%  { background-position: 100% 50%, 0% 50%, center; }
  100% { background-position: 0% 0%, 100% 100%, center; }
}

#screen-lobby {
  background-size: 200% 200%, 200% 200%, 100%;
  animation: ambientDrift 18s ease-in-out infinite;
}

#screen-profile {
  background-size: 100%, 200% 200%, 100%, 100%;
}

/* ── 2. Enhanced game card hover/active ─────────── */
.game-card {
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 280ms ease !important;
  will-change: transform, box-shadow;
}

.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at 50% 30%, rgba(0, 199, 77, 0.12), transparent 60%);
  transition: opacity 300ms ease;
  pointer-events: none;
  z-index: 2;
}

.game-card:active::after,
.game-card.selected::after {
  opacity: 1;
}

.game-card:active {
  transform: scale(0.96) translateY(1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 199, 77, 0.08) !important;
}

.game-card.selected {
  border-color: rgba(0, 199, 77, 0.52) !important;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(0, 199, 77, 0.15),
    inset 0 1px 0 rgba(0, 199, 77, 0.08) !important;
}

.game-card-img {
  transition: filter 400ms ease, transform 400ms ease !important;
}

.game-card:active .game-card-img {
  filter: saturate(1.08) !important;
  transform: scale(1.1) !important;
}

.game-card.selected .game-card-img {
  filter: saturate(1.05) !important;
}

/* ── 3. Quick game card improvements ───────────── */
.quick-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(30, 50, 64, 0.58);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms ease, box-shadow 240ms ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.quick-game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 20%, rgba(35, 232, 110, 0.14), transparent 58%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.quick-game-card:active {
  transform: scale(0.94);
  border-color: rgba(35, 232, 110, 0.38);
}

.quick-game-card:active::before {
  opacity: 1;
}

/* ── 4. Balance panel shimmer effect ───────────── */
@keyframes balanceShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.balance-panel .lobby-balance {
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 40%,
    rgba(35, 232, 110, 0.6) 50%,
    #fff 60%,
    #fff 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: balanceShimmer 4s ease-in-out infinite;
}

/* ── 5. Enhanced deposit screen ────────────────── */
#screen-deposit {
  background:
    linear-gradient(180deg, rgba(2, 8, 14, 0.72), rgba(2, 8, 14, 0.96)),
    radial-gradient(circle at 50% 6%, rgba(35, 232, 110, 0.14), transparent 28%),
    url('assets/section-covers/generated/deposit-generated.webp') center 10% / cover no-repeat,
    linear-gradient(180deg, #020910 0%, #05111a 52%, #02070d 100%);
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.dep-header {
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
}

.dep-back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(30, 50, 64, 0.72);
  background: linear-gradient(180deg, rgba(8, 20, 29, 0.96), rgba(4, 12, 19, 0.98));
  transition: transform 160ms ease, background 160ms ease;
}

.dep-back:active {
  transform: scale(0.9);
  background: rgba(35, 232, 110, 0.08);
}

.dep-title {
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.dep-balance {
  font-size: 30px;
  font-weight: 950;
  color: #fff;
  text-shadow: 0 0 18px rgba(35, 232, 110, 0.32);
  padding: 18px 16px;
}

.dep-methods {
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.dep-method-btn {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(30, 50, 64, 0.72);
  background: linear-gradient(180deg, rgba(8, 20, 29, 0.98), rgba(4, 12, 19, 0.98));
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dep-method-btn.active {
  border-color: rgba(35, 232, 110, 0.52);
  background: linear-gradient(180deg, rgba(35, 232, 110, 0.18), rgba(35, 232, 110, 0.06));
  color: #eafff3;
  box-shadow: 0 0 18px rgba(35, 232, 110, 0.12);
}

.dep-preset {
  min-height: 42px;
  border-radius: 10px;
  font-weight: 800;
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dep-preset.active {
  border-color: rgba(35, 232, 110, 0.52);
  background: linear-gradient(180deg, rgba(35, 232, 110, 0.16), rgba(35, 232, 110, 0.06));
  color: #eafff3;
  box-shadow: 0 0 14px rgba(35, 232, 110, 0.14);
  transform: scale(1.02);
}

.dep-pay-btn {
  min-height: 52px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #17cf5a, #087f36);
  border: 1px solid rgba(0, 255, 100, 0.32);
  box-shadow: 0 10px 24px rgba(0, 199, 77, 0.22);
  transition: all 220ms ease;
}

.dep-pay-btn:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow: 0 4px 14px rgba(0, 199, 77, 0.3);
}

.dep-custom-input {
  min-height: 46px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.dep-custom-input:focus {
  border-color: rgba(35, 232, 110, 0.48);
  box-shadow: 0 0 16px rgba(35, 232, 110, 0.1), inset 0 0 0 1px rgba(35, 232, 110, 0.08);
}

/* ── 6. Enhanced tab bar ───────────────────────── */
.tab-bar {
  height: auto;
  min-height: 62px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) 12px;
  background: linear-gradient(180deg, rgba(3, 9, 16, 0.98), rgba(2, 7, 12, 0.99));
  border-top: 1px solid rgba(30, 50, 64, 0.52);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.32);
}

.tab-btn {
  gap: 4px;
  padding: 6px 10px;
  border-radius: 14px;
  transition: color 200ms ease, background 200ms ease;
}

.tab-btn.active {
  color: #fff;
  background: rgba(35, 232, 110, 0.1);
}

.tab-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease, opacity 220ms ease, color 200ms ease;
}

.tab-btn.active .tab-icon {
  color: #35e876;
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 0 8px rgba(35, 232, 110, 0.5));
}

.tab-btn span {
  font-size: 10px;
  transition: color 200ms ease;
}

.tab-btn.active span {
  color: rgba(35, 232, 110, 0.82);
  font-weight: 800;
}

.tab-btn::after {
  width: 20px;
  height: 2.5px;
  bottom: 3px;
  background: linear-gradient(90deg, transparent, #35e876, transparent);
  border-radius: 999px;
}

/* ── 7. Profile enhancements ──────────────────── */
.profile-avatar-frame {
  position: relative;
  border: 2.5px solid transparent;
  background-image: linear-gradient(rgba(5, 14, 21, 0.96), rgba(5, 14, 21, 0.96)),
    conic-gradient(from 0deg, #35e876, #4da3ff, #b45cff, #f5a623, #35e876);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 22px rgba(35, 232, 110, 0.22);
}

@keyframes avatarBorderRotate {
  to { --avatar-angle: 360deg; }
}

.profile-stat-tile {
  position: relative;
  overflow: hidden;
  transition: background 200ms ease;
}

.profile-stat-tile::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35, 232, 110, 0.14), transparent);
  pointer-events: none;
}

.profile-stat-tile:active {
  background: rgba(35, 232, 110, 0.04);
}

.profile-stat-tile strong {
  transition: color 300ms ease;
}

.profile-balance-card {
  position: relative;
  overflow: hidden;
}

.profile-balance-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(35, 232, 110, 0.08), transparent 42%);
  pointer-events: none;
}

/* ── 8. Action hero card enhancements ──────────── */
.action-hero {
  position: relative;
}

@keyframes heroGlowPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), inset 0 -1px 0 rgba(35, 232, 110, 0.08), 0 18px 34px rgba(0, 0, 0, 0.32); }
  50%  { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), inset 0 -1px 0 rgba(35, 232, 110, 0.16), 0 18px 34px rgba(0, 0, 0, 0.32), 0 0 38px rgba(35, 232, 110, 0.06); }
}

.action-primary-btn {
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.action-primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3.5s ease-in-out infinite;
}

@keyframes btnShine {
  0%   { left: -100%; }
  20%, 100% { left: 200%; }
}

.action-primary-btn:active {
  transform: scale(0.96) !important;
  filter: brightness(0.92);
}

/* ── 9. Live feed improvements ─────────────────── */
.live-feed-item {
  transition: background 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.live-feed-item:active {
  background: rgba(35, 232, 110, 0.05);
}

@keyframes liveFeedSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.live-feed-item:first-child {
  animation: liveFeedSlideIn 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.win-mult {
  text-shadow: 0 0 12px rgba(35, 232, 110, 0.32);
}

.win-amount {
  font-variant-numeric: tabular-nums;
}

/* ── 10. Waiting screen enhancement ────────────── */
#screen-waiting {
  background:
    radial-gradient(circle at 50% 40%, rgba(35, 232, 110, 0.08), transparent 32%),
    rgba(3, 8, 14, 0.95);
}

#screen-waiting::before {
  background: rgba(2, 6, 11, 0.82);
}

.waiting-spinner {
  width: 64px;
  height: 64px;
  border-width: 3px;
  border-color: rgba(35, 232, 110, 0.12);
  border-top-color: #35e876;
  box-shadow: 0 0 32px rgba(35, 232, 110, 0.1);
}

.waiting-title {
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0.01em;
}

@keyframes waitingDots {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

.waiting-sub {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.waiting-timer {
  font-size: 18px;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(35, 232, 110, 0.08);
  border: 1px solid rgba(35, 232, 110, 0.22);
}

.waiting-btn {
  min-height: 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  transition: all 200ms ease;
}

.btn-back {
  background: linear-gradient(180deg, rgba(8, 20, 29, 0.98), rgba(4, 12, 19, 0.98));
  border: 1px solid rgba(30, 50, 64, 0.72);
}

.btn-cancel {
  background: linear-gradient(180deg, rgba(64, 12, 12, 0.68), rgba(32, 6, 6, 0.78));
  border: 1px solid rgba(255, 60, 60, 0.28);
}

/* ── 11. Result screen enhancements ────────────── */
.result-modal-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.result-title {
  font-size: 32px;
  font-weight: 950;
  letter-spacing: 0.03em;
}

.result-amount {
  font-size: 24px;
  font-weight: 800;
}

.result-amount.positive {
  text-shadow: 0 0 18px rgba(35, 232, 110, 0.5);
}

.result-video-wrap {
  border-radius: 14px;
  border: 1px solid rgba(35, 232, 110, 0.14);
}

.result-back {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(30, 50, 64, 0.68);
  background: linear-gradient(180deg, rgba(8, 20, 29, 0.92), rgba(4, 12, 19, 0.96));
  transition: transform 160ms ease, background 160ms ease;
}

.result-back:active {
  transform: scale(0.93);
  background: rgba(35, 232, 110, 0.08);
}

/* ── 12. Toast enhancements ────────────────────── */
.toast {
  border-radius: 14px;
  border: 1px solid rgba(30, 50, 64, 0.62);
  background: linear-gradient(180deg, rgba(8, 18, 28, 0.98), rgba(4, 11, 18, 0.99));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.toast.ok {
  border-color: rgba(35, 232, 110, 0.38);
}

.toast.err {
  border-color: rgba(255, 60, 60, 0.38);
}

.toast.info {
  border-color: rgba(77, 163, 255, 0.38);
}

.toast.visible {
  transform: translateY(0);
  animation: toastBounceIn 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes toastBounceIn {
  0%   { transform: translateY(-110%) scale(0.95); opacity: 0; }
  60%  { transform: translateY(4px) scale(1.01); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ── 13. Referral sheet enhancements ───────────── */
.ref-card {
  background:
    linear-gradient(180deg, rgba(5, 11, 18, 0.64), rgba(5, 11, 18, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(35, 232, 110, 0.14), transparent 34%),
    url('assets/section-covers/generated/referral-generated.webp') center 18% / cover no-repeat,
    linear-gradient(180deg, #0d1b27 0%, #06111a 100%);
}

.ref-btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, filter 160ms ease;
}

.ref-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3s ease-in-out infinite;
}

/* ── 14. Settings sheet enhancements ───────────── */
.settings-row {
  transition: background 160ms ease, transform 120ms ease;
}

.settings-row:active {
  transform: scale(0.993);
}

.settings-row-icon {
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.settings-row:active .settings-row-icon {
  border-color: rgba(35, 232, 110, 0.42);
  box-shadow: 0 0 12px rgba(35, 232, 110, 0.14);
}

/* ── 15. Scroll-snap for lobby sections ────────── */
#screen-lobby {
  scroll-snap-type: y proximity;
}

.action-hero,
.quick-section,
.lobby-view-games,
.live-strip {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* ── 16. Better focus indicators (a11y) ────────── */
.tab-btn:focus-visible,
.action-primary-btn:focus-visible,
.play-btn:focus-visible,
.dep-pay-btn:focus-visible,
.dep-method-btn:focus-visible,
.profile-dep-btn:focus-visible,
.deposit-btn:focus-visible {
  outline: 2px solid rgba(35, 232, 110, 0.62);
  outline-offset: 2px;
}

/* ── 17. Intro mascot float animation ──────────── */
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.intro-mascot {
  animation: mascotFloat 3s ease-in-out infinite !important;
}

/* ── 18. News card hover shimmer ───────────────── */
.news-cover {
  position: relative;
  overflow: hidden;
}

.news-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(35, 232, 110, 0.06), transparent);
  transform: skewX(-15deg);
  animation: newsShimmer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes newsShimmer {
  0%   { left: -100%; }
  30%, 100% { left: 200%; }
}

/* ── 19. Deposit check section ─────────────────── */
.dep-check-input {
  min-height: 46px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.dep-check-input:focus {
  border-color: rgba(35, 232, 110, 0.48);
  box-shadow: 0 0 14px rgba(35, 232, 110, 0.1);
}

.dep-check-btn {
  min-height: 46px;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 900;
  border: 1px solid rgba(35, 232, 110, 0.38);
  background: linear-gradient(180deg, rgba(35, 232, 110, 0.18), rgba(35, 232, 110, 0.08));
  color: #eafff3;
  transition: all 200ms ease;
}

.dep-check-btn:active {
  transform: scale(0.95);
  filter: brightness(0.92);
}

/* ── 20. Bonus section enhancements ────────────── */
.bonus-percent-orb {
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms ease;
}

.bonus-percent-orb:active {
  transform: scale(1.08);
  box-shadow: 0 0 38px rgba(35, 232, 110, 0.36);
}

.bonus-league-row {
  transition: transform 200ms ease, border-color 200ms ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bonus-league-row:active {
  transform: scale(0.98);
}

.bonus-league-row.is-reached {
  position: relative;
  overflow: hidden;
}

.bonus-league-row.is-reached::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(35, 232, 110, 0.08), transparent 42%);
  pointer-events: none;
}

/* ── 21. Bet chip enhancements ─────────────────── */
.bet-chip {
  transition: all 220ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.bet-chip.selected {
  transform: none;
  border-color: rgba(35, 232, 110, 0.52) !important;
  background: linear-gradient(180deg, rgba(35, 232, 110, 0.16), rgba(35, 232, 110, 0.06)) !important;
  color: #eafff3 !important;
  box-shadow: 0 0 16px rgba(35, 232, 110, 0.14) !important;
}

.bet-chip:active {
  transform: scale(0.94) !important;
}

/* ── 22. Play button enhancement ───────────────── */
.play-btn:not(:disabled) {
  background: linear-gradient(180deg, #17cf5a, #087f36) !important;
  border: 1px solid rgba(0, 255, 100, 0.32) !important;
  box-shadow: 0 10px 24px rgba(0, 199, 77, 0.22), 0 0 32px rgba(0, 199, 77, 0.08) !important;
  transition: all 220ms ease !important;
}

.play-btn:not(:disabled)::before {
  animation: btnShine 3.5s ease-in-out infinite !important;
}

.play-btn:not(:disabled):active {
  transform: scale(0.97) !important;
  box-shadow: 0 4px 14px rgba(0, 199, 77, 0.32) !important;
}

/* ── 23. Duel card enhancements ────────────────── */
.duel-card {
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.duel-card:active {
  transform: scale(0.98);
}

.join-btn {
  min-height: 34px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid rgba(35, 232, 110, 0.32);
  background: rgba(35, 232, 110, 0.08);
  color: #eafff3;
  transition: all 200ms ease;
}

.join-btn:active {
  transform: scale(0.93);
  background: rgba(35, 232, 110, 0.16);
}

/* ── 24. Section video card depth ──────────────── */
.section-video-card {
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.section-video-card:active {
  transform: scale(0.985);
}

/* ── 25. Fairness badge enhancements ───────────── */
.fairness-badge {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(35, 232, 110, 0.22);
  background: rgba(4, 12, 19, 0.86);
  transition: transform 200ms ease, background 200ms ease;
}

.fairness-badge:active {
  transform: scale(0.94);
  background: rgba(35, 232, 110, 0.08);
}

/* ── 26. Override mobile animation kill ─────────── */
@media (max-width: 768px), (pointer: coarse) {
  /* Allow key animations on mobile */
  .intro-mascot,
  .balance-panel .lobby-balance,
  .action-primary-btn::before,
  .live-feed-item:first-child,
  .toast.visible,
  .intro-bar-fill::after,
  .waiting-spinner,
  .news-cover::after,
  .ref-btn-primary::before {
    animation-duration: inherit !important;
    transition-duration: inherit !important;
  }

  .intro-mascot {
    animation: mascotFloat 3s ease-in-out infinite !important;
  }

  .balance-panel .lobby-balance {
    animation: balanceShimmer 5s ease-in-out infinite !important;
  }

  .waiting-spinner {
    animation: spin 1s linear infinite !important;
  }
}

/* ── 27. Smooth scroll behavior ────────────────── */
#screen-lobby,
#screen-profile,
#screen-results,
#screen-bonuses,
#screen-deposit {
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

/* ── 28. Better skeleton loading states ────────── */
@keyframes skeletonPulse {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(30, 50, 64, 0.3) 0%,
    rgba(30, 50, 64, 0.5) 50%,
    rgba(30, 50, 64, 0.3) 100%
  );
  background-size: 200% 100%;
  animation: skeletonPulse 1.6s linear infinite;
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════
   ARENA — Tournaments & Quests
   Matches the same design language as Bonuses / Profile / Results.
   ═══════════════════════════════════════════════════════════ */
#screen-arena {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background:
    radial-gradient(ellipse 130% 30% at 50% 0%, rgba(255, 213, 112, 0.06), transparent 60%),
    radial-gradient(ellipse 80% 30% at 100% 100%, rgba(35, 232, 110, 0.04), transparent 60%),
    #0c1620;
  padding-bottom: 92px;
}
.arena-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.arena-shell > * { animation: arenaFadeIn 360ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.arena-shell > *:nth-child(1) { animation-delay: 0ms; }
.arena-shell > *:nth-child(2) { animation-delay: 40ms; }
.arena-shell > *:nth-child(3) { animation-delay: 80ms; }
.arena-shell > *:nth-child(4) { animation-delay: 120ms; }
@keyframes arenaFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.arena-refresh-icon { width: 22px; height: 22px; }

/* ─── HERO MEDIA CARD ─────────────────────────────────────── */
.arena-media-card {
  height: 168px;
  border-color: rgba(255, 213, 112, 0.22);
}
.arena-media-card::before {
  background:
    radial-gradient(circle at 80% 14%, rgba(255, 213, 112, 0.22), transparent 38%),
    radial-gradient(circle at 12% 90%, rgba(35, 232, 110, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(3, 8, 13, 0.10), rgba(3, 8, 13, 0.78) 70%, rgba(3, 8, 13, 0.96));
}
.arena-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
}
.arena-hero-burst {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.85;
  mix-blend-mode: screen;
  animation: arenaBurstPulse 6s ease-in-out infinite;
}
@keyframes arenaBurstPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.95; transform: scale(1.05); }
}
.arena-hero-copy {
  bottom: 18px;
  z-index: 3;
}
.arena-hero-copy span {
  color: #ffd570;
  text-shadow: 0 0 12px rgba(255, 213, 112, 0.3);
}
.arena-hero-copy strong {
  font-size: 23px;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}
.arena-hero-copy .arena-hero-resets {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: rgba(213, 225, 236, 0.66);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.arena-hero-copy .arena-hero-resets b {
  color: #fff;
  font-weight: 800;
  margin-left: 2px;
}
.arena-reset-chip {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  min-height: 26px;
  border-radius: 999px;
  background: rgba(7, 18, 27, 0.85);
  border: 1px solid rgba(255, 213, 112, 0.32);
  color: rgba(255, 227, 154, 0.92);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.arena-reset-chip svg {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.arena-reset-chip b {
  color: #fff;
  font-weight: 900;
  margin-left: 2px;
  letter-spacing: 0;
  text-transform: none;
}

/* ─── KPI STRIP (Активно / Готово / Забрано) ──────────────── */
.arena-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.arena-stat-tile {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 8px;
  padding: 9px 9px;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(30, 50, 64, 0.78);
  background: linear-gradient(180deg, rgba(7, 18, 27, 0.98), rgba(4, 11, 18, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 10px 22px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  min-width: 0;
}
.arena-stat-tile::after {
  content: '';
  position: absolute;
  inset: -55% -40% auto auto;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--arena-stat-color, rgba(255, 213, 112, 0.32)), transparent 60%);
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}
.arena-stat-tile > * { position: relative; z-index: 1; }
.arena-stat-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid var(--arena-stat-border, rgba(255, 213, 112, 0.32));
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.16), transparent 42%),
    rgba(8, 15, 22, 0.74);
  color: var(--arena-stat-color, #ffd570);
  box-shadow:
    inset 0 0 16px var(--arena-stat-glow, rgba(255, 213, 112, 0.2)),
    0 0 18px var(--arena-stat-glow, rgba(255, 213, 112, 0.16));
}
.arena-stat-icon svg {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.arena-stat-body {
  width: 100%;
  min-width: 0;
}
.arena-stat-value {
  font-family: var(--font-mono);
  display: block;
  max-width: 100%;
  font-size: clamp(17px, 4.8vw, 22px);
  line-height: 1;
  font-weight: 950;
  color: #f3f9ff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 14px var(--arena-stat-glow, rgba(255, 255, 255, 0.12));
}
.arena-stat-tile--active {
  --arena-stat-color: #ffd570;
  --arena-stat-glow: rgba(255, 213, 112, 0.22);
  --arena-stat-border: rgba(255, 213, 112, 0.40);
}
.arena-stat-tile--active .arena-stat-value { color: #ffe39a; }
.arena-stat-tile--ready {
  --arena-stat-color: #35e876;
  --arena-stat-glow: rgba(35, 232, 110, 0.22);
  --arena-stat-border: rgba(35, 232, 110, 0.40);
}
.arena-stat-tile--ready .arena-stat-value { color: #b6f4cd; }
.arena-stat-tile--reward {
  --arena-stat-color: #d49eff;
  --arena-stat-glow: rgba(180, 92, 255, 0.22);
  --arena-stat-border: rgba(180, 92, 255, 0.40);
}
.arena-stat-tile--reward .arena-stat-value {
  color: #e0c2ff;
  font-size: clamp(14px, 4.1vw, 18px);
  letter-spacing: -0.065em;
}

/* ─── VIEW TABS (Top players ↔ Quests) ────────────────────── */
.arena-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(7, 18, 27, 0.82);
  border: 1px solid rgba(30, 50, 64, 0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025), 0 6px 18px rgba(0,0,0,0.3);
}
.arena-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(213, 225, 236, 0.62);
  font-family: var(--font-native);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 180ms ease;
}
.arena-tab svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor;
  stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round;
}
.arena-tab.is-active {
  color: #fff;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(255, 213, 112, 0.22), transparent 70%),
    rgba(20, 32, 46, 0.95);
  border-color: rgba(255, 213, 112, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 213, 112, 0.12), 0 6px 18px rgba(0, 0, 0, 0.4);
}
.arena-tab:active { transform: scale(0.97); }

/* ─── BOARD CARD ──────────────────────────────────────────── */
.arena-board-card {
  padding: 16px;
}
.arena-board-icon {
  width: 22px; height: 22px;
  color: #ffd570;
}
.bonus-card-title svg.arena-board-icon { stroke: currentColor; fill: none; stroke-width: 1.75; }
.arena-chip-period {
  border-color: rgba(255, 213, 112, 0.36);
  background: rgba(255, 213, 112, 0.10);
  color: #ffe39a;
  font-variant-numeric: tabular-nums;
}

/* ─── FILTER BAR ──────────────────────────────────────────── */
.arena-filter-bar {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arena-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.arena-filter-label {
  color: rgba(200, 216, 232, 0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.arena-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(8, 15, 22, 0.72);
  border: 1px solid rgba(33, 61, 87, 0.55);
}
.arena-pill {
  min-height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(213, 225, 236, 0.6);
  font-family: var(--font-native);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms ease;
}
.arena-pill svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round;
}
.arena-pill.is-active {
  color: #fff;
  background: rgba(35, 232, 110, 0.16);
  border-color: rgba(35, 232, 110, 0.45);
  box-shadow: 0 4px 14px rgba(35, 232, 110, 0.18);
}
.arena-pill:active { transform: scale(0.96); }

/* ─── PODIUM (TOP-3) ──────────────────────────────────────── */
.arena-podium {
  margin-top: 14px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 10px;
  align-items: end;
  padding: 18px 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 213, 112, 0.22);
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(255, 213, 112, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(15, 27, 38, 0.95), rgba(7, 14, 22, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 30px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}
.arena-podium::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(35, 232, 110, 0.10), transparent 60%);
}
.podium-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px 12px;
  z-index: 1;
}
.podium-slot.rank-1 { order: 2; }
.podium-slot.rank-2 { order: 1; }
.podium-slot.rank-3 { order: 3; }
.podium-avatar-wrap {
  position: relative;
  padding: 4px;
  border-radius: 50%;
}
.podium-avatar-wrap::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #ffd570, #fff8e0, #ffd570, #b97712, #ffd570);
  opacity: 0.8;
  animation: podiumSpin 9s linear infinite;
}
.podium-slot.rank-2 .podium-avatar-wrap::before {
  background: conic-gradient(from 90deg, #c0c8d2, #f6faff, #c0c8d2, #525860, #c0c8d2);
}
.podium-slot.rank-3 .podium-avatar-wrap::before {
  background: conic-gradient(from 90deg, #c98855, #f1c39c, #c98855, #6d4624, #c98855);
}
@keyframes podiumSpin { to { transform: rotate(360deg); } }
.podium-avatar {
  position: relative; z-index: 1;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2c3a4d, #11202e);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 20px;
  border: 2px solid #07121b;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.podium-slot.rank-1 .podium-avatar {
  width: 70px; height: 70px;
  font-size: 26px;
}
.podium-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.podium-crown {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(255, 213, 112, 0.6));
  animation: crownFloat 2.6s ease-in-out infinite;
}
@keyframes crownFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
  50%      { transform: translateX(-50%) translateY(-3px) rotate(2deg); }
}
.podium-rank-badge {
  position: absolute;
  bottom: -4px; right: -4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #ffd570, #b97712);
  border: 2px solid #07121b;
  z-index: 2;
  font-variant-numeric: tabular-nums;
}
.podium-slot.rank-2 .podium-rank-badge { background: linear-gradient(135deg, #d6dee8, #6e7782); }
.podium-slot.rank-3 .podium-rank-badge { background: linear-gradient(135deg, #d99066, #6d4624); }
.podium-name {
  max-width: 100%;
  font-size: 12px; font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podium-value {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 900;
  color: #ffe39a;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(255, 213, 112, 0.35);
}
.podium-slot.rank-1 .podium-value { font-size: 14px; }
.podium-step {
  width: 100%;
  margin-top: 4px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 213, 112, 0.30), rgba(255, 213, 112, 0.05));
  border: 1px solid rgba(255, 213, 112, 0.40);
}
.podium-slot.rank-1 .podium-step { height: 26px; }
.podium-slot.rank-2 .podium-step {
  height: 18px;
  background: linear-gradient(180deg, rgba(214, 222, 232, 0.28), rgba(214, 222, 232, 0.05));
  border-color: rgba(214, 222, 232, 0.35);
}
.podium-slot.rank-3 .podium-step {
  height: 12px;
  background: linear-gradient(180deg, rgba(217, 144, 102, 0.28), rgba(217, 144, 102, 0.05));
  border-color: rgba(217, 144, 102, 0.35);
}
.arena-podium-empty {
  grid-column: 1 / -1;
  order: 4;
  padding: 28px 14px;
  text-align: center;
  color: rgba(213, 225, 236, 0.62);
  font-size: 13px;
  font-weight: 700;
}

/* ─── BOARD LIST (positions 4-30) ─────────────────────────── */
.arena-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.arena-list-row {
  display: grid;
  grid-template-columns: 32px 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(33, 61, 87, 0.55);
  background: rgba(8, 15, 22, 0.7);
  transition: border-color 200ms ease, transform 180ms ease;
}
.arena-list-row.is-me {
  border-color: rgba(35, 232, 110, 0.5);
  background: linear-gradient(135deg, rgba(35, 232, 110, 0.08), rgba(8, 15, 22, 0.92));
  box-shadow: 0 0 14px rgba(35, 232, 110, 0.16);
}
.arena-rank {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 900;
  color: rgba(213, 225, 236, 0.55);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.arena-list-row.r1 .arena-rank { color: #ffd570; }
.arena-list-row.r2 .arena-rank { color: #d6dee8; }
.arena-list-row.r3 .arena-rank { color: #d99066; }
.arena-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 30%, #2c3a4d, #11202e);
  color: #fff; font-weight: 900; font-size: 12px;
  overflow: hidden;
  border: 1px solid rgba(33, 61, 87, 0.55);
}
.arena-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arena-row-info {
  min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.arena-name {
  font-size: 13px; font-weight: 800;
  color: #f3f9ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arena-name-sub {
  font-size: 10px; font-weight: 700;
  color: rgba(213, 225, 236, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.arena-list-row.is-me .arena-name-sub {
  color: #b6f4cd;
}
.arena-value {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 900;
  color: #ffe39a;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.arena-list-empty {
  padding: 22px 14px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed rgba(33, 61, 87, 0.55);
  color: rgba(213, 225, 236, 0.55);
  font-size: 12px;
  font-weight: 700;
}

/* ─── QUEST GROUPS ────────────────────────────────────────── */
.quest-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quest-group { display: flex; flex-direction: column; gap: 10px; }
.quest-group-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px;
}
.quest-group-head h2 {
  margin: 0;
  font-size: 13px; font-weight: 900;
  color: #f3f9ff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.quest-group-head h2 svg {
  width: 14px; height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  fill: none; stroke: currentColor;
  stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round;
}
.quest-group-head .bonus-chip {
  border-color: rgba(35, 232, 110, 0.32);
  background: rgba(35, 232, 110, 0.10);
  color: #b6f4cd;
}
.quest-group.period-weekly .quest-group-head h2 { color: #d49eff; }
.quest-group.period-weekly .bonus-chip {
  border-color: rgba(180, 92, 255, 0.36);
  background: rgba(180, 92, 255, 0.10);
  color: #d49eff;
}
.quest-group.period-once .quest-group-head h2 { color: #ffe39a; }
.quest-group.period-once .bonus-chip {
  border-color: rgba(255, 213, 112, 0.36);
  background: rgba(255, 213, 112, 0.10);
  color: #ffe39a;
}

/* ─── QUEST CARD ──────────────────────────────────────────── */
.quest-list {
  display: flex; flex-direction: column;
  gap: 10px;
}
.quest-card {
  --quest-accent: #00c74d;
  --quest-glow: rgba(0, 199, 77, 0.30);
  position: relative;
  padding: 13px;
  border-radius: 15px;
  border: 1px solid rgba(30, 50, 64, 0.78);
  background:
    radial-gradient(ellipse 75% 80% at 105% -10%, var(--quest-glow), transparent 60%),
    linear-gradient(180deg, rgba(7, 18, 27, 0.98), rgba(4, 11, 18, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025), 0 14px 30px rgba(0,0,0,0.26);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 220ms ease;
}
.quest-card:active { transform: scale(0.985); }
.quest-card:focus-visible {
  outline: none;
  border-color: var(--quest-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--quest-accent) 32%, transparent), 0 14px 30px rgba(0,0,0,0.26);
}
.quest-card::before {
  content: '';
  position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--quest-accent);
  box-shadow: 0 0 10px var(--quest-glow);
}
.quest-card.is-claimable {
  border-color: rgba(255, 213, 112, 0.5);
  box-shadow: 0 0 18px rgba(255, 213, 112, 0.18), inset 0 1px 0 rgba(255,255,255,0.03);
}
.quest-card.is-claimed {
  opacity: 0.62;
  filter: saturate(0.6);
}
.quest-card.is-claimed::before { background: rgba(213, 225, 236, 0.35); box-shadow: none; }
.quest-card-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
}
.quest-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--quest-accent);
  background:
    radial-gradient(circle at 30% 25%, var(--quest-glow), transparent 65%),
    rgba(8, 15, 22, 0.7);
  box-shadow: inset 0 0 14px var(--quest-glow), 0 0 18px color-mix(in srgb, var(--quest-accent) 18%, transparent);
  flex: 0 0 auto;
  overflow: hidden;
}
.quest-icon .pe {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
}
.quest-title-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quest-title {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.18;
  word-break: break-word;
}
.quest-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.quest-desc {
  font-size: 11px;
  color: rgba(213, 225, 236, 0.66);
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.quest-period-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  font-family: var(--font-native);
  font-size: 9px; font-weight: 850;
  letter-spacing: 0.04em;
  background: rgba(77, 163, 255, 0.12);
  color: #a8d2ff;
  border: 1px solid rgba(77, 163, 255, 0.32);
  white-space: nowrap;
  align-self: flex-start;
}
.quest-period-chip svg {
  width: 10px; height: 10px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.quest-period-chip.daily {
  background: rgba(77, 163, 255, 0.12);
  color: #a8d2ff;
  border-color: rgba(77, 163, 255, 0.34);
}
.quest-period-chip.weekly {
  background: rgba(180, 92, 255, 0.12);
  color: #d49eff;
  border-color: rgba(180, 92, 255, 0.34);
}
.quest-period-chip.once {
  background: rgba(255, 213, 112, 0.12);
  color: #ffe39a;
  border-color: rgba(255, 213, 112, 0.34);
}
.quest-route-chip {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--quest-accent) 44%, transparent);
  background: color-mix(in srgb, var(--quest-accent) 12%, rgba(8, 15, 22, 0.82));
  color: color-mix(in srgb, var(--quest-accent) 72%, white);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quest-route-chip svg {
  width: 10px; height: 10px;
  flex: 0 0 auto;
  fill: none; stroke: currentColor;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.quest-open-icon {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 10px;
  color: color-mix(in srgb, var(--quest-accent) 70%, #fff);
  background: rgba(8, 15, 22, 0.62);
  border: 1px solid rgba(33, 61, 87, 0.62);
}
.quest-open-icon svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

.quest-progress {
  display: flex; align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}
.quest-progress-bar {
  flex: 1 1 0;
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(33, 61, 87, 0.45);
  overflow: hidden;
}
.quest-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  min-width: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--quest-accent), color-mix(in srgb, var(--quest-accent) 60%, white));
  box-shadow: 0 0 10px var(--quest-glow);
  transition: width 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.quest-progress-text {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #f3f9ff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.quest-progress-text small {
  color: rgba(213, 225, 236, 0.5);
  font-weight: 700;
  margin-left: 2px;
}

.quest-rank-line {
  display: flex; align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(8, 15, 22, 0.74);
  border: 1px solid rgba(33, 61, 87, 0.5);
  font-size: 12px; font-weight: 700;
  color: rgba(213, 225, 236, 0.66);
}
.quest-rank-line svg {
  width: 16px; height: 16px;
  flex: 0 0 auto;
  fill: none; stroke: var(--quest-accent);
  stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round;
}
.quest-rank-line b {
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 13px;
}
.quest-rank-need {
  margin-left: auto;
  color: rgba(213, 225, 236, 0.5);
  font-size: 11px;
  font-weight: 700;
}

.quest-foot {
  display: grid;
  grid-template-columns: minmax(84px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.quest-reward {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 213, 112, 0.22), rgba(180, 92, 255, 0.16));
  border: 1px solid rgba(255, 213, 112, 0.36);
  color: #ffe39a;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(255, 213, 112, 0.35);
}
.quest-reward svg {
  width: 13px; height: 13px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.quest-claim-btn {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid rgba(35, 232, 110, 0.22);
  background: rgba(35, 232, 110, 0.1);
  color: rgba(232, 241, 247, 0.5);
  font-family: var(--font-native);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: not-allowed;
  -webkit-tap-highlight-color: transparent;
  transition: background 200ms ease, color 200ms ease, transform 180ms ease, box-shadow 220ms ease;
}
.quest-claim-btn.is-go {
  cursor: pointer;
  border-color: color-mix(in srgb, var(--quest-accent) 46%, rgba(35, 232, 110, 0.18));
  background:
    radial-gradient(ellipse 90% 120% at 50% 0%, color-mix(in srgb, var(--quest-accent) 18%, transparent), transparent 72%),
    rgba(9, 20, 30, 0.88);
  color: color-mix(in srgb, var(--quest-accent) 72%, #ffffff);
}
.quest-claim-btn.is-go:active { transform: scale(0.96); }
.quest-claim-btn.is-active {
  cursor: pointer;
  border-color: rgba(255, 213, 112, 0.5);
  background: linear-gradient(180deg, #ffd570, #c98404);
  color: #1f1404;
  box-shadow: 0 8px 24px rgba(255, 213, 112, 0.32);
  animation: questClaimPulse 2.4s ease-in-out infinite;
}
.quest-claim-btn.is-active:active { transform: scale(0.96); }
@keyframes questClaimPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(255, 213, 112, 0.32); }
  50%      { box-shadow: 0 12px 32px rgba(255, 213, 112, 0.5); }
}
.quest-claim-btn.is-claimed {
  border-color: rgba(33, 61, 87, 0.6);
  background: rgba(33, 61, 87, 0.36);
  color: rgba(213, 225, 236, 0.4);
  cursor: default;
}

.quest-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 30px 22px;
}
.quest-empty .quest-empty-icon {
  width: 32px; height: 32px;
  margin-bottom: 4px;
  fill: none; stroke: rgba(255, 213, 112, 0.7);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.quest-empty strong {
  color: #f3f9ff;
  font-size: 14px;
  font-weight: 900;
}
.quest-empty span {
  color: rgba(213, 225, 236, 0.6);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  max-width: 28ch;
}

/* Tighter portrait layout */
@media (max-width: 360px) {
  .arena-shell { padding-left: 12px; padding-right: 12px; }
  .arena-reset-chip { top: 10px; right: 10px; padding: 4px 8px; font-size: 9px; min-height: 22px; }
  .arena-stats-strip { gap: 6px; }
  .arena-stat-tile { grid-template-columns: 29px minmax(0, 1fr); padding: 8px 7px; gap: 6px; min-height: 52px; border-radius: 12px; }
  .arena-stat-icon { width: 29px; height: 29px; border-radius: 10px; }
  .arena-stat-icon svg { width: 18px; height: 18px; }
  .arena-stat-value { font-size: clamp(15px, 4.6vw, 19px); }
  .arena-stat-tile--reward .arena-stat-value { font-size: clamp(12px, 3.7vw, 16px); }
  .arena-hero-copy strong { font-size: 20px; }
  .quest-card-head { gap: 10px; }
  .quest-icon { width: 42px; height: 42px; }
}
