/* ==========================================================================
   MoCoSMP — styles.css
   Deep-slate theme with MCPS royal blue + gold accents.
   Sections: tokens, base, components, layout, responsive, motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Core surfaces */
  --bg: #12161f;
  --bg-deep: #0d1118;
  --surface: #1a1f2c;
  --surface-2: #202737;
  --surface-3: #171d29;
  --inset: #101620;

  /* Official MCPS accents */
  --blue: #003399;
  --blue-500: #2f6bff;
  --blue-300: #8fb0ff;
  --gold: #ffcc00;
  --gold-bright: #ffe066;
  --gold-deep: #b98f00;

  /* Text */
  --text: #f2f5fb;
  --muted: #a5afc3;
  --muted-2: #7c879c;
  --muted-3: #5d6980;

  /* Status */
  --green: #3ddc84;
  --green-bright: #8affc1;
  --red: #ff5d6c;
  --orange: #ff9140;

  /* Lines and effects */
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --gold-line: rgba(255, 204, 0, 0.26);

  /* Type */
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  /* Rounded display stack for the wordmark. Falls back to system faces that
     still keep circular bowls, so no webfont request is needed. */
  --font-round: "Nunito", "Varela Round", "Arial Rounded MT Bold",
    "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", "SFMono-Regular", Consolas,
    "Liberation Mono", monospace;

  /* Geometry */
  --container: 1200px;
  --gutter: 24px;
  --radius: 18px;
  --radius-sm: 10px;

  /* Shadows */
  --shadow-card: 0 28px 70px -45px rgba(0, 0, 0, 0.95);
  --shadow-gold: 0 10px 24px -12px rgba(255, 204, 0, 0.5);
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(0, 51, 153, 0.34), transparent 62%),
    radial-gradient(820px 520px at 6% 12%, rgba(255, 204, 0, 0.05), transparent 60%),
    var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 52% 0%, #000 18%, transparent 76%);
  mask-image: radial-gradient(ellipse at 52% 0%, #000 18%, transparent 76%);
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

abbr {
  text-decoration: underline dotted rgba(255, 204, 0, 0.55);
  text-underline-offset: 3px;
  cursor: help;
}

code {
  font-family: var(--mono);
}

::selection {
  color: #161a23;
  background: var(--gold);
}

/* Accessible skip link */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: #161a23;
  font-size: 0.82rem;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[hidden] {
  display: none !important;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(72px, 9vw, 112px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-index {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 21px;
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: 4px;
  background: rgba(255, 204, 0, 0.06);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0;
}

.section-head h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-lede {
  max-width: 660px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.card-kicker {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel,
.mini-panel,
.apply-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(32, 40, 57, 0.9), rgba(22, 28, 41, 0.94));
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   4. Buttons + badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.87rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn-gold {
  border-color: #ffe066;
  background: linear-gradient(180deg, #ffd633, #ffcc00);
  color: #161a23;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #ffe066, #ffd31a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 30px -12px rgba(255, 204, 0, 0.65);
}

.btn-blue {
  border-color: #2f5fe0;
  background: linear-gradient(180deg, #0646bf, #003399);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 30px -18px rgba(0, 51, 153, 0.9);
}

.btn-blue:hover {
  background: linear-gradient(180deg, #1155d8, #0040b8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 34px -16px rgba(47, 107, 255, 0.6);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: #e9eefb;
}

.btn-ghost:hover {
  border-color: rgba(255, 204, 0, 0.6);
  background: rgba(255, 204, 0, 0.05);
  color: var(--gold);
}

.btn-green {
  border-color: #78ffb4;
  background: linear-gradient(180deg, #4ce894, #2bc46f);
  color: #082416;
  box-shadow: 0 12px 28px -14px rgba(61, 220, 132, 0.6);
}

.btn-green:hover {
  background: linear-gradient(180deg, #6bffac, #37d47f);
}

.btn-wide {
  width: 100%;
}

.badge-soft,
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-gold {
  border-color: rgba(255, 204, 0, 0.28);
  background: rgba(255, 204, 0, 0.08);
  color: var(--gold);
}

.pill {
  display: inline-flex;
  padding: 3px 8px;
  border: 1px solid rgba(47, 107, 255, 0.3);
  border-radius: 4px;
  background: rgba(0, 51, 153, 0.16);
  color: var(--blue-300);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(15, 20, 29, 0.84);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 11px;
  font-family: var(--font-round);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--gold);
}

.brand-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  width: 28px;
  height: 28px;
  padding: 3px;
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 7px;
  background: rgba(255, 204, 0, 0.04);
  box-shadow: inset 0 0 12px rgba(255, 204, 0, 0.08);
}

.brand-mark span {
  border-radius: 1px;
  background: var(--gold);
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) {
  background: var(--blue-500);
}

.brand-mark span:nth-child(4) {
  background: rgba(255, 255, 255, 0.25);
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav a {
  position: relative;
  display: block;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.primary-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.primary-nav a.is-active {
  color: var(--gold);
}

.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 3px;
  left: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.nav-apply {
  display: none;
}

.header-cta {
  min-height: 40px;
  margin-left: 6px;
  padding: 0 18px;
  font-size: 0.8rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: clip;
  padding: clamp(56px, 7vw, 92px) 0 clamp(56px, 7vw, 88px);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(180deg, rgba(13, 17, 24, 0.52) 0%, rgba(13, 17, 24, 0.8) 58%, var(--bg) 100%),
    linear-gradient(100deg, rgba(13, 17, 24, 0.93) 0%, rgba(13, 17, 24, 0.7) 46%, rgba(13, 17, 24, 0.4) 100%),
    url("assets/hero-world.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::before {
  content: "M";
  position: absolute;
  top: -12rem;
  right: -4rem;
  z-index: -1;
  color: transparent;
  font-size: 42rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.028);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 58%;
  z-index: -1;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 51, 153, 0.32), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 204, 0, 0.22);
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.06);
  color: #f7e7a6;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.12);
  animation: live-pulse 2.4s ease-out infinite;
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 22px 0;
  font-family: var(--font-round);
  font-size: clamp(4rem, 10.2vw, 8.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-title-white {
  color: #fff;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.hero-title-gold {
  /* Breathing room above and below keeps the clipped gradient covering the
     whole glyph height. Baseline alignment keeps "SMP" on the same line as
     "MoCo" even though this span's box is taller. */
  padding-block: 0.1em;
  background: linear-gradient(160deg, #ffe680 8%, #ffcc00 48%, #c79a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  max-width: 580px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  line-height: 1.68;
}

/* Copy-IP utility */
.connect-panel {
  position: relative;
  max-width: 600px;
  margin-top: 30px;
  padding: 18px;
  border: 1px solid rgba(255, 204, 0, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 204, 0, 0.065), rgba(255, 204, 0, 0.015) 58%, rgba(0, 51, 153, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 50px -30px rgba(0, 0, 0, 0.8);
}

.connect-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.7), transparent);
}

.connect-kicker {
  margin-bottom: 9px;
  color: var(--muted-2);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ip-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.ip-chip {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0f141d;
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  user-select: all;
}

#server-ip {
  overflow: hidden;
  color: #fff;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-wrap {
  position: relative;
}

.copy-btn {
  min-height: 48px;
  padding: 0 16px;
  flex-shrink: 0;
}

.copy-btn.is-copied {
  border-color: #78ffb4;
  background: linear-gradient(180deg, #4ce894, #2bc46f);
  color: #082416;
}

.copy-badge {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(61, 220, 132, 0.4);
  border-radius: 8px;
  background: #163b2a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  color: var(--green-bright);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  pointer-events: none;
}

.copy-badge::before {
  content: "\2713";
  font-size: 0.72rem;
}

.copy-badge.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.copy-badge.is-error {
  border-color: rgba(255, 93, 108, 0.45);
  background: #3b1b1f;
  color: #ffb3ba;
}

.copy-badge.is-error::before {
  content: "!";
}

.connect-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.71rem;
}

.meta-chip strong {
  color: var(--gold);
  font-weight: 700;
}

.meta-chip-link {
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.meta-chip-link:hover {
  border-color: rgba(255, 204, 0, 0.42);
  background: rgba(255, 204, 0, 0.07);
  color: #f0f4fc;
}

.meta-chip-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Inline link inside body copy */
.link-gold {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(255, 204, 0, 0.35);
  text-underline-offset: 3px;
  transition:
    color 0.18s ease,
    text-decoration-color 0.18s ease;
}

.link-gold:hover {
  color: #ffe680;
  text-decoration-color: currentColor;
}

.link-gold:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-stats li {
  margin-right: 30px;
  padding-right: 30px;
  border-right: 1px solid var(--line);
}

.hero-stats li:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

.hero-stats strong {
  display: block;
  color: #fff;
  font-family: var(--mono);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-stats span {
  color: var(--muted-2);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Launch countdown ------------------------------------------------------- */
.launch-wrap {
  position: relative;
  margin-top: clamp(38px, 5vw, 60px);
}

.launch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px clamp(24px, 4vw, 48px);
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 3vw, 34px);
  border: 1px solid rgba(255, 204, 0, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(100deg, rgba(0, 51, 153, 0.36), rgba(18, 23, 33, 0.92) 62%),
    rgba(15, 20, 29, 0.92);
  box-shadow:
    0 30px 70px -46px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.launch-intro {
  min-width: 0;
}

.launch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.launch-kicker .live-dot {
  width: 6px;
  height: 6px;
}

.launch-intro h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.035em;
}

.launch-date {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.launch-note {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 0.66rem;
  line-height: 1.45;
}

.launch-timer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(6px, 1vw, 12px);
}

.launch-unit {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: clamp(58px, 7.2vw, 78px);
  padding: 11px 8px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(9, 13, 20, 0.55);
}

.launch-unit strong {
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.launch-unit span {
  color: var(--muted-2);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.launch-sep {
  align-self: flex-start;
  padding-top: 12px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  opacity: 0.55;
}

.launch-timer.is-live .launch-unit {
  border-color: rgba(61, 220, 132, 0.32);
  background: rgba(61, 220, 132, 0.06);
}

.launch-timer.is-live .launch-unit strong {
  color: var(--green);
}

/* --------------------------------------------------------------------------
   7. Live status card
   -------------------------------------------------------------------------- */
.status-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 0, 0.2);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(29, 37, 53, 0.97), rgba(20, 26, 38, 0.99));
  box-shadow:
    0 40px 80px -40px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: card-rise 0.7s 0.2s ease both;
}

.status-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 51, 153, 0.4), transparent 70%);
  pointer-events: none;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.console-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.console-dot.is-red {
  background: #ff5d6c;
}

.console-dot.is-gold {
  background: var(--gold);
}

.console-dot.is-green {
  background: #3ddc84;
}

.console-path {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.05em;
}

.status-inner {
  position: relative;
  padding: 22px;
}

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

.status-title {
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.status-badge[data-state="online"] {
  border-color: rgba(61, 220, 132, 0.25);
  color: #9fffc7;
}

.status-badge[data-state="online"] .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.12);
  animation: live-pulse 2.4s ease-out infinite;
}

.status-badge[data-state="offline"] {
  border-color: rgba(255, 93, 108, 0.3);
  color: #ffb3ba;
}

.status-badge[data-state="offline"] .status-dot {
  background: var(--red);
}

.status-badge[data-state="checking"] {
  border-color: rgba(255, 204, 0, 0.3);
  color: var(--gold);
}

.status-badge[data-state="checking"] .status-dot {
  background: var(--gold);
  animation: live-pulse 1.4s ease-out infinite;
}

.status-badge[data-state="error"] {
  border-color: rgba(255, 145, 64, 0.3);
  color: #ffc38f;
}

.status-badge[data-state="error"] .status-dot {
  background: var(--orange);
}

.status-player-display {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.status-players {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(2.6rem, 5vw, 3.35rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.status-slash {
  color: var(--muted-2);
  font-size: 0.62em;
  font-weight: 400;
}

.status-players-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.player-bar {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.player-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500), var(--gold));
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.server-motd {
  min-height: 1.45em;
  margin-bottom: 18px;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 204, 0, 0.5);
  color: var(--muted);
  font-size: 0.81rem;
  font-style: italic;
  line-height: 1.45;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin: 0 0 18px;
}

.status-grid dt {
  margin-bottom: 2px;
  color: var(--muted-2);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #e8edf8;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.status-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.status-note {
  max-width: 265px;
  color: var(--muted-2);
  font-size: 0.67rem;
  line-height: 1.5;
}

.status-refresh {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.status-refresh:hover {
  border-color: rgba(255, 204, 0, 0.3);
  color: var(--gold);
}

.status-refresh:disabled {
  cursor: wait;
  opacity: 0.6;
}

.status-refresh.is-loading svg {
  animation: spin 0.9s linear infinite;
}

/* --------------------------------------------------------------------------
   8. Community hub
   -------------------------------------------------------------------------- */
.community-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.discord-frame {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 442px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #151b26;
  box-shadow: var(--shadow-card);
}

.discord-frame-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #11161f;
}

.discord-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 10px;
  background: rgba(0, 51, 153, 0.5);
  color: #c7d0ff;
}

.discord-mark svg {
  width: 18px;
  height: 18px;
}

.discord-frame-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.35;
}

.discord-frame-title strong,
.discord-frame-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-frame-title strong {
  color: #edf2fc;
  font-size: 0.85rem;
}

.discord-frame-title span {
  color: var(--muted-2);
  font-size: 0.65rem;
}

.discord-frame-bar .badge-soft {
  margin-left: auto;
}

.discord-slot {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px;
  padding: 44px 28px;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 51, 153, 0.2), transparent 65%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 32px);
  text-align: center;
}

.discord-slot h3 {
  color: #fff;
  font-size: 1.2rem;
}

.discord-slot p {
  max-width: 380px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.discord-slot code,
.code-snippet {
  color: #b8c4dc;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.code-snippet {
  max-width: 100%;
  padding: 8px 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d121a;
  white-space: nowrap;
}

.discord-note {
  color: var(--muted-2) !important;
  font-size: 0.66rem !important;
}

.discord-slot--invite {
  gap: 13px;
  border-style: solid;
  border-color: rgba(255, 204, 0, 0.16);
}

.discord-invite-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f7e7a6;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.discord-join {
  margin-top: 5px;
}

.discord-slot--invite .discord-note code {
  color: var(--gold);
}

.widget-pulse {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(255, 204, 0, 0.1);
  animation: live-pulse 2.4s ease-out infinite;
}

.community-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 16px;
}

.mini-panel {
  padding: 22px;
}

.mini-panel h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

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

.tick-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.tick-list li::before {
  content: "";
  position: absolute;
  top: 0.31em;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 204, 0, 0.4);
  border-radius: 3px;
  background: rgba(255, 204, 0, 0.12);
}

.tick-list li::after {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 3.5px;
  width: 6px;
  height: 3px;
  border-bottom: 1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

.metric-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
}

.mini-metric {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
}

.mini-metric:last-child {
  border-right: 0;
}

.mini-metric strong {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 1.28rem;
  line-height: 1.2;
}

.mini-metric span {
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-caption {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. Rules table
   -------------------------------------------------------------------------- */
.rules-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 23, 33, 0.66);
  box-shadow: var(--shadow-card);
}

.rules-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.rules-group-head h3 {
  color: #f0f4fc;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rules-group-head span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rules-table + .rules-group-head {
  border-top: 1px solid var(--line-strong);
}

.rules-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.rules-table th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-align: left;
  text-transform: uppercase;
}

