/* ═══════════════════════════════════════════════════════════
   THE PLAYERS CLUB — theplayersclub.xyz
   Palette + metallic bevel sampled from the loadscreen art.
   ═══════════════════════════════════════════════════════════ */

:root{
  /* sampled from assets/hero.jpg */
  --night:      #070A12;   /* deep sky */
  --asphalt:    #0E1420;   /* wet street */
  --panel:      #121A28;   /* raised surface */
  --gold:       #F2C230;   /* wordmark face */
  --gold-bright:#FFE070;   /* bevel highlight */
  --gold-mid:   #C8901E;
  --gold-deep:  #8F5F10;   /* bevel shadow */
  --amber:      #FFB347;   /* streetlight glow */
  --fog:        #8A93A6;   /* haze / secondary text */
  --white:      #F5F7FA;

  --line: rgba(242,194,48,.14);
  --line-soft: rgba(255,255,255,.07);

  /* the wordmark's metallic gradient, reused for gold surfaces */
  --metal: linear-gradient(180deg,#FFE070 0%,#F2C230 38%,#C8901E 62%,#8F5F10 100%);

  --font-display: 'Anton', Impact, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  background:var(--night);
  color:var(--white);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* cinematic film grain — a whisper of texture over the flat night, so
   gradients read as light in a room rather than a CSS fill. Static,
   non-blocking, sits under the nav/hero content. */
body::after{
  content:''; position:fixed; inset:0; z-index:3;
  pointer-events:none; opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
}

a{ color:var(--gold); text-decoration:none; }
a:hover{ color:var(--gold-bright); }

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

.skip{
  position:absolute; left:-9999px; top:0; z-index:999;
  background:var(--gold); color:var(--night);
  padding:10px 16px; font-weight:600;
}
.skip:focus{ left:12px; top:12px; }

.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 24px; }

/* ─── NAV ──────────────────────────────────────────────── */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  transition:background .3s var(--ease), border-color .3s var(--ease);
  border-bottom:1px solid transparent;
}
.nav[data-scrolled="true"]{
  background:rgba(7,10,18,.92);
  backdrop-filter:blur(14px);
  border-bottom-color:var(--line);
}
.nav__inner{
  max-width:var(--wrap); margin:0 auto; padding:16px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.nav__brand{
  display:flex; align-items:center; gap:11px;
  font-family:var(--font-display);
  font-size:19px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--white); white-space:nowrap;
}
.nav__brand:hover{ color:var(--gold); }
.nav__logo{
  width:34px; height:auto;
  filter:drop-shadow(0 2px 6px rgba(242,194,48,.35));
  flex-shrink:0;
}
.nav__links{ display:flex; align-items:center; gap:28px; }
.nav__links a{
  font-size:13px; font-weight:500; letter-spacing:.08em; text-transform:uppercase;
  color:var(--fog);
}
.nav__links a:hover{ color:var(--white); }
.nav__links a[aria-current="page"]{ color:var(--gold); }
.nav__discord{
  color:var(--gold) !important;
  border:1px solid var(--line);
  padding:7px 15px; border-radius:2px;
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.nav__discord:hover{ border-color:var(--gold); background:rgba(242,194,48,.08); }

/* ─── HERO ─────────────────────────────────────────────── */
.hero{ position:relative; }

.hero__art{ position:relative; overflow:hidden; }

.hero__img{
  display:block; width:100%;
  animation:slowZoom 34s ease-in-out infinite alternate;
  transform-origin:center center;
}

@keyframes slowZoom{
  from{ transform:scale(1); }
  to{ transform:scale(1.06); }
}

.hero__gradient{
  position:absolute; inset:auto 0 0 0; height:55%;
  background:linear-gradient(to top,var(--night) 0%,rgba(7,10,18,.72) 42%,transparent 100%);
  pointer-events:none;
}
.hero__vignette{
  position:absolute; inset:0;
  box-shadow:inset 0 0 170px 70px rgba(0,0,0,.55);
  pointer-events:none;
}

.hero__content{
  display:flex; flex-direction:column; align-items:center; gap:22px;
  padding:0 24px 64px;
}

.hero__actions{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }

/* ─── SIGNATURE: THE MEMBER PASS ───────────────────────── */
.pass{
  position:relative;
  display:block;
  width:min(420px,100%);
  padding:2px;                       /* the metal edge shows through */
  border:0; border-radius:5px;
  background:var(--metal);
  cursor:pointer;
  font:inherit; text-align:left;
  box-shadow:0 18px 50px rgba(0,0,0,.6), 0 0 34px rgba(242,194,48,.13);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pass:hover{
  transform:translateY(-3px);
  box-shadow:0 24px 60px rgba(0,0,0,.66), 0 0 46px rgba(242,194,48,.26);
}
.pass:active{ transform:translateY(-1px); }

/* thin highlight along the top edge, like the wordmark's bevel */
.pass__edge{
  position:absolute; inset:0; border-radius:5px; pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.5) 0%,transparent 34%);
  mix-blend-mode:overlay;
}

