:root {
  --black: #030407;
  --ink: #08090d;
  --ink-2: #0e1118;
  --white: #ffffff;
  --platinum: #f7f3ea;
  --champagne: #d7c48a;
  --champagne-2: #fff0b8;
  --blue: #4fa3ff;
  --blue-2: #91c8ff;
  --glass: rgba(255, 255, 255, 0.074);
  --glass-strong: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.14);
  --muted-dark: rgba(255, 255, 255, 0.68);
  --muted-light: rgba(5, 8, 14, 0.62);
  --shadow-soft: 0 26px 90px rgba(0, 0, 0, 0.42);
  --shadow-luxury: 0 34px 120px rgba(58, 122, 255, 0.18), 0 18px 70px rgba(0, 0, 0, 0.56);
  --minecraft-font: "Minecraft", "Mojangles", "Monocraft", "Noto Sans Mono", "Courier New", monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "SF Pro Text", "SF Pro Display", "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:where(:lang(ko), :lang(ja), :lang(zh-TW), :lang(zh-CN)) {
  word-break: keep-all;
  line-break: strict;
}

:where(:lang(ko), :lang(ja), :lang(zh-TW), :lang(zh-CN)) :where(p, h1, h2, h3, h4, li, a, button, label, span, strong) {
  word-break: keep-all;
  overflow-wrap: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 48% 8%, rgba(255, 255, 255, 0.14), transparent 22%),
    radial-gradient(circle at 8% 24%, rgba(79, 163, 255, 0.16), transparent 30%),
    radial-gradient(circle at 86% 34%, rgba(215, 196, 138, 0.12), transparent 28%),
    linear-gradient(180deg, #070910 0%, #030407 58%, #000000 100%);
}

button,
select,
a {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

.account-page {
  min-height: calc(100svh - 52px);
  background: linear-gradient(180deg, #070910 0%, #030407 100%);
  word-break: keep-all;
  line-break: strict;
}

.account-hero {
  padding: 84px 0;
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1.2fr);
  gap: 42px;
  align-items: start;
}

.account-copy {
  position: sticky;
  top: 96px;
}

.account-copy h1,
.account-panel h2 {
  margin: 0;
  font-family: "SF Pro Display", "Avenir Next", "Helvetica Neue", sans-serif;
  letter-spacing: 0;
}

.account-copy h1 {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.95;
  overflow-wrap: normal;
  word-break: keep-all;
}

.account-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.account-panel p {
  color: var(--muted-dark);
}

.account-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.account-form.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.account-form label,
.setting-row {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.account-form input,
.settings-grid select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--white);
  padding: 0 14px;
}

.account-status {
  min-height: 24px;
  margin: 16px 0 0;
}

.account-dashboard-head {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 22px;
}

.benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.benefit-list span,
.tpblock-chip {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
}

.account-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.account-insight-card {
  min-height: 156px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 16px;
}

.account-insight-card h3 {
  margin: 6px 0 8px;
  color: var(--white);
  font-size: 20px;
  letter-spacing: 0;
}

.account-insight-card p {
  margin: 0;
  line-height: 1.55;
}

.account-tier-card {
  background: linear-gradient(135deg, rgba(99, 179, 237, 0.16), rgba(250, 204, 21, 0.08)), rgba(0, 0, 0, 0.18);
}

.minecraft-preview-card h3 {
  font-family: var(--minecraft-font);
  font-size: 22px;
  line-height: 1.2;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.75);
}

.account-chip-row,
.account-rank-list,
.preview-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.account-chip-row span,
.account-rank-list span,
.preview-lines span {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.preview-lines .minecraft-preview-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(5, 6, 7, 0.66);
  color: #f3f3f3;
  padding: 9px 10px;
}

.minecraft-preview-label {
  min-width: 46px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "SF Pro Text", "SF Pro Display", "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.minecraft-preview-line {
  min-width: 0;
  overflow: hidden;
  color: #f3f3f3;
  font-family: var(--minecraft-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.78);
  white-space: nowrap;
}

.minecraft-preview-name {
  color: inherit;
}

.minecraft-preview-message {
  color: #f3f3f3;
}

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

.mini-stat-grid span {
  min-width: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.mini-stat-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 16px;
}

.premium-help {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  border: 1px solid rgba(160, 204, 255, 0.22);
  border-radius: 8px;
  background: rgba(87, 123, 166, 0.14);
  padding: 16px;
}

.premium-help[hidden] {
  display: none;
}

.premium-help strong {
  color: var(--white);
  font-size: 14px;
}

.premium-help p {
  margin: 6px 0 0;
  max-width: 560px;
  font-size: 13px;
  line-height: 1.55;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.setting-row {
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.setting-row input[type="checkbox"] {
  width: 42px;
  height: 24px;
  justify-self: end;
}

.setting-row.slim {
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.setting-row:has(:disabled) {
  opacity: 0.46;
}

.account-clan-panel {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.account-clan-page .account-copy {
  align-self: start;
}

.account-clan-dashboard {
  min-height: 0;
}

.clan-page-benefits {
  margin-bottom: 8px;
}

.clan-portal-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 18px;
}

.account-clan-head,
.clan-summary,
.clan-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.account-clan-head h3 {
  margin: 4px 0 8px;
  color: var(--white);
  font-size: 24px;
  letter-spacing: 0;
}

.account-clan-head p,
.clan-empty p {
  margin: 0;
  color: var(--muted-dark);
}

.clan-empty,
.clan-dashboard {
  display: grid;
  gap: 16px;
}

.clan-empty[hidden],
.clan-dashboard[hidden],
.clan-manage-grid[hidden],
.secondary-cta[hidden] {
  display: none;
}

.account-clan-panel .account-status {
  min-height: 0;
  margin: 14px 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 760;
}

.account-clan-panel .account-status:empty {
  display: none;
}

.clan-summary {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(79, 163, 255, 0.13), rgba(255, 214, 128, 0.08)), rgba(0, 0, 0, 0.2);
  padding: 16px;
}

.clan-summary strong {
  display: block;
  color: var(--white);
  font-size: 24px;
  line-height: 1.05;
}

.clan-summary span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 760;
}

.clan-chat-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 14px;
}

.clan-chat-panel[hidden] {
  display: none;
}

.clan-chat-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.clan-chat-head h4 {
  margin: 0 0 4px;
  color: var(--white);
  font-size: 17px;
  letter-spacing: 0;
}

.clan-chat-head p,
.clan-chat-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.clan-chat-status:empty {
  display: none;
}

.clan-chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(58vh, 520px);
  overflow-y: auto;
  padding-right: 3px;
}

.clan-chat-item {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 10px 12px;
}

.clan-chat-item header {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.clan-chat-item strong {
  min-width: 0;
  overflow: hidden;
  color: #93c5fd;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clan-chat-item time {
  flex: none;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
}

.clan-chat-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.clan-chat-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.clan-manage-grid {
  display: grid;
  gap: 14px;
}

.clan-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.clan-settings-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 760;
}

.clan-settings-form input,
.clan-row-actions select {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--white);
  padding: 0 12px;
}

.clan-settings-form .secondary-cta {
  grid-column: 1 / -1;
  justify-self: start;
}

