:root {
  --bg:       #0d0909;
  --bg-2:     #130b0b;
  --surface:  #1a0f0f;
  --surface-2:#211313;
  --line:     #2c1818;
  --line-2:   #3a2020;

  --text:      #f2eaea;
  --text-dim:  #b8a4a4;
  --text-faint:#7a6060;

  --crimson:        #dc2626;
  --crimson-bright: #f43f3f;
  --crimson-dim:    #991b1b;
  --crimson-fill:   rgba(220,38,38,.07);
  --crimson-fill-h: rgba(220,38,38,.15);

  --ember:       #f97316;
  --ember-fill:  rgba(249,115,22,.07);
  --ember-fill-h:rgba(249,115,22,.15);

  --gold:        #f59e0b;
  --gold-fill:   rgba(245,158,11,.07);
  --gold-fill-h: rgba(245,158,11,.15);
  --gold-pale:   #fde68a;

  --green:  #4ade80;
  --blue:   #60a5fa;
  --purple: #a78bfa;
  --discord:#5865f2;

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body:    'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --pixel:   'Press Start 2P', monospace;

  --radius:    10px;
  --radius-sm: 6px;
  --radius-xs: 4px;
  --transition: 0.15s;
}

[data-theme="light"] {
  --bg:       #ede8e4;
  --bg-2:     #e3ddd8;
  --surface:  #faf7f5;
  --surface-2:#f2ede9;
  --line:     #cfc5bc;
  --line-2:   #bcb0a6;

  --text:      #180808;
  --text-dim:  #3d2020;
  --text-faint:#7a5a5a;

  --crimson-fill:   rgba(220,38,38,.1);
  --crimson-fill-h: rgba(220,38,38,.2);
  --ember-fill:     rgba(249,115,22,.1);
  --ember-fill-h:   rgba(249,115,22,.2);
  --gold-fill:      rgba(245,158,11,.1);
  --gold-fill-h:    rgba(245,158,11,.2);
}

[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse at 15% 0%,  rgba(220,38,38,.13), transparent 48%),
    radial-gradient(ellipse at 88% 8%,  rgba(249,115,22,.09), transparent 40%),
    radial-gradient(ellipse at 50% 100%,rgba(180,20,20,.07),  transparent 55%);
}
[data-theme="light"] #topbar { background: rgba(237,232,228,.93); box-shadow: 0 1px 0 var(--line); }
[data-theme="light"] .role-row,
[data-theme="light"] .panel,
[data-theme="light"] .step { box-shadow: 0 2px 16px rgba(80,30,30,.1); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 18% -8%,  rgba(220,38,38,.13), transparent 52%),
    radial-gradient(ellipse at 86% 6%,   rgba(249,115,22,.07), transparent 44%),
    radial-gradient(ellipse at 50% 110%, rgba(180,20,20,.05),  transparent 50%);
}
main, header, footer, nav, section, aside { position: relative; z-index: 1; }
a { color: var(--crimson-bright); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ── Animations ─────────────────────────────────────────────────────── */
/* One system, everywhere: elements start hidden via [data-fade];
   animations.js toggles .is-visible with IntersectionObserver (class-only
   mutation — no inline styles, so the CSP stays free of 'unsafe-inline').
   Same duration/easing/distance on every element so the whole page moves
   as one thing instead of several mismatched animations. */
[data-fade] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1);
}
[data-fade="left"]  { transform: translateX(-20px); }
[data-fade="right"] { transform: translateX(20px); }
[data-fade].is-visible { opacity: 1; transform: none; }

.hero-text > [data-fade]:nth-child(1) { transition-delay: .05s; }
.hero-text > [data-fade]:nth-child(2) { transition-delay: .1s; }
.hero-text > [data-fade]:nth-child(3) { transition-delay: .15s; }
.hero-text > [data-fade]:nth-child(4) { transition-delay: .2s; }
.hero-img    { transition-delay: .15s; }