.pass__body{
  position:relative; z-index:1;
  display:flex; flex-direction:column; gap:8px;
  background:linear-gradient(170deg,#141c2b 0%,#0a0f1a 100%);
  border-radius:4px;
  padding:18px 22px 16px;
}

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

.pass__eyebrow{
  font-family:var(--font-mono); font-size:10px; font-weight:700;
  letter-spacing:.22em; text-transform:uppercase;
  color:var(--gold-deep);
}

.pass__status{
  display:flex; align-items:center; gap:7px;
  font-family:var(--font-mono); font-size:10px; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase;
}
.pass__dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--fog);
  flex-shrink:0;
}
.pass__status[data-state="checking"]{ color:var(--fog); }
.pass__status[data-state="checking"] .pass__dot{ animation:pulse 1.4s ease-in-out infinite; }

.pass__status[data-state="online"]{ color:#4ADE80; }
.pass__status[data-state="online"] .pass__dot{
  background:#4ADE80;
  box-shadow:0 0 9px rgba(74,222,128,.9);
}
.pass__status[data-state="offline"]{ color:#8A93A6; }
.pass__status[data-state="offline"] .pass__dot{ background:#5A6472; }

/* status unknown → we say nothing rather than guess */
.pass__status[data-state="unknown"]{ display:none; }

@keyframes pulse{ 0%,100%{opacity:1;} 50%{opacity:.25;} }

.pass__code{
  font-family:var(--font-mono); font-size:22px; font-weight:700;
  letter-spacing:.01em;
  background:var(--metal);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
  word-break:break-all;
}

.pass__hint{
  font-family:var(--font-mono); font-size:10px;
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--fog);
  transition:color .2s var(--ease);
}
.pass:hover .pass__hint{ color:var(--amber); }
.pass[data-copied="true"] .pass__hint{ color:#4ADE80; }

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:13px 26px; border-radius:3px;
  font-size:13px; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  transition:transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }

.btn--discord{
  background:#5865F2; color:#fff;
  box-shadow:0 10px 26px rgba(88,101,242,.32);
}
.btn--discord:hover{ background:#4752e0; color:#fff; }

.btn--ghost{
  border:1px solid rgba(255,255,255,.18);
  color:var(--white); background:rgba(255,255,255,.03);
  backdrop-filter:blur(6px);
}
.btn--ghost:hover{ border-color:var(--gold); color:var(--gold); }

/* ─── SECTIONS ─────────────────────────────────────────── */
.section{ padding:104px 0; }
.section--alt{
  background:var(--asphalt);
  border-top:1px solid var(--line-soft);
  border-bottom:1px solid var(--line-soft);
}

.eyebrow{
  display:flex; align-items:center; gap:11px;
  font-family:var(--font-mono); font-size:11px; font-weight:700;
  letter-spacing:.24em; text-transform:uppercase;
  color:var(--gold-deep);
  margin-bottom:14px;
}
.eyebrow::before{
  content:''; width:22px; height:2px;
  background:var(--metal);
  box-shadow:0 0 10px rgba(242,194,48,.5);
  flex-shrink:0;
}

.h2{
  font-family:var(--font-display);
  font-size:clamp(38px,6vw,66px);
  line-height:.98; letter-spacing:.02em; text-transform:uppercase;
  font-weight:400;
  /* the wordmark's metal, at heading scale */
  background:var(--metal);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
  margin-bottom:18px;
}

.lede{
  max-width:60ch; color:var(--fog); font-size:17px;
  margin-bottom:52px;
}

/* ─── FEATURE GRID ─────────────────────────────────────── */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
  gap:1px;
  background:var(--line-soft);
  border:1px solid var(--line-soft);
}

.card{
  position:relative;
  background:var(--night);
  padding:34px 30px;
  transition:background .3s var(--ease);
}
.section--alt .card{ background:var(--asphalt); }
.card:hover{ background:var(--panel); }
/* gold top-edge that lights up when the panel is hovered */
.card::before{
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:var(--metal);
  opacity:0; transform:scaleX(.4); transform-origin:left;
  transition:opacity .3s var(--ease), transform .4s var(--ease);
}
.card:hover::before{
  opacity:1; transform:scaleX(1);
  box-shadow:0 0 16px rgba(242,194,48,.45);
}

.card__title{
  font-family:var(--font-display);
  font-size:21px; font-weight:400;
  letter-spacing:.06em; text-transform:uppercase;
  color:var(--gold);
  margin-bottom:11px;
  transition:text-shadow .3s var(--ease);
}
.card:hover .card__title{ text-shadow:0 0 22px rgba(242,194,48,.4); }
.card__text{ color:var(--fog); font-size:15px; }

/* ─── STEPS (order carries real meaning) ───────────────── */
.steps{ list-style:none; max-width:760px; }

.step{
  display:flex; gap:26px;
  padding:26px 0;
  border-top:1px solid var(--line-soft);
}
.step:last-child{ border-bottom:1px solid var(--line-soft); }

.step__num{
  font-family:var(--font-mono); font-size:13px; font-weight:700;
  letter-spacing:.08em;
  color:var(--gold-deep);
  padding-top:4px;
  flex-shrink:0;
}

.step__title{
  font-family:var(--font-display);
  font-size:20px; font-weight:400;
  letter-spacing:.05em; text-transform:uppercase;
  color:var(--white);
  margin-bottom:6px;
}
.step__text{ color:var(--fog); font-size:15px; }

.code{
  font-family:var(--font-mono); font-size:13px;
  background:rgba(242,194,48,.09);
  border:1px solid var(--line);
  border-radius:3px;
  padding:2px 7px;
  color:var(--gold);
  white-space:nowrap;
}

.steps__after{
  margin-top:34px; color:var(--fog); font-size:15px;
}

/* ─── SUB-PAGE HEADER ──────────────────────────────────── */
/* The hero art stays exclusive to the home page. Sub-pages get the same
   art blurred to an ambient glow — atmosphere, not a second hero. Each
   page sets its OWN height and its OWN crop of the skyline, so they read
   as a family, never as one cloned band locked to a single size. */
.pagehead{
  position:relative;
  /* clears the fixed nav, then a compact, page-set lower pad */
  padding-top:106px;
  padding-bottom:var(--head-pad, 30px);
  overflow:hidden;
}

.pagehead__wash{
  position:absolute; inset:-40px;
  background:url('/assets/hero.jpg') center var(--head-focus, 30%) / cover no-repeat;
  filter:blur(48px) saturate(1.35);
  opacity:var(--head-glow, .20);
  pointer-events:none;
}
/* sink the wash into the page so it reads as glow, not image */
.pagehead::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(7,10,18,.80) 0%,rgba(7,10,18,.9) 60%,var(--night) 100%);
  pointer-events:none;
}