.clan-request-list,
.clan-member-list {
  display: grid;
  gap: 8px;
}

.clan-request-list h4,
.clan-member-list h4 {
  margin: 4px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-transform: uppercase;
}

.clan-row {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
}

.clan-row-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.clan-row-copy strong {
  overflow: hidden;
  color: var(--white);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clan-row-copy small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.clan-row-actions,
.clan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.secondary-cta.compact {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
}

.secondary-cta.danger {
  border-color: rgba(252, 165, 165, 0.28);
  color: #fecaca;
}

.clan-console-page .account-hero {
  padding: 46px 0 72px;
}

.clan-console-shell {
  grid-template-columns: 1fr;
  gap: 26px;
}

.clan-console-copy {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.clan-console-copy h1 {
  max-width: 780px;
  font-size: clamp(46px, 6vw, 78px);
}

.clan-console-copy .hero-copy {
  max-width: 720px;
}

.clan-console-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.clan-console-quicklinks .secondary-cta,
.clans-toolbar .secondary-cta {
  min-width: 118px;
}

.clan-console {
  display: grid;
  gap: 18px;
  padding: 0;
  overflow: hidden;
}

.clan-console-topbar {
  margin: 0;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.clan-console .clan-page-benefits {
  margin: 0 24px;
}

.clan-console-layout.account-clan-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.clan-console-sidebar {
  position: sticky;
  top: 52px;
  align-self: start;
  min-height: 520px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 22px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.16);
}

.clan-console-sidebar span {
  margin: 0 10px 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.clan-console-sidebar a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  padding: 10px;
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
}

.clan-console-sidebar a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.clan-console-main {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.clan-console-section-head {
  min-width: 0;
  margin: 0;
  padding-bottom: 4px;
}

.clan-console-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.052);
  padding: 18px;
}

.clan-console-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.clan-console-card h3,
.clan-console-card h4,
.clan-console-subsection h4,
.clan-danger-card h4 {
  margin: 0;
  color: var(--white);
  font-size: 18px;
  letter-spacing: 0;
}

.clan-overview-card {
  background:
    linear-gradient(135deg, rgba(79, 163, 255, 0.14), rgba(255, 214, 128, 0.06)),
    rgba(255, 255, 255, 0.05);
}

.clan-overview-card .clan-summary {
  border: 0;
  background: transparent;
  padding: 0;
}

.clan-overview-card .clan-summary span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.clan-overview-card .clan-summary strong {
  font-size: clamp(28px, 4vw, 44px);
}

.clan-overview-card .clan-summary small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 760;
}

.clan-console .clan-chat-panel {
  margin: 0;
}

.clan-console .clan-chat-list {
  max-height: min(62vh, 620px);
}

.clan-console .clan-manage-grid {
  gap: 18px;
}

.clan-console-subsection {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.clan-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.clan-danger-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(127, 29, 29, 0.13);
}

.account-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tpblock-panel {
  min-width: 0;
}

.tpblock-panel h3 {
  margin: 0;
}

.tpblock-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  margin-top: 14px;
  color: var(--muted-dark);
}

.tpblock-chip {
  cursor: pointer;
}

@media (max-width: 760px) {
  .account-shell {
    grid-template-columns: 1fr;
  }

  .account-copy {
    position: static;
  }

  .clan-console-copy,
  .clan-console-layout.account-clan-panel,
  .clan-people-grid {
    grid-template-columns: 1fr;
  }

  .clan-console-copy {
    align-items: start;
  }

  .clan-console-quicklinks {
    justify-content: flex-start;
  }

  .clan-console-sidebar {
    position: static;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .clan-console-sidebar span {
    grid-column: 1 / -1;
  }

  .clan-console-main {
    padding: 16px;
  }

  .settings-grid,
  .account-insight-grid,
  .account-block-grid,
  .account-form.compact,
  .clan-settings-form {
    grid-template-columns: 1fr;
  }

  .account-dashboard-head,
  .account-clan-head,
  .clan-chat-head,
  .clan-summary,
  .clan-row {
    flex-direction: column;
    align-items: stretch;
  }

  .clan-chat-form {
    grid-template-columns: 1fr;
  }

  .premium-help {
    align-items: stretch;
    flex-direction: column;
  }

  .clan-row-actions,
  .clan-actions {
    justify-content: flex-start;
  }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 0 max(22px, env(safe-area-inset-left));
  background: rgba(3, 4, 7, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--white);
}

.brand {
  width: fit-content;
  font-family: "SF Pro Display", "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(110deg, var(--white), var(--champagne-2) 48%, var(--blue-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.33;
}

.nav-links a {
  transition: color 180ms ease, opacity 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--white);
}

.language-shell select {
  min-width: 112px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(255, 255, 255, 0.08);
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.82) 50%), linear-gradient(135deg, rgba(255, 255, 255, 0.82) 50%, transparent 50%);
  background-position: calc(100% - 14px) 13px, calc(100% - 9px) 13px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  color: var(--white);
  padding: 0 30px 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.language-shell select option {
  background: #ffffff;
  color: #08090d;
}

.language-shell select option:checked {
  background: #e9edf5;
  color: #08090d;
}

.hero-stage {
  position: relative;
  min-height: calc(100svh - 52px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.2), transparent 18%),
    radial-gradient(circle at 74% 32%, rgba(79, 163, 255, 0.22), transparent 24%),
    radial-gradient(circle at 26% 72%, rgba(215, 196, 138, 0.12), transparent 24%),
    linear-gradient(180deg, #080a12 0%, #030407 64%, #000000 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
  contain: paint;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: -12% -10% auto;
  height: 50%;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 16%, rgba(255, 255, 255, 0.1) 36%, transparent 54%),
    radial-gradient(ellipse at center, rgba(145, 200, 255, 0.14), transparent 64%);
  opacity: 0.56;
  transform: rotate(-6deg);
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 68%);
  opacity: 0.32;
}

.section-inner {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 86px 0 72px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--champagne-2);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.29;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.availability-pill {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 22px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(20, 24, 34, 0.82);
  color: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--champagne-2);
  box-shadow: 0 0 14px rgba(255, 240, 184, 0.58);
}

h1,
h2 {
  font-family: "SF Pro Display", "Avenir Next", "Helvetica Neue", sans-serif;
  margin: 0 auto;
  font-weight: 750;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 {
  max-width: 1020px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  background: linear-gradient(105deg, #ffffff 0%, #f6f3ea 38%, #c7ddff 72%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 52px rgba(145, 200, 255, 0.16);
}

h2 {
  max-width: 800px;
  font-size: 42px;
  line-height: 1.08;
}

.hero-copy,
.scene p {
  margin: 20px auto 0;
  max-width: 720px;
  color: var(--muted-dark);
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: -0.03em;
}

.signal-strip {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 34px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22, 26, 36, 0.88), rgba(10, 13, 20, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 42px rgba(0, 0, 0, 0.22);
}

.signal-strip > :where(span, button) {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 13px 14px;
}

.signal-strip > :where(span, button) + :where(span, button) {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-stat-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.signal-stat-button:hover,
.signal-stat-button:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 240, 184, 0.22);
}

.signal-stat-button > :not(.player-sample-backdrop) {
  position: relative;
  z-index: 2;
}

.player-sample-stat.has-player-samples {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    transparent;
}

.player-sample-backdrop {
  position: absolute;
  inset: -16px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
}

.player-sample-stat.has-player-samples .player-sample-backdrop {
  opacity: 1;
}

.player-sample-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 11, 18, 0.86) 0%, rgba(9, 11, 18, 0.58) 48%, rgba(9, 11, 18, 0.14) 100%),
    radial-gradient(circle at 85% 35%, rgba(255, 229, 154, 0.28), transparent 46%);
}