.rules-table th:nth-child(1) {
  width: 22%;
}

.rules-table th:nth-child(2) {
  width: 40%;
}

.rules-table td {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  vertical-align: top;
}

.rules-table tbody tr {
  transition: background 0.2s ease;
}

.rules-table tbody tr:hover {
  background: rgba(255, 204, 0, 0.035);
}

.rules-table tbody tr:first-child td {
  border-top: 0;
}

.rule-title {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #f0f4fc;
  font-size: 0.89rem;
  font-weight: 650;
  line-height: 1.35;
}

.rule-num {
  padding-top: 2px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.64rem;
  opacity: 0.9;
}

.penalty {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 0.69rem;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
}

.penalty.is-warning {
  border-color: rgba(255, 204, 0, 0.25);
  background: rgba(255, 204, 0, 0.08);
  color: #ffe680;
}

.penalty.is-temp {
  border-color: rgba(255, 145, 64, 0.25);
  background: rgba(255, 145, 64, 0.08);
  color: #ffbd80;
}

.penalty.is-perm {
  border-color: rgba(255, 93, 108, 0.25);
  background: rgba(255, 93, 108, 0.08);
  color: #ff9aa4;
}

.rules-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 0.74rem;
}

.rules-foot strong {
  color: #ffb3ba;
}