.pagehead__inner{ position:relative; z-index:1; }
/* a short gold rule under the title — its width varies per page */
.pagehead__inner::after{
  content:''; display:block; height:2px; margin-top:20px;
  width:var(--head-rule, 56px);
  background:var(--metal);
  border-radius:2px;
  box-shadow:0 0 14px rgba(242,194,48,.4);
}
.pagehead .lede{ margin-bottom:0; margin-top:2px; }

/* per-page rhythm: different height, crop, glow, and rule width */
.pagehead--city   { --head-pad:58px; --head-focus:26%; --head-glow:.26; --head-rule:112px; }
.pagehead--join   { --head-pad:30px; --head-focus:54%; --head-glow:.16; --head-rule:64px;  }
.pagehead--status { --head-pad:22px; --head-focus:12%; --head-glow:.15; --head-rule:44px;  }
.pagehead--rules  { --head-pad:38px; --head-focus:62%; --head-glow:.19; --head-rule:80px;  }

/* section that follows a pagehead — it already has breathing room above */
.section--tight{ padding-top:52px; }

/* ─── HOME: THREE DOORS ────────────────────────────────── */
.doors{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1px;
  background:var(--line-soft);
  border:1px solid var(--line-soft);
  margin-top:8px;
}

.door{
  position:relative;
  display:flex; flex-direction:column;
  gap:9px;
  background:var(--night);
  padding:34px 30px 30px;
  color:inherit;
  transition:background .3s var(--ease);
}
.section--alt .door{ background:var(--asphalt); }
.door:hover{ background:var(--panel); color:inherit; }
.door::before{
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:var(--metal);
  opacity:0; transform:scaleX(.4); transform-origin:left;
  transition:opacity .3s var(--ease), transform .4s var(--ease);
}
.door:hover::before{ opacity:1; transform:scaleX(1); box-shadow:0 0 16px rgba(242,194,48,.45); }

.door__num{
  font-family:var(--font-mono); font-size:11px; font-weight:700;
  letter-spacing:.2em;
  color:var(--gold-deep);
}
.door__title{
  font-family:var(--font-display);
  font-size:26px; letter-spacing:.05em; text-transform:uppercase;
  color:var(--white);
  transition:color .25s var(--ease);
}
.door:hover .door__title{ color:var(--gold); }

.door__text{ color:var(--fog); font-size:15px; flex-grow:1; }

.door__go{
  display:inline-flex; align-items:center; gap:9px;
  margin-top:8px;
  font-size:12px; font-weight:600;
  letter-spacing:.12em; text-transform:uppercase;
  color:var(--gold);
}
.door__arrow{
  display:inline-block;
  transition:transform .25s var(--ease);
}
.door:hover .door__arrow{ transform:translateX(5px); }

