:root{
  --bg:#08090b;
  --bg-2:#10110f;
  --panel:rgba(12,14,15,.88);
  --panel-2:rgba(18,20,21,.82);
  --ink:#eee9dd;
  --muted:#b9b0a2;
  --soft:#81776a;
  --line:rgba(238,233,221,.14);
  --line-strong:rgba(228,155,78,.38);
  --ember:#d88a3d;
  --ember-2:#f0b35f;
  --green:#63756d;
  --danger:#aa4f3a;
  --shadow:0 24px 80px rgba(0,0,0,.62);
  --radius:8px;
  --max:1120px;
  --body:ui-serif, Georgia, "Times New Roman", Times, serif;
  --display:ui-serif, Georgia, "Times New Roman", Times, serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{min-height:100%}
body.ng-body{
  margin:0;
  color:var(--ink);
  background:
    linear-gradient(180deg, rgba(8,9,11,.98), rgba(8,9,11,.84) 34%, rgba(8,9,11,.98)),
    url("../assets/level1_intake.png") center/cover fixed,
    var(--bg);
  font-family:var(--body);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body.ng-body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.52), transparent 18%, transparent 82%, rgba(0,0,0,.52)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
  opacity:.56;
}

a{color:inherit}
::selection{background:rgba(216,138,61,.34);color:var(--ink)}
:focus-visible{outline:2px solid var(--ember-2);outline-offset:4px}

.ng-kicker{
  margin:0;
  color:var(--ember-2);
  font-size:12px;
  font-weight:800;
  letter-spacing:.2em;
  line-height:1.2;
  text-transform:uppercase;
}

.ng-title{
  margin:0;
  color:var(--ink);
  font-family:var(--display);
  font-size:clamp(44px, 10vw, 128px);
  font-weight:900;
  letter-spacing:.08em;
  line-height:.86;
  text-transform:uppercase;
  text-wrap:balance;
  text-shadow:0 4px 26px rgba(0,0,0,.86);
}

.ng-landing{
  min-height:100vh;
  background:var(--bg);
}

.ng-cover{
  position:relative;
  min-height:100svh;
  display:grid;
  align-items:end;
  isolation:isolate;
  overflow:hidden;
  padding:clamp(28px, 6vw, 72px);
}

.ng-cover-bg{
  position:absolute;
  inset:0;
  z-index:-2;
  background:url("../assets/homepage_hero.jpg") center/cover no-repeat;
  transform:scale(1.01);
}

.ng-cover::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(90deg, rgba(3,4,5,.94), rgba(3,4,5,.62) 42%, rgba(3,4,5,.22)),
    linear-gradient(180deg, rgba(3,4,5,.35), transparent 42%, rgba(3,4,5,.96));
}

.ng-cover-content{
  width:min(760px, 100%);
  display:grid;
  gap:20px;
  padding-bottom:clamp(30px, 8vh, 92px);
}

.ng-cover-copy{
  max-width:670px;
  margin:0;
  color:#d8d0c5;
  font-size:clamp(18px, 2vw, 25px);
  line-height:1.42;
  text-shadow:0 2px 20px rgba(0,0,0,.82);
}

.ng-cover-actions,
.ng-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.ng-btn{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border:1px solid rgba(238,233,221,.22);
  border-radius:999px;
  background:rgba(10,11,12,.74);
  color:var(--ink);
  font-size:14px;
  font-weight:900;
  letter-spacing:.08em;
  text-decoration:none;
  text-transform:uppercase;
  box-shadow:0 12px 34px rgba(0,0,0,.35);
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
}

.ng-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(240,179,95,.72);
  background:rgba(24,18,13,.9);
}

.ng-btn-primary{
  border-color:rgba(240,179,95,.62);
  background:linear-gradient(180deg, rgba(173,91,43,.94), rgba(93,46,28,.96));
}

.ng-systems{
  width:min(680px, 100%);
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:8px;
  margin-top:4px;
}

.ng-systems span{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:9px 10px;
  border:1px solid rgba(238,233,221,.14);
  border-radius:var(--radius);
  background:rgba(8,9,11,.54);
  color:#d1c7b8;
  font-size:12px;
  font-weight:800;
  letter-spacing:.1em;
  text-align:center;
  text-transform:uppercase;
}

.ng-scroll{
  position:absolute;
  right:clamp(22px, 5vw, 64px);
  bottom:24px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
  text-decoration:none;
  text-transform:uppercase;
}

.ng-dossier,
.ng-lore,
.ng-final-cta{
  width:min(calc(100% - 36px), var(--max));
  margin:0 auto;
}

.ng-dossier{
  padding:76px 0 44px;
}

.ng-section-head{
  display:grid;
  gap:12px;
  max-width:760px;
  margin-bottom:24px;
}

.ng-section-head h2,
.ng-final-cta h2{
  margin:0;
  color:var(--ink);
  font-family:var(--display);
  font-size:clamp(28px, 4vw, 56px);
  line-height:1;
  letter-spacing:.02em;
  text-wrap:balance;
}

.ng-section-head p:not(.ng-kicker){
  margin:0;
  color:var(--muted);
  font-size:18px;
  line-height:1.55;
}

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

.ng-feature{
  min-height:210px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(23,25,25,.9), rgba(12,13,14,.9));
  box-shadow:var(--shadow);
}

.ng-feature-mark{
  display:block;
  margin-bottom:28px;
  color:var(--ember-2);
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
}

.ng-feature h3{
  margin:0 0 10px;
  font-size:22px;
  line-height:1.1;
}

.ng-feature p{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.5;
}

.ng-lore{
  padding:34px 0 54px;
}

