:root {
  color-scheme: dark;
  --bg-a: #24113f;
  --bg-b: #0d0717;
  --panel: rgba(27, 17, 45, 0.9);
  --panel-border: rgba(188, 148, 255, 0.22);
  --table-line: rgba(203, 181, 255, 0.13);
  --text: #f7f2ff;
  --muted: #bba8d8;
  --accent: #c084fc;
  --accent-strong: #7c3aed;
  --danger: #ff9696;
  --bg-glow-left: rgba(192, 132, 252, 0.2);
  --bg-glow-right: rgba(124, 58, 237, 0.18);
  --button-text: #160821;
  --particle-a: #d8b4fe;
  --particle-b: #a78bfa;
  --particle-c: #f0abfc;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --radius: 8px;
  --focus-ring: 0 0 0 3px rgba(192, 132, 252, 0.26);
}

[data-theme="quartz"] {
  --bg-a: #2b160c;
  --bg-b: #090604;
  --panel: rgba(32, 22, 16, 0.9);
  --panel-border: rgba(255, 193, 119, 0.25);
  --table-line: rgba(255, 218, 174, 0.14);
  --text: #fff8ed;
  --muted: #d7b99a;
  --accent: #ffb454;
  --accent-strong: #f97316;
  --danger: #ff9696;
  --bg-glow-left: rgba(255, 180, 84, 0.17);
  --bg-glow-right: rgba(249, 115, 22, 0.14);
  --button-text: #211005;
  --particle-a: #ffd6a3;
  --particle-b: #ff8a3d;
  --particle-c: #fff1d6;
  --focus-ring: 0 0 0 3px rgba(255, 180, 84, 0.24);
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, var(--bg-glow-left), transparent 28%),
    radial-gradient(circle at top right, var(--bg-glow-right), transparent 24%),
    linear-gradient(180deg, var(--bg-a), var(--bg-b));
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body.intro-active {
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }

[hidden] {
  display: none !important;
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background: #2a2a2a;
  color: #f5f5f5;
  opacity: 1;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.site-intro.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.site-intro.is-revealing {
  background: transparent;
}

.intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  opacity: 0;
  transition: opacity 220ms linear;
}

.site-intro.is-animating .intro-canvas {
  opacity: 1;
}

.site-intro.is-revealing .intro-canvas {
  opacity: 0.9;
}