.player-sample-backdrop img {
  position: absolute;
  top: 50%;
  right: 6px;
  z-index: 0;
  width: 104px;
  height: 104px;
  border-radius: 18px;
  object-fit: cover;
  image-rendering: pixelated;
  opacity: 0;
  transform: translateY(-50%) translateX(14px) rotate(-7deg) scale(1.05);
  filter: saturate(1.14) contrast(1.06) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.52));
  transition: opacity 260ms ease, transform 260ms ease;
}

.player-sample-backdrop img.is-active {
  opacity: 0.72;
  transform: translateY(-50%) translateX(0) rotate(-7deg) scale(1);
}

.signal-strip strong {
  color: var(--white);
  font-family: "SF Pro Display", "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.1;
}

.signal-strip small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-panel {
  position: relative;
  width: min(940px, 100%);
  margin: 38px auto 0;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 240, 184, 0.18), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(145, 200, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05) 42%, rgba(79, 163, 255, 0.08)),
    rgba(10, 13, 20, 0.92);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.46), 0 12px 42px rgba(58, 122, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  contain: paint;
}

.live-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(255, 240, 184, 0.28), transparent 38%, rgba(145, 200, 255, 0.18), transparent 70%);
  opacity: 0.28;
}

.live-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.12) 42%, transparent 58%);
  opacity: 0.1;
}

.live-panel-copy {
  position: relative;
  z-index: 1;
}

.live-kicker {
  margin: 0 0 10px;
  color: var(--champagne-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.24em;
}

.live-panel-copy h2 {
  max-width: 760px;
  color: var(--platinum);
  font-size: clamp(28px, 3.8vw, 46px);
}

.live-panel-copy p:not(.live-kicker) {
  max-width: 620px;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
  line-height: 1.42;
}

.live-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.live-tile {
  position: relative;
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 18px 14px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 30px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease;
}

.live-tile:hover,
.live-tile:focus-visible {
  border-color: rgba(255, 240, 184, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  outline: 0;
}

button.live-tile {
  width: 100%;
  cursor: pointer;
}

button.live-tile,
button.live-tile:focus {
  font: inherit;
}

.live-tile span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.33;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.live-tile strong {
  max-width: 100%;
  color: var(--white);
  font-family: "SF Pro Display", "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 780;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.live-tile-primary strong {
  color: var(--champagne-2);
}

.live-tile small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.34;
}

.live-note {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42;
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-cta,
.secondary-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-cta {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #ffffff, #d9e9ff 52%, #98c9ff);
  color: #06111f;
  box-shadow: 0 12px 32px rgba(79, 163, 255, 0.22);
}

.primary-cta:hover,
.primary-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(79, 163, 255, 0.28);
}

.secondary-cta {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 24, 34, 0.78);
  color: var(--platinum);
}

.secondary-cta:hover,
.secondary-cta:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 240, 184, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.effect-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.effect-layer::before,
.effect-layer::after {
  content: "";
  position: absolute;
  width: 38vmax;
  height: 38vmax;
  border-radius: 50%;
  opacity: 0.18;
}

.effect-layer::before {
  left: -18vmax;
  bottom: -20vmax;
  background: radial-gradient(circle, rgba(79, 163, 255, 0.42), transparent 60%);
}

.effect-layer::after {
  right: -18vmax;
  top: 8vmax;
  background: radial-gradient(circle, rgba(255, 240, 184, 0.32), transparent 62%);
}

.story-scroll {
  position: relative;
  isolation: isolate;
  min-height: calc(var(--app-vh, 1vh) * 390);
  background: linear-gradient(180deg, #000000, #070910 46%, #020306 100%);
  color: var(--white);
}

.story-shell {
  position: sticky;
  top: 52px;
  z-index: 2;
  isolation: isolate;
  width: 100%;
  min-height: 620px;
  height: calc((var(--app-vh, 1vh) * 100) - 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  margin: 0 auto;
  overflow: visible;
}

.story-shell::before,
.story-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.story-shell::before {
  width: 112vw;
  height: min(760px, 78vh);
  background:
    radial-gradient(ellipse at 18% 52%, rgba(87, 160, 255, 0.44), transparent 30%),
    radial-gradient(ellipse at 50% 43%, rgba(255, 255, 255, 0.13), transparent 18%),
    radial-gradient(ellipse at 76% 50%, rgba(255, 120, 74, 0.16), transparent 29%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.025), transparent 72%);
  opacity: 0.5;
}

.story-shell::after {
  width: 104vw;
  height: min(680px, 70vh);
  background:
    radial-gradient(ellipse at 82% 46%, rgba(255, 214, 140, 0.34), transparent 31%),
    radial-gradient(ellipse at 52% 18%, rgba(255, 255, 255, 0.1), transparent 18%),
    radial-gradient(ellipse at 30% 58%, rgba(70, 170, 255, 0.2), transparent 34%);
  opacity: 0.42;
}

.story-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.story-orbit {
  position: relative;
  width: 100%;
  min-height: 540px;
  display: grid;
  align-content: center;
  padding: 42px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 240, 184, 0.12), transparent 36%),
    radial-gradient(circle at 80% 30%, rgba(79, 163, 255, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.story-orbit::before,
.story-orbit::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.story-orbit::before {
  inset: 52px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.11) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.1) 50%, transparent 51%),
    radial-gradient(circle at 30% 36%, rgba(255, 240, 184, 0.85) 0 4px, transparent 5px),
    radial-gradient(circle at 66% 62%, rgba(79, 163, 255, 0.85) 0 4px, transparent 5px),
    radial-gradient(circle at 52% 48%, rgba(255, 255, 255, 0.42) 0 2px, transparent 3px);
  opacity: 0.76;
  transform: rotate(-11deg);
}

.story-orbit::after {
  top: 36px;
  right: 34px;
  z-index: 0;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.28), transparent 10%),
    conic-gradient(from 34deg, rgba(255, 240, 184, 0), rgba(255, 240, 184, 0.35), rgba(79, 163, 255, 0.18), rgba(255, 240, 184, 0));
  opacity: 0.78;
}

.story-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.story-panel-head span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.story-panel-head strong {
  max-width: 190px;
  color: var(--champagne-2);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-align: right;
}

.story-phase-mark {
  position: relative;
  z-index: 1;
  margin: 92px 0 96px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(104px, 12vw, 172px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.78;
  text-align: center;
  text-shadow: 0 0 46px rgba(79, 163, 255, 0.2);
}

.story-progress {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 2px;
  margin-top: 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.story-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0.04);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--champagne-2), var(--blue-2));
  transition: transform 360ms ease;
}

.story-dots {
  display: none;
}