.role-list > [data-fade]:nth-child(1) { transition-delay: 0s; }
.role-list > [data-fade]:nth-child(2) { transition-delay: .05s; }
.role-list > [data-fade]:nth-child(3) { transition-delay: .1s; }
.role-list > [data-fade]:nth-child(4) { transition-delay: .15s; }
.process-steps > [data-fade]:nth-child(1) { transition-delay: 0s; }
.process-steps > [data-fade]:nth-child(2) { transition-delay: .05s; }
.process-steps > [data-fade]:nth-child(3) { transition-delay: .1s; }
.process-steps > [data-fade]:nth-child(4) { transition-delay: .15s; }
.req-grid > [data-fade]:nth-child(1) { transition-delay: 0s; }
.req-grid > [data-fade]:nth-child(2) { transition-delay: .04s; }
.req-grid > [data-fade]:nth-child(3) { transition-delay: .08s; }
.req-grid > [data-fade]:nth-child(4) { transition-delay: .12s; }
.req-grid > [data-fade]:nth-child(5) { transition-delay: .16s; }
.req-grid > [data-fade]:nth-child(6) { transition-delay: .2s; }
.req-grid > [data-fade]:nth-child(7) { transition-delay: .24s; }
.req-grid > [data-fade]:nth-child(8) { transition-delay: .28s; }
.req-grid > [data-fade]:nth-child(9) { transition-delay: .32s; }
.apply-form > [data-fade]:nth-child(1) { transition-delay: 0s; }
.apply-form > [data-fade]:nth-child(2) { transition-delay: .05s; }
.apply-form > [data-fade]:nth-child(3) { transition-delay: .1s; }
.apply-form > [data-fade]:nth-child(4) { transition-delay: .15s; }
.apply-form > [data-fade]:nth-child(5) { transition-delay: .2s; }
.apply-form > [data-fade]:nth-child(6) { transition-delay: .25s; }
.apply-form > [data-fade]:nth-child(7) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  [data-fade] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Topbar ─────────────────────────────────────────────────────────── */
#topbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(13,9,9,.80);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  transition: background-color .3s, border-color .3s;
}
.topbar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-logo { width: 34px; height: 34px; border-radius: var(--radius-sm); image-rendering: pixelated; border: 1px solid var(--line-2); transition: transform .4s cubic-bezier(.34,1.56,.64,1), filter .3s; }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.14); filter: drop-shadow(0 0 8px rgba(220,38,38,.7)); }
.brand-name { font-family: var(--pixel); font-size: 9px; letter-spacing: .5px; color: var(--text); line-height: 1; transition: color .2s; }
.brand:hover .brand-name { color: var(--crimson-bright); }
.brand-tag  { font-size: 11px; color: var(--text-faint); margin-top: 3px; }
#subnav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.nav-link { font-family: var(--body); font-size: 14px; font-weight: 500; padding: 8px 13px; color: var(--text-dim); border: 1px solid transparent; border-radius: var(--radius-sm); transition: all var(--transition); white-space: nowrap; }
.nav-link:hover { color: var(--text); background: var(--surface); border-color: var(--line); }
.topbar-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--body); font-size: 13px; font-weight: 600; padding: 9px 15px; border: 1.5px solid; border-radius: var(--radius-sm); cursor: pointer; transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform .08s; white-space: nowrap; text-decoration: none; background: transparent; line-height: 1; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: var(--radius); }
.btn-crimson { border-color: var(--crimson); background: var(--crimson-fill); color: var(--crimson-bright); }
.btn-crimson:hover { background: var(--crimson-fill-h); border-color: var(--crimson-bright); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--line-2); color: var(--text); background: var(--surface); }
.btn-discord { border-color: var(--discord); background: rgba(88,101,242,.08); color: #a5b4fc; }
.btn-discord:hover { background: rgba(88,101,242,.18); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn[disabled]:hover { background: inherit; border-color: inherit; }

#theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; color: var(--text-faint); transition: color var(--transition), border-color var(--transition), background var(--transition); flex-shrink: 0; }
#theme-toggle:hover { color: var(--text); border-color: var(--line-2); }

#nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; padding: 6px; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); flex-shrink: 0; }
#nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text-dim); border-radius: 2px; transition: transform .2s, opacity .2s, background .2s; }
#nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Layout ─────────────────────────────────────────────────────────── */
main { max-width: 1100px; margin: 0 auto; padding: 56px 28px 60px; }
main > *:last-child { margin-bottom: 0; }

/* ── Status banner (applications not open yet) ─────────────────────── */
.apply-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--gold-pale);
  background: var(--gold-fill); border: 1px solid rgba(245,158,11,.3);
  padding: 7px 14px; border-radius: 999px; margin-top: 16px;
}
.apply-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.apply-status a { color: inherit; text-decoration: underline; }
.apply-status a:hover { color: var(--gold); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; margin-bottom: 40px; }
.hero-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--crimson-bright); margin-bottom: 16px; font-weight: 500; }
.hero h1 { font-family: var(--display); font-size: 54px; font-weight: 800; line-height: 1.05; letter-spacing: -2px; margin-bottom: 18px; background: linear-gradient(135deg, var(--text) 25%, var(--crimson-bright) 60%, var(--ember)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 17px; color: var(--text-dim); max-width: 56ch; margin-bottom: 26px; line-height: 1.7; }
.hero-desc .accent { color: var(--crimson-bright); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-img { width: 156px; height: 156px; border-radius: var(--radius); border: 1px solid var(--line-2); image-rendering: pixelated; box-shadow: 0 0 0 1px rgba(220,38,38,.18), 0 14px 44px rgba(220,38,38,.16), 0 4px 14px rgba(0,0,0,.5); flex-shrink: 0; transition: filter .4s; }
.hero-img:hover { filter: drop-shadow(0 0 28px rgba(220,38,38,.6)); }

.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--text-faint); transition: all .2s; flex-shrink: 0; }
.status-pill.online  { border-color: rgba(74,222,128,.5); color: var(--green); background: rgba(74,222,128,.06); }
.status-pill.offline { border-color: rgba(220,38,38,.5);  color: #f87171;      background: rgba(220,38,38,.06); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status-pill.online .status-dot { animation: ping 1.8s ease-in-out infinite; }
@keyframes ping {
  0%,100% { box-shadow: 0 0 6px var(--green), 0 0 0 0 rgba(74,222,128,.5); }
  50%      { box-shadow: 0 0 12px var(--green), 0 0 0 6px rgba(74,222,128,0); }
}

/* ── Section head ───────────────────────────────────────────────────── */
.section-head { margin-bottom: 26px; }
.section-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--crimson-bright); margin-bottom: 8px; font-weight: 500; }
.section-title { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; margin-bottom: 10px; }
.section-sub { color: var(--text-dim); max-width: 64ch; font-size: 15px; }

