
:root{
  --bg:#0B0E14; --bg-panel:#121926; --bg-panel-2:#1A2333; --border:#28324a;
  --text:#E7ECF3; --text-muted:#8B95A7; --amber:#E8A33D; --amber-dim:#8a6425;
  --teal:#4FD1C5; --danger:#F0546B;
  --mono:'JetBrains Mono',monospace; --sans:'Inter',sans-serif;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:var(--sans);}
body{
  background-image:
    radial-gradient(circle at 15% 10%, rgba(232,163,61,0.07), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(79,209,197,0.06), transparent 40%);
  line-height:1.55;
}
::selection{background:var(--amber);color:#0B0E14;}
a{color:var(--teal);}
code{font-family:var(--mono);}
.wrap{max-width:920px;margin:0 auto;padding:0 24px;}

.hero{padding:56px 24px 40px;border-bottom:1px solid var(--border);position:relative;overflow:hidden;}
.hero::before{
  content:"";position:absolute;inset:0;
  background-image:repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 3px);
  pointer-events:none;
}
.hero-inner{max-width:920px;margin:0 auto;position:relative;}
.back-to-hub{
  position:absolute; top:0; right:24px; width:34px; height:34px; border-radius:9px; border:1px solid var(--border);
  background:var(--bg-panel); color:var(--text-muted); display:flex; align-items:center; justify-content:center;
  text-decoration:none; font-size:18px; line-height:1; transition:.15s; z-index:2;
}
.back-to-hub:hover{border-color:var(--amber); color:var(--amber);}

.live-star-counter{
  position:absolute; top:0; right:66px; height:34px; padding:0 14px; border-radius:9px; border:1px solid var(--border);
  background:var(--bg-panel); color:var(--amber); display:flex; align-items:center; gap:6px;
  font-family:var(--mono); font-weight:700; font-size:14px; z-index:2; transition:transform .15s ease;
}
.live-star-counter.pop{transform:scale(1.12);}
.star-popup{
  position:absolute; top:-4px; right:66px; font-family:var(--mono); font-weight:700; font-size:13px;
  color:var(--teal); pointer-events:none; opacity:0; z-index:3;
}
.star-popup.animate{animation:starPopupFloat 900ms ease-out forwards;}
@keyframes starPopupFloat{
  0%{opacity:0; transform:translateY(0);}
  15%{opacity:1;}
  100%{opacity:0; transform:translateY(-28px);}
}

.nag-toast{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--bg-panel); border:1.5px solid var(--amber); border-radius:10px; padding:14px 22px;
  font-family:var(--mono); font-size:14px; color:var(--text); z-index:1000; opacity:0; pointer-events:none;
  transition:opacity .25s ease, transform .25s ease; box-shadow:0 12px 30px -10px rgba(0,0,0,.5); max-width:90vw; text-align:center;
}
.nag-toast.show{opacity:1; transform:translateX(-50%) translateY(0);}
.nag-toast.idle{border-color:var(--teal);}
.nag-toast.idle.urgent{border-color:var(--danger); color:var(--danger); font-weight:700;}
.nag-toast.speed{border-color:var(--danger);}

.speed-flash-overlay{
  position:fixed; inset:0; background:rgba(240,84,107,0.18); z-index:999; pointer-events:none; opacity:0;
}
.speed-flash-overlay.flash{animation:speedFlash 500ms ease-out;}
@keyframes speedFlash{
  0%{opacity:0;} 20%{opacity:1;} 100%{opacity:0;}
}
.speed-flash-overlay.active{opacity:1; animation:speedPulse 1s ease-in-out infinite;}
@keyframes speedPulse{
  0%,100%{background:rgba(240,84,107,0.22);}
  50%{background:rgba(240,84,107,0.48);}
}