.intro-ready {
  position: relative;
  z-index: 1;
  width: min(94vw, 1800px);
  display: grid;
  gap: 18px;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.intro-status,
.intro-prompt {
  font-size: 15px;
  letter-spacing: 0;
}

.intro-line {
  height: 2px;
  width: 100%;
  background: #f3f3f3;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
  transform-origin: center;
  animation: intro-line-ready 900ms ease-out both;
}

.site-intro.is-animating .intro-ready {
  animation: intro-ready-out 360ms ease forwards;
}

@keyframes intro-line-ready {
  from { transform: scaleX(0.04); opacity: 0.35; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes intro-ready-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 28px 24px 56px;
  box-sizing: border-box;
  opacity: 1;
  transform: scale(1);
  transition: opacity 720ms ease, transform 720ms ease;
}

.intro-active .container {
  opacity: 0;
  transform: scale(1.012);
}

.site-footer {
  width: min(1200px, 100%);
  margin: auto auto 0;
  padding: 34px 24px;
  box-sizing: border-box;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 42px;
  color: rgba(247, 242, 255, 0.72);
}

.site-footer-brand-block {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.site-footer-brand {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-footer-creator {
  display: grid;
  gap: 5px;
  margin-top: 4px;
}

.site-footer-creator-label {
  margin: 0;
  color: rgba(247, 242, 255, 0.42);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer-creator-link {
  display: inline-block;
  text-decoration: none;
  border-radius: 4px;
}

.site-footer-creator-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.site-footer-creator-img {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-footer-creator-img:hover {
  opacity: 1;
  transform: translateY(-0.5px);
}

.site-footer-social-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.site-footer-social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(247, 242, 255, 0.5);
  transition: color 160ms ease, transform 160ms ease;
}

.site-footer-social-icon-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

.site-footer-social-icon-link:hover,
.site-footer-social-icon-link:focus-visible {
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.site-footer-links {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.site-footer-contact {
  display: grid;
  gap: 9px;
  justify-items: end;
}

.site-footer-heading {
  margin: 0;
  color: rgba(247, 242, 255, 0.86);
  font-size: 16px;
  font-weight: 900;
}

.site-footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f7f2ff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.site-footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  color: #ffffff;
  outline: none;
}

.site-footer-link:hover::after,
.site-footer-link:focus-visible::after {
  transform: scaleX(1);
}

.site-footer-disclaimer {
  width: 100%;
  margin: 22px 0 0;
  color: rgba(247, 242, 255, 0.44);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

body > .site-footer-disclaimer {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 34px;
}

[data-theme="quartz"] .site-footer-disclaimer {
  color: rgba(255, 248, 237, 0.44);
}

.info-page.news-page {
  display: grid;
  gap: 26px;
  width: min(1480px, calc(100% - 32px));
}

.news-hero .muted {
  max-width: 620px;
}

.news-feed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: var(--space-4);
}

.news-feed.is-masonry {
  position: relative;
  display: block;
}

.news-post {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.news-feed.is-masonry .news-post {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.news-post-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(142, 240, 186, 0.12), transparent 54%),
    rgba(255, 255, 255, 0.055);
}

.news-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-post-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(247, 242, 255, 0.62);
  font-size: 22px;
  font-weight: 900;
}

.news-post-body {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
}

.news-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.news-post-date,
.news-post-time {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.news-post-time {
  flex: 0 0 auto;
  color: #aeb7c8;
  font-variant-numeric: tabular-nums;
}

.news-post-title {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.news-post-text {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.news-post-text a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-post-text a:hover,
.news-post-text a:focus-visible {
  color: var(--accent-strong);
}

.news-post-source {
  justify-self: start;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.news-post-source:hover,
.news-post-source:focus-visible {
  color: var(--accent-strong);
}

.news-empty {
  display: grid;
  gap: 8px;
  padding: 26px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: rgba(15, 9, 27, 0.46);
  color: var(--muted);
}

.news-empty strong {
  color: var(--text);
  font-size: 20px;
}

.panel {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.panel + .panel { margin-top: 18px; }

.panel-body { padding: 18px; }

.tournament-stage-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  align-items: center;
  gap: 28px;
  margin: 2px 0 22px;
  padding: 8px 0 6px;
}

.tournament-stage-strip.is-static {
  grid-template-columns: 1fr;
}

.tournament-stage-strip.is-registration {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.tournament-stage-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.02;
}

.tournament-stage-copy .muted {
  max-width: 620px;
  margin: 5px 0 0;
}

.tournament-stage-actions {
  display: grid;
  grid-template-columns: max-content max-content 40px;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.tournament-stage-actions .button,
.tournament-stage-actions .button-secondary {
  width: auto;
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.tournament-stage-actions .help-icon-button {
  position: relative;
  width: 40px;
  min-width: 40px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.help-icon-button::before,
.help-icon-button::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.help-icon-button::before {
  content: attr(data-tooltip);
  bottom: calc(100% + 8px);
  z-index: 3;
  min-width: max-content;
  max-width: 180px;
  padding: 6px 9px;
  border-radius: 4px;
  background: #f7f2ff;
  color: #130c20;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.help-icon-button::after {
  content: "";
  bottom: calc(100% + 3px);
  z-index: 2;
  width: 9px;
  height: 9px;
  background: #f7f2ff;
  transform: translate(-50%, 6px) rotate(45deg);
}

.help-icon-button:hover::before,
.help-icon-button:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.help-icon-button:hover::after,
.help-icon-button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

.tournament-countdown {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  text-align: right;
}

.tournament-countdown-prefix {
  color: rgba(247, 242, 255, 0.84);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.tournament-countdown-main {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
}

.tournament-countdown-number {
  color: #ffe66d;
  font-family: "Courier New", monospace;
  font-size: clamp(54px, 8vw, 82px);
  font-weight: 900;
  line-height: 0.86;
  text-shadow:
    3px 3px 0 rgba(0, 0, 0, 0.58),
    0 0 22px rgba(255, 230, 109, 0.18);
}

.tournament-countdown-label {
  color: #f7f2ff;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.tournament-countdown small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tournament-bracket-link,
.tournament-bracket-locked {
  margin-top: 8px;
  color: #f7f2ff;
  font-size: 13px;
  font-weight: 900;
}

.tournament-bracket-link {
  position: relative;
}

.tournament-bracket-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: #ffe66d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.tournament-bracket-link:hover::after,
.tournament-bracket-link:focus-visible::after {
  transform: scaleX(1);
}

.tournament-bracket-locked {
  color: rgba(247, 242, 255, 0.48);
}

.tournament-status-panel {
  margin-bottom: 18px;
}

.tournament-status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.tournament-status-grid h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.05;
}

.tournament-status-grid .muted {
  margin: 4px 0 0;
}

.tournament-status-actions {
  display: flex;
  justify-content: flex-end;
}

.tournament-status-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: rgba(247, 242, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.leaderboard-cut-row td {
  padding: 10px 14px;
  color: #ffe66d;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  background: rgba(255, 230, 109, 0.08);
}

.bracket-hero {
  margin-bottom: 24px;
}

.bracket-locked-panel {
  margin-bottom: 18px;
}

.bracket-locked-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.bracket-locked-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0 4px;
}

.bracket-locked-countdown strong {
  color: #ffe66d;
  font-family: "Courier New", monospace;
  font-size: 52px;
  line-height: 0.9;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.52);
}

.bracket-locked-countdown span {
  color: #f7f2ff;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 220px;
  height: 100%;
}

.bracket-round h2 {
  margin: 0;
  font-size: 18px;
}

.bracket-match-list {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex-grow: 1;
  gap: 16px;
}

.bracket-match {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(188, 148, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(18, 10, 31, 0.74);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.bracket-match:hover,
.bracket-match:focus-within {
  border-color: rgba(192, 132, 252, 0.34);
  background: rgba(34, 21, 57, 0.56);
  transform: translateY(-1px);
}

.bracket-match.is-live {
  border-color: rgba(142, 240, 186, 0.42);
  box-shadow: 0 0 0 1px rgba(142, 240, 186, 0.08), 0 0 28px rgba(142, 240, 186, 0.12);
}

.bracket-match-topline,
.bracket-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bracket-match-topline {
  color: var(--muted);
  font-size: 12px;
}

.bracket-match-topline span {
  color: #8ef0ba;
  font-weight: 900;
}

.bracket-player {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.bracket-player span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 800;
}

.bracket-player small {
  color: #ffe66d;
  font-size: 11px;
}

.bracket-player strong {
  color: #c084fc;
  font-variant-numeric: tabular-nums;
}

.bracket-player.is-winner {
  background: rgba(142, 240, 186, 0.1);
}

.bracket-winner {
  margin: 0;
  color: #8ef0ba;
  font-size: 12px;
  font-weight: 800;
}

.match-control-page {
  max-width: 1180px;
}

.match-control-status {
  margin-top: 24px;
}

.match-control-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  margin-top: 18px;
}

.match-control-days,
.match-control-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.match-day-button,
.match-control-card {
  border: 1px solid rgba(192, 132, 252, 0.22);
  background: rgba(16, 8, 32, 0.82);
  color: var(--text);
  border-radius: 8px;
}

.match-day-button {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.match-day-button:hover,
.match-day-button:focus-visible,
.match-day-button.is-active {
  border-color: rgba(168, 85, 247, 0.7);
  background: rgba(55, 24, 94, 0.72);
  outline: none;
}

.match-day-button strong,
.match-control-card h2 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.match-day-button span {
  color: var(--muted);
  font-size: 13px;
}

.match-control-card {
  padding: 16px;
}

.match-control-card-head,
.match-control-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.match-control-card h2 {
  margin: 4px 0;
  font-size: 24px;
}

.match-control-card small,
.match-start-state {
  color: var(--muted);
}

.match-seed {
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.12);
  color: #ffe66d;
  font-size: 13px;
  white-space: nowrap;
}

.match-ready-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.match-ready-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.match-ready-player strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.match-ready-badge {
  flex: 0 0 auto;
  color: #fda4af;
  font-size: 13px;
}

.match-ready-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.match-ready-badge.is-ready {
  color: #8ef0ba;
}

.info-page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.info-hero {
  margin-bottom: 18px;
}

.info-hero.panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.info-hero.panel .panel-body {
  padding: 0;
}

.info-hero-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.info-home-link {
  flex: 0 0 auto;
  width: fit-content;
  margin-bottom: 6px;
}

.info-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.info-hero .muted {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.rules-page {
  width: min(900px, calc(100% - 32px));
}

.rules-hero {
  margin-bottom: 28px;
}

.rules-document {
  max-width: 820px;
  color: #d9cdef;
}

.rules-document h2 {
  margin: 42px 0 18px;
  color: #f7f2ff;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.12;
}

.rules-document h2:first-child {
  margin-top: 0;
}

.rules-document h3 {
  margin: 26px 0 10px;
  color: #f7f2ff;
  font-size: 20px;
  line-height: 1.25;
}

.rules-document p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.62;
}

.rules-document ul {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.52;
}

.rules-document li::marker {
  color: #c084fc;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-panel,
.faq-item {
  padding: 18px 18px 18px 20px;
  border: 0;
  border-left: 2px solid rgba(192, 132, 252, 0.36);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(192, 132, 252, 0.09), rgba(18, 10, 31, 0.46) 34%, rgba(18, 10, 31, 0.28));
}

.info-panel-wide {
  grid-column: 1 / -1;
}

.info-panel h2,
.faq-item h2 {
  margin: 0 0 12px;
  color: #f7f2ff;
  font-size: 22px;
  line-height: 1.15;
}

.info-panel p,
.faq-item p {
  margin: 0;
  color: #d9cdef;
  line-height: 1.5;
}

.info-panel p + p {
  margin-top: 10px;
}

.about-page {
  width: min(1080px, calc(100% - 32px));
  padding-top: 52px;
}

.about-hero {
  max-width: none;
  margin-bottom: clamp(44px, 7vw, 76px);
}

.about-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.about-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.96;
  min-width: 0;
}

.about-hero .muted {
  max-width: 760px;
  margin: 16px 0 0;
  color: #d9cdef;
  font-size: 17px;
  line-height: 1.5;
}

.about-home-link {
  flex: 0 0 auto;
  width: fit-content;
  margin-bottom: 6px;
}

.about-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
  margin-bottom: 6px;
}

.about-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.about-language-switch a {
  position: relative;
  color: rgba(247, 242, 255, 0.54);
  font-size: 13px;
  font-weight: 900;
}

.about-language-switch a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: #ffe66d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.about-language-switch a:hover,
.about-language-switch a:focus-visible,
.about-language-switch a.is-active {
  color: #ffe66d;
  outline: none;
}

.about-language-switch a:hover::after,
.about-language-switch a:focus-visible::after,
.about-language-switch a.is-active::after {
  transform: scaleX(1);
}

.about-flow {
  display: grid;
  gap: clamp(44px, 7vw, 82px);
}

.about-block {
  width: min(620px, 100%);
}

.about-block-left {
  justify-self: start;
  text-align: left;
}

.about-block-right {
  justify-self: end;
  text-align: right;
}

.about-block h2 {
  margin: 0 0 14px;
  color: #f7f2ff;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

.about-block p {
  margin: 0;
  color: #d9cdef;
  font-size: 16px;
  line-height: 1.58;
}

.about-block p + p {
  margin-top: 12px;
}

.streamer-kit-page {
  padding-bottom: 56px;
}

.streamer-kit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.streamer-kit-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.streamer-kit-wide {
  grid-column: 1 / -1;
}

.streamer-kit-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
}

.streamer-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.streamer-banner-row,
.repost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.streamer-banner,
.repost-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(188, 148, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease, border-color 160ms ease;
}

.streamer-banner:hover,
.streamer-banner:focus-visible,
.repost-grid a:hover,
.repost-grid a:focus-visible {
  border-color: rgba(250, 204, 21, 0.42);
  outline: none;
  transform: translateY(-2px);
}

.streamer-banner img,
.repost-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.streamer-version-panel {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 54%),
    rgba(255, 255, 255, 0.035);
}

.promo-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.promo-media-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(188, 148, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.14);
}

.promo-media-card-wide,
.promo-media-video {
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr);
}

.promo-media-preview {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 120px;
  overflow: hidden;
  border: 1px solid rgba(188, 148, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    rgba(3, 8, 13, 0.36);
  background-size: 18px 18px;
  transition: border-color 160ms ease, transform 160ms ease;
}

.promo-media-preview:hover,
.promo-media-preview:focus-visible {
  border-color: rgba(250, 204, 21, 0.42);
  outline: none;
  transform: translateY(-1px);
}

.promo-media-preview img,
.promo-media-preview video {
  display: block;
  max-width: 100%;
  max-height: 180px;
  width: auto;
  height: auto;
  image-rendering: pixelated;
}

.promo-media-preview video {
  width: 100%;
  max-height: 220px;
}

.promo-media-copy {
  display: grid;
  min-width: 0;
  gap: 8px;
  align-content: center;
}

.promo-media-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.promo-media-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.promo-media-copy .button-secondary {
  justify-self: start;
  min-height: 38px;
  padding: 0 13px;
}

.streamer-link-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.how-participate-page {
  padding-bottom: 56px;
}

.participation-steps {
  display: grid;
  gap: 14px;
}

.participation-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.participation-step > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(145deg, #8b5cf6, #3b1672);
  color: #ffffff;
  font-family: "Courier New", monospace;
  font-size: 28px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.participation-step h2 {
  margin: 0 0 8px;
  color: #f7f2ff;
  font-size: clamp(22px, 3vw, 30px);
}

.participation-step p,
.participation-note p {
  margin: 0;
  color: #d9cdef;
  line-height: 1.55;
}

.participation-note {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(250, 204, 21, 0.08);
}

.participation-note strong {
  color: #ffe66d;
  font-size: 18px;
}

.how-participate-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.info-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: #d9cdef;
  line-height: 1.45;
}

.info-list li::marker {
  color: #c084fc;
  font-weight: 900;
}

.info-danger-list li::marker {
  color: #ff9696;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.hero {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  padding: 6px 0 0;
  text-align: center;
}

.home-top-actions {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 930;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 6px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: rgba(18, 10, 31, 0.84);
  color: var(--text);
  cursor: pointer;
  outline: none;
  overflow: visible;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

[data-theme="quartz"] .theme-toggle {
  background: rgba(31, 19, 10, 0.84);
}

.theme-toggle::before,
.theme-toggle::after {
  position: absolute;
  left: 50%;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.theme-toggle::before {
  content: attr(data-tooltip);
  top: calc(100% + 8px);
  min-width: max-content;
  max-width: 160px;
  padding: 6px 9px;
  border-radius: 4px;
  background: var(--text);
  color: var(--button-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.theme-toggle::after {
  content: "";
  top: calc(100% + 3px);
  width: 9px;
  height: 9px;
  background: var(--text);
  transform: translate(-50%, -6px) rotate(45deg);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: rgba(34, 21, 57, 0.86);
  box-shadow: var(--focus-ring), 0 18px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

[data-theme="quartz"] .theme-toggle:hover,
[data-theme="quartz"] .theme-toggle:focus-visible {
  background: rgba(56, 31, 13, 0.86);
}

.theme-toggle:hover::before,
.theme-toggle:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.theme-toggle:hover::after,
.theme-toggle:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

.theme-toggle:hover .portal-particles,
.theme-toggle:focus-visible .portal-particles {
  opacity: 1;
}

.theme-toggle-icon {
  position: absolute;
  inset: 6px;
  z-index: 1;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
  image-rendering: pixelated;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-toggle-quartz-icon {
  opacity: 0;
  transform: scale(0.82) rotate(-8deg);
}

[data-theme="quartz"] .theme-toggle-nether-icon {
  opacity: 0;
  transform: scale(0.82) rotate(8deg);
}

[data-theme="quartz"] .theme-toggle-quartz-icon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.home-account-card {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 46px;
  height: 46px;
  padding: 6px;
  border: 1px solid rgba(188, 148, 255, 0.28);
  border-radius: 999px;
  background: rgba(18, 10, 31, 0.84);
  color: #f7f2ff;
  overflow: visible;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  outline: none;
  transition: width 210ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.home-top-actions .home-account-card {
  position: relative;
  top: auto;
  right: auto;
}

.portal-particles {
  position: absolute;
  inset: -18px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  overflow: visible;
  transition: opacity 140ms ease;
}

.home-account-card:hover .portal-particles,
.home-account-card:focus-visible .portal-particles {
  opacity: 1;
}

.portal-particles i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--particle-a);
  box-shadow: 0 0 10px color-mix(in srgb, var(--particle-a) 82%, transparent);
  opacity: 0;
}

.portal-particles i:nth-child(1) {
  top: 8px;
  left: 14px;
  animation: portal-particle-a 920ms ease-out infinite;
}

.portal-particles i:nth-child(2) {
  top: 34px;
  left: 2px;
  background: var(--particle-b);
  animation: portal-particle-b 1180ms ease-out infinite 120ms;
}

.portal-particles i:nth-child(3) {
  right: 7px;
  bottom: 9px;
  background: var(--particle-c);
  animation: portal-particle-c 1040ms ease-out infinite 220ms;
}

.portal-particles i:nth-child(4) {
  top: 3px;
  right: 24px;
  animation: portal-particle-b 1320ms ease-out infinite 360ms;
}

.portal-particles i:nth-child(5) {
  left: 38px;
  bottom: 1px;
  background: var(--accent);
  animation: portal-particle-a 1100ms ease-out infinite 480ms;
}

.portal-button {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.portal-button-label {
  position: relative;
  z-index: 1;
}

.portal-button:hover .portal-particles,
.portal-button:focus-visible .portal-particles,
.now-playing-card:hover .now-playing-watch .portal-particles,
.now-playing-card:focus-visible .now-playing-watch .portal-particles {
  opacity: 1;
}

@keyframes portal-particle-a {
  0% { opacity: 0; transform: translate(0, 4px) scale(0.7); }
  20% { opacity: 0.72; }
  100% { opacity: 0; transform: translate(6px, -12px) scale(0.35); }
}

@keyframes portal-particle-b {
  0% { opacity: 0; transform: translate(4px, 2px) scale(0.65); }
  22% { opacity: 0.58; }
  100% { opacity: 0; transform: translate(-8px, -10px) scale(0.3); }
}

@keyframes portal-particle-c {
  0% { opacity: 0; transform: translate(-2px, 4px) scale(0.7); }
  18% { opacity: 0.68; }
  100% { opacity: 0; transform: translate(9px, -8px) scale(0.32); }
}

.home-account-card:hover,
.home-account-card:focus-visible {
  width: 188px;
  border-color: color-mix(in srgb, var(--accent) 68%, transparent);
  background: rgba(34, 21, 57, 0.86);
  transform: translateY(-1px);
}

[data-theme="quartz"] .home-account-card:hover,
[data-theme="quartz"] .home-account-card:focus-visible {
  background: rgba(56, 31, 13, 0.86);
}

.home-account-card.is-authenticated:hover,
.home-account-card.is-authenticated:focus-visible {
  width: 214px;
}

.home-account-copy {
  display: block;
  position: relative;
  z-index: 1;
  width: 0;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(8px);
  transition: width 210ms ease, opacity 140ms ease, transform 180ms ease;
}

.home-account-card:hover .home-account-copy,
.home-account-card:focus-visible .home-account-copy {
  width: 132px;
  opacity: 1;
  transform: translateX(0);
}

.home-account-card.is-authenticated:hover .home-account-copy,
.home-account-card.is-authenticated:focus-visible .home-account-copy {
  width: 156px;
}

.home-account-copy strong,
.home-account-copy small {
  display: block;
  line-height: 1.1;
}

.home-account-copy strong {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.home-account-copy small {
  max-width: 156px;
  margin-bottom: 3px;
  overflow: hidden;
  color: rgba(247, 242, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-account-avatar,
.home-account-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.home-account-avatar {
  object-fit: cover;
  border: 1px solid rgba(203, 181, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.home-account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--particle-a);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.home-account-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.achievement-feed-toasts {
  position: fixed;
  top: 108px;
  right: 18px;
  z-index: 920;
  display: grid;
  gap: 8px;
  width: min(312px, calc(100vw - 24px));
  pointer-events: none;
}

.achievement-feed-toast {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 214, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(189, 160, 255, 0.2), rgba(124, 96, 164, 0.12) 54%, transparent),
    rgba(44, 30, 62, 0.92);
  box-shadow:
    0 16px 36px rgba(15, 7, 28, 0.24),
    0 0 28px rgba(177, 139, 255, 0.12);
  backdrop-filter: blur(10px);
  animation: achievement-feed-fall 5600ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.achievement-feed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(234, 224, 255, 0.46);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.58), rgba(202, 177, 255, 0.72) 34%, transparent 35%),
    linear-gradient(145deg, rgba(156, 117, 226, 0.58), #37244f 64%, #21152f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -8px 12px rgba(34, 19, 52, 0.34);
}

.achievement-feed-icon[class*="achievement-icon-"] {
  background-position: center;
  background-size: cover;
}

.achievement-feed-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.achievement-feed-copy strong,
.achievement-feed-copy span,
.achievement-feed-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-feed-copy strong {
  color: #fff9ff;
  font-size: 14px;
  font-weight: 900;
}

.achievement-feed-copy span {
  color: rgba(249, 244, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.achievement-feed-copy em {
  color: #f6dc7c;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.telegram-promo-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 940;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  width: min(420px, calc(100vw - 32px));
  min-height: 78px;
  padding: 14px 44px 14px 14px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), rgba(38, 165, 228, 0.08)),
    var(--panel);
  box-shadow:
    0 18px 42px rgba(7, 3, 14, 0.34),
    0 0 34px color-mix(in srgb, var(--accent) 14%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.telegram-promo-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.telegram-promo-toast.is-hiding {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.telegram-promo-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(247, 242, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 1;
}

.telegram-promo-close:hover,
.telegram-promo-close:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.telegram-promo-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #26a5e4;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(38, 165, 228, 0.22);
}

.telegram-promo-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.telegram-promo-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.telegram-promo-copy strong,
.telegram-promo-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.telegram-promo-copy strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.telegram-promo-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.telegram-promo-action {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

@keyframes achievement-feed-fall {
  0% {
    opacity: 0;
    transform: translate(26px, -10px);
  }
  12% {
    opacity: 1;
    transform: translate(0, 0);
  }
  68% {
    opacity: 1;
    transform: translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(0, 44px);
  }
}

.hero h1, .title-row h2, h1 { margin: 0; }

.brand-logo {
  display: block;
  width: 100%;
  margin: 0 auto;
  image-rendering: pixelated;
}

.hero-stack {
  position: relative;
  display: inline-grid;
  justify-items: center;
  width: min(100%, 560px);
}

.minecraft-splash {
  position: absolute;
  top: auto;
  bottom: 9%;
  right: -9%;
  z-index: 2;
  max-width: min(170px, 30vw);
  margin: 0;
  color: #ffe66d;
  font-size: clamp(10px, 1.15vw, 14px);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.6),
    0 0 18px rgba(255, 230, 109, 0.18);
  pointer-events: none;
  transform: rotate(-12deg);
  transform-origin: center;
  animation: minecraft-splash-idle 1800ms ease-in-out infinite alternate;
}

.minecraft-splash.is-popping {
  animation: minecraft-splash-pop 520ms ease, minecraft-splash-idle 1800ms ease-in-out 520ms infinite alternate;
}

@keyframes minecraft-splash-idle {
  from { transform: rotate(-12deg) scale(1); }
  to { transform: rotate(-12deg) scale(1.045); }
}

@keyframes minecraft-splash-pop {
  0% { transform: rotate(-12deg) scale(0.86); opacity: 0; }
  62% { transform: rotate(-12deg) scale(1.12); opacity: 1; }
  100% { transform: rotate(-12deg) scale(1); opacity: 1; }
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
}

.muted { color: var(--muted); }

.demo-title {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.demo-box {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.demo-button {
  width: 100%;
}

.demo-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.actions, .stack { display: grid; gap: 12px; }

.button, .button-secondary, .button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--button-text);
  font-weight: 700;
}

.button-secondary {
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-danger {
  border: 1px solid rgba(255, 150, 150, 0.36);
  background: rgba(116, 41, 52, 0.32);
  color: #ffd8d8;
  font-weight: 800;
}

.button:hover,
.button:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible,
.button-danger:hover,
.button-danger:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  transform: translateY(-1px);
}

.button:hover,
.button:focus-visible {
  box-shadow: var(--focus-ring), 0 12px 28px color-mix(in srgb, var(--accent) 22%, transparent);
}

.button:disabled,
.button[aria-disabled="true"] {
  background: rgba(139, 127, 158, 0.34);
  color: rgba(247, 242, 255, 0.54);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.button:disabled:hover,
.button:disabled:focus-visible {
  box-shadow: none;
  transform: none;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 54%, transparent);
  background: rgba(255, 255, 255, 0.07);
}

.button-danger:hover,
.button-danger:focus-visible {
  border-color: rgba(255, 150, 150, 0.62);
  background: rgba(116, 41, 52, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 150, 150, 0.18), 0 12px 28px rgba(116, 41, 52, 0.18);
}

.text-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.text-input:hover,
.text-input:focus-visible {
  border-color: rgba(192, 132, 252, 0.52);
  outline: none;
  box-shadow: var(--focus-ring);
}

.login-layout {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card { width: min(460px, 100%); }

.login-card h1 {
  margin-bottom: 26px;
}

.apply-page {
  width: min(720px, calc(100% - 32px));
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 38px 0;
}

.apply-shell {
  display: grid;
  gap: 10px;
  width: 100%;
}

.apply-top-actions {
  display: flex;
  justify-content: flex-end;
}

.apply-card {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(188, 148, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(192, 132, 252, 0.12), transparent 42%),
    rgba(19, 11, 32, 0.94);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.apply-copy h1 {
  margin: 0;
  color: #f7f2ff;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.apply-copy .muted {
  max-width: 620px;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.apply-ref {
  width: fit-content;
  margin: 14px 0 0;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 230, 109, 0.1);
  color: rgba(247, 242, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.apply-ref strong {
  color: #ffe66d;
}

.apply-form {
  display: grid;
  gap: 13px;
}

.apply-form label {
  display: grid;
  gap: 7px;
}

.apply-form label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apply-check {
  display: flex !important;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  color: #d9cdef;
  line-height: 1.35;
}

.apply-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.apply-check span {
  color: #d9cdef !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.apply-status-box {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.apply-status-box strong {
  color: #f7f2ff;
  font-size: 20px;
}

.apply-status-box span {
  color: #d9cdef;
  line-height: 1.45;
}

.apply-application-number {
  display: grid;
  gap: 4px;
  justify-items: start;
  width: fit-content;
  min-width: 126px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 230, 109, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 230, 109, 0.16), rgba(192, 132, 252, 0.08)),
    rgba(12, 7, 22, 0.48);
}

.apply-application-number-value {
  color: #ffe66d !important;
  font-family: "Courier New", monospace;
  font-size: clamp(42px, 9vw, 66px);
  font-weight: 900;
  line-height: 0.9 !important;
}

.apply-application-number-label {
  color: #f7f2ff !important;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2 !important;
}

.apply-telegram-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: 4px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(192, 132, 252, 0.1);
}

.apply-telegram-info {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: var(--space-2);
  color: #f7f2ff;
  font-weight: 900;
}

.apply-telegram-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #26a5e4;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(38, 165, 228, 0.22);
}

.apply-telegram-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.apply-telegram-link {
  min-height: 38px;
  padding: 0 14px;
}

.consent-note {
  margin-top: 0;
  color: rgba(247, 242, 255, 0.48);
  font-size: 10px;
  line-height: 1.45;
}

.profile-consent-note {
  max-width: 360px;
  margin: 8px 0 0;
  color: rgba(247, 242, 255, 0.52);
}

.consent-note details {
  margin: 0;
}

.consent-note summary {
  cursor: pointer;
  color: rgba(247, 242, 255, 0.48);
  list-style: none;
}

.consent-note summary::-webkit-details-marker {
  display: none;
}

.consent-note summary span {
  color: rgba(216, 180, 254, 0.68);
  font-weight: 700;
}

.consent-note ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.consent-note li + li {
  margin-top: 6px;
}

.title-row, .topbar, .field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-main {
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.best-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.chip-label {
  color: var(--muted);
  font-size: 13px;
}

.chip-value {
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.status-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.live { color: #d8b4fe; }
.status-badge.offline { color: var(--muted); }

.leaderboard-panel {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    rgba(20, 12, 33, 0.94);
  background-size: 24px 24px;
}

.home-paths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: -4px 0 18px;
}

.home-path-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(18, 10, 31, 0.64);
  color: #f7f2ff;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(188, 148, 255, 0.12);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-path-card span {
  color: #ffe66d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-path-card strong {
  font-size: 17px;
  line-height: 1.12;
}

.home-path-card small {
  color: rgba(247, 242, 255, 0.66);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.home-path-card.is-primary {
  background:
    linear-gradient(135deg, rgba(192, 132, 252, 0.22), transparent 58%),
    rgba(27, 17, 45, 0.82);
}

.home-path-card:hover,
.home-path-card:focus-visible {
  background: rgba(39, 25, 61, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(192, 132, 252, 0.38),
    0 16px 36px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.leaderboard-toolbar {
  align-items: flex-end;
  margin-bottom: 14px;
}

.leaderboard-toolbar h2 {
  font-size: 24px;
  line-height: 1.15;
}

.leaderboard-toolbar .muted {
  margin: 8px 0 0;
  font-size: 14px;
}

.leaderboard-search {
  display: grid;
  gap: 6px;
  width: min(280px, 100%);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.leaderboard-search input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(188, 148, 255, 0.34);
  border-radius: 4px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(3, 8, 13, 0.72);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
}

.leaderboard-search input:focus {
  border-color: rgba(192, 132, 252, 0.72);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.14);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(6, 13, 20, 0.88);
  border-radius: 4px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    rgba(17, 10, 30, 0.9);
  background-size: 22px 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 42px rgba(0, 0, 0, 0.32);
}

.leaderboard-table {
  min-width: 860px;
  table-layout: fixed;
}

.leaderboard-row {
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.leaderboard-row td {
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.leaderboard-row:hover,
.leaderboard-row:focus-visible,
.leaderboard-row[aria-expanded="true"] {
  outline: none;
}

.leaderboard-row:hover .leaderboard-name,
.leaderboard-row:focus-visible .leaderboard-name,
.leaderboard-row[aria-expanded="true"] .leaderboard-name {
  color: var(--accent);
}

.leaderboard-row:hover .leaderboard-row-particles,
.leaderboard-row:focus-visible .leaderboard-row-particles,
.leaderboard-row[aria-expanded="true"] .leaderboard-row-particles {
  opacity: 1;
}

.leaderboard-row.is-rank-up td {
  animation: rank-up-row-glow 2200ms ease-out 2;
}

@keyframes rank-up-row-glow {
  0%, 100% { box-shadow: inset 0 0 0 rgba(142, 240, 186, 0); }
  28% { box-shadow: inset 0 0 26px rgba(142, 240, 186, 0.18); }
}

.rank-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.leaderboard-name {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.leaderboard-name:hover,
.leaderboard-name[aria-expanded="true"] {
  color: var(--accent);
}

.leaderboard-subtle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.runner-cell {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.leaderboard-row-particles {
  inset: -18px -28px;
}

.runner-avatar {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(203, 181, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.runner-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.time-cell {
  color: #c084fc;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.18);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  border-radius: 3px;
  color: #e8eef8;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(180deg, #3d4852, #202832);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.rank-1 {
  color: #fff7c4;
  background: linear-gradient(180deg, #d6aa18, #83620d);
}

.rank-2 {
  color: #f4f8ff;
  background: linear-gradient(180deg, #8794a3, #4b5663);
}

.rank-3 {
  color: #ffe3c2;
  background: linear-gradient(180deg, #b76a23, #724018);
}

.rank-change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.rank-change::before {
  font-size: 12px;
  line-height: 1;
}

.rank-change.is-up {
  color: #9df7c0;
  background: rgba(74, 222, 128, 0.14);
}

.rank-change.is-up::before {
  content: "↑";
}

.rank-change.is-down {
  color: #ff9a9a;
  background: rgba(248, 113, 113, 0.12);
}

.rank-change.is-down::before {
  content: "↓";
}

.leaderboard-detail-row td {
  padding-top: 0;
  background: rgba(6, 11, 17, 0.86);
}

.leaderboard-detail-card {
  margin: 4px 0 10px;
  padding: 14px;
  border-radius: 4px;
  border: 1px solid rgba(188, 148, 255, 0.2);
  background: rgba(17, 10, 30, 0.92);
}

.sector-table {
  width: 100%;
  border-collapse: collapse;
}

.sector-table th,
.sector-table td {
  padding: 12px 8px;
}

.split-comparison {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.split-comparison-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.split-comparison.is-better {
  color: #9df7c0;
}

.split-comparison.is-better .split-comparison-icon {
  background: rgba(74, 222, 128, 0.16);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.14);
}

.split-comparison.is-worse {
  color: #ff9a9a;
}

.split-comparison.is-worse .split-comparison-icon {
  background: rgba(248, 113, 113, 0.15);
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.12);
}

.split-comparison.is-even {
  color: #ffe66d;
}

.split-comparison.is-even .split-comparison-icon {
  background: rgba(255, 230, 109, 0.14);
}

.split-comparison.is-leader,
.split-comparison.is-muted {
  color: var(--muted);
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--table-line);
  text-align: left;
  vertical-align: middle;
}

th {
  height: 34px;
  font-size: 11px;
  color: #e9ddff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(7, 12, 18, 0.84);
  border-bottom-color: rgba(203, 181, 255, 0.18);
}

td {
  color: #ddd2f4;
  font-size: 14px;
  background: rgba(17, 25, 34, 0.68);
}

.leaderboard-row:nth-child(4n + 1) td {
  background: rgba(28, 18, 45, 0.74);
}

.leaderboard-row:hover td {
  background: rgba(47, 31, 73, 0.82);
}

.leaderboard-row:focus-visible td,
.leaderboard-row[aria-expanded="true"] td {
  background: rgba(55, 33, 86, 0.86);
}

.leaderboard-empty {
  margin: 14px 0 0;
}

.leaderboard-row:hover td:first-child,
.leaderboard-row:focus-visible td:first-child,
.leaderboard-row[aria-expanded="true"] td:first-child {
  box-shadow: inset 3px 0 0 rgba(255, 230, 109, 0.8);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  color: rgba(247, 242, 255, 0.72);
  text-align: center;
}

.empty-state strong {
  color: #f7f2ff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.empty-state span {
  color: rgba(247, 242, 255, 0.64);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
}

.empty-state-inline {
  justify-items: start;
  max-width: none;
  text-align: left;
}

.empty-state-compact {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.now-playing-panel {
  margin-top: 18px;
  background: rgba(17, 10, 30, 0.9);
  text-align: left;
}

.now-playing-title {
  margin-bottom: 14px;
}

.now-playing-title h2 {
  margin: 0;
  font-size: 24px;
}

.now-playing-title .muted {
  margin: 8px 0 0;
  font-size: 14px;
}

.now-playing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.now-playing-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(188, 148, 255, 0.24);
  border-radius: 6px;
  background: rgba(14, 8, 24, 0.54);
  color: inherit;
  text-align: left;
  text-decoration: none;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.now-playing-card.is-live {
  animation: live-card-pulse 2200ms ease-in-out infinite;
}

.now-playing-card:hover,
.now-playing-card:focus-visible {
  border-color: rgba(192, 132, 252, 0.64);
  background: rgba(34, 21, 57, 0.72);
  transform: translateY(-1px);
  animation-play-state: paused;
}

@keyframes live-card-pulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(192, 132, 252, 0), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
  50% {
    box-shadow: 0 0 24px rgba(192, 132, 252, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
}

.now-playing-avatar-wrap {
  display: grid;
  gap: 7px;
  justify-items: center;
}

.now-playing-avatar {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.now-playing-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: #6d28d9;
  color: #f8fbff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.22);
}

.now-playing-copy {
  min-width: 0;
  justify-self: start;
  text-align: left;
}

.now-playing-copy h3 {
  max-width: 100%;
  margin: 0;
  font-size: 20px;
  line-height: 1.05;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.now-playing-category {
  max-width: 100%;
  margin: 6px 0 0;
  color: #d8b4fe;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.now-playing-stream-title {
  max-width: 100%;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  max-height: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  opacity: 0;
  transform: translateY(6px);
  transition: max-height 190ms ease, opacity 160ms ease, transform 160ms ease;
}

.now-playing-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 0;
  max-height: 0;
  margin-top: 0;
  padding: 0 11px;
  border: 1px solid rgba(188, 148, 255, 0.28);
  border-radius: 4px;
  background: rgba(192, 132, 252, 0.1);
  color: #f7f2ff;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 190ms ease, min-height 190ms ease, margin-top 190ms ease, opacity 160ms ease, transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.now-playing-card:hover .now-playing-stream-title,
.now-playing-card:focus-visible .now-playing-stream-title {
  max-height: 58px;
  opacity: 1;
  transform: translateY(0);
}

.now-playing-card:hover .now-playing-watch,
.now-playing-card:focus-visible .now-playing-watch {
  min-height: 30px;
  max-height: 30px;
  margin-top: 10px;
  border-color: rgba(192, 132, 252, 0.68);
  background: rgba(124, 58, 237, 0.22);
  opacity: 1;
  transform: translateY(0);
}

.now-playing-empty {
  margin: 0;
  align-items: flex-start;
  justify-items: start;
  max-width: none;
  text-align: left;
}

.table-empty-cell {
  height: 128px;
  color: var(--muted);
  text-align: center;
}

tr:last-child td { border-bottom: 0; }

.message { margin: 0; }
.message.error { color: var(--danger); }
.message.success { color: #d8b4fe; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-button {
  flex: 0 0 auto;
}

.cabinet-shell {
  width: min(1320px, calc(100% - 28px));
}

.cabinet-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 364px;
  gap: 18px;
  align-items: start;
}

.profile-card-v2 {
  position: relative;
  min-height: 640px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 34%),
    #180f29;
  color: #f8fbff;
  overflow: hidden;
}

.cabinet-news-promo[hidden] {
  display: none;
}

.cabinet-news-promo {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 1200;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 32px;
  gap: var(--space-3);
  align-items: center;
  width: min(620px, calc(100vw - 36px));
  padding: var(--space-3);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), transparent 54%),
    var(--panel);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.cabinet-news-promo-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-weight: 900;
}

.cabinet-news-promo-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cabinet-news-promo-copy .eyebrow,
.cabinet-news-promo-copy h2,
.cabinet-news-promo-copy p {
  margin: 0;
}

.cabinet-news-promo-copy h2 {
  font-size: 18px;
  line-height: 1.15;
}

.cabinet-news-promo-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.cabinet-news-promo-link {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  white-space: nowrap;
}

.cabinet-news-promo-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cabinet-news-promo-close:hover,
.cabinet-news-promo-close:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: var(--focus-ring);
  outline: none;
}

.cabinet-actions {
  position: absolute;
  top: 28px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.cabinet-home-link {
  justify-content: flex-start;
  gap: 8px;
  overflow: hidden;
  padding: 0 11px;
  white-space: nowrap;
  transition: width 190ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.cabinet-home-link svg {
  flex: 0 0 auto;
}

.cabinet-home-label {
  display: block;
  max-width: 0;
  overflow: hidden;
  color: #f7f2ff;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translateX(-6px);
  transition: max-width 190ms ease, opacity 140ms ease, transform 180ms ease;
}

.cabinet-home-link:hover,
.cabinet-home-link:focus-visible {
  width: 198px;
  border-color: rgba(192, 132, 252, 0.68);
  background: rgba(34, 21, 57, 0.86);
  transform: translateY(-1px);
}

.cabinet-home-link:hover .cabinet-home-label,
.cabinet-home-link:focus-visible .cabinet-home-label {
  max-width: 140px;
  opacity: 1;
  transform: translateX(0);
}

.profile-hero-v2 {
  display: grid;
  grid-template-columns: 200px minmax(260px, 1fr) 230px;
  gap: 24px;
  align-items: start;
  padding-right: 64px;
}

.avatar-block-v2 {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.avatar-v2 {
  width: 200px;
  height: 200px;
  border: 0;
  border-radius: 8px;
  background: #d8d8d8;
}

.avatar-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: #d9dde2;
  color: #1b2028;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.avatar-edit-button:hover,
.avatar-edit-button:focus-visible {
  background: #ffffff;
  color: #140820;
  outline: none;
  box-shadow: var(--focus-ring);
  transform: translateY(-1px);
}

.profile-copy-v2 {
  min-width: 0;
  padding-top: 20px;
}

.profile-copy-v2 h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}

.nick-line-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: #a9b0bb;
  font-size: 22px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.nick-line-form .icon-button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
}

.nick-inline-display {
  min-width: 0;
  max-width: min(100%, 520px);
  overflow-wrap: anywhere;
}

.nick-line-form .nick-inline-input {
  min-height: 36px;
  max-width: 280px;
  font-size: 20px;
}

.profile-copy-v2 p {
  margin: 18px 0 0;
  color: #f1f5f9;
  font-size: 16px;
  line-height: 1.15;
}

.now-playing-optin {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 18px;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  color: #f1f5f9;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
}

.checkbox-line span {
  overflow-wrap: anywhere;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.checkbox-line.is-authorized input {
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2), 0 0 18px rgba(192, 132, 252, 0.32);
}

.permission-button,
.permission-state {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.permission-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #160821;
  transition: box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

.permission-state {
  border: 1px solid rgba(216, 180, 254, 0.32);
  color: #d8b4fe;
}

.permission-button:hover,
.permission-button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 10px 24px rgba(124, 58, 237, 0.22);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.stream-status-column {
  display: grid;
  gap: 12px;
  width: 230px;
  margin-top: 76px;
  justify-items: end;
  transform: translateX(46px);
}

.stream-status-column .now-playing-optin {
  width: 100%;
  margin-top: 0;
  justify-items: end;
  text-align: right;
}

.stream-badge-v2 {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: 150px;
  min-height: 40px;
  margin-top: 0;
  border-radius: 5px;
  color: #f8fbff;
  overflow: hidden;
  outline: none;
  cursor: default;
  transition: max-width 760ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms ease, color 220ms ease;
  max-width: 150px;
}

.stream-badge-v2:not(:hover):not(:focus-visible) {
  animation: stream-badge-collapse 900ms cubic-bezier(0.22, 1, 0.36, 1) 1800ms forwards;
}

.stream-badge-v2:hover,
.stream-badge-v2:focus-visible {
  max-width: 150px;
}

.stream-badge-v2 i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  align-self: stretch;
  border-radius: 4px;
  background: #dedede;
}

.stream-badge-v2 svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.stream-badge-v2 span {
  display: inline-flex;
  align-items: center;
  flex: 0 0 110px;
  min-width: 110px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.stream-badge-v2.is-live {
  background: #20e47a;
  color: #062719;
}

.stream-badge-v2.is-offline {
  background: #8e2f3b;
  color: #ffe8ec;
}

.stream-badge-v2.is-offline i {
  color: #8e2f3b;
}

.stream-badge-v2.is-live i {
  color: #20e47a;
}

@keyframes stream-badge-collapse {
  to {
    max-width: 40px;
  }
}

.profile-data-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 292px);
  gap: clamp(28px, 5vw, 56px);
  margin-top: 36px;
}

.metric-label {
  margin: 0 0 6px;
  color: #a9b0bb;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: 0;
}

.best-time-v2 {
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(58px, 8vw, 92px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.token-label {
  margin-top: 20px;
}

.token-row-v2 {
  display: grid;
  grid-template-columns: minmax(180px, 306px) 28px 28px;
  align-items: center;
  gap: 10px;
}

.token-row-v2 form {
  margin: 0;
}

.token-input-v2 {
  width: 100%;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(210, 217, 224, 0.26);
  color: transparent;
  text-shadow: 0 0 8px rgba(245, 248, 255, 0.55);
  font: 700 15px/1 "Segoe UI", sans-serif;
  outline: none;
  cursor: pointer;
  transition: color 160ms ease, text-shadow 160ms ease, background 160ms ease;
}

.token-input-v2.is-visible,
.token-input-v2:focus {
  color: #f8fbff;
  text-shadow: none;
  background: rgba(210, 217, 224, 0.14);
}

.token-input-v2.is-placeholder {
  color: rgba(248, 251, 255, 0.62);
  text-shadow: none;
  cursor: default;
}

.token-row-v2 .icon-button {
  position: relative;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
}

.token-row-v2 .icon-button:hover,
.token-row-v2 .icon-button:focus-visible,
.nick-line-form .icon-button:hover,
.nick-line-form .icon-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  border-color: rgba(192, 132, 252, 0.58);
  outline: none;
  box-shadow: var(--focus-ring);
  transform: translateY(-1px);
}

.token-row-v2 .icon-button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.token-row-v2 .icon-button.is-copied {
  background: rgba(142, 240, 186, 0.18);
  color: #8ef0ba;
  box-shadow: 0 0 0 2px rgba(142, 240, 186, 0.32), 0 0 18px rgba(142, 240, 186, 0.2);
}

.token-copy-feedback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #8ef0ba;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.token-copy-status {
  margin: 8px 0 0;
  color: #8ef0ba;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.token-notice {
  margin: 12px 0 0;
  color: #8ef0ba;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.token-help-v2 {
  margin: 10px 0 0;
  color: #f3f6fb;
  font-size: 16px;
  line-height: 1.15;
}

.split-column-v2 {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 8px;
}

.split-item-v2 {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.split-item-v2 span {
  display: block;
  margin-bottom: 0;
  color: rgba(247, 249, 255, 0.74);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.split-item-v2 strong {
  display: block;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.profile-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: start;
}

.avatar-column {
  gap: 8px;
  align-content: start;
}

.editor-box > summary,
.inline-editor > summary {
  list-style: none;
}

.editor-box > summary::-webkit-details-marker,
.inline-editor > summary::-webkit-details-marker {
  display: none;
}

.editor-trigger {
  width: 100%;
  cursor: pointer;
}

.avatar-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { margin-top: 6px; font-size: 24px; font-weight: 700; }

.nick-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.nick-inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.nick-inline-display {
  font-size: 24px;
  font-weight: 700;
}

.nick-inline-input {
  display: none;
}

.nick-inline-form.is-editing .nick-inline-display,
.nick-line-form.is-editing .nick-inline-display {
  display: none;
}

.nick-inline-form.is-editing .nick-inline-input,
.nick-line-form.is-editing .nick-inline-input {
  display: block;
  width: min(260px, 100%);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cabinet-admin-request-button {
  min-height: 42px;
  padding: 0 14px;
}

.admin-page {
  width: min(1320px, calc(100% - 28px));
}

.admin-page .admin-panel {
  margin-top: 18px;
}

.icon-check {
  display: none;
}

.nick-inline-form.is-editing .icon-pencil,
.nick-line-form.is-editing .icon-pencil {
  display: none;
}

.nick-inline-form.is-editing .icon-check,
.nick-line-form.is-editing .icon-check {
  display: block;
}

.admin-panel {
  margin-top: 24px;
  border-color: rgba(188, 148, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(192, 132, 252, 0.05), transparent 180px),
    rgba(19, 11, 32, 0.94);
}

.admin-panel[hidden] {
  display: none;
}

.admin-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-panel-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-requests-toggle {
  min-height: 42px;
  white-space: nowrap;
}

.admin-panel-header h2,
.admin-card h3 {
  margin: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.admin-main,
.admin-sidebar {
  display: grid;
  gap: 18px;
}

.admin-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.028);
}

.admin-card-applications {
  border-color: rgba(255, 230, 109, 0.22) !important;
  background: rgba(34, 21, 57, 0.38) !important;
}

.admin-card-tournament {
  border-color: rgba(188, 148, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.admin-card-whitelist {
  border-color: rgba(188, 148, 255, 0.24);
  background: rgba(34, 21, 57, 0.38);
}

.admin-test-mode-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(188, 148, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(7, 5, 14, 0.22);
}

.admin-test-mode-card strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.admin-test-mode-card p {
  margin: 6px 0 0;
}

.admin-test-mode-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-test-mode-actions .button-secondary {
  min-height: 40px;
  padding: 0 12px;
  font-size: 12px;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-inline-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-schedule-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-schedule-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-schedule-form .button-secondary {
  grid-column: 1 / -1;
}

.admin-mini-calendar {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(188, 148, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 5, 14, 0.34);
}

.admin-mini-calendar[hidden] {
  display: none;
}

.admin-mini-calendar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.admin-mini-calendar-head strong {
  display: block;
  color: #f7f2ff;
  font-size: 13px;
  font-weight: 900;
}

.admin-mini-calendar-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.admin-calendar-selected {
  justify-self: end;
  max-width: 240px;
  margin: 0;
  color: #ffe66d;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
}

.admin-match-seed-field {
  display: grid;
  gap: 5px;
}

.admin-match-seed-field[hidden] {
  display: none;
}

.admin-match-seed-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-calendar-targets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-calendar-targets button {
  min-height: 28px;
  border: 1px solid rgba(188, 148, 255, 0.18);
  border-radius: 6px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 242, 255, 0.68);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.admin-calendar-targets button.is-active {
  border-color: rgba(255, 230, 109, 0.58);
  background: rgba(255, 230, 109, 0.12);
  color: #ffe66d;
}

.admin-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  max-height: 268px;
  overflow-y: auto;
  padding-right: 2px;
}

.admin-calendar-day {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 7px 5px;
  color: #f7f2ff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.admin-calendar-day::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.admin-calendar-day span,
.admin-calendar-day small {
  position: relative;
  z-index: 1;
}

.admin-calendar-day span {
  font-size: 11px;
  font-weight: 900;
}

.admin-calendar-day small {
  color: rgba(247, 242, 255, 0.62);
  font-size: 10px;
  font-weight: 800;
}

.admin-calendar-day em {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 3px;
  border-radius: 4px;
  padding: 1px 4px;
  background: rgba(255, 230, 109, 0.16);
  color: #ffe66d;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.admin-calendar-day:hover,
.admin-calendar-day:focus-visible {
  border-color: rgba(255, 230, 109, 0.62);
  outline: none;
}

.admin-calendar-day.is-qualification::before {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.3), transparent);
}

.admin-calendar-day.is-quarter::before {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.28), transparent);
}

.admin-calendar-day.is-semi::before {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.24), transparent);
}

.admin-calendar-day.is-final::before {
  background: linear-gradient(135deg, rgba(255, 230, 109, 0.26), transparent);
}

.admin-calendar-day.is-boundary {
  border-color: rgba(255, 230, 109, 0.48);
  box-shadow: inset 0 0 0 1px rgba(255, 230, 109, 0.12);
}

.admin-calendar-day.is-boundary::after {
  content: attr(data-boundary);
  position: absolute;
  right: 5px;
  bottom: 4px;
  z-index: 1;
  color: #ffe66d;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-calendar-day.has-match {
  border-color: rgba(255, 230, 109, 0.34);
}

.admin-calendar-day.is-selected-match {
  border-color: rgba(255, 230, 109, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 230, 109, 0.34), 0 0 18px rgba(255, 230, 109, 0.12);
}

.admin-calendar-match-list {
  display: grid;
  gap: 7px;
  max-height: 190px;
  overflow-y: auto;
}

.admin-match-chip {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border: 1px solid rgba(188, 148, 255, 0.16);
  border-radius: 6px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #f7f2ff;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.admin-match-chip strong {
  color: #ffe66d;
  font-size: 11px;
  font-weight: 900;
}

.admin-match-chip span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-match-chip small {
  color: rgba(247, 242, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.admin-match-chip:hover,
.admin-match-chip:focus-visible,
.admin-match-chip.is-selected {
  border-color: rgba(255, 230, 109, 0.58);
  outline: none;
  background: rgba(255, 230, 109, 0.1);
}

.admin-calendar-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(247, 242, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.admin-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-calendar-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.admin-calendar-legend i.is-qualification { background: #c084fc; }
.admin-calendar-legend i.is-quarter { background: #60a5fa; }
.admin-calendar-legend i.is-semi { background: #34d399; }
.admin-calendar-legend i.is-final { background: #ffe66d; }

.admin-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

.admin-application-list {
  display: grid;
  gap: 9px;
  max-height: 360px;
  overflow: auto;
}

.admin-application-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(188, 148, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(5, 11, 17, 0.42);
}

.admin-application-row.is-pending {
  border-color: rgba(255, 230, 109, 0.28);
}

.admin-application-header,
.admin-application-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-application-header strong {
  min-width: 0;
  overflow: hidden;
  color: #f7f2ff;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-application-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 242, 255, 0.74);
  font-size: 11px;
  font-weight: 900;
}

.admin-application-row.is-pending .admin-application-status {
  background: rgba(255, 230, 109, 0.12);
  color: #ffe66d;
}

.admin-application-row.is-approved .admin-application-status {
  background: rgba(142, 240, 186, 0.12);
  color: #8ef0ba;
}

.admin-application-row.is-rejected .admin-application-status {
  background: rgba(255, 150, 150, 0.12);
  color: #ffb4b4;
}

.admin-application-meta {
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
  color: rgba(247, 242, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
}

.admin-application-meta a {
  color: #c084fc;
}

.admin-application-meta a:hover,
.admin-application-meta a:focus-visible {
  color: #ffffff;
  outline: none;
}

.admin-application-footer small {
  color: rgba(247, 242, 255, 0.5);
  font-size: 11px;
}

.admin-application-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-application-actions .button-secondary,
.admin-application-actions .button-danger {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-list:empty::before {
  content: "Участники появятся здесь после добавления в whitelist.";
  display: grid;
  min-height: 92px;
  align-content: center;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(247, 242, 255, 0.64);
  font-size: 13px;
  line-height: 1.35;
}

.admin-empty-state {
  display: grid;
  gap: 6px;
  min-height: 92px;
  align-content: center;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(247, 242, 255, 0.68);
}

.admin-empty-state strong {
  color: #f7f2ff;
  font-size: 14px;
}

.admin-empty-state span {
  max-width: 520px;
  font-size: 13px;
  line-height: 1.35;
}

.admin-list-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(132px, auto) auto;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(5, 11, 17, 0.42);
  transition: background 160ms ease, transform 160ms ease;
}

.admin-list-row:hover {
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.admin-player-login {
  font-weight: 700;
}

.admin-player-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-player-login,
.admin-player-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-player-status {
  color: var(--muted);
  font-size: 11px;
}

.admin-stream-state {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 132px;
}

.admin-stream-state i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 150, 150, 0.12);
}

.admin-stream-state.is-live i {
  background: #c084fc;
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.16), 0 0 14px rgba(192, 132, 252, 0.38);
}

.admin-stream-state small {
  color: var(--muted);
}

.admin-list-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-list-actions .button-secondary,
.admin-list-actions .button-danger {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-actions {
  display: grid;
  gap: 14px;
}

.admin-actions-primary {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, auto);
  gap: 10px;
  align-items: center;
}

.admin-danger-zone {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 150, 150, 0.24);
  border-radius: var(--radius);
  background: rgba(116, 41, 52, 0.18);
}

.admin-danger-zone p {
  margin: 0;
  color: rgba(255, 216, 216, 0.64);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-danger-zone .button-danger {
  width: 100%;
}

.admin-danger-zone .button-danger.is-soft {
  border-color: rgba(255, 150, 150, 0.18);
  background: rgba(116, 41, 52, 0.12);
}

.achievements-side-panel {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 18px;
}

.achievements-side-panel h2 {
  margin: 0;
  color: #a9b0bb;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.achievements-summary-card {
  display: grid;
  gap: 13px;
  padding: 13px 10px 14px;
  border: 1px solid rgba(188, 148, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(192, 132, 252, 0.1), transparent 44%),
    rgba(24, 15, 41, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.achievement-summary-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #d9dde5;
  font-size: 13px;
  font-weight: 800;
}

.achievement-summary-count strong {
  color: #dfe7f2;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.achievement-meter,
.achievement-row-meter {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.12);
}

.achievement-meter {
  height: 7px;
  border-radius: 2px;
}

.achievement-meter::-webkit-progress-bar,
.achievement-row-meter::-webkit-progress-bar {
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.12);
}

.achievement-meter::-webkit-progress-value,
.achievement-row-meter::-webkit-progress-value {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #8ef0ba);
}

.achievement-meter::-moz-progress-bar,
.achievement-row-meter::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #8ef0ba);
}

.achievement-featured {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.achievement-featured h3 {
  margin: 0;
  color: #e4e8ef;
  font-size: 14px;
  line-height: 1.15;
}

.achievement-featured p {
  margin: 2px 0 0;
  color: #b9c0cb;
  font-size: 12px;
  line-height: 1.25;
}

.achievement-preview-row {
  display: grid;
  grid-template-columns: repeat(5, 48px) 48px;
  gap: 8px;
}

.achievement-icon,
.achievement-overflow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(188, 148, 255, 0.2);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 38%, rgba(192, 132, 252, 0.42), transparent 30%),
    linear-gradient(145deg, rgba(124, 58, 237, 0.52), #150d24 64%, #07050c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -8px 12px rgba(0, 0, 0, 0.42);
  color: #f7f2ff;
  font-size: 19px;
  font-weight: 900;
  overflow: hidden;
}

.achievement-icon::before {
  content: "";
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid rgba(216, 180, 254, 0.86);
  background: radial-gradient(circle, rgba(247, 242, 255, 0.4), rgba(124, 58, 237, 0.78));
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22);
}

.achievement-icon[class*="achievement-icon-"] {
  background-position: center;
  background-size: cover;
}

.achievement-icon[class*="achievement-icon-"]::before {
  display: none;
}

.achievement-icon-legend_return {
  background-image: url("/static/achievements/legend_return.png?v=achievement-icons-v2");
}

.achievement-icon-first_dragon {
  background-image: url("/static/achievements/first_dragon.png?v=achievement-icons-v2");
}

.achievement-icon-diligent {
  background-image: url("/static/achievements/diligent.png?v=achievement-icons-v2");
}

.achievement-icon-hardened {
  background-image: url("/static/achievements/hardened.png?v=achievement-icons-v2");
}

.achievement-icon-machine {
  background-image: url("/static/achievements/machine.png?v=achievement-icons-v2");
}

.achievement-icon-top_three_days {
  background-image: url("/static/achievements/top_three_days.png?v=achievement-icons-v2");
}

.achievement-icon-rock_bottom {
  background-image: url("/static/achievements/rock_bottom.png?v=achievement-icons-v2");
}

.achievement-icon-seconds_hunter {
  background-image: url("/static/achievements/seconds_hunter.png?v=achievement-icons-v2");
}

.achievement-icon-marathoner {
  background-image: url("/static/achievements/marathoner.png?v=achievement-icons-v2");
}

.achievement-icon-stability {
  background-image: url("/static/achievements/stability.png?v=achievement-icons-v2");
}

.achievement-icon-on_flow {
  background-image: url("/static/achievements/on_flow.png?v=achievement-icons-v2");
}

.achievement-icon.is-locked {
  filter: grayscale(1);
  opacity: 0.5;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(170, 176, 184, 0.28), transparent 34%),
    linear-gradient(180deg, #1f1b2a, #09070e);
}

.achievement-icon.is-locked::before {
  width: 30px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #9ca3ad, #484f59);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.36);
}

.achievement-overflow {
  border-color: rgba(188, 148, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f6fb;
}

.achievement-preview-separator {
  height: 1px;
  background: rgba(178, 187, 199, 0.16);
}

.achievement-muted-title {
  margin: -2px 0 -3px;
  color: #a6adb8;
  font-size: 13px;
}

.achievement-open-button {
  justify-self: end;
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: #aeb5c0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.achievement-open-button:hover,
.achievement-open-button:focus-visible {
  color: #f4f7ff;
}

.available-mods-card {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 13px 10px 14px;
  border: 1px solid rgba(188, 148, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(192, 132, 252, 0.08), transparent 46%),
    rgba(24, 15, 41, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.available-mods-card h2 {
  margin: 0 0 2px;
  color: #a9b0bb;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.available-mod-row {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(188, 148, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.available-mod-row.is-disabled {
  opacity: 0.52;
}

.available-mod-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.available-mod-title-row h3 {
  min-width: 0;
  margin: 0;
  color: #e4e8ef;
  font-size: 14px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.available-mod-help {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(188, 148, 255, 0.28);
  border-radius: 50%;
  background: rgba(192, 132, 252, 0.08);
  color: #d9dde5;
  font-size: 14px;
  font-weight: 900;
  cursor: help;
}

.available-mod-help::before,
.available-mod-download.is-disabled::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  z-index: 5;
  width: min(260px, calc(100vw - 40px));
  padding: 9px 10px;
  border: 1px solid rgba(188, 148, 255, 0.2);
  border-radius: 6px;
  background: #f7f2ff;
  color: #130c20;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.available-mod-help:hover::before,
.available-mod-help:focus-visible::before,
.available-mod-download.is-disabled:hover::before,
.available-mod-download.is-disabled:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.available-mod-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(192, 132, 252, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--button-text);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.available-mod-download:hover,
.available-mod-download:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(216, 180, 254, 0.72);
  box-shadow: var(--focus-ring), 0 10px 24px rgba(124, 58, 237, 0.22);
  outline: none;
}

.available-mod-download.is-disabled {
  border-color: rgba(188, 148, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(247, 242, 255, 0.62);
  cursor: not-allowed;
}

.available-mod-download.is-disabled:hover,
.available-mod-download.is-disabled:focus-visible {
  transform: none;
  box-shadow: var(--focus-ring);
}

.event-badges-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-top: 8px;
  padding: 14px 12px 15px;
  border: 1px solid rgba(188, 148, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(142, 240, 186, 0.08), transparent 48%),
    rgba(24, 15, 41, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.event-badges-eyebrow {
  margin: 0;
  color: #ffe76b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-badges-card h2 {
  min-width: 0;
  margin: 0;
  color: #f5f7fb;
  font-size: 17px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.event-badges-card p:not(.event-badges-eyebrow) {
  margin: 0;
  color: #cbd1dc;
  font-size: 13px;
  line-height: 1.45;
}

.event-badges-open-button,
.event-badge-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 38px;
  min-width: 118px;
  padding: 0 14px;
  border: 1px solid rgba(188, 148, 255, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, #b46cff, #8b3df2);
  color: #140a23;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.event-badges-open-button:hover,
.event-badges-open-button:focus-visible,
.event-badge-download:hover,
.event-badge-download:focus-visible {
  border-color: rgba(232, 214, 255, 0.72);
  box-shadow: var(--focus-ring), 0 12px 28px rgba(139, 61, 242, 0.22);
  transform: translateY(-1px);
}

body.achievements-open,
body.event-badges-open {
  overflow: hidden;
}

.event-badges-modal[hidden] {
  display: none;
}

.event-badges-modal {
  position: fixed;
  inset: 0;
  z-index: 1120;
  display: grid;
  place-items: center;
  padding: 18px;
}

.event-badges-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.76);
  backdrop-filter: blur(8px);
}

.event-badges-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(900px, calc(100vh - 28px));
  overflow: auto;
  border: 1px solid rgba(188, 148, 255, 0.28);
  border-radius: 8px;
  background: #130c20;
  color: #d9dde5;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.event-badges-hero {
  display: grid;
  gap: 8px;
  padding: 24px 64px 24px 28px;
  background:
    linear-gradient(135deg, rgba(142, 240, 186, 0.11), transparent 46%),
    rgba(30, 18, 52, 0.96);
}

.event-badges-hero h2 {
  margin: 0;
  color: #f7f8fb;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}

.event-badges-hero p:not(.event-badges-eyebrow),
.event-badges-info p,
.event-badge-copy p {
  margin: 0;
  color: #cbd1dc;
  line-height: 1.45;
}

.event-badges-info,
.event-badges-grid,
.event-badges-settings {
  margin: 18px 24px 24px;
}

.event-badges-info {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(188, 148, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.event-badges-info strong,
.event-badge-copy h3,
.event-badges-settings h3 {
  margin: 0;
  color: #f5f7fb;
}

.event-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.event-badge-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(188, 148, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.event-badge-item img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  image-rendering: pixelated;
  object-fit: contain;
}

.event-badge-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.event-badge-copy h3 {
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.event-badge-copy dl {
  display: grid;
  grid-template-columns: minmax(96px, 0.7fr) minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  font-size: 13px;
}

.event-badge-copy dt {
  color: #aeb5c0;
}

.event-badge-copy dd {
  min-width: 0;
  margin: 0;
  color: #f5f7fb;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.event-badges-settings {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(188, 148, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.event-badge-setting-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.event-badge-setting-grid span,
.event-badge-setting-grid strong {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow-wrap: anywhere;
}

.event-badge-setting-grid span {
  color: #aeb5c0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-badge-setting-grid strong {
  color: #f5f7fb;
}

.achievements-modal[hidden] {
  display: none;
}

.achievements-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.achievements-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.76);
}

.achievements-modal-panel {
  position: relative;
  width: min(850px, 100%);
  max-height: min(860px, calc(100vh - 28px));
  overflow: hidden;
  border: 1px solid rgba(188, 148, 255, 0.28);
  border-radius: 8px;
  background: #130c20;
  color: #d9dde5;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.achievement-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c6cbd5;
  cursor: pointer;
}

.achievement-close-button svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.achievement-close-button:hover,
.achievement-close-button:focus-visible {
  color: #f7f2ff;
}

.achievements-modal-hero {
  display: grid;
  gap: 12px;
  padding: 28px 36px 30px;
  background:
    linear-gradient(135deg, rgba(192, 132, 252, 0.22), transparent 46%),
    #180f29;
}

.achievements-modal-hero h2 {
  margin: 0;
  color: #f6f7fb;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}

.achievements-modal-list {
  display: grid;
  gap: 8px;
  max-height: min(632px, calc(100vh - 220px));
  overflow-y: auto;
  padding: 18px 20px 20px;
}

.achievement-list-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(150px, auto);
  gap: 8px;
  align-items: center;
  min-height: 80px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.achievement-list-row.is-locked {
  background: rgba(255, 255, 255, 0.035);
}

.achievement-list-copy h3 {
  margin: 0;
  color: #dfe3ea;
  font-size: 16px;
  line-height: 1.2;
}

.achievement-list-copy p {
  margin: 3px 0 0;
  color: #b7bec8;
  font-size: 12px;
}

.achievement-list-copy small {
  display: block;
  margin-top: 3px;
  color: #8f98a6;
  font-size: 12px;
}

.achievement-row-meter {
  width: min(260px, 100%);
  height: 5px;
  margin-top: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.achievement-list-state {
  justify-self: end;
  color: #9da5b1;
  font-size: 12px;
  text-align: right;
}

.achievement-list-state strong {
  color: #f5f7fc;
  font-size: 15px;
}

.achievements-section {
  margin-top: 42px;
}

.achievements-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.achievements-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.achievement-card {
  display: grid;
  gap: 10px;
  min-height: 156px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(7, 12, 18, 0.38);
}

.achievement-card.is-unlocked {
  border-color: rgba(142, 240, 186, 0.36);
  background: rgba(18, 54, 37, 0.32);
}

.achievement-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.achievement-topline h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
}

.achievement-topline span {
  flex: 0 0 auto;
  color: #d8b4fe;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.achievement-card p {
  margin: 0;
  color: #d8dce6;
  font-size: 13px;
  line-height: 1.35;
}

.achievement-card small {
  color: #a9b0bb;
  font-size: 12px;
}

.achievement-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.achievement-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ef0ba, #c084fc);
}

[data-theme="quartz"] .leaderboard-panel {
  background:
    linear-gradient(rgba(255, 213, 157, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 213, 157, 0.035) 1px, transparent 1px),
    rgba(34, 19, 11, 0.92);
}

[data-theme="quartz"] .home-path-card {
  background: rgba(31, 18, 11, 0.66);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 193, 119, 0.13);
}

[data-theme="quartz"] .home-path-card small {
  color: rgba(255, 248, 237, 0.66);
}

[data-theme="quartz"] .home-path-card.is-primary {
  background:
    linear-gradient(135deg, rgba(255, 180, 84, 0.2), transparent 58%),
    rgba(42, 24, 14, 0.82);
}

[data-theme="quartz"] .home-path-card:hover,
[data-theme="quartz"] .home-path-card:focus-visible {
  background: rgba(54, 31, 17, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(255, 180, 84, 0.38),
    0 16px 36px rgba(21, 9, 3, 0.22);
}

[data-theme="quartz"] .leaderboard-search input {
  border-color: rgba(255, 193, 119, 0.32);
  background: rgba(11, 7, 4, 0.72);
}

[data-theme="quartz"] .leaderboard-search input:focus {
  border-color: rgba(255, 180, 84, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.14);
}

[data-theme="quartz"] .table-wrap {
  border-color: rgba(88, 48, 24, 0.64);
  background:
    linear-gradient(rgba(255, 213, 157, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 213, 157, 0.028) 1px, transparent 1px),
    rgba(24, 13, 8, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 214, 0.06),
    0 18px 42px rgba(24, 9, 2, 0.34);
}

[data-theme="quartz"] th {
  color: #ffe6c5;
  background: rgba(13, 8, 5, 0.86);
  border-bottom-color: rgba(255, 213, 157, 0.18);
}

[data-theme="quartz"] td {
  color: #ead6bf;
  background: rgba(29, 18, 12, 0.72);
}

[data-theme="quartz"] .leaderboard-row:nth-child(4n + 1) td {
  background: rgba(40, 23, 13, 0.76);
}

[data-theme="quartz"] .leaderboard-row:hover td {
  background: rgba(61, 34, 17, 0.84);
}

[data-theme="quartz"] .leaderboard-row:focus-visible td,
[data-theme="quartz"] .leaderboard-row[aria-expanded="true"] td {
  background: rgba(72, 38, 18, 0.88);
}

[data-theme="quartz"] .leaderboard-row:hover td:first-child,
[data-theme="quartz"] .leaderboard-row:focus-visible td:first-child,
[data-theme="quartz"] .leaderboard-row[aria-expanded="true"] td:first-child {
  box-shadow: inset 3px 0 0 rgba(255, 230, 109, 0.78);
}

[data-theme="quartz"] .leaderboard-detail-row td {
  background: rgba(18, 10, 6, 0.88);
}

[data-theme="quartz"] .leaderboard-detail-card {
  border-color: rgba(255, 193, 119, 0.22);
  background: rgba(30, 17, 10, 0.92);
}

[data-theme="quartz"] .runner-avatar {
  border-color: rgba(255, 213, 157, 0.28);
}

[data-theme="quartz"] .time-cell,
[data-theme="quartz"] .achievement-topline span {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 180, 84, 0.18);
}

[data-theme="quartz"] .empty-state {
  color: rgba(255, 248, 237, 0.72);
}

[data-theme="quartz"] .empty-state strong {
  color: var(--text);
}

[data-theme="quartz"] .empty-state span {
  color: rgba(255, 248, 237, 0.64);
}

[data-theme="quartz"] .empty-state-compact {
  background: rgba(255, 213, 157, 0.055);
}

[data-theme="quartz"] .now-playing-panel {
  background: rgba(24, 13, 8, 0.9);
}

[data-theme="quartz"] .now-playing-card {
  border-color: rgba(255, 193, 119, 0.24);
  background: rgba(31, 18, 11, 0.56);
}

[data-theme="quartz"] .now-playing-card:hover,
[data-theme="quartz"] .now-playing-card:focus-visible {
  border-color: rgba(255, 180, 84, 0.62);
  background: rgba(54, 31, 17, 0.74);
}

[data-theme="quartz"] .now-playing-status {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--button-text);
  box-shadow: 0 0 16px rgba(255, 180, 84, 0.24);
}

[data-theme="quartz"] .now-playing-category {
  color: #ffd6a3;
}

[data-theme="quartz"] .now-playing-watch {
  border-color: rgba(255, 193, 119, 0.3);
  background: rgba(255, 180, 84, 0.1);
  color: var(--text);
}

[data-theme="quartz"] .now-playing-card:hover .now-playing-watch,
[data-theme="quartz"] .now-playing-card:focus-visible .now-playing-watch {
  border-color: rgba(255, 180, 84, 0.68);
  background: rgba(249, 115, 22, 0.22);
}

[data-theme="quartz"] .profile-card-v2 {
  background:
    linear-gradient(180deg, rgba(255, 213, 157, 0.04), transparent 34%),
    rgba(25, 14, 8, 0.94);
  color: var(--text);
}

[data-theme="quartz"] .cabinet-home-label,
[data-theme="quartz"] .profile-copy-v2 p,
[data-theme="quartz"] .checkbox-line,
[data-theme="quartz"] .token-help-v2 {
  color: var(--text);
}

[data-theme="quartz"] .cabinet-home-link:hover,
[data-theme="quartz"] .cabinet-home-link:focus-visible {
  border-color: rgba(255, 180, 84, 0.68);
  background: rgba(54, 31, 17, 0.86);
}

[data-theme="quartz"] .nick-line-form,
[data-theme="quartz"] .metric-label {
  color: #d7b99a;
}

[data-theme="quartz"] .best-time-v2,
[data-theme="quartz"] .split-item-v2 strong {
  color: var(--text);
}

[data-theme="quartz"] .permission-state {
  border-color: rgba(255, 213, 157, 0.32);
  color: #ffd6a3;
}

[data-theme="quartz"] .permission-button:hover,
[data-theme="quartz"] .permission-button:focus-visible {
  box-shadow: var(--focus-ring), 0 10px 24px rgba(249, 115, 22, 0.2);
}

[data-theme="quartz"] .split-item-v2,
[data-theme="quartz"] .stat-card,
[data-theme="quartz"] .nick-card {
  border-color: rgba(255, 213, 157, 0.08);
  background: rgba(255, 213, 157, 0.045);
}

[data-theme="quartz"] .split-item-v2 span {
  color: rgba(255, 248, 237, 0.7);
}

[data-theme="quartz"] .token-input-v2 {
  border-color: rgba(255, 213, 157, 0.14);
  background: rgba(255, 236, 214, 0.14);
  text-shadow: 0 0 8px rgba(255, 248, 237, 0.5);
}

[data-theme="quartz"] .token-input-v2.is-visible,
[data-theme="quartz"] .token-input-v2:focus {
  color: var(--text);
  background: rgba(255, 236, 214, 0.1);
}

[data-theme="quartz"] .achievements-side-panel h2 {
  color: #d7b99a;
}

[data-theme="quartz"] .achievements-summary-card {
  border-color: rgba(255, 193, 119, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 180, 84, 0.11), transparent 44%),
    rgba(25, 14, 8, 0.94);
  box-shadow: 0 18px 42px rgba(24, 9, 2, 0.25);
}

[data-theme="quartz"] .available-mods-card {
  border-color: rgba(255, 193, 119, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 180, 84, 0.09), transparent 46%),
    rgba(25, 14, 8, 0.9);
  box-shadow: 0 18px 42px rgba(24, 9, 2, 0.22);
}

[data-theme="quartz"] .available-mods-card h2,
[data-theme="quartz"] .available-mod-help,
[data-theme="quartz"] .available-mod-download.is-disabled {
  color: #d7b99a;
}

[data-theme="quartz"] .available-mod-row {
  border-color: rgba(255, 213, 157, 0.1);
  background: rgba(255, 213, 157, 0.045);
}

[data-theme="quartz"] .available-mod-title-row h3 {
  color: var(--text);
}

[data-theme="quartz"] .available-mod-help {
  border-color: rgba(255, 193, 119, 0.28);
  background: rgba(255, 180, 84, 0.08);
}

[data-theme="quartz"] .available-mod-help::before,
[data-theme="quartz"] .available-mod-download.is-disabled::before {
  border-color: rgba(255, 193, 119, 0.24);
  background: #fff8ed;
  color: #211005;
}

[data-theme="quartz"] .available-mod-download {
  border-color: rgba(255, 193, 119, 0.42);
  box-shadow: none;
}

[data-theme="quartz"] .available-mod-download:hover,
[data-theme="quartz"] .available-mod-download:focus-visible {
  border-color: rgba(255, 213, 157, 0.72);
  box-shadow: var(--focus-ring), 0 10px 24px rgba(249, 115, 22, 0.2);
}

[data-theme="quartz"] .available-mod-download.is-disabled {
  border-color: rgba(255, 213, 157, 0.18);
  background: rgba(255, 213, 157, 0.055);
}

[data-theme="quartz"] .event-badges-card {
  border-color: rgba(255, 193, 119, 0.22);
  background:
    linear-gradient(135deg, rgba(142, 240, 186, 0.08), transparent 48%),
    rgba(25, 14, 8, 0.9);
  box-shadow: 0 18px 42px rgba(24, 9, 2, 0.22);
}

[data-theme="quartz"] .event-badges-card h2,
[data-theme="quartz"] .event-badges-info strong,
[data-theme="quartz"] .event-badge-copy h3,
[data-theme="quartz"] .event-badges-settings h3,
[data-theme="quartz"] .event-badge-copy dd,
[data-theme="quartz"] .event-badge-setting-grid strong {
  color: var(--text);
}

[data-theme="quartz"] .event-badges-card p:not(.event-badges-eyebrow),
[data-theme="quartz"] .event-badges-hero p:not(.event-badges-eyebrow),
[data-theme="quartz"] .event-badges-info p,
[data-theme="quartz"] .event-badge-copy p {
  color: #ead6bf;
}

[data-theme="quartz"] .event-badges-eyebrow {
  color: #ffe76b;
}

[data-theme="quartz"] .event-badges-open-button,
[data-theme="quartz"] .event-badge-download {
  border-color: rgba(255, 193, 119, 0.42);
  background: linear-gradient(135deg, #ffb454, #f97316);
  color: #211005;
}

[data-theme="quartz"] .event-badges-open-button:hover,
[data-theme="quartz"] .event-badges-open-button:focus-visible,
[data-theme="quartz"] .event-badge-download:hover,
[data-theme="quartz"] .event-badge-download:focus-visible {
  border-color: rgba(255, 213, 157, 0.72);
  box-shadow: var(--focus-ring), 0 10px 24px rgba(249, 115, 22, 0.2);
}

[data-theme="quartz"] .event-badges-backdrop {
  background: rgba(7, 4, 2, 0.78);
}

[data-theme="quartz"] .event-badges-panel {
  border-color: rgba(255, 193, 119, 0.3);
  background: #160d08;
  color: #ead6bf;
}

[data-theme="quartz"] .event-badges-hero {
  background:
    linear-gradient(135deg, rgba(255, 180, 84, 0.2), transparent 46%),
    rgba(25, 14, 8, 0.96);
}

[data-theme="quartz"] .event-badges-info,
[data-theme="quartz"] .event-badge-item,
[data-theme="quartz"] .event-badges-settings {
  border-color: rgba(255, 213, 157, 0.08);
  background: rgba(255, 213, 157, 0.055);
}

[data-theme="quartz"] .event-badge-copy dt,
[data-theme="quartz"] .event-badge-setting-grid span {
  color: #d7b99a;
}

[data-theme="quartz"] .event-badge-setting-grid span,
[data-theme="quartz"] .event-badge-setting-grid strong {
  background: rgba(255, 213, 157, 0.055);
}

[data-theme="quartz"] .achievement-summary-count,
[data-theme="quartz"] .achievement-summary-count strong,
[data-theme="quartz"] .achievement-featured h3 {
  color: var(--text);
}

[data-theme="quartz"] .achievement-featured p,
[data-theme="quartz"] .achievement-muted-title,
[data-theme="quartz"] .achievement-open-button,
[data-theme="quartz"] .achievement-card small {
  color: #d7b99a;
}

[data-theme="quartz"] .achievement-open-button:hover,
[data-theme="quartz"] .achievement-open-button:focus-visible {
  color: var(--text);
}

[data-theme="quartz"] .achievement-icon:not([class*="achievement-icon-"]),
[data-theme="quartz"] .achievement-overflow {
  border-color: rgba(255, 193, 119, 0.22);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 180, 84, 0.42), transparent 30%),
    linear-gradient(145deg, rgba(249, 115, 22, 0.52), #1f120a 64%, #090604);
  color: var(--text);
}

[data-theme="quartz"] .achievement-icon[class*="achievement-icon-"] {
  border-color: rgba(255, 193, 119, 0.22);
  background-color: #1f120a;
  color: var(--text);
}

[data-theme="quartz"] .achievement-icon::before {
  border-color: rgba(255, 213, 157, 0.86);
  background: radial-gradient(circle, rgba(255, 248, 237, 0.42), rgba(249, 115, 22, 0.78));
}

[data-theme="quartz"] .achievement-icon.is-locked:not([class*="achievement-icon-"]) {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(170, 152, 135, 0.3), transparent 34%),
    linear-gradient(180deg, #281b13, #090604);
}

[data-theme="quartz"] .achievement-icon[class*="achievement-icon-"].is-locked {
  background-color: #090604;
}

[data-theme="quartz"] .achievement-overflow {
  background: rgba(255, 213, 157, 0.06);
}

[data-theme="quartz"] .achievement-preview-separator {
  background: rgba(255, 213, 157, 0.14);
}

[data-theme="quartz"] .achievements-modal-backdrop {
  background: rgba(7, 4, 2, 0.78);
}

[data-theme="quartz"] .achievements-modal-panel {
  border-color: rgba(255, 193, 119, 0.3);
  background: #160d08;
  color: #ead6bf;
}

[data-theme="quartz"] .achievements-modal-hero {
  background:
    linear-gradient(135deg, rgba(255, 180, 84, 0.22), transparent 46%),
    rgba(25, 14, 8, 0.96);
}

[data-theme="quartz"] .achievements-modal-hero h2,
[data-theme="quartz"] .achievement-close-button:hover,
[data-theme="quartz"] .achievement-close-button:focus-visible,
[data-theme="quartz"] .achievement-list-copy h3,
[data-theme="quartz"] .achievement-list-state strong,
[data-theme="quartz"] .achievement-topline h3 {
  color: var(--text);
}

[data-theme="quartz"] .achievement-close-button,
[data-theme="quartz"] .achievement-list-state,
[data-theme="quartz"] .achievement-list-copy small {
  color: #d7b99a;
}

[data-theme="quartz"] .achievement-list-row,
[data-theme="quartz"] .achievement-card {
  border-color: rgba(255, 213, 157, 0.08);
  background: rgba(255, 213, 157, 0.055);
}

[data-theme="quartz"] .achievement-list-row.is-locked {
  background: rgba(255, 213, 157, 0.035);
}

[data-theme="quartz"] .achievement-list-copy p,
[data-theme="quartz"] .achievement-card p {
  color: #ead6bf;
}

[data-theme="quartz"] .achievement-card.is-unlocked {
  border-color: rgba(142, 240, 186, 0.36);
  background: rgba(32, 64, 41, 0.28);
}

[data-theme="quartz"] .achievement-progress i,
[data-theme="quartz"] .achievement-meter::-webkit-progress-value,
[data-theme="quartz"] .achievement-row-meter::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent), #8ef0ba);
}

[data-theme="quartz"] .achievement-meter::-moz-progress-bar,
[data-theme="quartz"] .achievement-row-meter::-moz-progress-bar {
  background: linear-gradient(90deg, var(--accent), #8ef0ba);
}

@media (max-width: 1160px) {
  .news-feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .news-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container { width: 100%; padding: 24px 16px; }
  .news-feed {
    grid-template-columns: 1fr;
  }
  .news-post {
    padding: 14px;
  }
  .hero-stack { width: min(100%, 360px); }
  .brand-logo { width: 100%; }
  .minecraft-splash {
    top: auto;
    bottom: 7%;
    right: -2%;
    max-width: min(118px, 34vw);
    font-size: clamp(8px, 2.5vw, 11px);
  }
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .site-footer-contact,
  .site-footer-links {
    justify-items: start;
  }
  .home-paths {
    grid-template-columns: 1fr 1fr;
  }
  .home-path-card {
    min-height: 104px;
    padding: 12px;
  }
  .home-top-actions {
    top: 12px;
    right: 12px;
    gap: 8px;
  }
  .theme-toggle,
  .home-account-card {
    width: 42px;
    height: 42px;
  }
  .theme-toggle-icon {
    inset: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
  }
  .achievement-feed-toasts {
    top: 98px;
    right: 12px;
    width: min(300px, calc(100vw - 24px));
  }
  .achievement-feed-toast {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 62px;
  }
  .telegram-promo-toast {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 34px minmax(0, 1fr);
    width: min(360px, calc(100vw - 24px));
    padding: 12px 42px 12px 12px;
  }
  .telegram-promo-icon {
    width: 34px;
    height: 34px;
  }
  .telegram-promo-action {
    grid-column: 2;
    justify-self: start;
    min-height: 34px;
    margin-top: 4px;
  }
  .info-page {
    width: min(100%, calc(100% - 24px));
    padding-top: 24px;
  }
  .info-hero-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .info-home-link {
    margin-bottom: 0;
  }
  .rules-document h2 {
    margin-top: 34px;
  }
  .rules-document h3 {
    margin-top: 22px;
  }
  .rules-document p,
  .rules-document ul {
    font-size: 15px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .streamer-kit-grid,
  .streamer-banner-row,
  .repost-grid,
  .promo-media-grid {
    grid-template-columns: 1fr;
  }
  .promo-media-card,
  .promo-media-card-wide,
  .promo-media-video {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .promo-media-preview {
    min-height: 92px;
  }
  .promo-media-preview img,
  .promo-media-preview video {
    max-height: 120px;
  }
  .info-panel,
  .faq-item {
    padding: 16px 14px 16px 16px;
  }
  .info-panel-wide {
    grid-column: auto;
  }
  .about-page {
    padding-top: 32px;
  }
  .about-hero {
    margin-bottom: 42px;
  }
  .about-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .about-home-link {
    margin-bottom: 0;
  }
  .about-actions {
    justify-items: start;
    gap: 14px;
    margin-bottom: 0;
  }
  .about-block,
  .about-block-right {
    justify-self: start;
    text-align: left;
  }
  .cabinet-shell {
    width: min(100%, calc(100% - 20px));
  }
  .cabinet-news-promo {
    right: 10px;
    top: 10px;
    left: 10px;
    width: auto;
    grid-template-columns: 42px minmax(0, 1fr) 32px;
  }
  .cabinet-news-promo-link {
    grid-column: 2;
    justify-self: start;
  }
  .cabinet-news-promo-close {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
  }
  .cabinet-main-grid {
    grid-template-columns: 1fr;
  }
  .achievements-side-panel {
    position: static;
  }
  .achievement-preview-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .achievement-icon,
  .achievement-overflow {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    min-height: 44px;
  }
  .achievements-modal {
    padding: 8px;
  }
  .achievements-modal-panel {
    max-height: calc(100vh - 16px);
  }
  .event-badges-modal {
    padding: 8px;
  }
  .event-badges-panel {
    max-height: calc(100vh - 16px);
  }
  .event-badges-hero {
    padding: 22px 56px 20px 18px;
  }
  .event-badges-info,
  .event-badges-grid,
  .event-badges-settings {
    margin: 14px 12px;
  }
  .event-badges-grid {
    grid-template-columns: 1fr;
  }
  .event-badge-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .event-badge-item img {
    width: 76px;
    height: 76px;
  }
  .event-badge-copy dl {
    grid-template-columns: 1fr;
  }
  .event-badge-setting-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .achievements-modal-hero {
    padding: 22px 18px 28px;
  }
  .achievement-close-button {
    top: 10px;
    right: 10px;
  }
  .achievement-list-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .achievement-list-state {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
  .profile-card-v2 {
    min-height: auto;
    padding: 20px;
  }
  .cabinet-actions {
    position: static;
    justify-content: flex-end;
    margin-bottom: 18px;
  }
  .profile-hero-v2 {
    grid-template-columns: 1fr;
    padding-right: 0;
    gap: 16px;
  }
  .avatar-v2 {
    width: min(200px, 70vw);
    height: min(200px, 70vw);
  }
  .profile-copy-v2 {
    padding-top: 0;
    text-align: center;
  }
  .profile-copy-v2 h1 {
    font-size: clamp(30px, 10vw, 40px);
    line-height: 1.02;
  }
  .nick-line-form {
    max-width: 100%;
    font-size: clamp(17px, 5vw, 21px);
  }
  .nick-line-form > span,
  .nick-line-form .nick-inline-display {
    min-width: 0;
    max-width: 100%;
  }
  .now-playing-optin {
    justify-items: center;
  }
  .nick-line-form {
    justify-content: center;
    flex-wrap: wrap;
  }
  .stream-badge-v2 {
    justify-content: center;
    margin: 4px auto 0;
  }
  .stream-status-column {
    width: 100%;
    margin-top: 0;
    justify-items: center;
    transform: none;
  }
  .stream-status-column .now-playing-optin {
    width: 100%;
    justify-items: center;
    text-align: center;
  }
  .profile-data-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 32px;
  }
  .profile-token-column {
    min-width: 0;
  }
  .metric-label {
    font-size: 26px;
  }
  .best-time-v2 {
    font-size: clamp(56px, 18vw, 82px);
  }
  .token-row-v2 {
    grid-template-columns: minmax(0, 1fr) 34px 34px;
  }
  .token-row-v2 .icon-button {
    width: 34px;
    height: 34px;
  }
  .split-column-v2 {
    gap: 10px;
    grid-template-columns: 1fr;
  }
  .split-item-v2 strong {
    font-size: 24px;
  }
  .profile-layout, .stats, .admin-grid, .admin-inline-form { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr; }
  .leaderboard-toolbar {
    align-items: stretch;
  }
  .leaderboard-search {
    width: 100%;
  }
  .table-wrap {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .table-empty-cell {
    min-width: 0;
  }
  .table-empty-cell .empty-state {
    width: min(520px, calc(100vw - 76px));
    max-width: 100%;
    margin-inline: auto;
  }
  .tournament-stage-strip,
  .tournament-status-grid,
  .admin-schedule-form {
    grid-template-columns: 1fr;
  }
  .tournament-stage-strip.is-registration {
    grid-template-columns: 1fr;
  }
  .tournament-stage-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
    justify-content: stretch;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
  }
  .tournament-stage-actions .button,
  .tournament-stage-actions .button-secondary {
    min-width: 0;
    width: 100%;
    min-height: 38px;
    padding: 0 6px;
    font-size: 11px;
    }
  .tournament-stage-actions .help-icon-button {
    width: 38px;
    min-width: 38px;
    padding: 0;
  }
  .help-icon-button::before,
  .help-icon-button::after {
    left: auto;
    right: 0;
  }
  .help-icon-button::before {
    min-width: 0;
    max-width: min(180px, calc(100vw - 24px));
    transform: translate(0, 6px);
  }
  .help-icon-button::after {
    right: 14px;
    transform: translate(0, 6px) rotate(45deg);
  }
  .help-icon-button:hover::before,
  .help-icon-button:focus-visible::before {
    transform: translate(0, 0);
  }
  .help-icon-button:hover::after,
  .help-icon-button:focus-visible::after {
    transform: translate(0, 0) rotate(45deg);
  }
  .tournament-countdown {
    justify-content: flex-start;
    text-align: left;
  }
  .tournament-countdown-main {
    justify-content: flex-start;
  }
  .tournament-status-actions,
  .tournament-status-meta {
    justify-content: stretch;
    justify-items: start;
  }
  .tournament-status-meta {
    display: none;
  }
  .match-control-layout,
  .match-ready-grid {
    grid-template-columns: 1fr;
  }
  .match-control-card-head,
  .match-control-actions,
  .match-ready-player {
    align-items: flex-start;
    flex-direction: column;
  }
  .match-seed {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .admin-mini-calendar-head {
    grid-template-columns: 1fr;
  }
  .admin-calendar-targets {
    justify-content: flex-start;
  }
  .admin-calendar-selected {
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }
  .admin-calendar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .admin-actions-primary {
    grid-template-columns: 1fr;
  }
  .admin-test-mode-card {
    display: grid;
    grid-template-columns: 1fr;
  }
  .admin-test-mode-actions {
    justify-content: flex-start;
  }
  .participation-step {
    grid-template-columns: 1fr;
  }
  .apply-page {
    width: min(100%, calc(100% - 24px));
    padding: 24px 0;
  }
  .apply-card {
    padding: 18px 14px;
  }
  .apply-telegram-card {
    align-items: stretch;
    flex-direction: column;
  }
  .apply-telegram-link {
    width: 100%;
  }
  .admin-list-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .admin-stream-state,
  .admin-list-actions {
    justify-content: flex-start;
  }
  .admin-match-chip {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .admin-match-chip span {
    white-space: normal;
  }
  .bracket-board {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  .now-playing-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .nick-inline-form {
    width: 100%;
  }
  .nick-inline-form.is-editing .nick-inline-input {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .minecraft-splash,
  .minecraft-splash.is-popping,
  .now-playing-card.is-live,
  .leaderboard-row.is-rank-up td {
    animation: none;
  }

  .portal-particles i {
    animation: none;
  }

  .achievement-feed-toast {
    animation: none;
  }

  .telegram-promo-toast {
    transition: none;
  }

  .home-account-card:hover .portal-particles i,
  .home-account-card:focus-visible .portal-particles i {
    opacity: 0.48;
  }
}

/* Bell notifications button at top right */
.notifications-toggle {
  position: relative;
  flex: 0 0 auto;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 6px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: rgba(18, 10, 31, 0.84);
  color: var(--text);
  cursor: pointer;
  outline: none;
  overflow: visible;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  text-decoration: none;
}

[data-theme="quartz"] .notifications-toggle {
  background: rgba(31, 19, 10, 0.84);
}

.notifications-toggle:hover,
.notifications-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(188, 148, 255, 0.46);
  background: rgba(25, 14, 43, 0.94);
  box-shadow: var(--focus-ring), 0 14px 28px rgba(124, 58, 237, 0.16);
}

[data-theme="quartz"] .notifications-toggle:hover,
[data-theme="quartz"] .notifications-toggle:focus-visible {
  border-color: rgba(251, 191, 36, 0.46);
  background: rgba(43, 26, 14, 0.94);
  box-shadow: var(--focus-ring), 0 14px 28px rgba(251, 191, 36, 0.16);
}

.notifications-toggle::before,
.notifications-toggle::after {
  position: absolute;
  left: 50%;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.notifications-toggle::before {
  content: attr(data-tooltip);
  top: calc(100% + 8px);
  min-width: max-content;
  max-width: 160px;
  padding: 6px 9px;
  border-radius: 4px;
  background: var(--text);
  color: var(--button-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.notifications-toggle::after {
  content: "";
  top: calc(100% + 3px);
  width: 9px;
  height: 9px;
  background: var(--text);
  transform: translate(-50%, -6px) rotate(45deg);
}

.notifications-toggle:hover::before,
.notifications-toggle:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.notifications-toggle:hover::after,
.notifications-toggle:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

/* Mod Status Badge in Cabinet Mod List */
.mod-status-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  background: rgba(142, 240, 186, 0.2);
  color: #8ef0ba;
  border: 1px solid rgba(142, 240, 186, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Public Notifications page layout */
.notifications-page {
  max-width: 960px;
  margin: 0 auto;
}

.notifications-container {
  margin-top: 24px;
}

.notifications-list {
  display: grid;
  gap: 12px;
}

.notification-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(188, 148, 255, 0.14);
  background: rgba(24, 15, 41, 0.62);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.notification-card:hover {
  transform: translateY(-1px);
  border-color: rgba(188, 148, 255, 0.28);
  background: rgba(24, 15, 41, 0.86);
}

.notification-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(188, 148, 255, 0.24);
  object-fit: cover;
}

.notification-content-col {
  display: grid;
  gap: 6px;
}

.notification-text {
  font-size: 15px;
  line-height: 1.45;
  color: #dfe5f0;
}

.notification-text .player-name {
  font-weight: 800;
  color: #fff;
}

.notification-text .achievement-highlight {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #c084fc;
}

.notification-text .run-time-highlight {
  color: var(--accent);
}

.notification-time {
  font-size: 12px;
  color: var(--muted);
}

/* Custom mini icon for achievements */
.achievement-icon-mini {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(188, 148, 255, 0.22);
  background-position: center;
  background-size: cover;
  margin-right: 4px;
}

/* Streamer Cabinet Notifications Card */
.cabinet-notifications-card {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid rgba(188, 148, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(192, 132, 252, 0.06), transparent 46%),
    rgba(24, 15, 41, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.cabinet-notifications-card h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cabinet-notifications-list {
  display: grid;
  gap: 10px;
}

.cabinet-notification-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(5, 11, 17, 0.42);
  border: 1px solid rgba(188, 148, 255, 0.1);
  transition: transform 160ms ease, background 160ms ease;
}

.cabinet-notification-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.024);
}

.cabinet-notification-icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.cabinet-notification-icon-emoji {
  font-size: 18px;
}

.cabinet-notification-body-col {
  display: grid;
  gap: 4px;
}

.cabinet-notification-message {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.4;
}

.cabinet-notification-message .white-text {
  color: #fff;
  font-weight: 700;
}

.cabinet-notification-message .accent-text {
  color: var(--accent);
  font-weight: 700;
}

.cabinet-notification-message .status-approved {
  color: #8ef0ba;
  font-weight: 800;
}

.cabinet-notification-message .status-rejected {
  color: var(--danger);
  font-weight: 800;
}

.cabinet-notification-message .status-pending {
  color: #ffe76b;
  font-weight: 800;
}

.cabinet-notification-time {
  font-size: 11px;
  color: var(--muted);
}

/* Push Notification Toast & Admin Form Styles */

.site-push-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  max-width: 380px;
  width: calc(100% - 48px);
  padding: 16px 20px;
  background: rgba(12, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  animation: push-toast-slide-in 350ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

[data-theme="quartz"] .site-push-toast {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.site-push-toast.fade-out {
  animation: push-toast-fade-out 250ms ease forwards;
}

.site-push-toast-content {
  display: grid;
  gap: 6px;
  flex: 1;
}

.site-push-toast-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

[data-theme="quartz"] .site-push-toast-title {
  color: #1e293b;
}

.site-push-toast-body {
  font-size: 13px;
  line-height: 1.45;
  color: #cbd5e1;
  margin: 0;
}

[data-theme="quartz"] .site-push-toast-body {
  color: #475569;
}

.site-push-toast-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  margin: -4px -4px 0 0;
  transition: color 150ms ease;
}

.site-push-toast-close:hover {
  color: #fff;
}

[data-theme="quartz"] .site-push-toast-close:hover {
  color: #1e293b;
}

@keyframes push-toast-slide-in {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes push-toast-fade-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* Admin Push Notification Form */
.admin-card-push-notification .admin-vertical-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.admin-card-push-notification .admin-form-group {
  display: flex;
  flex-direction: column;
}

.admin-card-push-notification .admin-form-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-card-push-notification .admin-form-label span {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

[data-theme="quartz"] .admin-card-push-notification .admin-form-label span {
  color: #475569;
}

.admin-card-push-notification .text-input {
  width: 100%;
}

.admin-card-push-notification textarea.text-input {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.admin-card-push-notification .admin-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.admin-card-push-notification .admin-status-text {
  margin-top: 12px;
  font-size: 13px;
  min-height: 18px;
}

/* Admin Runs Management Styles */

.admin-runs-section, .admin-runs-list-section {
  background: rgba(12, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: 24px;
}

[data-theme="quartz"] .admin-runs-section,
[data-theme="quartz"] .admin-runs-list-section {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-search-wrapper {
  margin-bottom: 24px;
}

.admin-search-wrapper .search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
}

.admin-runs-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.admin-player-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 180ms ease;
}

.admin-player-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent);
  transform: translateY(-2px);
}

[data-theme="quartz"] .admin-player-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="quartz"] .admin-player-card:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--accent);
}

.admin-player-avatar-col {
  flex-shrink: 0;
}

.admin-player-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.admin-player-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-player-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

[data-theme="quartz"] .admin-player-name {
  color: #1e293b;
}

.admin-player-nick {
  font-size: 12px;
  color: var(--muted);
}

.admin-player-time-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-player-time-col .time-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.admin-player-time-col .time-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

/* Specific player details page */
.admin-player-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-header-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: block;
}

.admin-player-meta-badges {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.admin-player-meta-badges .meta-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

[data-theme="quartz"] .admin-player-meta-badges .meta-badge {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #475569;
}

/* Runs details table */
.admin-table-container {
  overflow-x: auto;
}

.admin-runs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.admin-runs-table th {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="quartz"] .admin-runs-table th {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-runs-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

[data-theme="quartz"] .admin-runs-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-run-row {
  transition: background 150ms ease;
}

.admin-run-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

[data-theme="quartz"] .admin-run-row:hover {
  background: rgba(0, 0, 0, 0.015);
}

/* Dim rejected runs */
.admin-run-row.is-status-rejected {
  opacity: 0.55;
}

.cell-duration strong {
  font-size: 15px;
  color: #fff;
}

[data-theme="quartz"] .cell-duration strong {
  color: #1e293b;
}

.cell-splits .split-value {
  color: #cbd5e1;
}

[data-theme="quartz"] .cell-splits .split-value {
  color: #475569;
}

.cell-splits .split-separator {
  color: var(--muted);
  margin: 0 4px;
}

.source-badge, .phase-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
  display: inline-block;
}

.source-badge.is-source-mod {
  background: rgba(142, 240, 186, 0.15);
  color: #8ef0ba;
}

.source-badge.is-source-dashboard {
  background: rgba(255, 231, 107, 0.15);
  color: #ffe76b;
}

.source-badge.is-source-admin {
  background: rgba(188, 148, 255, 0.15);
  color: #bc94ff;
}

.phase-badge.is-phase-qualification {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.phase-badge.is-phase-playoff {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

.phase-badge.is-phase-test {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.run-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.run-status-badge.badge-approved {
  background: rgba(142, 240, 186, 0.12);
  color: #8ef0ba;
  border: 1px solid rgba(142, 240, 186, 0.2);
}

.run-status-badge.badge-rejected {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.link-proof {
  color: var(--accent);
  text-decoration: none;
}

.link-proof:hover {
  text-decoration: underline;
}

.cell-action .button-action {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: background 150ms ease, opacity 150ms ease;
}

.cell-action .button-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cell-action .button-danger {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.cell-action .button-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}

.cell-action .button-primary {
  background: rgba(188, 148, 255, 0.15);
  color: #bc94ff;
  border: 1px solid rgba(188, 148, 255, 0.2);
}

.cell-action .button-primary:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}



/* Tournament Tabs */
.tabs-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 32px;
  row-gap: 16px;
  margin-top: 10px;
  margin-bottom: 48px;
  width: 100%;
}
.tabs-nav-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tabs-nav-right {
  display: flex;
  justify-self: end;
}
.tabs-nav-right .button-secondary {
  font-weight: 700;
}
.pickems-attention-button {
  animation: pickems-attention 1.35s ease-in-out infinite;
}
@keyframes pickems-attention {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(192, 132, 252, 0.2), 0 0 24px rgba(192, 132, 252, 0.32); }
}
.tab-button { transition: all 0.2s ease; }
.tab-content { margin-top: 36px; }
@media (max-width: 600px) {
  .tabs-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 32px;
  }
  .tabs-nav-left {
    justify-content: center;
  }
  .tabs-nav-right {
    justify-content: center;
  }
}
/* ==========================================================================
   Cabinet Redesign V3 (Borderless Premium Layout)
   ========================================================================== */

.cabinet-shell-v3 {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 80px;
  padding-bottom: var(--space-6);
}

.cabinet-layout-v3 {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Row 1: Header / Profile Info + Nav Actions */
.cabinet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

@media (max-width: 768px) {
  .cabinet-header {
    flex-direction: column;
  }
}

.profile-brief {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 576px) {
  .profile-brief {
    flex-direction: column;
  }
}

.profile-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatar-v3 {
  width: 128px;
  height: 128px;
  border: 0;
  border-radius: 8px;
  object-fit: cover;
  background: #2a2040;
}

.avatar-upload-form-v3 {
  position: relative;
}

.avatar-edit-btn-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f7f2ff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-edit-btn-v3:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.profile-text-v3 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-name-row h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #f7f2ff;
  line-height: 1.1;
}

.stream-badge-v3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stream-badge-v3.is-live {
  background: rgba(142, 240, 186, 0.15);
  color: #8ef0ba;
  border: 1px solid rgba(142, 240, 186, 0.3);
}

.stream-badge-v3.is-offline {
  background: rgba(255, 255, 255, 0.05);
  color: #bba8d8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stream-badge-v3 .twitch-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.cabinet-subtext {
  margin: 0;
  font-size: 14px;
  color: #bba8d8;
  line-height: 1.4;
}

.cabinet-actions-v3 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cabinet-actions-v3 {
    width: 100%;
    justify-content: flex-start;
  }
}

.button-outline-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.button-outline-v3:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-icon-btn-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-icon-btn-v3 svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-icon-btn-v3:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Row 2: Performance + Achievements */
.cabinet-performance-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

@media (max-width: 992px) {
  .cabinet-performance-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.best-time-card-v3 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metric-label-v3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #bba8d8;
}

.best-time-display-v3 {
  font-family: "Courier New", monospace;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
}

.splits-list-v3 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.split-item-v3 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.split-label-v3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #bba8d8;
  letter-spacing: 0.08em;
}

.split-value-v3 {
  font-family: "Courier New", monospace;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.achievements-card-v3 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.achievements-meter-wrapper-v3 {
  width: 100%;
}

.achievement-meter-v3 {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  display: block;
}

.achievement-meter-v3::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.achievement-meter-v3::-webkit-progress-value {
  background: #ffffff;
  border-radius: 4px;
}

.achievement-meter-v3::-moz-progress-bar {
  background: #ffffff;
  border-radius: 4px;
}

.achievement-icons-v3 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.achievement-icon-v3 {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background-color: #2a2040;
  background-size: cover;
  background-position: center;
}

.achievement-icon-v3.is-locked {
  opacity: 0.25;
  filter: grayscale(1);
}

.more-details-row-v3 {
  margin-top: 8px;
}

.more-details-btn-v3 {
  background: transparent;
  border: 0;
  color: #bba8d8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.2s ease;
}

.more-details-btn-v3:hover {
  color: #ffffff;
}

/* Row 3: Token + Mod download + Stream permissions */
.cabinet-bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 992px) {
  .cabinet-bottom-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.bottom-card-v3 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bottom-card-v3 h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #bba8d8;
}

.token-field-v3 {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.token-input-v3 {
  flex: 1;
  background: transparent;
  border: 0;
  color: transparent;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
  font-family: "Courier New", monospace;
  font-size: 14px;
  height: 38px;
  padding: 0 4px;
  outline: none;
  min-width: 0;
  cursor: pointer;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.token-input-v3.is-visible,
.token-input-v3:focus {
  color: #ffffff;
  text-shadow: none;
}

.token-input-v3.is-placeholder {
  color: rgba(255, 255, 255, 0.4);
  text-shadow: none;
  cursor: default;
}

.token-action-btn-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  color: #bba8d8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.token-action-btn-v3:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.token-action-btn-v3[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.token-status-v3 {
  margin: 0;
  font-size: 12px;
  color: #8ef0ba;
}

.token-status-v3[hidden] {
  display: none;
}

.consent-note-v3 {
  margin: 0;
  font-size: 12px;
  color: rgba(187, 168, 216, 0.6);
  line-height: 1.4;
}

.button-purple-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  border: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  font-family: inherit;
}

.button-purple-v3:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
  opacity: 0.95;
}

.now-playing-form-v3 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkbox-line-v3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: #f7f2ff;
  font-weight: 600;
}

.checkbox-line-v3 input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: #7c3aed;
  cursor: pointer;
}

.authorized-status-v3 {
  font-size: 12px;
  color: #8ef0ba;
  margin-top: 4px;
  align-self: center;
}

/* Admin Sidebar Layout Redesign */
.admin-layout-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

.admin-nav-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(27, 17, 45, 0.45);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 24px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-nav-item:hover {
  background: rgba(192, 132, 252, 0.08);
  color: var(--text);
  border-color: rgba(192, 132, 252, 0.15);
}

.admin-nav-item.is-active {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.2), rgba(124, 58, 237, 0.25));
  color: #fff;
  border-color: var(--panel-border);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.admin-nav-item .icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.admin-content-pane {
  display: grid;
  gap: 18px;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.is-active {
  display: grid;
  gap: 18px;
}

/* Hide toggle since tab handles it */
.admin-card-applications[hidden] {
  display: grid !important;
}

@media (max-width: 900px) {
  .admin-layout-wrapper {
    grid-template-columns: 1fr;
  }
  .admin-nav-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
  }
  color: rgba(255, 255, 255, 0.4);
  text-shadow: none;
  cursor: default;
}

.token-action-btn-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  color: #bba8d8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.token-action-btn-v3:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.token-action-btn-v3[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.token-status-v3 {
  margin: 0;
  font-size: 12px;
  color: #8ef0ba;
}

.token-status-v3[hidden] {
  display: none;
}

.consent-note-v3 {
  margin: 0;
  font-size: 12px;
  color: rgba(187, 168, 216, 0.6);
  line-height: 1.4;
}

.button-purple-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  border: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  font-family: inherit;
}

.button-purple-v3:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
  opacity: 0.95;
}

.now-playing-form-v3 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkbox-line-v3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: #f7f2ff;
  font-weight: 600;
}

.checkbox-line-v3 input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: #7c3aed;
  cursor: pointer;
}

.authorized-status-v3 {
  font-size: 12px;
  color: #8ef0ba;
  margin-top: 4px;
  align-self: center;
}

/* Admin Sidebar Layout Redesign */
.admin-layout-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

.admin-nav-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(27, 17, 45, 0.45);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 24px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-nav-item:hover {
  background: rgba(192, 132, 252, 0.08);
  color: var(--text);
  border-color: rgba(192, 132, 252, 0.15);
}

.admin-nav-item.is-active {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.2), rgba(124, 58, 237, 0.25));
  color: #fff;
  border-color: var(--panel-border);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.admin-nav-item .icon {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.admin-content-pane {
  display: grid;
  gap: 18px;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.is-active {
  display: grid;
  gap: 18px;
}

/* Hide toggle since tab handles it */
.admin-card-applications[hidden] {
  display: grid !important;
}

@media (max-width: 900px) {
  .admin-layout-wrapper {
    grid-template-columns: 1fr;
  }
  .admin-nav-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
  }
  .admin-nav-item {
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Pick'ems (Predictions) Page Styles
   ========================================================================== */
.pickems-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-5);
}
@media (max-width: 900px) {
  .pickems-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Match Cards */
.pickem-match-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.pickem-match-card:hover {
  border-color: rgba(192, 132, 252, 0.34);
  background: rgba(34, 21, 57, 0.56);
  transform: translateY(-1px);
}
.pickem-match-card.is-live {
  border-color: rgba(142, 240, 186, 0.42);
  box-shadow: 0 0 0 1px rgba(142, 240, 186, 0.08), 0 0 28px rgba(142, 240, 186, 0.12);
}
.pickem-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  font-size: 12px;
}
.pickem-status {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.pickem-status.upcoming { color: #ffe66d; }
.pickem-status.live { color: #8ef0ba; }
.pickem-status.finished { color: var(--muted); }

/* Players Selection Grid */
.pickem-players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 600px) {
  .pickem-players {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

/* Option buttons styling (based on .bracket-player) */
.pickem-option {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 160ms ease;
  color: var(--text);
  width: 100%;
}
.pickem-option:hover:not(:disabled),
.pickem-option:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(192, 132, 252, 0.4);
  transform: translateY(-1px);
  outline: none;
}
.pickem-option.is-selected {
  background: rgba(192, 132, 252, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.2);
}
.pickem-option.is-winner {
  border-color: #8ef0ba;
  background: rgba(142, 240, 186, 0.1);
}
.pickem-option:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.pickem-option.is-selected:disabled,
.pickem-option.is-winner:disabled {
  opacity: 0.95;
}
.pickem-option-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-family: "Segoe UI", sans-serif;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pickem-option-seed {
  font-size: 11px;
  color: #ffe66d;
  font-family: "Courier New", monospace;
}

/* Vote indicator circle */
.pickem-option-vote-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 160ms ease;
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.pickem-option:hover:not(:disabled) .pickem-option-vote-indicator {
  border-color: rgba(192, 132, 252, 0.4);
}
.pickem-option.is-selected .pickem-option-vote-indicator {
  border-color: var(--accent);
  background: var(--accent);
}
.pickem-option.is-selected .pickem-option-vote-indicator::after {
  content: "✓";
  color: var(--button-text);
  font-size: 11px;
  font-weight: 900;
}

/* Stats bar & label */
.pickem-stats-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  margin-top: var(--space-3);
  display: flex;
  overflow: hidden;
}
.pickem-stats-fill-p1 {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}
.pickem-stats-fill-p2 {
  height: 100%;
  background: rgba(188, 148, 255, 0.3);
  transition: width 0.3s ease;
}
.pickem-stats-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: var(--space-1);
  font-family: "Courier New", monospace;
}

/* User Profile Box & Stats */
.pickem-user-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.pickem-user-stats {
  border-top: 1px solid var(--table-line);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  text-align: center;
}
.pickem-stat-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  font-family: "Courier New", monospace;
  line-height: 1.2;
}
.pickem-stat-val.total {
  color: var(--text);
}
.pickem-stat-lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Leaderboard Table custom overrides */
.leaderboard-table .rank {
  width: 45px;
  font-weight: 800;
  color: var(--muted);
  font-family: "Courier New", monospace;
}
.leaderboard-table .score {
  text-align: right;
  font-weight: 800;
  color: var(--accent);
  font-family: "Courier New", monospace;
}
.leaderboard-table .correct {
  text-align: right;
  color: var(--muted);
  font-family: "Courier New", monospace;
}

.pickems-bottom-row {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(40px, 6vw, 72px);
  margin-bottom: var(--space-6);
}

.pickems-section-title {
  margin: clamp(36px, 5vw, 64px) 0 28px;
}

.pickem-bracket-board {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  padding: 0 0 12px;
}

.home-bracket-board {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: 12px;
}

.home-bracket-board .bracket-round {
  min-width: 260px;
  gap: 24px;
}

.home-bracket-board .bracket-match-list {
  gap: 24px;
}

.home-bracket-board .bracket-match {
  padding: 14px;
}

.pickem-bracket-board .bracket-round {
  min-width: 260px;
  gap: 24px;
}

.pickem-bracket-board .bracket-match-list {
  gap: 24px;
}

.pickem-bracket-board .bracket-match {
  padding: 14px;
}

.pickems-section-body {
  min-width: 0;
  padding: 0;
}

.pickems-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--table-line);
  border-bottom: 1px solid var(--table-line);
}

.pickems-submit-bar div,
.pickems-submit-bar > span {
  display: grid;
  gap: 5px;
}

.pickems-submit-bar span {
  color: var(--muted);
  font-size: 13px;
}

.pickems-sidebar-section {
  padding-right: clamp(24px, 4vw, 48px);
  border-right: 1px solid var(--table-line);
}

.pickems-leaderboard-section,
.pickems-leaderboard-table {
  width: 100%;
}

.pickems-leaderboard-section {
  width: min(100%, 640px);
  justify-self: start;
}

.pickems-leaderboard-table {
  min-width: 0;
  table-layout: fixed;
}

.pickems-leaderboard-table th:nth-child(1),
.pickems-leaderboard-table td:nth-child(1) {
  width: 48px;
  text-align: left;
}

.pickems-leaderboard-table th:nth-child(2),
.pickems-leaderboard-table td:nth-child(2) {
  width: auto;
  text-align: left;
}

.pickems-leaderboard-table th:nth-child(3),
.pickems-leaderboard-table td:nth-child(3),
.pickems-leaderboard-table th:nth-child(4),
.pickems-leaderboard-table td:nth-child(4) {
  width: 72px;
  text-align: right;
}

.pickems-leaderboard-section .table-wrap {
  overflow-x: visible;
}

@media (max-width: 900px) {
  .bracket-board,
  .home-bracket-board,
  .pickem-bracket-board {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    width: 100%;
    overflow-x: visible;
    padding-bottom: 8px;
  }
  .bracket-board .bracket-round,
  .home-bracket-board .bracket-round,
  .pickem-bracket-board .bracket-round {
    width: 100%;
    min-width: 0;
    gap: 14px;
  }
  .bracket-board .bracket-match-list,
  .home-bracket-board .bracket-match-list,
  .pickem-bracket-board .bracket-match-list {
    justify-content: flex-start;
    gap: 14px;
  }
  .bracket-board .bracket-match {
    width: 100%;
    min-width: 0;
  }
  .pickems-bottom-row {
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }
  .pickems-sidebar-section {
    padding: 0 0 var(--space-5);
    border-right: 0;
    border-bottom: 1px solid var(--table-line);
  }
  .pickems-submit-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .bracket-match-topline,
  .bracket-player {
    flex-wrap: wrap;
  }
  .bracket-player span {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pickems-attention-button {
    animation: none;
  }
}