/* ── Role list ──────────────────────────────────────────────────────── */
.role-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 56px; }
.role-row { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.role-row:last-child { border-bottom: none; }
.role-row:hover { background: var(--crimson-fill); }
.role-row.closed { opacity: .62; }
.role-row.closed:hover { background: var(--bg-2); }
.role-row-main { flex: 1; min-width: 0; }
.role-row-main h3 { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.2px; margin-bottom: 4px; }
.role-row-main p { font-size: 13px; color: var(--text-dim); line-height: 1.55; max-width: 72ch; }
.role-row-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.role-req { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); white-space: nowrap; }
.role-badge { flex-shrink: 0; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1.1px; font-weight: 600; padding: 4px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.role-badge.open   { color: var(--green); border-color: rgba(74,222,128,.4); background: rgba(74,222,128,.08); }
.role-badge.closed { color: var(--text-faint); border-color: var(--line-2); background: var(--surface-2); }
.role-notify { font-family: var(--body); font-size: 12.5px; font-weight: 600; color: var(--crimson-bright); border: 1px solid var(--crimson); background: var(--crimson-fill); padding: 7px 13px; border-radius: var(--radius-sm); white-space: nowrap; transition: background-color .15s, border-color .15s; }
.role-notify:hover { background: var(--crimson-fill-h); border-color: var(--crimson-bright); }

/* ── Process steps ──────────────────────────────────────────────────── */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 56px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-num { font-family: var(--mono); font-size: 11px; color: var(--crimson-bright); font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.step h4 { font-family: var(--display); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ── Requirements panel ─────────────────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 56px; }
.panel-head { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px 24px; }
.req-item {
  display: flex; align-items: flex-start; gap: 13px;
  background: var(--bg-2); border: 1px solid transparent; border-radius: var(--radius);
  padding: 16px 18px; box-shadow: 0 1px 0 rgba(0,0,0,.15);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.req-item:hover { background: var(--surface-2); border-color: var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.18); transform: translateY(-2px); }
.req-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: var(--crimson-bright); }
.req-icon svg { width: 100%; height: 100%; display: block; }
.req-item strong { display: block; font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 3px; }
.req-item p { font-size: 12.5px; color: var(--text-dim); line-height: 1.55; }
.panel-body { padding: 20px 24px; }

/* ── Application page ──────────────────────────────────────────────── */
.apply-main { max-width: 640px; }

.apply-hero { margin-bottom: 28px; }
.apply-hero-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--crimson-bright); margin-bottom: 12px; font-weight: 500; }
.apply-hero-title { font-family: var(--display); font-size: 36px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 12px; }
.apply-hero-title span { color: var(--crimson-bright); }
.apply-hero-sub { font-size: 15px; color: var(--text-dim); max-width: 56ch; line-height: 1.65; }