.story-copy {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  min-height: 360px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.story-copy.is-swapping {
  animation: storySwap 560ms ease-out;
}

.story-copy h2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
  font-size: 42px;
  line-height: 1.08;
}

.story-copy p {
  margin: 18px auto 0;
  max-width: 590px;
  color: var(--muted-dark);
  font-size: 21px;
  line-height: 1.32;
}

.story-copy .eyebrow {
  margin-top: 0;
}

.story-step-indicator {
  width: min(420px, 100%);
  margin-bottom: 28px;
}

.story-step-current {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.story-link[hidden] {
  display: none;
}

.scene {
  position: relative;
  min-height: 76svh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 96px 0;
  content-visibility: auto;
  contain-intrinsic-size: 760px;
}

.scene-light {
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 163, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f3ea, #e9edf5);
  color: #08090d;
}

.scene-dark {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 240, 184, 0.08), transparent 30%),
    linear-gradient(180deg, #020306, #060810);
  color: var(--white);
}

.scene-light .eyebrow {
  color: #7a5c0c;
}

.scene-light p {
  color: var(--muted-light);
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: #1b65bd;
  font-size: 17px;
  font-weight: 760;
}

.scene-dark .text-link {
  color: var(--blue-2);
}

.text-link::after {
  content: ">";
  padding-left: 7px;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.narrow {
  max-width: 840px;
}

.server-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: 46px;
  text-align: left;
}

.server-grid h2,
.server-grid p {
  margin-left: 0;
}

.server-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.server-facts div {
  min-height: 106px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 44px rgba(0, 0, 0, 0.22);
}

.server-facts dt {
  margin: 0 0 8px;
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.33;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.server-facts dd {
  margin: 0;
  color: var(--white);
  font-family: "SF Pro Display", "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 28px;
  font-weight: 760;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.fact-subline {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "SF Pro Text", "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.scene-engine {
  min-height: auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 240, 184, 0.12), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(79, 163, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #05070d 0%, #0b0d13 52%, #020306 100%);
  color: var(--white);
}

.engine-layout {
  display: grid;
  gap: 24px;
}

.engine-copy {
  text-align: center;
}

.engine-copy h2 {
  max-width: 860px;
}

.engine-copy > p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.68);
}

.engine-panel {
  display: grid;
  justify-items: center;
  gap: 13px;
  margin-top: 6px;
  padding: 26px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 22px 60px rgba(0, 0, 0, 0.28);
}

.engine-panel h3,
.why-item h3 {
  margin: 0;
  font-family: "SF Pro Display", "Avenir Next", "Helvetica Neue", sans-serif;
  font-weight: 780;
  letter-spacing: 0;
}

.engine-panel h3 {
  max-width: 720px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.engine-panel p:not(.eyebrow) {
  max-width: 860px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.56;
}

.engine-difference {
  width: min(820px, 100%);
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(145, 200, 255, 0.18);
  border-radius: 8px;
  background: rgba(79, 163, 255, 0.08);
}

.engine-difference strong {
  color: var(--blue-2);
  font-size: 15px;
  font-weight: 880;
  line-height: 1.3;
}

.engine-difference p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.55;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.why-item {
  min-width: 0;
  min-height: 214px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.058);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.why-item span {
  color: rgba(255, 240, 184, 0.78);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
}

.why-item h3 {
  color: var(--white);
  font-size: 21px;
  line-height: 1.14;
}

.why-item p {
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  line-height: 1.48;
}

.discord-scene {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: center;
  gap: 50px;
  text-align: left;
}

.discord-grid h2,
.discord-grid p {
  margin-left: 0;
}

.discord-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.discord-widget-shell {
  width: min(100%, 390px);
  justify-self: end;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background: rgba(18, 22, 32, 0.88);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.discord-widget-shell iframe {
  display: block;
  width: 100%;
  max-width: 350px;
  height: 500px;
  margin: 0 auto;
  border: 0;
  border-radius: 18px;
  background: var(--ink-2);
}

.final-scene {
  min-height: 68svh;
}

.leaderboard-page {
  min-height: calc(100svh - 52px);
  background: linear-gradient(180deg, #070910 0%, #030407 48%, #000000 100%);
}

.leaderboard-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 56px;
  background:
    radial-gradient(circle at 30% 10%, rgba(255, 240, 184, 0.13), transparent 30%),
    radial-gradient(circle at 74% 18%, rgba(79, 163, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #080a12 0%, #030407 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.leaderboard-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, black 0%, transparent 78%);
  opacity: 0.28;
}

.leaderboard-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: pageReveal 720ms ease-out both;
}

.leaderboard-meta {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.096), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 22px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

.leaderboard-baseline {
  width: fit-content;
  margin: 10px 0 0;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.3;
}

.top-player-showcase {
  position: relative;
  isolation: isolate;
  width: min(760px, 100%);
  margin: 34px auto 0;
  padding: 28px;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 240, 184, 0.18), transparent 36%),
    radial-gradient(circle at 84% 12%, rgba(79, 163, 255, 0.2), transparent 36%),
    rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-luxury), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
}

.top-player-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(8, 10, 16, 0.9) 0%, rgba(8, 10, 16, 0.64) 46%, rgba(8, 10, 16, 0.18) 100%),
    linear-gradient(135deg, transparent 0 32%, rgba(255, 232, 164, 0.16) 32% 34%, transparent 34% 52%, rgba(79, 163, 255, 0.16) 52% 53%, transparent 53%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.top-player-showcase.has-top-player-portrait::before {
  opacity: 1;
}

.top-player-showcase > :not(.top-player-portrait) {
  position: relative;
  z-index: 2;
}

.top-player-portrait {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  transition: opacity 240ms ease, transform 240ms ease;
}

.top-player-showcase.has-top-player-portrait .top-player-portrait {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.top-player-portrait::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 42px;
  width: 330px;
  height: 330px;
  transform: translateY(-50%) rotate(-9deg);
  background:
    linear-gradient(135deg, transparent 0 16%, rgba(255, 232, 164, 0.38) 16% 18%, transparent 18% 36%, rgba(79, 163, 255, 0.28) 36% 38%, transparent 38%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.12), transparent 58%);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  opacity: 0.72;
}

.top-player-portrait img {
  position: absolute;
  top: 50%;
  right: clamp(-58px, -5vw, -22px);
  width: clamp(230px, 34vw, 360px);
  height: clamp(230px, 34vw, 360px);
  transform: translateY(-50%) rotate(-5deg);
  border-radius: 22px;
  image-rendering: pixelated;
  object-fit: cover;
  opacity: 0.94;
  filter:
    drop-shadow(0 30px 38px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 30px rgba(255, 225, 140, 0.2))
    saturate(1.18)
    contrast(1.08);
}