.rules-foot a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   10. Whitelist application
   -------------------------------------------------------------------------- */
.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 20px;
  align-items: start;
}

.apply-card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px);
}

.apply-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.55), transparent);
}

.form-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-intro h3 {
  color: #fff;
  font-size: 1.3rem;
}

/* Existing-application notice (one editable application per browser) */
.apply-existing {
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 204, 0, 0.22);
  border-left: 2px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 204, 0, 0.045);
}

.apply-existing strong {
  display: block;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.apply-existing p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.apply-existing-id {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.04em;
}

.apply-existing-id code {
  color: var(--gold);
}

.apply-existing[data-status="approved"] {
  border-color: rgba(61, 220, 132, 0.2);
  border-left-color: var(--green);
  background: rgba(61, 220, 132, 0.05);
}

.apply-existing[data-status="denied"] {
  border-color: rgba(255, 128, 128, 0.22);
  border-left-color: #ff8080;
  background: rgba(255, 128, 128, 0.045);
}

.field {
  min-width: 0;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  color: #d9e1f1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input[type="text"],
.field select {
  width: 100%;
  height: 50px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--inset);
  color: #fff;
  font-size: 0.9rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.field input[type="text"]::placeholder {
  color: var(--muted-3);
}

.field input[type="text"]:hover,
.field select:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.field input[type="text"]:focus,
.field select:focus {
  border-color: rgba(255, 204, 0, 0.7);
  outline: none;
  background: #121924;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffcc00' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
  appearance: none;
}

.field select option,
.field select optgroup {
  background: #151b27;
  color: #fff;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: rgba(255, 93, 108, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 93, 108, 0.1);
}

.field-help {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 0.67rem;
  line-height: 1.4;
}

.field-error {
  display: none;
  margin-top: 5px;
  color: #ff9aa4;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
}

.field-error:not(:empty) {
  display: block;
}

/* Form-level + staff-panel alerts (network/server errors) */
.form-alert,
.admin-alert {
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 93, 108, 0.34);
  border-radius: 10px;
  background: rgba(255, 93, 108, 0.08);
  color: #ffb3bb;
  font-size: 0.76rem;
  line-height: 1.5;
}

.form-alert[data-tone="info"],
.admin-alert[data-tone="info"] {
  border-color: rgba(255, 204, 0, 0.3);
  background: rgba(255, 204, 0, 0.07);
  color: var(--gold-bright);
}

.admin-alert {
  margin-top: 12px;
}

/* Platform selector */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.segment {
  position: relative;
  margin: 0 !important;
  cursor: pointer;
}

.segment input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segment-face {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--inset);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.segment-title {
  color: #dfe6f4;
  font-size: 0.84rem;
  font-weight: 650;
}

.segment-sub {
  color: var(--muted-2);
  font-size: 0.66rem;
}

.segment:hover .segment-face {
  border-color: rgba(255, 255, 255, 0.25);
}

.segment input:checked + .segment-face {
  border-color: rgba(255, 204, 0, 0.75);
  background: rgba(255, 204, 0, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.2);
}

.segment input:checked + .segment-face .segment-title {
  color: var(--gold);
}

.segment input:focus-visible + .segment-face {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Consent checkbox */
.field-check {
  margin-bottom: 18px;
}

.checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 0.79rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.5;
  text-transform: none !important;
  cursor: pointer;
}

.checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkbox-box {
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--inset);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.checkbox-box svg {
  width: 12px;
  height: 12px;
  color: #171b24;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.checkbox input:checked + .checkbox-box {
  border-color: var(--gold);
  background: var(--gold);
}

.checkbox input:checked + .checkbox-box svg {
  opacity: 1;
  transform: none;
}

.checkbox input:focus-visible + .checkbox-box {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.checkbox a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 0.66rem;
  line-height: 1.5;
}

.form-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
}