.apply-error {
  background: var(--crimson-fill); border: 1px solid var(--crimson); color: var(--crimson-bright);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13.5px; margin-bottom: 20px;
}

/* .gate-card / .who-chip / .apply-form set display:flex, which as an author rule
   beats the UA stylesheet's [hidden]{display:none} at equal specificity — without
   this, toggling the `hidden` property from apply.js wouldn't actually hide them. */
.gate-card[hidden], .who-chip[hidden], .apply-form[hidden], .mc-check[hidden], .form-section[hidden], .field[hidden] { display: none; }

/* Gate card — shared shape for sign-in / closed / success states */
.gate-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; margin-bottom: 20px;
}
.gate-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--crimson-fill); border: 1px solid rgba(220,38,38,.3); color: var(--crimson-bright);
}
.gate-icon svg { width: 22px; height: 22px; }
.gate-icon.closed { background: var(--surface-2); border-color: var(--line-2); color: var(--text-faint); }
.gate-icon.ok { background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.35); color: var(--green); }
.gate-icon-discord { background: rgba(88,101,242,.1); border-color: rgba(88,101,242,.35); color: var(--discord); }
.gate-text h3 { font-family: var(--display); font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.gate-text p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; max-width: 48ch; }
.apply-success .gate-text p { margin-bottom: 4px; }

.who-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 8px 8px 8px; margin-bottom: 20px; font-size: 13px; color: var(--text-dim);
}
.who-chip img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.who-chip strong { color: var(--text); }
.who-signout { margin-left: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; color: var(--text-faint); font-size: 11.5px; padding: 5px 12px; cursor: pointer; transition: color .15s, border-color .15s; }
.who-signout:hover { color: var(--crimson-bright); border-color: var(--crimson); }

.apply-form { display: flex; flex-direction: column; gap: 20px; }
.form-section {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px;
}
.form-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.form-section-num { font-family: var(--mono); font-size: 12px; color: var(--crimson-bright); font-weight: 700; letter-spacing: .5px; }
.form-section-label {
  font-family: var(--display); font-size: 15.5px; font-weight: 700; letter-spacing: -.2px;
  color: var(--text);
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-family: var(--body); font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.45; }
.field-label em { color: var(--text-faint); font-style: normal; font-weight: 500; }
.field input[type="text"], .field textarea {
  font-family: var(--body); font-size: 14px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px; resize: vertical; line-height: 1.5;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 90px; }
.field input[type="text"]::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input[type="text"]:focus, .field textarea:focus { outline: none; border-color: var(--crimson); background: var(--bg); box-shadow: 0 0 0 3px var(--crimson-fill); }
.field-count { align-self: flex-end; font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); }
.field-count.near-limit { color: var(--gold); }