.top-player-showcase h2 {
  max-width: 100%;
  color: var(--white);
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.top-player-showcase > p:not(.eyebrow) {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  font-weight: 780;
}

.top-player-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.top-player-categories span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.top-player-categories small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-player-categories strong {
  color: var(--champagne-2);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.top-history-button {
  min-height: 40px;
  margin-top: 20px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 820;
}

.top-history-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.leaderboard-meta span {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 18px;
}

.leaderboard-meta span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-meta strong {
  color: var(--white);
  font-family: "SF Pro Display", "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.1;
}

.leaderboard-meta small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.33;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboard-section {
  padding: 64px 0 96px;
}

.leaderboard-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.leaderboard-section-head h2 {
  margin-left: 0;
  font-size: clamp(32px, 4vw, 48px);
}

.leaderboard-section-head > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 800;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.leaderboard-board {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.066);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 44px rgba(0, 0, 0, 0.24);
}

.leaderboard-board-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-board-head h3 {
  margin: 0;
  color: var(--white);
  font-size: 17px;
  font-weight: 830;
  line-height: 1.2;
  letter-spacing: 0;
}

.leaderboard-board-head span {
  flex: 0 0 auto;
  color: var(--champagne-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.leaderboard-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-list li {
  min-height: 48px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(82px, auto);
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
}

.leaderboard-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.leaderboard-rank {
  color: rgba(255, 255, 255, 0.44);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.leaderboard-player {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.player-head {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.player-head img,
.player-head-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-head img {
  opacity: 0;
  object-fit: cover;
  image-rendering: pixelated;
}

.player-head.has-image img {
  opacity: 1;
}

.player-head.has-image .player-head-fallback {
  opacity: 0;
}

.player-head-fallback {
  display: grid;
  place-items: center;
  color: var(--champagne-2);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.leaderboard-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-value {
  color: var(--platinum);
  font-family: "SF Pro Display", "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 18px;
  font-weight: 820;
  line-height: 1.1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.leaderboard-empty {
  grid-template-columns: 1fr !important;
  color: rgba(255, 255, 255, 0.44);
  font-size: 14px;
  font-weight: 760;
  text-align: center;
}

.clans-page {
  min-height: calc(100svh - 52px);
  background: linear-gradient(180deg, #070910 0%, #030407 54%, #000 100%);
}

.clans-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 58px;
  background:
    radial-gradient(circle at 20% 20%, rgba(79, 163, 255, 0.2), transparent 34%),
    radial-gradient(circle at 78% 22%, rgba(255, 214, 128, 0.15), transparent 32%),
    linear-gradient(180deg, #080a12 0%, #030407 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.clans-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, black 0%, transparent 78%);
  opacity: 0.2;
}

.clans-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.clans-toolbar {
  width: min(680px, 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: center;
  margin: 32px auto 0;
}

.clans-toolbar label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 820;
  text-align: left;
}

.clans-toolbar select {
  min-width: 180px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--white);
  padding: 0 12px;
}

.clans-section {
  padding: 56px 0 96px;
}

.clans-status {
  min-height: 24px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 780;
  text-align: center;
}

.clans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.clan-card {
  min-width: 0;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  padding: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.clan-card-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
}

.clan-card h2 {
  overflow: hidden;
  margin: 0;
  color: var(--white);
  font-size: 24px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clan-card-head span,
.clan-card code {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--champagne-2);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.clan-card p {
  min-height: 54px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
}

.clan-card dl {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.clan-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.clan-card dt,
.clan-card dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 760;
}

.clan-card dd {
  color: rgba(255, 255, 255, 0.84);
}

.clan-card code {
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  color: var(--white);
  text-overflow: ellipsis;
}

.clan-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clan-card-actions .secondary-cta {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 13px;
}

.clan-status-pill {
  width: fit-content;
  border: 1px solid rgba(255, 240, 184, 0.24);
  border-radius: 999px;
  background: rgba(255, 240, 184, 0.1);
  color: var(--champagne-2);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
}

.record-page {
  min-height: calc(100svh - 52px);
  background: linear-gradient(180deg, #070910 0%, #030407 52%, #000000 100%);
}

.record-hero {
  padding: 78px 0 48px;
  background:
    linear-gradient(115deg, rgba(79, 163, 255, 0.16), transparent 36%),
    linear-gradient(280deg, rgba(255, 240, 184, 0.12), transparent 42%),
    linear-gradient(180deg, #080a12 0%, #030407 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.record-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 34px;
  align-items: end;
}

.record-hero-inner.single {
  grid-template-columns: 1fr;
}

.record-copy h1 {
  margin: 0;
  text-align: left;
}

.record-copy .hero-copy {
  margin-left: 0;
  text-align: left;
}

.record-search {
  display: grid;
  grid-template-columns: minmax(0, 360px) auto;
  gap: 10px;
  align-items: end;
  margin-top: 26px;
}

.record-search label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 780;
}

.record-search input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--white);
  padding: 0 14px;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.record-status,
.record-timestamp,
.record-muted {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 740;
}

.record-status {
  min-height: 22px;
  margin: 16px 0 0;
}

.player-identity,
.record-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.player-identity {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.player-profile-head {
  position: relative;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(79, 163, 255, 0.2), rgba(255, 240, 184, 0.1));
  color: var(--white);
  font-size: 54px;
  font-weight: 840;
}

.player-profile-head img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.player-identity strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--white);
  font-size: 26px;
  text-overflow: ellipsis;
}

.player-identity span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.record-section {
  padding: 54px 0;
}

.record-section + .record-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.record-section-head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.record-section-head.compact {
  margin-bottom: 16px;
}

.record-section-head h2,
.record-panel h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0;
}

.record-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.record-card,
.rank-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px;
}

.record-card span,
.rank-card span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.record-card strong,
.rank-card strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.record-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}

.rank-feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-feature-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 13px 14px;
}

.rank-feature-list strong {
  display: block;
  color: var(--white);
}

.rank-feature-list small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.rank-feature-list span {
  flex: none;
  color: var(--champagne-2);
  font-weight: 820;
}

.rank-empty {
  color: rgba(255, 255, 255, 0.6);
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rank-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.56);
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
  align-items: start;
}

.live-event-feed {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-event-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
}

.live-face {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(79, 163, 255, 0.16), rgba(255, 240, 184, 0.08)),
    rgba(255, 255, 255, 0.07);
}

.live-face img,
.live-face-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.live-face img {
  opacity: 0;
  object-fit: cover;
  image-rendering: pixelated;
}

.live-face.has-image img {
  opacity: 1;
}

.live-face.has-image .live-face-fallback {
  opacity: 0;
}

.live-face-fallback {
  display: grid;
  place-items: center;
  color: var(--champagne-2);
  font-size: 16px;
  font-weight: 900;
}

.live-event-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.live-event-head,
.live-event-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.live-event-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--white);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-event-head span {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 240, 184, 0.24);
  border-radius: 999px;
  background: rgba(255, 240, 184, 0.08);
  color: var(--champagne-2);
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 900;
}

.live-event-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.live-event-meta {
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 760;
}

.live-event-meta a {
  color: var(--champagne-2);
}

.live-face-grid {
  display: grid;
  gap: 9px;
}

.live-player-panel h2 {
  margin-bottom: 14px;
}

.live-sample {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 8px 0;
}

.live-sample:first-child {
  padding-top: 0;
}

.live-sample span:last-child {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commands-page {
  min-height: calc(100svh - 52px);
  background: linear-gradient(180deg, #070910 0%, #030407 50%, #000000 100%);
}

.commands-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 58px;
  background:
    linear-gradient(120deg, rgba(79, 163, 255, 0.16), transparent 32%),
    linear-gradient(280deg, rgba(255, 240, 184, 0.13), transparent 36%),
    linear-gradient(180deg, #080a12 0%, #030407 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.commands-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, black 0%, transparent 78%);
  opacity: 0.22;
}

.commands-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: pageReveal 720ms ease-out both;
}

.commands-search-shell {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 32px auto 0;
}

.commands-search-shell label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 820;
  text-align: left;
}