.form-note code {
  color: #c5cfe2;
  font-size: 0.64rem;
}

.form-note-center {
  justify-content: center;
  margin-top: 16px;
  text-align: center;
}

/* Success state */
.success-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(8px, 2vw, 16px);
  animation: pop-in 0.45s ease both;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border: 1px solid rgba(141, 255, 191, 0.7);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #69f7a9, #24b866);
  box-shadow:
    0 0 0 8px rgba(61, 220, 132, 0.08),
    0 18px 40px -12px rgba(61, 220, 132, 0.5);
  color: #062314;
}

.success-icon svg {
  width: 30px;
  height: 30px;
}

.success-kicker {
  margin-bottom: 6px;
  color: var(--green-bright);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.success-panel h3 {
  margin-bottom: 10px;
  color: var(--green-bright);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.success-copy {
  max-width: 560px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.success-copy strong {
  color: #9cffc4;
}

.success-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  width: 100%;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(61, 220, 132, 0.18);
  border-radius: 12px;
  background: rgba(61, 220, 132, 0.055);
}

.success-details dt {
  margin-bottom: 2px;
  color: var(--muted-2);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.success-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #eafff2;
  font-size: 0.82rem;
  font-weight: 600;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.apply-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.step-num {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.07);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.step-list strong {
  display: block;
  color: #edf2fc;
  font-size: 0.82rem;
  font-weight: 650;
}

.step-list span:not(.step-num) {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.71rem;
  line-height: 1.45;
}

.step-list code {
  color: #c7d1e4;
  font-size: 0.67rem;
}

.aside-note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid rgba(255, 204, 0, 0.4);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.015);
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1.55;
}

.aside-note strong {
  color: #dfe7f5;
}

/* --------------------------------------------------------------------------
   11. Event feed
   -------------------------------------------------------------------------- */
.events-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px);
}

.events-empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 204, 0, 0.28);
  border-radius: 12px;
  background: rgba(255, 204, 0, 0.06);
  color: var(--gold);
}

.events-empty-icon svg {
  width: 24px;
  height: 24px;
}