.idle-alert-overlay{
  position:fixed; inset:0; background:rgba(240,84,107,0.15); z-index:998; pointer-events:none; opacity:0; transition:opacity .4s ease;
}
.idle-alert-overlay.active{opacity:1; animation:idlePulse 1.6s ease-in-out infinite;}
@keyframes idlePulse{
  0%,100%{background:rgba(240,84,107,0.14);}
  50%{background:rgba(240,84,107,0.38);}
}
.idle-alert-overlay.fog{
  opacity:1; animation:none; background:rgba(139,149,167,0.22);
}
.eyebrow{
  font-family:var(--mono);font-size:13px;letter-spacing:.14em;color:var(--amber);
  text-transform:uppercase;display:flex;align-items:center;gap:10px;margin-bottom:10px;
}
.eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--danger);animation:pulse 1.6s infinite;}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:.25;}}
.hero-meta-lines{margin:0 0 16px; max-width:680px; display:flex; flex-direction:column; gap:8px;}
.hero-meta-line{
  font-family:var(--mono); font-size:12.5px; color:var(--text-muted); line-height:1.6;
  border:1px solid var(--border); border-radius:8px; padding:8px 12px; background:rgba(255,255,255,0.02);
}
.hero-meta-line b{color:var(--amber); font-weight:700; letter-spacing:.04em; margin-right:6px;}
h1{font-family:var(--mono);font-weight:800;font-size:clamp(28px,5vw,44px);line-height:1.08;margin:0 0 14px;letter-spacing:-.01em;}
h1.title-long{font-size:clamp(22px,3.4vw,32px);line-height:1.2;}
h1 .accent{color:var(--amber);}
.hero p.lede{font-size:17px;color:var(--text-muted);max-width:640px;margin:0 0 22px;}
.hero-meta{display:flex;gap:10px;flex-wrap:wrap;}
.lo-pill{
  font-family:var(--mono);font-size:12px;color:var(--text);
  background:var(--bg-panel);border:1px solid var(--border);padding:7px 12px;border-radius:20px;
}
.lo-pill b{color:var(--amber);}

section{padding:52px 24px;border-bottom:1px solid var(--border);}
section .wrap{max-width:920px;margin:0 auto;}
.section-head{margin-bottom:28px;}
.section-tag{font-family:var(--mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--teal);margin-bottom:8px;}
h2{font-family:var(--mono);font-size:24px;margin:0 0 6px;letter-spacing:-.01em;}
.section-sub{color:var(--text-muted);font-size:15px;max-width:640px;}

.star-bar{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding:12px 24px;
  background:var(--bg-panel); border-bottom:1px solid var(--border); font-family:var(--mono); font-size:13px;
}
.star-stat{color:var(--text);}
.star-stat.rank b{color:var(--amber);}
.star-cats{color:var(--text-muted); margin-left:auto;}