.commands-search-shell input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--white);
  padding: 0 15px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.commands-search-shell input:focus {
  border-color: rgba(145, 200, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(79, 163, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.commands-search-shell p {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--champagne-2);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.commands-section {
  padding: 56px 0 96px;
}

.commands-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.commands-note {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.066);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 44px rgba(0, 0, 0, 0.24);
}

.commands-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

.commands-note .secondary-cta {
  width: 100%;
  min-height: 42px;
}

.commands-grid {
  display: grid;
  gap: 18px;
}

.command-group {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.09), transparent 34%),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 44px rgba(0, 0, 0, 0.24);
}

.command-group > header {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.command-group h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.command-group header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 700;
}

.command-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.command-item {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 136px;
  padding: 17px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.command-item:nth-child(1),
.command-item:nth-child(2) {
  border-top: 0;
}

.command-item:nth-child(2n) {
  border-left: 1px solid rgba(255, 255, 255, 0.075);
}

.command-item code {
  width: fit-content;
  max-width: 100%;
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid rgba(145, 200, 255, 0.18);
  border-radius: 8px;
  background: rgba(79, 163, 255, 0.1);
  color: rgba(235, 245, 255, 0.94);
  padding: 6px 9px;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.35;
}

.command-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.48;
}

.command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.command-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.56);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.commands-empty {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  padding: 28px;
  text-align: center;
  font-weight: 760;
}

.faq-page {
  min-height: calc(100svh - 52px);
  background: linear-gradient(180deg, #070910 0%, #030407 50%, #000000 100%);
}

.faq-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 70px;
  background:
    linear-gradient(120deg, rgba(79, 163, 255, 0.15), transparent 34%),
    linear-gradient(290deg, rgba(255, 220, 160, 0.12), transparent 38%),
    linear-gradient(180deg, #080a12 0%, #030407 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.faq-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, black 0%, transparent 80%);
  opacity: 0.2;
}

.faq-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: pageReveal 720ms ease-out both;
}

.faq-section {
  padding: 58px 0 96px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.066);
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 44px rgba(0, 0, 0, 0.24);
}

.faq-intro h2,
.faq-intro p {
  margin: 0;
}

.faq-intro h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.faq-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.062);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 16px 38px rgba(0, 0, 0, 0.22);
}

.faq-item summary {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  padding: 20px 22px;
  color: var(--white);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 860;
  line-height: 1.22;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--champagne-2);
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.62;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.modal-backdrop[hidden] {
  display: none;
}

.top-history-modal {
  width: min(620px, 100%);
  max-height: min(720px, calc(100svh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 240, 184, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(14, 17, 24, 0.98), rgba(3, 4, 7, 0.98));
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  outline: 0;
}

.top-history-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-history-head h2 {
  margin-left: 0;
  font-size: clamp(26px, 4vw, 36px);
}

.top-history-close,
.top-history-controls button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
}

.top-history-controls button:disabled {
  cursor: default;
  opacity: 0.42;
}

.stats-chart-modal {
  width: min(780px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 240, 184, 0.16), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(79, 163, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(14, 17, 24, 0.98), rgba(3, 4, 7, 0.98));
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  outline: 0;
}

.stats-chart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-chart-head h2 {
  margin-left: 0;
  font-size: clamp(28px, 4vw, 40px);
}