.events-empty-copy {
  flex: 1;
  min-width: 0;
}

.events-empty h3 {
  margin-top: 3px;
  color: #fff;
  font-size: 1.12rem;
}

.events-empty-copy p:not(.card-kicker) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.events-empty .btn {
  flex-shrink: 0;
}

.data-empty {
  display: grid;
  gap: 4px;
  padding: 26px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.014);
  color: var(--muted-2);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
}

.data-empty strong {
  color: #dbe4f4;
  font-size: 0.82rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. School rivalry dashboard
   -------------------------------------------------------------------------- */
.rivalry-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px clamp(24px, 4vw, 48px);
  margin-bottom: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(0, 51, 153, 0.18), rgba(255, 204, 0, 0.045));
}

.rivalry-metric {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-right: clamp(24px, 4vw, 48px);
  border-right: 1px solid var(--line-strong);
}

.rivalry-metric:nth-child(3) {
  border-right: 0;
}

.metric-label {
  color: var(--muted-2);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rivalry-metric strong {
  color: #fff;
  font-family: var(--mono);
  font-size: 1.6rem;
  line-height: 1.15;
}

.metric-sub {
  color: var(--muted);
  font-size: 0.65rem;
}

.snapshot-badge {
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid rgba(255, 204, 0, 0.22);
  border-radius: 5px;
  background: rgba(255, 204, 0, 0.06);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.63rem;
  white-space: nowrap;
}

.rivalry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr);
  gap: 20px;
  align-items: start;
}

.chart-panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-head h3 {
  color: #fff;
  font-size: 1.03rem;
}

.chart {
  display: grid;
  gap: 10px;
}

.chart-row {
  display: grid;
  grid-template-columns: 22px minmax(120px, 1.15fr) minmax(80px, 2fr) 64px;
  gap: 10px;
  align-items: center;
  padding: 3px 0;
}

