: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;
  --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);
}

* { 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, rgba(192, 132, 252, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), 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(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
  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(1120px, calc(100% - 32px));
  margin: auto auto 0;
  padding: 34px 0 34px;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 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-credit {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: rgba(247, 242, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.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: #c084fc;
  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);
}

.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: 14px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}

.bracket-round {
  display: grid;
  gap: 12px;
  min-width: 220px;
}

.bracket-round h2 {
  margin: 0;
  font-size: 18px;
}

.bracket-match-list {
  display: grid;
  gap: 10px;
}

.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: #f7f2ff;
  font-size: clamp(22px, 3vw, 34px);
}

.streamer-copy {
  margin: 0;
  color: #d9cdef;
  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-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-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;
}

.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: #d8b4fe;
  box-shadow: 0 0 10px rgba(216, 180, 254, 0.9);
  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: #a78bfa;
  animation: portal-particle-b 1180ms ease-out infinite 120ms;
}

.portal-particles i:nth-child(3) {
  right: 7px;
  bottom: 9px;
  background: #f0abfc;
  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: #c084fc;
  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: rgba(192, 132, 252, 0.68);
  background: rgba(34, 21, 57, 0.86);
  transform: translateY(-1px);
}

.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: #d8b4fe;
  background: rgba(192, 132, 252, 0.12);
}

.home-account-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.achievement-feed-toasts {
  position: fixed;
  top: 82px;
  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;
}

@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%, 460px);
}

.minecraft-splash {
  position: absolute;
  top: auto;
  bottom: -4px;
  right: -20%;
  z-index: 2;
  max-width: min(170px, 34vw);
  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: #160821;
  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 rgba(192, 132, 252, 0.22);
}

.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: rgba(192, 132, 252, 0.54);
  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 {
  margin: 0;
  font-size: 20px;
  line-height: 1.05;
}

.now-playing-category {
  margin: 6px 0 0;
  color: #d8b4fe;
  font-size: 14px;
  font-weight: 800;
}

.now-playing-stream-title {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  max-height: 0;
  overflow: hidden;
  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-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;
}

.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-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:nth-child(1) {
  order: 2;
  border-color: rgba(188, 148, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.admin-card:nth-child(2) {
  order: 1;
  border-color: rgba(188, 148, 255, 0.24);
  background: rgba(34, 21, 57, 0.38);
}

.admin-card-applications {
  order: 1 !important;
  border-color: rgba(255, 230, 109, 0.22) !important;
  background: rgba(34, 21, 57, 0.38) !important;
}

.admin-card-tournament {
  order: 2 !important;
}

.admin-card-whitelist {
  order: 3 !important;
}

.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%;
}

.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-v1");
}

.achievement-icon-first_dragon {
  background-image: url("/static/achievements/first_dragon.png?v=achievement-icons-v1");
}

.achievement-icon-diligent {
  background-image: url("/static/achievements/diligent.png?v=achievement-icons-v1");
}

.achievement-icon-hardened {
  background-image: url("/static/achievements/hardened.png?v=achievement-icons-v1");
}

.achievement-icon-machine {
  background-image: url("/static/achievements/machine.png?v=achievement-icons-v1");
}

.achievement-icon-top_three_days {
  background-image: url("/static/achievements/top_three_days.png?v=achievement-icons-v1");
}

.achievement-icon-rock_bottom {
  background-image: url("/static/achievements/rock_bottom.png?v=achievement-icons-v1");
}

.achievement-icon-seconds_hunter {
  background-image: url("/static/achievements/seconds_hunter.png?v=achievement-icons-v1");
}

.achievement-icon-marathoner {
  background-image: url("/static/achievements/marathoner.png?v=achievement-icons-v1");
}

.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;
}

body.achievements-open {
  overflow: hidden;
}

.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);
}

@media (max-width: 720px) {
  .container { width: min(100%, calc(100% - 24px)); padding-top: 24px; }
  .hero-stack { width: min(100%, 330px); }
  .brand-logo { width: 100%; }
  .minecraft-splash {
    top: auto;
    bottom: -3px;
    right: 0;
    max-width: min(128px, 40vw);
    font-size: clamp(9px, 2.8vw, 12px);
  }
  .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-account-card {
    top: 12px;
    right: 12px;
  }
  .achievement-feed-toasts {
    top: 66px;
    right: 12px;
    width: min(300px, calc(100vw - 24px));
  }
  .achievement-feed-toast {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 62px;
  }
  .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 {
    grid-template-columns: 1fr;
  }
  .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-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);
  }
  .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;
  }
  .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;
  }

  .home-account-card:hover .portal-particles i,
  .home-account-card:focus-visible .portal-particles i {
    opacity: 0.48;
  }
}