.mc-input-row { display: flex; align-items: center; gap: 10px; }
.mc-input-row input { flex: 1; min-width: 0; }
.mc-check { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.mc-check img { width: 26px; height: 26px; border-radius: 4px; image-rendering: pixelated; flex-shrink: 0; }
.mc-check.ok { color: var(--green); }
.mc-check.bad { color: #f87171; }
.mc-check.pending { color: var(--text-faint); }

.field-check {
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 13px; color: var(--text-dim); line-height: 1.55; cursor: pointer;
  transition: border-color .18s, background-color .18s;
}
.field-check:has(input:checked) { border-color: var(--crimson); background: var(--crimson-fill); }
.field-check input { margin-top: 2px; flex-shrink: 0; accent-color: var(--crimson); width: 16px; height: 16px; }
.field-check a { color: var(--crimson-bright); }

/* ── Footer ─────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 28px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-faint); }
.footer-brand { font-family: var(--pixel); font-size: 8px; color: var(--text-dim); letter-spacing: .5px; margin-bottom: 4px; }
.footer-disclaimer { font-size: 11px; color: var(--text-faint); margin-top: 3px; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.footer-links a { color: var(--text-faint); font-size: 13px; }
.footer-links a:hover { color: var(--crimson-bright); }
.footer-links a + a::before { content: '·'; margin: 0 10px; color: var(--line-2); pointer-events: none; }

/* ── Admin panel ────────────────────────────────────────────────────── */
.admin-main { max-width: 880px; }
.admin-gate { max-width: 420px; margin: 80px auto; text-align: center; }
.admin-gate .gate-icon { margin: 0 auto 16px; }
.admin-gate-text { width: 100%; }
.admin-gate-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.admin-gate-input { width: 100%; font-family: var(--mono); font-size: 13px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; }
.admin-gate-input:focus { outline: none; border-color: var(--crimson); }
.admin-gate-err { font-family: var(--mono); font-size: 12px; color: #f87171; margin: 0; }
.admin-gate-btn { justify-content: center; }
.admin-hero { margin-bottom: 20px; }

.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); gap: 10px; flex-wrap: wrap; }
.admin-card-head h2 { font-family: var(--display); font-size: 16px; font-weight: 700; }
.admin-card-body { padding: 18px 20px; }
.admin-card-footer { margin-top: 14px; }

.role-cfg-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.role-cfg-row:last-of-type { border-bottom: none; }
.role-cfg-name { font-family: var(--display); font-weight: 700; font-size: 14.5px; width: 110px; flex-shrink: 0; }
.role-cfg-toggle { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-dim); cursor: pointer; }
.role-cfg-toggle input { width: 16px; height: 16px; accent-color: var(--crimson); }
.role-cfg-spots { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-left: auto; }
.role-cfg-spots input { width: 64px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-xs); color: var(--text); padding: 6px 8px; font-family: var(--mono); font-size: 13px; }
.role-cfg-spots input:focus { outline: none; border-color: var(--crimson); }

.admin-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-tab { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text-dim); cursor: pointer; transition: all .15s; }
.admin-tab:hover { border-color: var(--line-2); color: var(--text); }
.admin-tab.active { background: var(--crimson-fill); border-color: var(--crimson); color: var(--crimson-bright); }
.admin-tab .count { opacity: .65; margin-left: 4px; }

.app-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.app-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.app-card-head img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.app-card-title { font-family: var(--display); font-weight: 700; font-size: 14.5px; }
.app-card-sub { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.app-role-badge { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--crimson); background: var(--crimson-fill); color: var(--crimson-bright); }
.app-card-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.app-answers { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.app-answer-label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 3px; }
.app-answer-value { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; white-space: pre-wrap; }
.app-answer-value.bool { font-family: var(--mono); font-size: 12px; }

.admin-btn-sm { font-family: var(--body); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-xs); border: 1px solid; cursor: pointer; background: transparent; transition: all .15s; }
.admin-btn-accept { border-color: rgba(74,222,128,.5); color: var(--green); background: rgba(74,222,128,.08); }
.admin-btn-accept:hover { background: rgba(74,222,128,.18); }
.admin-btn-deny { border-color: rgba(220,38,38,.5); color: #f87171; background: rgba(220,38,38,.08); }
.admin-btn-deny:hover { background: rgba(220,38,38,.18); }
.admin-btn-delete { border-color: var(--line-2); color: var(--text-faint); background: var(--surface-2); }
.admin-btn-delete:hover { border-color: var(--crimson); color: var(--crimson-bright); }

.admin-msg { font-family: var(--mono); font-size: 12px; margin-left: 10px; }
.admin-msg.ok  { color: var(--green); }
.admin-msg.err { color: #f87171; }

.empty-state { padding: 30px; text-align: center; color: var(--text-faint); font-family: var(--mono); font-size: 12.5px; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .req-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  main { padding: 40px 20px 80px; }
}
@media (max-width: 768px) {
  #nav-toggle { display: flex; }
  #subnav { display: none !important; flex-direction: column; gap: 2px; position: fixed; top: 56px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 14px 16px; z-index: 9998; max-height: calc(100vh - 56px); overflow-y: auto; }
  #subnav.nav-open { display: flex !important; }
  .nav-link { font-size: 14px; padding: 11px 14px; border-radius: 8px; }
  #topbar { padding: 0 14px; position: fixed; top: 0; left: 0; right: 0; z-index: 9997; }
  body { padding-top: 56px; }
  .topbar-inner { flex-wrap: nowrap; height: 56px; padding: 0; gap: 8px; }
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: 36px; letter-spacing: -1.2px; }
  .hero-img { width: 96px; height: 96px; }
  .req-grid { grid-template-columns: 1fr; }
  .role-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .role-row-meta { flex-wrap: wrap; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-links { justify-content: center; gap: 8px 14px; }
}