.chart-rank {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.chart-rank.is-first {
  border-color: var(--gold);
  background: var(--gold);
  color: #1a1f2c;
  font-weight: 800;
}

.chart-rank.is-second {
  border-color: rgba(203, 213, 225, 0.6);
  background: #cbd5e1;
  color: #1a1f2c;
  font-weight: 800;
}

.chart-rank.is-third {
  border-color: rgba(208, 138, 75, 0.7);
  background: #d08a4b;
  color: #1a1f2c;
  font-weight: 800;
}

.chart-label {
  overflow: hidden;
  color: #d6dfef;
  font-size: 0.77rem;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-track {
  position: relative;
  height: 14px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
}

.chart-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #003399, #2f6bff);
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chart-row:nth-child(1) .chart-bar {
  background: linear-gradient(90deg, #b98f00, #ffcc00);
  box-shadow: 0 0 18px rgba(255, 204, 0, 0.25);
}

.chart-row:nth-child(2) .chart-bar {
  background: linear-gradient(90deg, #7c8ba1, #dbe3f0);
}

.chart-row:nth-child(3) .chart-bar {
  background: linear-gradient(90deg, #8c552b, #d08a4b);
}

.chart-row.is-visible .chart-bar {
  width: var(--bar);
}

.chart-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.chart-value strong {
  color: #fff;
  font-family: var(--mono);
  font-size: 0.77rem;
}

.chart-value span {
  color: var(--muted-2);
  font-size: 0.59rem;
}

.chart-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.67rem;
}

.chart-foot strong {
  color: var(--gold);
}

.legend {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, #003399, #2f6bff);
}

.rivalry-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.matchup-panel,
.platform-panel,
.risers-panel {
  padding: 20px;
}

.matchup-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.matchup-score > div {
  display: flex;
  min-width: 0;
  max-width: 46%;
  flex-direction: column;
  gap: 2px;
}

.matchup-score span {
  color: var(--muted-2);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.matchup-score strong {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 1.75rem;
  line-height: 1;
}

.matchup-score .is-away {
  text-align: right;
}

.matchup-score .is-away strong {
  color: var(--blue-300);
}

.matchup-vs {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.58rem !important;
}

.dual-bar {
  display: flex;
  gap: 3px;
  height: 8px;
  margin-bottom: 12px;
}

.dual-bar span {
  display: block;
  border-radius: 2px;
}

.dual-bar-blue {
  flex: 0 0 var(--split);
  background: linear-gradient(90deg, #003399, #2f6bff);
}

.dual-bar-gold {
  flex: 0 0 var(--split);
  background: linear-gradient(90deg, #ffe680, #ffcc00);
}

.matchup-note {
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1.5;
}

.platform-body {
  display: flex;
  align-items: center;
  gap: 22px;
}

.donut {
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0 58%, var(--blue-500) 58% 100%);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.donut::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #171d29;
}

/* Unavailable split: a neutral ring instead of implying a ratio. */
.donut.is-empty {
  background: conic-gradient(
    rgba(255, 255, 255, 0.1) 0 25%,
    rgba(255, 255, 255, 0.04) 25% 50%,
    rgba(255, 255, 255, 0.1) 50% 75%,
    rgba(255, 255, 255, 0.04) 75% 100%
  );
  filter: none;
}

.donut.is-empty .donut-center strong {
  color: var(--muted-2);
}

.donut-center {
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: center;
}

.donut-center strong {
  color: #fff;
  font-family: var(--mono);
  font-size: 1.2rem;
}

.donut-center span {
  color: var(--muted-2);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legend-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.71rem;
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-list strong {
  margin-left: auto;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.69rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-gold {
  background: var(--gold);
}

.dot-blue {
  background: var(--blue-500);
}

.riser-list {
  display: grid;
}

.riser-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.77rem;
}

.riser-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.riser-list li.riser-empty {
  display: block;
  padding: 14px 0 2px;
  border-bottom: 0;
  color: var(--muted-2);
  font-size: 0.73rem;
  line-height: 1.55;
}

.riser-rank {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.riser-school {
  color: #dbe4f4;
}

.riser-gain {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid rgba(61, 220, 132, 0.18);
  border-radius: 999px;
  background: rgba(61, 220, 132, 0.08);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 0.68rem;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 32px;
  padding: 56px 0 28px;
  border-top: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(10, 14, 21, 0.5), rgba(10, 14, 21, 0.92));
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  max-width: 430px;
  margin: 14px 0 18px;
  color: var(--muted-2);
  font-size: 0.79rem;
  line-height: 1.6;
}

.footer-connect {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  justify-self: end;
  min-width: 320px;
}

.footer-nav h3 {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  gap: 8px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.77rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding-top: 22px;
  color: var(--muted-2);
  font-size: 0.64rem;
  line-height: 1.5;
}

.footer-bottom p {
  max-width: 660px;
}

.footer-fineprint {
  color: var(--muted-3);
}

.back-top {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.69rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.back-top:hover {
  color: var(--gold);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: 11px;
  background: rgba(20, 26, 38, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  color: var(--gold);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.to-top svg {
  width: 18px;
  height: 18px;
}

.to-top:hover {
  background: var(--gold);
  color: #151a23;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   14. Motion
   -------------------------------------------------------------------------- */
@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.28);
  }
  55% {
    box-shadow: 0 0 0 5px rgba(61, 220, 132, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.985) translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-eyebrow {
  animation: fade-up 0.55s 0.04s ease both;
}

.hero-title {
  animation: fade-up 0.7s 0.1s ease both;
}

.hero-lede {
  animation: fade-up 0.7s 0.17s ease both;
}

.connect-panel {
  animation: fade-up 0.7s 0.24s ease both;
}

.hero-actions {
  animation: fade-up 0.7s 0.31s ease both;
}

.hero-stats {
  animation: fade-up 0.7s 0.38s ease both;
}

/* Scroll reveal: only active when JavaScript adds .js to <html> */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.chart-row:nth-child(2) .chart-bar {
  transition-delay: 0.06s;
}

.chart-row:nth-child(3) .chart-bar {
  transition-delay: 0.12s;
}

.chart-row:nth-child(4) .chart-bar {
  transition-delay: 0.18s;
}

.chart-row:nth-child(5) .chart-bar {
  transition-delay: 0.24s;
}

.chart-row:nth-child(6) .chart-bar {
  transition-delay: 0.3s;
}

.chart-row:nth-child(7) .chart-bar {
  transition-delay: 0.36s;
}

.chart-row:nth-child(8) .chart-bar {
  transition-delay: 0.42s;
}

.chart-row:nth-child(9) .chart-bar {
  transition-delay: 0.48s;
}

.chart-row:nth-child(10) .chart-bar {
  transition-delay: 0.54s;
}

@supports not (background-clip: text) {
  .hero-title-gold {
    color: var(--gold);
    -webkit-text-fill-color: currentColor;
  }
}

/* --------------------------------------------------------------------------
   15. Responsive — tablet and below
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .header-inner {
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 60;
    width: min(350px, calc(100vw - 32px));
    margin-left: 0;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #151b27;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.6);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
    pointer-events: none;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .primary-nav a {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .primary-nav a.is-active::after {
    display: none;
  }

  .nav-apply {
    display: block;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }

  .nav-apply a {
    color: var(--gold);
  }

  .header-cta {
    margin-left: 0;
  }
}

@media (max-width: 960px) {
  .hero {
    padding-top: 48px;
  }

  .hero::before {
    top: -6rem;
    right: -8rem;
    font-size: 30rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .status-card {
    width: 100%;
    max-width: 620px;
  }

  .community-grid,
  .apply-grid,
  .rivalry-grid {
    grid-template-columns: 1fr;
  }

  .community-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .community-caption {
    grid-column: 1 / -1;
  }

  .apply-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .apply-aside .aside-note {
    grid-column: 1 / -1;
  }

  .rivalry-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .matchup-panel {
    grid-column: 1 / -1;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-nav {
    justify-self: start;
  }
}

/* Rules become stacked cards on smaller screens */
@media (max-width: 980px) {
  .rules-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .rules-group-head {
    padding: 0 2px 10px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }

  .rules-group-head h3 {
    font-size: 0.86rem;
  }

  .rules-table + .rules-group-head {
    margin-top: 28px;
  }

  .rules-table {
    display: block;
    min-width: 0;
  }

  .rules-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .rules-table tbody {
    display: grid;
    gap: 12px;
  }

  .rules-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(30, 38, 54, 0.72), rgba(21, 27, 40, 0.8));
  }

  .rules-table td {
    display: block;
    padding: 8px 0;
    border: 0;
    font-size: 0.79rem;
  }

  .rules-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted-2);
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .rules-table td:first-child,
  .rules-table td:nth-child(2) {
    grid-column: 1 / -1;
  }

  .rules-table td:first-child {
    padding-top: 0;
  }

  .rules-table td:first-child::before {
    display: none;
  }

  .rules-table td:nth-child(2) {
    padding-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .rules-table td:nth-child(3),
  .rules-table td:nth-child(4) {
    padding-top: 12px;
  }
}

@media (max-width: 780px) {
  .launch-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .launch-timer {
    width: 100%;
    justify-content: flex-start;
  }

  .rivalry-topline {
    gap: 20px 28px;
  }

  .rivalry-metric {
    padding-right: 28px;
  }

  .snapshot-badge {
    margin-left: 0;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* --------------------------------------------------------------------------
   16. Responsive — phone
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  html {
    scroll-padding-top: 86px;
  }

  .header-inner {
    height: 68px;
    gap: 12px;
  }

  .brand {
    font-size: 1.15rem;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.74rem;
  }

  .hero {
    padding: 38px 0 52px;
  }

  .hero::before {
    display: none;
  }

  .hero-title {
    margin: 18px 0;
    font-size: clamp(3.9rem, 20vw, 5.4rem);
  }

  .hero-lede {
    font-size: 0.96rem;
  }

  .connect-panel {
    margin-top: 24px;
    padding: 14px;
  }

  .ip-chip {
    padding: 0 11px;
  }

  .copy-btn {
    padding: 0 13px;
    font-size: 0.8rem;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-stats {
    margin-top: 26px;
  }

  .hero-stats li {
    flex: 1;
    min-width: 82px;
    margin-right: 14px;
    padding-right: 14px;
  }

  .hero-stats strong {
    font-size: 1.12rem;
  }

  .hero-stats span {
    font-size: 0.56rem;
    letter-spacing: 0.06em;
  }

  .status-inner {
    padding: 18px;
  }

  .status-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-note {
    max-width: none;
  }

  .community-side,
  .apply-aside,
  .rivalry-side {
    display: flex;
    flex-direction: column;
  }

  .mini-panel {
    padding: 18px;
  }

  .discord-frame {
    min-height: 390px;
  }

  .discord-slot {
    padding: 32px 18px;
  }

  .form-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .success-details {
    grid-template-columns: 1fr;
  }

  .events-empty {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .events-empty .btn {
    width: 100%;
  }

  .chart-panel {
    padding: 18px;
  }

  .chart-row {
    grid-template-columns: 20px minmax(88px, 1.2fr) minmax(50px, 1fr) 48px;
    gap: 7px;
  }

  .chart-label {
    font-size: 0.71rem;
  }

  .chart-value span {
    display: none;
  }

  .chart-value strong {
    font-size: 0.72rem;
  }

  .rivalry-topline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 18px;
  }

  .rivalry-metric {
    padding-right: 0;
    border-right: 0;
  }

  .rivalry-metric strong {
    font-size: 1.35rem;
  }

  .snapshot-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .platform-body {
    gap: 18px;
  }

  .footer-top {
    padding-bottom: 28px;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-width: 0;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .back-top {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .launch-bar {
    padding: 18px;
  }

  .launch-timer {
    gap: 5px;
  }

  .launch-unit {
    flex: 1;
    min-width: 0;
    padding: 10px 4px 8px;
  }

  .launch-unit strong {
    font-size: 1.35rem;
  }

  .launch-sep {
    padding-top: 11px;
    font-size: 1.1rem;
  }

  .header-cta {
    display: none;
  }

  .hero-title {
    font-size: clamp(3.5rem, 19vw, 4.6rem);
  }

  .hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.09em;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .ip-row {
    flex-direction: column;
  }

  .ip-chip,
  .copy-btn {
    width: 100%;
    min-height: 46px;
  }

  .copy-badge {
    top: auto;
    right: 0;
    bottom: calc(100% + 8px);
  }

  .status-players {
    font-size: 2.7rem;
  }

  .field input[type="text"],
  .field select {
    height: 48px;
  }

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

  .segment-face {
    min-height: 54px;
    padding: 10px 12px;
  }

  .success-actions .btn {
    width: 100%;
  }

  .chart-row {
    grid-template-columns: 18px minmax(74px, 1.2fr) minmax(38px, 1fr) 40px;
    gap: 6px;
  }

  .chart-rank {
    width: 18px;
    height: 18px;
    font-size: 0.54rem;
  }

  .chart-label {
    font-size: 0.66rem;
  }

  .chart-track {
    height: 11px;
  }

  .platform-body {
    align-items: flex-start;
  }

  .donut {
    width: 104px;
  }

  .footer-nav {
    gap: 20px;
  }
}

@media (max-width: 380px) {
  .launch-sep {
    display: none;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .hero-title {
    font-size: 3.45rem;
  }

  .hero-stats li {
    min-width: 74px;
  }

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

  .platform-body {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   17. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .chart-row .chart-bar {
    width: var(--bar);
  }
}

/* --------------------------------------------------------------------------
   18. Staff admin dialog
   -------------------------------------------------------------------------- */
.brand-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.brand-button:hover {
  opacity: 0.82;
}

.admin-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: min(88vh, 860px);
  max-height: min(88dvh, 860px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  background: linear-gradient(180deg, #161c28, #10151e 82%);
  color: var(--text);
  box-shadow: 0 44px 110px -40px rgba(0, 0, 0, 0.95);
}

.admin-dialog--gate {
  width: min(460px, calc(100vw - 32px));
}

.admin-dialog::backdrop {
  background: rgba(5, 8, 13, 0.78);
  backdrop-filter: blur(5px);
}

.admin-dialog[open] {
  animation: admin-dialog-in 0.22s ease-out;
}

@keyframes admin-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

.admin-shell {
  max-height: inherit;
  padding: clamp(20px, 4vw, 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-kicker {
  margin-bottom: 5px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-head h2 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.admin-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.admin-close:hover {
  border-color: rgba(255, 204, 0, 0.5);
  background: rgba(255, 204, 0, 0.05);
  color: #fff;
}

.admin-close svg {
  width: 17px;
  height: 17px;
}

.admin-lede {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.admin-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.admin-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--inset);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.admin-input:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.admin-input:focus {
  border-color: rgba(255, 204, 0, 0.7);
  outline: none;
  background: #121924;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.admin-input[aria-invalid="true"] {
  border-color: rgba(255, 93, 108, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 93, 108, 0.1);
}

.admin-gate .btn {
  margin-top: 14px;
}

.admin-note {
  margin-top: 14px;
  color: var(--muted-3);
  font-size: 0.66rem;
  line-height: 1.55;
}

.admin-note strong {
  color: var(--muted-2);
  font-weight: 650;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 18px;
}

.admin-summary h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.admin-summary p {
  margin-top: 4px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.admin-summary strong {
  color: var(--gold);
  font-size: 0.92rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-actions .btn {
  min-height: 34px;
  padding: 0 0.78rem;
  border-radius: 9px;
  font-size: 0.7rem;
}

.admin-actions .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.admin-actions .admin-danger {
  color: #ffb0b8;
}

.admin-actions .admin-danger:hover {
  border-color: rgba(255, 93, 108, 0.55);
  background: rgba(255, 93, 108, 0.06);
  color: #ffd0d5;
}

.admin-empty {
  margin-top: 18px;
  padding: 32px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
}

.admin-empty p:first-child {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
}

.admin-empty p + p {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 0.74rem;
}

.admin-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.012);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.admin-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: rgba(255, 204, 0, 0.025);
}

.admin-table tbody tr[data-status="approved"] {
  background: linear-gradient(90deg, rgba(61, 220, 132, 0.05), transparent 62%);
}

.admin-table tbody tr[data-status="denied"] .admin-player {
  color: var(--muted-2);
}

.admin-player {
  color: #fff;
  font-weight: 700;
}

.admin-id {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.67rem;
  white-space: nowrap;
}

.admin-edited {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 0.63rem;
  letter-spacing: 0.03em;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(47, 107, 255, 0.32);
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.1);
  color: var(--blue-300);
  font-size: 0.66rem;
  font-weight: 650;
  white-space: nowrap;
}

.admin-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-bright);
  font-size: 0.7rem;
  font-weight: 650;
  white-space: nowrap;
}

.admin-flag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.admin-flag.is-missing {
  color: #ff9aa4;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.admin-status.is-pending {
  border-color: rgba(255, 204, 0, 0.3);
  background: rgba(255, 204, 0, 0.08);
  color: var(--gold);
}

.admin-status.is-approved {
  border-color: rgba(61, 220, 132, 0.28);
  background: rgba(61, 220, 132, 0.08);
  color: var(--green-bright);
}

.admin-status.is-denied {
  border-color: rgba(255, 93, 108, 0.25);
  background: rgba(255, 93, 108, 0.07);
  color: #ff9aa4;
}

.admin-review {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-review-btn {
  appearance: none;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.admin-review-btn.is-approve {
  border-color: rgba(61, 220, 132, 0.4);
  background: rgba(61, 220, 132, 0.08);
  color: #9ff0c0;
}

.admin-review-btn.is-approve:hover {
  background: rgba(61, 220, 132, 0.16);
}

.admin-review-btn.is-deny {
  border-color: rgba(255, 93, 108, 0.35);
  color: #ffb0b8;
}

.admin-review-btn.is-deny:hover {
  background: rgba(255, 93, 108, 0.1);
}

.admin-review-btn.is-revoke {
  color: var(--muted-2);
}

.admin-review-btn:hover {
  color: #fff;
}

.admin-review-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.admin-player {
  display: block;
}

.admin-player + .admin-id {
  display: block;
  margin-top: 2px;
  color: var(--muted-3);
  font-size: 0.61rem;
}

.admin-table time {
  color: var(--muted);
  font-size: 0.73rem;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }

  .admin-table tbody tr:last-child {
    border-bottom: 0;
  }

  .admin-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 5px 0;
    border: 0;
    text-align: right;
  }

  .admin-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted-3);
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .admin-id {
    white-space: normal;
    word-break: break-all;
  }

  .admin-table time {
    white-space: normal;
  }

  .admin-edited {
    flex-basis: 100%;
    margin-top: 1px;
    text-align: right;
  }
}

@media (max-width: 520px) {
  .admin-dialog,
  .admin-dialog--gate {
    width: calc(100vw - 20px);
    border-radius: 16px;
  }

  .admin-shell {
    padding: 18px 16px 22px;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions .btn {
    flex: 1 1 auto;
  }
}

/* --------------------------------------------------------------------------
   19. World screenshot strips
   -------------------------------------------------------------------------- */
.world-strip {
  position: relative;
  margin: clamp(34px, 4.6vw, 54px) 0 0;
}

/* Faint slate/blue wash beneath the band so the photos sit in the page
   instead of on top of it. */
.world-strip::before {
  content: "";
  position: absolute;
  inset: -8% -3% 14%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(58% 72% at 28% 46%, rgba(0, 51, 153, 0.18), transparent 72%),
    radial-gradient(52% 64% at 76% 54%, rgba(255, 204, 0, 0.06), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.world-shots {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.world-shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-deep);
  isolation: isolate;
  /* Feather every edge so the frame dissolves into the slate background. */
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%),
    linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%),
    linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}

/* Slate tint + vignette pulls the screenshot into the surrounding theme. */
.world-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(18, 22, 31, 0.04) 0%, rgba(18, 22, 31, 0.42) 100%),
    linear-gradient(100deg, rgba(0, 51, 153, 0.1), transparent 58%);
  box-shadow: inset 0 0 48px 4px rgba(13, 17, 24, 0.45);
  pointer-events: none;
}

.world-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.9) contrast(1.02);
  opacity: 0.95;
}

.world-strip figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  color: var(--muted-3);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.world-strip figcaption::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 204, 0, 0.6), transparent);
}

@media (max-width: 900px) {
  .world-shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .world-shots:not(.world-shots--two) .world-shot:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .world-shots,
  .world-shots--two {
    grid-template-columns: 1fr;
  }

  .world-shots .world-shot:first-child {
    grid-column: auto;
  }
}