/* ─── JOIN PAGE: the pass, repeated where it converts ──── */
.joinpass{
  margin-top:52px;
  display:flex; flex-direction:column; align-items:center; gap:18px;
  text-align:center;
}
.joinpass__note{ color:var(--fog); font-size:15px; }

/* ─── RULES PAGE — THE CHARTER ─────────────────────────── */

/* quick read: the whole charter in four lines, framed like a plate */
.tldr{
  position:relative;
  border:1px solid var(--line);
  border-radius:6px;
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(242,194,48,.07), transparent 60%),
    var(--asphalt);
  padding:28px 30px;
  margin-bottom:64px;
}
.tldr::before{
  content:''; position:absolute; top:-1px; left:-1px; width:22px; height:22px;
  border:2px solid var(--gold); border-right:0; border-bottom:0;
  border-top-left-radius:6px;
  box-shadow:0 0 12px rgba(242,194,48,.3);
}
.tldr__label{
  font-family:var(--font-mono); font-size:11px; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase;
  color:var(--gold-deep);
  margin-bottom:18px;
}
.tldr__list{
  list-style:none;
  display:grid; grid-template-columns:1fr 1fr; gap:12px 34px;
}
.tldr__list li{ color:var(--fog); font-size:15px; line-height:1.5; }
.tldr__key{
  color:var(--gold); font-weight:700; margin-right:8px;
}

/* the charter body */
.charter{ display:flex; flex-direction:column; gap:20px; }

.clause-block{
  position:relative;
  border:1px solid var(--line-soft);
  border-radius:6px;
  background:var(--asphalt);
  padding:30px 32px 34px;
  overflow:hidden;
  transition:border-color .3s var(--ease);
}
.clause-block:hover{ border-color:var(--line); }

.clause-block__head{
  display:flex; align-items:center; gap:22px;
  padding-bottom:20px; margin-bottom:22px;
  border-bottom:1px solid var(--line-soft);
}
.clause-block__index{
  font-family:var(--font-display);
  font-size:56px; line-height:.8; letter-spacing:.02em;
  background:var(--metal);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
  opacity:.9;
  flex-shrink:0;
}
.clause-block__title{
  font-family:var(--font-display);
  font-size:26px; font-weight:400;
  letter-spacing:.03em; text-transform:uppercase;
  color:var(--white);
  line-height:1;
  margin-bottom:6px;
}
.clause-block__sub{ color:var(--fog); font-size:14px; }