.story-shell{
  position:relative;background:linear-gradient(165deg, #211708 0%, #180F06 100%);
  border:1px solid #4a3417;border-radius:14px;padding:36px 40px 34px;box-shadow:0 24px 60px -24px rgba(0,0,0,.6);
}
.story-shell::before{content:"";position:absolute;inset:9px;border:1px solid rgba(232,163,61,.22);border-radius:8px;pointer-events:none;}
.story-tab{
  position:absolute;top:-13px;left:32px;background:var(--amber);color:#0B0E14;
  font-family:var(--mono);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:5px 14px;border-radius:5px;
}
.story-mark{font-family:'Lora',serif;font-size:56px;line-height:.4;color:rgba(232,163,61,.35);display:block;margin-bottom:6px;}
.story-body p{font-family:'Lora',serif;font-size:16.5px;line-height:1.7;color:#D8CBB0;max-width:660px;margin:0 0 16px;}
.story-body p:first-of-type::first-letter{font-size:46px;font-weight:600;color:var(--amber);float:left;line-height:.8;margin:4px 8px 0 0;font-family:'Lora',serif;}
.story-body p:last-child{margin-bottom:0;}
.story-body p i{color:#EDE3CE;font-style:italic;}
.story-term{color:var(--teal);font-weight:600;font-style:normal;}

.overview-text{font-size:15px;color:var(--text-muted);max-width:680px;margin-bottom:22px;}
.io-grid{display:grid;grid-template-columns:1fr;gap:10px;}
.io-row{display:flex;gap:14px;align-items:flex-start;background:var(--bg-panel);border:1px solid var(--border);border-radius:10px;padding:14px 18px;}
.io-tag{font-family:var(--mono);font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--amber);flex-shrink:0;width:74px;margin-top:1px;}
.io-row p{margin:0;font-size:14.5px;}


footer{padding:36px 24px 60px;text-align:center;font-family:var(--mono);font-size:12px;color:var(--text-muted);}

.more-content-note{
  max-width:920px; margin:0 auto; padding:8px 24px 44px; text-align:center;
  font-family:var(--mono); font-size:13px; color:var(--text-muted); font-style:italic;
}
.coming-soon-heading{
  max-width:920px; margin:28px auto 6px; text-align:center;
  font-family:var(--mono); font-size:16px; font-weight:800; letter-spacing:.06em;
  text-transform:uppercase; color:var(--amber);
}

/* ============================================================================
   CORNER FLOURISH - a themed nod to an ornate page border, but built from
   the site's own visual language (HUD-style corner brackets + a small
   circuit-trace curl) instead of literal scrollwork, which would clash with
   the dark/mono aesthetic. Self-draws on page load via stroke animation,
   fixed to the four viewport corners so it holds its place while scrolling.
   Purely decorative - never blocks clicks, never affects layout.
   ============================================================================ */
.corner-flourishes{position:fixed; inset:0; z-index:1; pointer-events:none;}
.corner-flourish{
  position:absolute; width:96px; height:96px; opacity:.6;
}
.corner-flourish.tl{top:0; left:0;}
.corner-flourish.tr{top:0; right:0; transform:scaleX(-1);}
.corner-flourish.bl{bottom:0; left:0; transform:scaleY(-1);}
.corner-flourish.br{bottom:0; right:0; transform:scale(-1,-1);}

.corner-flourish .flourish-line{
  fill:none; stroke:var(--amber); stroke-width:1.5; stroke-linecap:round;
  stroke-dasharray:260; stroke-dashoffset:260;
}
.corner-flourish .flourish-node{
  fill:var(--teal); opacity:0; transform-origin:center;
}
/* The draw-in only starts once .reveal is added (right when the page's own
   loading overlay comes down) - otherwise a slow network fetch could let
   the animation finish before anyone ever sees the loading screen lift,
   and the whole point of "draws itself in" would be missed. */
.corner-flourishes.reveal .flourish-line{ animation:drawFlourish 1.7s ease forwards; }
.corner-flourishes.reveal .flourish-node{ animation:popFlourishNode .45s ease forwards; animation-delay:1.5s; }
.corner-flourishes.reveal .corner-flourish.tr .flourish-line{ animation-delay:.15s; }
.corner-flourishes.reveal .corner-flourish.tr .flourish-node{ animation-delay:1.65s; }
.corner-flourishes.reveal .corner-flourish.bl .flourish-line{ animation-delay:.3s; }
.corner-flourishes.reveal .corner-flourish.bl .flourish-node{ animation-delay:1.8s; }
.corner-flourishes.reveal .corner-flourish.br .flourish-line{ animation-delay:.45s; }
.corner-flourishes.reveal .corner-flourish.br .flourish-node{ animation-delay:1.95s; }

@keyframes drawFlourish{
  to{ stroke-dashoffset:0; }
}
@keyframes popFlourishNode{
  0%{ opacity:0; transform:scale(0); }
  60%{ opacity:1; transform:scale(1.4); }
  100%{ opacity:1; transform:scale(1); }
}
@media (max-width:640px){
  .corner-flourish{width:64px; height:64px; opacity:.5;}
}