.stats-chart-head p:not(.eyebrow) {
  margin: 10px 0 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.stats-chart-close {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
}

.stats-chart-body {
  min-height: 0;
  display: grid;
  gap: 16px;
  overflow: auto;
  padding: 20px 24px 24px;
}

.stats-chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stats-chart-summary span {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  padding: 12px;
}

.stats-chart-summary small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.stats-chart-summary strong {
  color: var(--platinum);
  font-family: "SF Pro Display", "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 24px;
  font-weight: 820;
  line-height: 1.1;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.stats-chart-canvas {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(0, 0, 0, 0.18);
  background-size: 100% 25%, 25% 100%, auto;
  padding: 14px;
}

.stats-chart-svg {
  width: 100%;
  min-height: 260px;
  display: block;
}

.stats-chart-area {
  fill: rgba(79, 163, 255, 0.13);
}

.stats-chart-line {
  fill: none;
  stroke: url("#statsChartGradient");
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.stats-chart-dot {
  fill: var(--champagne-2);
  stroke: rgba(3, 4, 7, 0.96);
  stroke-width: 3;
}

.stats-chart-axis,
.stats-chart-grid {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.stats-chart-label {
  fill: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 760;
}

.stats-chart-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  padding: 44px 12px;
  text-align: center;
  font-weight: 760;
}

.top-history-list {
  min-height: 0;
  display: grid;
  align-content: start;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.top-history-list li {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
}

.top-history-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.top-history-list li > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.top-history-list strong {
  overflow: hidden;
  color: var(--white);
  font-size: 20px;
  font-weight: 840;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-history-list small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 760;
}

.top-history-list li > span {
  color: var(--champagne-2);
  font-size: 13px;
  font-weight: 880;
  white-space: nowrap;
}

.top-history-empty {
  grid-template-columns: 1fr !important;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 800;
}

.top-history-controls {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.top-history-controls span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.live-event-overlay {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  width: min(430px, calc(100vw - 36px));
  pointer-events: none;
}

.live-event-overlay .live-event-head {
  display: none;
}

.live-event-list {
  max-height: min(42vh, 380px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 10px;
  overflow-y: auto;
  list-style: none;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(5, 8, 14, 0.42);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.live-event-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 5px 7px 5px 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  opacity: 1;
  transform: translateY(0);
  transition: background 180ms ease, transform 180ms ease;
}

.live-event-face {
  position: relative;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(79, 163, 255, 0.16), rgba(255, 240, 184, 0.08)),
    rgba(255, 255, 255, 0.07);
  color: #fff0b8;
  box-shadow: 0 0 14px rgba(255, 240, 184, 0.14);
}

.live-event-face img,
.live-event-face-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.live-event-face img {
  opacity: 0;
  object-fit: cover;
  image-rendering: pixelated;
}

.live-event-face.has-image img {
  opacity: 1;
}

.live-event-face.has-image .live-event-face-fallback {
  opacity: 0;
}

.live-event-face-fallback {
  display: grid;
  place-items: center;
  color: var(--champagne-2);
  font-size: 12px;
  font-weight: 900;
}

.live-event-item[data-event-type="join"] .live-event-face {
  box-shadow: 0 0 16px rgba(134, 239, 172, 0.18);
}

.live-event-item[data-event-type="leave"] .live-event-face {
  box-shadow: 0 0 16px rgba(199, 210, 254, 0.18);
}

.live-event-item[data-event-type="chat"] .live-event-face {
  box-shadow: 0 0 16px rgba(145, 200, 255, 0.2);
}

.live-event-item[data-event-type="advancement"] .live-event-face {
  box-shadow: 0 0 16px rgba(253, 230, 138, 0.18);
}

.live-event-overlay .live-event-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
}

.live-event-overlay .live-event-copy strong {
  min-width: 0;
  color: var(--white);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-event-overlay .live-event-copy p {
  display: none;
}

.live-event-overlay .live-event-meta {
  display: inline-flex;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.site-footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(3, 4, 7, 0.82) 0%, var(--black) 100%);
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.33;
}

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 4px;
}

@keyframes pageReveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes beamSweep {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(-8deg);
    opacity: 0.54;
  }
  100% {
    transform: translate3d(4%, 3%, 0) rotate(-4deg);
    opacity: 0.86;
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 240, 184, 0.56), 0 0 18px rgba(255, 240, 184, 0.8);
  }
  80%,
  100% {
    box-shadow: 0 0 0 10px rgba(255, 240, 184, 0), 0 0 18px rgba(255, 240, 184, 0.8);
  }
}

@keyframes haloDrift {
  0% {
    transform: rotate(0deg) scale(1.08);
  }
  100% {
    transform: rotate(360deg) scale(1.08);
  }
}

@keyframes shinePass {
  0%,
  52% {
    transform: translateX(-120%);
  }
  72%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes countTick {
  0% {
    transform: translateY(10px) scale(0.96);
    opacity: 0.64;
    filter: blur(3px);
  }
  50% {
    transform: translateY(-3px) scale(1.03);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes meshFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(8vmax, -4vmax, 0) scale(1.16);
  }
}

@keyframes storySwap {
  0% {
    opacity: 0.72;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes storySirenBlue {
  0%,
  100% {
    opacity: 0.24;
    transform: translate3d(-10%, 2%, 0) rotate(-3deg) scale(0.98);
  }
  28% {
    opacity: 0.78;
    transform: translate3d(5%, -4%, 0) rotate(2deg) scale(1.1);
  }
  56% {
    opacity: 0.28;
    transform: translate3d(13%, 5%, 0) rotate(4deg) scale(1.02);
  }
  72% {
    opacity: 0.7;
    transform: translate3d(-3%, -6%, 0) rotate(-2deg) scale(1.12);
  }
}

@keyframes storySirenGold {
  0%,
  100% {
    opacity: 0.2;
    transform: translate3d(12%, -2%, 0) rotate(3deg) scale(1.02);
  }
  24% {
    opacity: 0.68;
    transform: translate3d(-7%, 4%, 0) rotate(-4deg) scale(1.12);
  }
  52% {
    opacity: 0.24;
    transform: translate3d(-13%, -5%, 0) rotate(-2deg) scale(1);
  }
  76% {
    opacity: 0.76;
    transform: translate3d(3%, 6%, 0) rotate(3deg) scale(1.1);
  }
}

@keyframes storyThunderFlash {
  0%,
  67%,
  70%,
  72%,
  100% {
    opacity: 0.22;
    filter: blur(42px) brightness(1);
  }
  68% {
    opacity: 0.92;
    filter: blur(18px) brightness(2.8);
  }
  69% {
    opacity: 0.36;
    filter: blur(52px) brightness(1.1);
  }
  71% {
    opacity: 0.82;
    filter: blur(20px) brightness(2.4);
  }
}

@keyframes storyLightningStrike {
  0%,
  48%,
  51%,
  53%,
  100% {
    opacity: 0.2;
    filter: blur(42px) brightness(1);
  }
  49% {
    opacity: 0.86;
    filter: blur(16px) brightness(2.7);
  }
  50% {
    opacity: 0.3;
    filter: blur(54px) brightness(1);
  }
  52% {
    opacity: 0.74;
    filter: blur(22px) brightness(2.2);
  }
}

@media (max-width: 820px) {
  .site-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 0 14px;
  }

  .nav-links {
    min-width: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    display: none;
  }

  .nav-links a[href="/leaderboard"],
  .nav-links a[href="/live"],
  .nav-links a[href="/clans"],
  .nav-links a[aria-current="page"] {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 820;
    white-space: nowrap;
  }

  .language-shell select {
    min-width: 104px;
  }

  .clans-grid {
    grid-template-columns: 1fr;
  }

  .clans-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .clans-toolbar label,
  .clans-toolbar select,
  .clans-toolbar .secondary-cta {
    width: 100%;
  }

  .hero-inner {
    padding: 64px 0 56px;
  }

  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
  }

  .player-sample-backdrop img {
    top: auto;
    right: auto;
    bottom: -12px;
    left: 8px;
    width: 96px;
    height: 96px;
    transform: translateX(-12px) translateY(14px) rotate(7deg) scale(1.06);
  }

  .player-sample-backdrop img.is-active {
    transform: translateX(0) translateY(0) rotate(7deg) scale(1);
  }

  .player-sample-backdrop::after {
    background:
      linear-gradient(90deg, rgba(9, 11, 18, 0.05) 0%, rgba(9, 11, 18, 0.52) 48%, rgba(9, 11, 18, 0.9) 100%),
      linear-gradient(0deg, rgba(9, 11, 18, 0.32) 0%, transparent 64%),
      radial-gradient(circle at 15% 84%, rgba(255, 229, 154, 0.28), transparent 48%);
  }

  .signal-strip .player-sample-stat {
    justify-items: end;
    padding-right: 16px;
    padding-left: 92px;
    text-align: right;
  }

  .signal-strip > :where(span, button) + :where(span, button) {
    border-left: 0;
  }

  h1 {
    font-size: clamp(42px, 12vw, 62px);
    line-height: 1.02;
  }

  h2 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero-copy,
  .scene p {
    font-size: 19px;
    line-height: 1.34;
  }

  .live-panel {
    padding: 22px;
    border-radius: 28px;
  }

  .live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-hero {
    padding: 58px 0 38px;
  }

  .record-hero-inner,
  .record-two-column,
  .live-layout {
    grid-template-columns: 1fr;
  }

  .record-search {
    grid-template-columns: 1fr;
  }

  .record-card-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .record-section-head {
    align-items: start;
    flex-direction: column;
  }

  .story-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    height: calc((var(--app-vh, 1vh) * 100) - 52px);
    padding: 0;
    align-content: center;
    align-items: center;
    gap: 22px;
  }

  .story-orbit {
    min-height: 270px;
    padding: 28px;
    border-radius: 28px;
  }

  .story-step-indicator {
    margin-bottom: 22px;
  }

  .story-copy h2 {
    font-size: 34px;
    line-height: 1.12;
  }

  .story-copy {
    min-height: auto;
  }

  .server-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .server-grid h2,
  .server-grid p,
  .engine-panel h3,
  .engine-panel p:not(.eyebrow),
  .discord-grid h2,
  .discord-grid p {
    margin-left: auto;
  }

  .scene-engine {
    padding: 76px 0;
  }

  .engine-panel {
    text-align: center;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-item {
    min-height: 0;
  }

  .discord-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .discord-widget-shell {
    justify-self: center;
  }

  .leaderboard-hero {
    padding: 72px 0 42px;
  }

  .top-player-showcase {
    min-height: 340px;
    padding: 170px 22px 24px;
  }

  .top-player-showcase::before {
    background:
      linear-gradient(180deg, rgba(8, 10, 16, 0.18) 0%, rgba(8, 10, 16, 0.86) 58%, rgba(8, 10, 16, 0.92) 100%),
      linear-gradient(135deg, transparent 0 28%, rgba(255, 232, 164, 0.14) 28% 30%, transparent 30% 50%, rgba(79, 163, 255, 0.14) 50% 51%, transparent 51%);
  }

  .top-player-portrait::before {
    top: 18px;
    right: 50%;
    width: 230px;
    height: 230px;
    transform: translateX(50%) rotate(-8deg);
  }

  .top-player-portrait img {
    top: 14px;
    right: 50%;
    width: 188px;
    height: 188px;
    transform: translateX(50%) rotate(-4deg);
    opacity: 0.88;
  }

  .leaderboard-section {
    padding: 48px 0 72px;
  }

  .leaderboard-section-head {
    display: grid;
    align-items: start;
  }

  .leaderboard-grid {
    grid-template-columns: 1fr;
  }

  .commands-hero {
    padding: 72px 0 42px;
  }

  .commands-search-shell {
    grid-template-columns: 1fr;
  }

  .commands-search-shell p {
    justify-self: center;
  }

  .commands-section {
    padding: 48px 0 72px;
  }

  .commands-layout {
    grid-template-columns: 1fr;
  }

  .commands-note {
    position: static;
  }

  .faq-hero {
    padding: 72px 0 46px;
  }

  .faq-section {
    padding: 48px 0 74px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-intro {
    position: static;
  }

  .faq-item summary {
    min-height: 62px;
    padding: 18px;
  }

  .faq-item p {
    padding: 0 18px 18px;
  }

  .command-list {
    grid-template-columns: 1fr;
  }

  .command-item:nth-child(2) {
    border-top: 1px solid rgba(255, 255, 255, 0.075);
  }

  .command-item:nth-child(2n) {
    border-left: 0;
  }

  .live-event-overlay {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(360px, calc(100vw - 24px));
  }
}

@media (max-width: 460px) {
  .site-nav {
    min-height: 52px;
  }

  .brand {
    font-size: 15px;
  }

  .language-shell select {
    max-width: 118px;
  }

  .section-inner {
    width: min(100% - 24px, 1060px);
  }

  .availability-pill {
    max-width: 100%;
    font-size: 12px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.05;
  }

  h2 {
    font-size: 28px;
  }

  .signal-strip {
    border-radius: 18px;
  }

  .signal-strip > :where(span, button) {
    min-height: 70px;
    padding: 10px 8px;
  }

  .player-sample-backdrop img {
    top: auto;
    right: auto;
    bottom: -10px;
    left: -2px;
    width: 84px;
    height: 84px;
    border-radius: 15px;
    transform: translateX(-10px) translateY(12px) rotate(7deg) scale(1.06);
  }

  .player-sample-backdrop img.is-active {
    transform: translateX(0) translateY(0) rotate(7deg) scale(1);
  }

  .player-sample-backdrop::after {
    background:
      linear-gradient(90deg, rgba(9, 11, 18, 0.06) 0%, rgba(9, 11, 18, 0.56) 48%, rgba(9, 11, 18, 0.9) 100%),
      linear-gradient(0deg, rgba(9, 11, 18, 0.3) 0%, transparent 64%),
      radial-gradient(circle at 14% 84%, rgba(255, 229, 154, 0.28), transparent 48%);
  }

  .signal-strip .player-sample-stat {
    justify-items: end;
    padding-right: 12px;
    padding-left: 62px;
    text-align: right;
  }

  .signal-strip strong {
    font-size: 18px;
  }

  .stats-chart-head {
    padding: 18px 16px 14px;
  }

  .stats-chart-body {
    padding: 16px;
  }

  .stats-chart-summary {
    grid-template-columns: 1fr;
  }

  .live-panel {
    padding: 16px;
  }

  .live-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .live-tile {
    min-height: 112px;
    border-radius: 18px;
  }

  .primary-cta,
  .secondary-cta {
    width: 100%;
  }

  .discord-widget-shell {
    padding: 10px;
  }

  .discord-widget-shell iframe {
    height: 440px;
  }

  .scene {
    min-height: auto;
    padding: 78px 0;
  }

  .story-shell {
    width: 100%;
  }

  .story-orbit {
    min-height: 230px;
    padding: 22px;
  }

  .story-step-indicator {
    margin-bottom: 18px;
  }

  .story-copy h2 {
    font-size: 28px;
  }

  .story-copy p {
    font-size: 17px;
    line-height: 1.34;
  }

  .story-flags {
    gap: 6px;
  }

  .story-flags img {
    width: 42px;
    height: 42px;
  }

  .leaderboard-meta {
    grid-template-columns: 1fr;
  }

  .top-player-showcase {
    min-height: 324px;
    padding: 160px 16px 22px;
    border-radius: 22px;
  }

  .top-player-portrait::before {
    width: 210px;
    height: 210px;
  }

  .top-player-portrait img {
    width: 168px;
    height: 168px;
    border-radius: 18px;
  }

  .top-player-showcase h2 {
    font-size: 40px;
  }

  .top-player-categories {
    justify-content: stretch;
  }

  .top-player-categories span {
    width: 100%;
    justify-content: space-between;
    border-radius: 16px;
  }

  .leaderboard-meta span + span {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .leaderboard-list li {
    grid-template-columns: 40px minmax(0, 1fr) minmax(70px, auto);
    gap: 8px;
    padding: 9px 12px;
  }

  .leaderboard-value {
    font-size: 16px;
  }

  .commands-search-shell input {
    height: 46px;
  }

  .command-group > header {
    padding: 16px;
  }

  .command-item {
    min-height: 0;
    padding: 16px;
  }

  .command-item p {
    font-size: 14px;
  }

  .top-history-head {
    padding: 18px 16px 14px;
  }

  .top-history-list li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 13px 16px;
  }

  .top-history-list li > span {
    white-space: normal;
  }

  .top-history-controls {
    padding: 12px 16px;
  }

  .live-event-overlay {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
  }

  .live-event-list {
    max-height: min(34vh, 260px);
    padding: 8px;
  }

  .live-event-item {
    min-height: 34px;
    padding: 5px 6px;
  }

  .live-event-face {
    width: 26px;
    height: 26px;
  }

  .live-event-overlay .live-event-copy strong {
    font-size: 11px;
  }

  .live-event-overlay .live-event-meta {
    font-size: 9px;
  }
}

@media (max-height: 680px) and (min-width: 821px) {
  .hero-inner {
    padding: 56px 0 46px;
  }

  .live-tile {
    min-height: 122px;
  }

  .story-shell {
    min-height: 0;
    gap: 28px;
  }

  .story-orbit {
    min-height: 0;
    height: min(410px, calc((var(--app-vh, 1vh) * 100) - 86px));
    padding: 24px;
  }

  .story-step-indicator {
    margin-bottom: 18px;
  }

  .story-copy {
    min-height: 0;
  }

  .story-copy h2 {
    font-size: 32px;
    line-height: 1.12;
  }

  .story-copy p {
    font-size: 17px;
    line-height: 1.32;
  }

  .story-progress {
    margin-top: 0;
  }
}

@media (max-width: 760px), (hover: none) and (max-width: 920px) {
  .live-event-overlay {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