.ng-prose{
  max-height:min(62vh, 620px);
  overflow:auto;
  padding:24px;
  border:1px solid var(--line);
  border-left:3px solid var(--line-strong);
  border-radius:var(--radius);
  background:rgba(9,10,10,.78);
  box-shadow:var(--shadow);
  color:#ded6ca;
  font-size:17px;
  line-height:1.72;
}

.ng-prose p{margin:0 0 15px}
.ng-prose p:last-child{margin-bottom:0}

.ng-final-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:28px;
  margin-bottom:48px;
  border:1px solid var(--line-strong);
  border-radius:var(--radius);
  background:linear-gradient(90deg, rgba(93,46,28,.36), rgba(12,13,14,.88));
}

.ng-footer{
  width:min(calc(100% - 36px), var(--max));
  margin:0 auto;
  padding:0 0 34px;
  color:var(--soft);
  font-size:13px;
  text-align:center;
}

/* Play surface */
.ng-play{
  min-height:100svh;
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:center;
  padding:18px;
}

.ng-topbar{
  width:min(100%, var(--max));
  min-height:58px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:14px;
  align-items:center;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(8,9,11,.84);
  box-shadow:0 18px 52px rgba(0,0,0,.42);
  backdrop-filter:blur(10px);
}

.ng-sigil{
  width:34px;
  height:34px;
  border:1px solid rgba(240,179,95,.46);
  border-radius:var(--radius);
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.38)),
    url("../assets/sigil_guard.png") center/70% no-repeat,
    rgba(25,21,17,.9);
}

.ng-status{
  display:flex;
  justify-content:center;
  gap:10px 14px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:14px;
}

.ng-status-label{
  color:var(--soft);
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.ng-status-value{
  color:var(--ink);
  font-weight:900;
}

.ng-linkbtn{
  min-height:36px;
  appearance:none;
  border:1px solid rgba(238,233,221,.12);
  border-radius:999px;
  background:rgba(255,255,255,.03);
  color:var(--muted);
  cursor:pointer;
  font-family:inherit;
  font-size:13px;
  font-weight:900;
  letter-spacing:.08em;
  padding:8px 12px;
  text-transform:uppercase;
}

.ng-linkbtn:hover{
  border-color:rgba(240,179,95,.48);
  color:var(--ink);
}

.ng-play-grid{
  width:min(100%, var(--max));
  display:grid;
  grid-template-columns:minmax(0, 1fr) 280px;
  gap:14px;
  align-items:stretch;
}

.ng-panel,
.ng-run-panel{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--panel);
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
}

.ng-panel{
  min-height:min(58vh, 600px);
  padding:24px;
}

.ng-story{
  height:100%;
  max-height:min(66vh, 620px);
  overflow:auto;
  padding-right:10px;
  color:#ebe3d8;
  font-size:clamp(18px, 1.6vw, 22px);
  line-height:1.72;
  white-space:pre-wrap;
  word-break:break-word;
  text-wrap:pretty;
}

.ng-run-panel{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px;
  background:
    linear-gradient(180deg, rgba(29,27,23,.9), rgba(9,10,10,.9));
}

.ng-run-stat{
  display:grid;
  gap:6px;
  padding:12px;
  border:1px solid rgba(238,233,221,.1);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
}

.ng-run-stat span,
.ng-rule span{
  color:var(--soft);
  font-size:11px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.ng-run-stat strong{
  color:var(--ink);
  font-size:22px;
  line-height:1;
}

.ng-rule{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid rgba(238,233,221,.11);
}

.ng-rule p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.45;
}

.ng-choices{
  width:min(100%, var(--max));
}

#choices{
  display:grid;
  gap:10px;
}

.ng-choicebtn{
  width:100%;
  min-height:58px;
  display:grid;
  grid-template-columns:32px 1fr;
  gap:12px;
  align-items:start;
  padding:14px;
  border:1px solid rgba(238,233,221,.13);
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(22,24,25,.92), rgba(12,13,14,.92));
  color:var(--ink);
  cursor:pointer;
  font-family:inherit;
  font-size:17px;
  line-height:1.32;
  text-align:left;
  transition:transform .14s ease, border-color .14s ease, background .14s ease;
}

.ng-choicebtn:hover{
  transform:translateY(-1px);
  border-color:rgba(240,179,95,.58);
  background:linear-gradient(180deg, rgba(36,31,26,.96), rgba(14,14,14,.96));
}

.ng-choicebtn:disabled{
  cursor:wait;
  opacity:.58;
  transform:none;
}

.ng-choice-index{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(240,179,95,.35);
  border-radius:999px;
  color:var(--ember-2);
  font-size:12px;
  font-weight:900;
}

body[data-exhaustion="2"] .ng-topbar,
body[data-exhaustion="3"] .ng-topbar{
  border-color:rgba(216,138,61,.42);
}

body[data-exhaustion="4"] .ng-topbar{
  border-color:rgba(170,79,58,.72);
}

@media (max-width:780px){
  .ng-cover{
    min-height:94svh;
    padding:24px 18px;
  }

  .ng-title{
    font-size:clamp(42px, 15vw, 76px);
  }

  .ng-systems,
  .ng-feature-grid{
    grid-template-columns:1fr;
  }

  .ng-final-cta{
    align-items:flex-start;
    flex-direction:column;
  }

  .ng-play-grid{
    grid-template-columns:1fr;
  }

  .ng-run-panel{
    order:-1;
  }

  .ng-topbar{
    grid-template-columns:auto 1fr;
  }

  .ng-linkbtn{
    grid-column:1 / -1;
    justify-self:stretch;
  }
}

@media (max-width:460px){
  .ng-cover-copy,
  .ng-section-head p:not(.ng-kicker),
  .ng-prose,
  .ng-choicebtn{
    font-size:16px;
  }

  .ng-btn{
    width:100%;
  }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto!important;
    transition:none!important;
  }
}