.clauses{ list-style:none; display:flex; flex-direction:column; gap:2px; }
.clause{
  display:flex; align-items:baseline; gap:16px;
  padding:12px 12px 12px 0;
  border-bottom:1px solid rgba(255,255,255,.04);
  transition:padding-left .25s var(--ease);
}
.clause:last-child{ border-bottom:0; }
.clause:hover{ padding-left:8px; }
.clause__no{
  font-family:var(--font-mono); font-size:12px; font-weight:700;
  color:var(--gold-deep);
  min-width:30px; flex-shrink:0;
  letter-spacing:.02em;
}
.clause__text{ color:#C6CDDA; font-size:15.5px; line-height:1.55; }

/* zero tolerance — the one that ends it. crimson, heavier, unmissable. */
.zero{
  position:relative;
  border:1px solid rgba(180,68,46,.5);
  border-radius:6px;
  background:
    radial-gradient(ellipse 90% 120% at 100% 0%, rgba(180,68,46,.16), transparent 55%),
    linear-gradient(170deg,#1a1013 0%,#0d0a0e 100%);
  padding:34px 32px 34px;
  overflow:hidden;
  margin-top:6px;
}
.zero::before{
  content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:linear-gradient(180deg,#E4694F,#8f2c1a);
  box-shadow:0 0 18px rgba(228,105,79,.5);
}
.zero__head{
  padding-bottom:20px; margin-bottom:20px;
  border-bottom:1px solid rgba(180,68,46,.28);
}
.zero__badge{
  display:inline-block;
  font-family:var(--font-mono); font-size:11px; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase;
  color:#E4694F;
  border:1px solid rgba(228,105,79,.4);
  border-radius:3px;
  padding:5px 12px;
  margin-bottom:14px;
}
.zero__title{
  font-family:var(--font-display);
  font-size:clamp(24px,4vw,34px); font-weight:400;
  letter-spacing:.02em; text-transform:uppercase;
  color:#F3D9D2;
  line-height:1;
  margin-bottom:8px;
}
.zero__warn{
  font-family:var(--font-mono); font-size:12px; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase;
  color:#E4694F;
}
.clause--zero .clause__no{ color:#E4694F; text-align:center; }
.clause--zero{ border-bottom-color:rgba(180,68,46,.16); }
.clause--zero .clause__text{ color:#E4D4CF; }

/* closing callout */
.rules__cta{
  margin-top:50px;
  border-top:1px solid var(--line-soft);
  padding-top:36px;
  display:flex; flex-direction:column; align-items:flex-start; gap:20px;
}
.rules__ctaText{ color:var(--fog); font-size:16px; max-width:56ch; }

/* ─── INTRO ────────────────────────────────────────────── */
.intro__wrap{ max-width:760px; }
.intro__lead{
  font-size:clamp(22px,3.2vw,30px);
  line-height:1.35; font-weight:600;
  color:var(--white);
  margin-bottom:22px;
}
.intro__sub{ color:var(--fog); font-size:17px; max-width:62ch; }

/* ─── PILLARS ──────────────────────────────────────────── */
.pillars__grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
  margin-top:8px;
}
.pillar{
  position:relative;
  background:var(--night);
  border:1px solid var(--line-soft);
  border-radius:4px;
  padding:34px 28px 30px;
  overflow:hidden;
  transition:border-color .3s var(--ease), transform .3s var(--ease);
}
.pillar::before{
  content:''; position:absolute; left:0; top:0; bottom:0; width:2px;
  background:var(--metal);
  transform:scaleY(0); transform-origin:top;
  transition:transform .35s var(--ease);
}
.pillar:hover{ border-color:var(--line); transform:translateY(-3px); }
.pillar:hover::before{ transform:scaleY(1); }

.pillar__index{
  display:block;
  font-family:var(--font-mono); font-size:12px; font-weight:700;
  letter-spacing:.16em; color:var(--gold-deep);
  margin-bottom:16px;
}
.pillar__title{
  font-family:var(--font-display);
  font-size:23px; font-weight:400;
  letter-spacing:.03em; text-transform:uppercase;
  color:var(--gold);
  margin-bottom:11px;
}
.pillar__text{ color:var(--fog); font-size:15px; }

/* ─── A NIGHT IN THE CITY ──────────────────────────────── */
.life__grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1px;
  background:var(--line-soft);
  border:1px solid var(--line-soft);
}
.life__item{
  position:relative;
  background:var(--night);
  padding:32px 28px;
  transition:background .3s var(--ease);
}
.life__item:hover{ background:var(--panel); }
.life__item::before{
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:var(--metal);
  opacity:0; transform:scaleX(.4); transform-origin:left;
  transition:opacity .3s var(--ease), transform .4s var(--ease);
}
.life__item:hover::before{ opacity:1; transform:scaleX(1); box-shadow:0 0 16px rgba(242,194,48,.45); }
.life__role{
  font-family:var(--font-display);
  font-size:19px; font-weight:400;
  letter-spacing:.04em; text-transform:uppercase;
  color:var(--white);
  margin-bottom:9px;
}
.life__item:hover .life__role{ color:var(--gold); }
.life__text{ color:var(--fog); font-size:15px; }

/* ─── CLOSING CTA ──────────────────────────────────────── */
.cta{
  position:relative;
  text-align:center;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(242,194,48,.09), transparent 70%),
    var(--night);
}
.cta__wrap{
  position:relative;
  display:flex; flex-direction:column; align-items:center; gap:16px;
  padding:56px 40px;
  border:1px solid var(--line);
  border-radius:6px;
  background:rgba(9,13,21,.45);
  backdrop-filter:blur(2px);
}
/* opposing gold corner brackets — the nameplate/membership-card motif */
.cta__wrap::before,
.cta__wrap::after{
  content:''; position:absolute; width:24px; height:24px;
  border:2px solid var(--gold);
  box-shadow:0 0 12px rgba(242,194,48,.3);
}
.cta__wrap::before{ top:-1px; left:-1px; border-right:0; border-bottom:0; border-top-left-radius:6px; }
.cta__wrap::after{ bottom:-1px; right:-1px; border-left:0; border-top:0; border-bottom-right-radius:6px; }
.cta__title{
  font-family:var(--font-display);
  font-size:clamp(40px,7vw,74px);
  line-height:.98; letter-spacing:.02em; text-transform:uppercase;
  font-weight:400;
  background:var(--metal);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
}
.cta__text{ color:var(--fog); font-size:18px; }
.cta .hero__actions{ margin-top:8px; }
.cta__code{
  font-family:var(--font-mono); font-size:14px;
  color:var(--fog); margin-top:14px;
}
.cta__codeLabel{
  color:var(--gold-deep); text-transform:uppercase;
  letter-spacing:.14em; font-size:11px; font-weight:700;
  margin-right:8px;
}

.btn--gold{
  background:var(--metal); color:#2a1c05;
  font-weight:700;
  box-shadow:0 12px 30px rgba(242,194,48,.26);
}
.btn--gold:hover{ color:#2a1c05; filter:brightness(1.08); }

/* ─── STATUS PAGE — LIVE BOARD ─────────────────────────── */
.board{
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  background:
    radial-gradient(ellipse 90% 140% at 0% 0%, rgba(242,194,48,.07), transparent 55%),
    var(--asphalt);
}

/* big status banner */
.board__banner{
  display:flex; align-items:center; gap:20px;
  padding:26px 28px;
  border-bottom:1px solid var(--line-soft);
}
.board__beacon{
  position:relative; width:20px; height:20px; flex-shrink:0;
}
.board__core{
  position:absolute; inset:5px; border-radius:50%;
  background:var(--fog);
}
.board__pulse{
  position:absolute; inset:0; border-radius:50%;
  background:var(--fog); opacity:.35;
}
.board__bannerText{ display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }
.board__state{
  font-family:var(--font-display);
  font-size:30px; line-height:1; letter-spacing:.03em; text-transform:uppercase;
  color:var(--white);
}
.board__host{
  font-family:var(--font-mono); font-size:12px; color:var(--fog);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.board__live{
  display:flex; align-items:center; gap:7px; flex-shrink:0;
  font-family:var(--font-mono); font-size:11px; letter-spacing:.08em;
  color:var(--gold-deep); text-transform:uppercase;
}
.board__liveDot{ width:6px; height:6px; border-radius:50%; background:var(--gold-deep); }

/* state colours */
.board[data-state="checking"] .board__pulse{ animation:beacon 1.6s ease-out infinite; }
.board[data-state="online"] .board__core{ background:#4ADE80; box-shadow:0 0 14px rgba(74,222,128,.95); }
.board[data-state="online"] .board__pulse{ background:#4ADE80; animation:beacon 1.8s ease-out infinite; }
.board[data-state="online"] .board__state{ color:#8FF0B4; }
.board[data-state="online"] .board__liveDot{ background:#4ADE80; box-shadow:0 0 8px rgba(74,222,128,.9); animation:pulse 1.6s ease-in-out infinite; }
.board[data-state="offline"] .board__core{ background:#E4694F; box-shadow:0 0 12px rgba(228,105,79,.6); }
.board[data-state="offline"] .board__pulse{ background:#E4694F; }
.board[data-state="offline"] .board__state{ color:#E4694F; }
.board[data-state="unknown"] .board__state{ color:var(--fog); }

@keyframes beacon{
  0%{ transform:scale(1); opacity:.5; }
  100%{ transform:scale(2.6); opacity:0; }
}

/* stat tiles */
.board__tiles{
  display:grid; grid-template-columns:repeat(3,1fr);
}
.board__tile{
  display:flex; flex-direction:column; gap:9px;
  padding:24px 28px;
  border-right:1px solid var(--line-soft);
}
.board__tile:last-child{ border-right:0; }
.board__tileLabel{
  font-family:var(--font-mono); font-size:10px; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase;
  color:var(--gold-deep);
}
.board__tileValue{
  font-family:var(--font-mono); font-size:26px; font-weight:700;
  color:var(--white); letter-spacing:.01em;
  font-variant-numeric:tabular-nums;
}

/* capacity meter */
.board__cap{
  display:flex; align-items:center; gap:16px;
  padding:18px 28px;
  border-top:1px solid var(--line-soft);
  background:rgba(0,0,0,.22);
}
.board__capTrack{
  flex:1; height:8px; border-radius:4px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
}
.board__capFill{
  height:100%; width:0%;
  background:var(--metal);
  border-radius:4px;
  box-shadow:0 0 12px rgba(242,194,48,.5);
  transition:width .6s var(--ease);
}
.board__capText{
  font-family:var(--font-mono); font-size:12px; color:var(--fog);
  white-space:nowrap; letter-spacing:.04em;
}

/* WHO'S IN THE CITY */
.roster{
  margin-top:22px;
  border:1px solid var(--line-soft);
  border-radius:8px;
  overflow:hidden;
}
.roster__head{
  display:flex; align-items:baseline; justify-content:space-between;
  padding:20px 24px 16px;
}
.roster__title{
  font-family:var(--font-display);
  font-size:19px; font-weight:400;
  letter-spacing:.04em; text-transform:uppercase;
  color:var(--gold);
}
.roster__count{
  font-family:var(--font-mono); font-size:12px; color:#4ADE80;
  letter-spacing:.06em;
}
/* full-width clickable rows — one per citizen, opens the popup */
.roster__list{
  list-style:none;
  border-top:1px solid var(--line-soft);
}
.roster__list > li{ border-bottom:1px solid var(--line-soft); }
.roster__list > li:last-child{ border-bottom:0; }

.pcard{
  width:100%;
  display:flex; align-items:center; gap:14px;
  background:var(--asphalt);
  border:0; border-left:2px solid transparent;
  padding:14px 20px;
  cursor:pointer; text-align:left;
  font:inherit; color:inherit;
  transition:background .2s var(--ease), border-color .2s var(--ease);
}
.pcard:hover{ background:var(--panel); border-left-color:var(--gold); }

.pcard__mono{
  width:36px; height:36px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:16px;
  color:var(--gold);
  background:radial-gradient(circle at 50% 32%, rgba(242,194,48,.2), rgba(242,194,48,.04));
  border:1px solid var(--line);
}
.pcard__main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.pcard__name{
  font-size:15px; font-weight:600; color:var(--white);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.pcard__sub{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  font-family:var(--font-mono); font-size:11px; letter-spacing:.04em;
  color:var(--fog);
}
.pcard__duty{
  font-size:9px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:#4ADE80;
  border:1px solid rgba(74,222,128,.35); border-radius:3px;
  padding:1px 6px;
}
.pcard__ping{ font-family:var(--font-mono); font-size:11px; color:var(--fog); flex-shrink:0; }
.pcard__ping.is-good{ color:#4ADE80; }
.pcard__ping.is-ok{ color:var(--gold); }
.pcard__ping.is-high{ color:#E4694F; }
.pcard__chev{
  font-size:20px; color:var(--gold-deep); flex-shrink:0;
  transition:transform .2s var(--ease), color .2s var(--ease);
}
.pcard:hover .pcard__chev{ color:var(--gold); transform:translateX(3px); }

.roster__empty{
  background:var(--asphalt);
  padding:28px 20px; text-align:center;
  color:var(--fog); font-size:15px;
}

/* ── character popup ── */
.pmodal{
  position:fixed; inset:0; z-index:400;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
}
.pmodal[hidden]{ display:none; }
.pmodal__backdrop{
  position:absolute; inset:0;
  background:rgba(4,6,11,.72);
  backdrop-filter:blur(4px);
  animation:fadeIn .2s var(--ease);
}
.pmodal__card{
  position:relative; z-index:1;
  width:min(420px,100%);
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(242,194,48,.1), transparent 55%),
    var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  padding:30px 30px 26px;
  box-shadow:0 30px 70px rgba(0,0,0,.6);
  animation:modalIn .25s var(--ease);
}
/* corner bracket — nameplate motif */
.pmodal__card::before{
  content:''; position:absolute; top:-1px; left:-1px; width:24px; height:24px;
  border:2px solid var(--gold); border-right:0; border-bottom:0;
  border-top-left-radius:8px;
  box-shadow:0 0 12px rgba(242,194,48,.3);
}
@keyframes modalIn{ from{ opacity:0; transform:translateY(14px) scale(.98); } to{ opacity:1; transform:none; } }
@keyframes fadeIn{ from{ opacity:0; } to{ opacity:1; } }

.pmodal__close{
  position:absolute; top:12px; right:14px;
  width:34px; height:34px; border:0; border-radius:50%;
  background:transparent; color:var(--fog);
  font-size:26px; line-height:1; cursor:pointer;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.pmodal__close:hover{ background:rgba(255,255,255,.06); color:var(--white); }

.pmodal__head{ display:flex; align-items:center; gap:16px; margin-bottom:24px; }
.pmodal__mono{
  width:54px; height:54px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:24px; color:var(--gold);
  background:radial-gradient(circle at 50% 32%, rgba(242,194,48,.24), rgba(242,194,48,.05));
  border:1px solid var(--line);
}
.pmodal__eyebrow{
  font-family:var(--font-mono); font-size:10px; font-weight:700;
  letter-spacing:.2em; text-transform:uppercase; color:var(--gold-deep);
}
.pmodal__name{
  font-family:var(--font-display); font-size:26px; font-weight:400;
  letter-spacing:.02em; text-transform:uppercase; color:var(--white);
  line-height:1.05; margin-top:2px;
}
.pmodal__rows{ display:flex; flex-direction:column; }
.pmodal__row{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:13px 0;
  border-top:1px solid var(--line-soft);
}
.pmodal__row dt{
  font-family:var(--font-mono); font-size:11px; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; color:var(--gold-deep);
}
.pmodal__row dd{ font-size:15px; color:var(--white); text-align:right; }
.pmodal__row dd.is-onduty{ color:#4ADE80; }

.status__note{
  margin-top:24px; color:var(--fog); font-size:15px; max-width:60ch;
}
.status__cta{ display:flex; gap:12px; flex-wrap:wrap; margin-top:26px; }

/* ─── FOOTER ───────────────────────────────────────────── */
.foot{
  border-top:1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 70% 130% at 18% 0%, rgba(242,194,48,.06), transparent 60%),
    var(--night);
}
.foot__inner{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr;
  gap:40px;
  padding:56px 0 40px;
}
.foot__brand{ display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
.foot__logo{
  width:200px; height:auto;
  filter:drop-shadow(0 6px 22px rgba(242,194,48,.28));
}
.foot__tag{
  font-size:13px; color:var(--fog);
  letter-spacing:.02em;
}
.foot__connect{
  font-family:var(--font-mono); font-size:14px; font-weight:700;
  background:var(--metal);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent;
}
.foot__col{ display:flex; flex-direction:column; gap:12px; }
.foot__head{
  font-family:var(--font-mono); font-size:11px; font-weight:700;
  letter-spacing:.18em; text-transform:uppercase;
  color:var(--gold-deep);
  margin-bottom:4px;
}
.foot__col a{
  font-size:14px; color:var(--fog);
  transition:color .2s var(--ease);
}
.foot__col a:hover{ color:var(--gold); }

.foot__bar{
  max-width:var(--wrap); margin:0 auto;
  padding:20px 24px;
  border-top:1px solid var(--line-soft);
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:10px;
}
.foot__copy{ font-size:12px; color:var(--fog); letter-spacing:.04em; }
.foot__kvrnl{
  font-family:var(--font-mono); font-size:12px; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--fog);
}
.foot__kvrnl:hover{ color:var(--gold); }

/* ─── TOAST ────────────────────────────────────────────── */
.toast{
  position:fixed; left:50%; bottom:28px;
  transform:translate(-50%,18px);
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:3px;
  padding:11px 20px;
  font-family:var(--font-mono); font-size:12px;
  letter-spacing:.09em; text-transform:uppercase;
  color:var(--gold);
  opacity:0; pointer-events:none;
  transition:opacity .25s var(--ease), transform .25s var(--ease);
  z-index:200;
}
.toast[data-show="true"]{ opacity:1; transform:translate(-50%,0); }

/* ═══ DESKTOP: full-bleed cinematic, like the loadscreen ═══ */
@media (min-width:900px){
  .hero{ height:100vh; min-height:660px; }
  .hero__art{ position:absolute; inset:0; }
  .hero__img{ width:100%; height:100%; object-fit:cover; }
  .hero__content{
    position:relative; z-index:2;
    height:100%;
    justify-content:flex-end;
    padding-bottom:76px;
  }
}

/* ═══ MOBILE: show the whole poster — never crop the wordmark ═══ */
@media (max-width:899px){
  .hero__content{ padding-top:34px; margin-top:-58px; position:relative; z-index:2; }
  .hero__gradient{ height:42%; }
  .section{ padding:76px 0; }
  .section--tight{ padding-top:44px; }
  .doors-section{ padding-top:56px; }
  .nav__links{ gap:18px; }
  .nav__links a{ font-size:12px; }
  .nav__discord{ padding:6px 12px; }
  .step{ gap:16px; }
  .pagehead{ padding-top:118px; }
}

/* Tablet: footer brand on its own row, links side by side under it */
@media (max-width:820px){
  .foot__inner{ grid-template-columns:1fr 1fr; gap:32px; }
  .foot__brand{ grid-column:1 / -1; }
}

/* Narrow phones: let the links drop to their own row rather than
   hiding them — these are real pages now, not anchors. */
@media (max-width:600px){
  .nav__inner{ flex-wrap:wrap; justify-content:center; gap:11px; padding:12px 20px; }
  .nav__brand{ width:100%; justify-content:center; font-size:16px; }
  .nav__logo{ width:30px; }
  .nav__links{ width:100%; justify-content:center; flex-wrap:wrap; gap:9px 16px; }
  .nav__links a{ font-size:11px; letter-spacing:.05em; }
  /* wrapped 2-row nav needs clearance; per-page --head-pad still varies the bottom */
  .pagehead{ padding-top:164px; }
  .hero__content{ margin-top:-42px; }
  .card, .door, .pillar, .life__item{ padding:26px 22px; }

  /* board banner + tiles reflow on phones */
  .board__banner{ flex-wrap:wrap; gap:14px; padding:22px; }
  .board__state{ font-size:26px; }
  .board__live{ order:3; width:100%; }
  .board__tiles{ grid-template-columns:1fr; }
  .board__tile{ border-right:0; border-bottom:1px solid var(--line-soft); flex-direction:row; align-items:baseline; justify-content:space-between; }
  .board__tile:last-child{ border-bottom:0; }
  .board__cap{ flex-wrap:wrap; gap:10px; }

  /* charter: single-column summary, tighter clause blocks */
  .tldr{ padding:24px 22px; margin-bottom:44px; }
  .tldr__list{ grid-template-columns:1fr; gap:11px; }
  .clause-block{ padding:24px 22px 26px; }
  .clause-block__head{ gap:16px; }
  .clause-block__index{ font-size:44px; }
  .clause-block__title{ font-size:22px; }
  .zero{ padding:26px 22px; }

  .foot__inner{ grid-template-columns:1fr; gap:30px; padding:44px 0 32px; }
  .foot__bar{ justify-content:center; text-align:center; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .hero__img{ animation:none; }
  .pass__dot{ animation:none !important; }
  .board__pulse{ animation:none !important; }
  *{ transition-duration:.01ms !important; }
}
