/* figtree-latin-400-normal */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/figtree-latin-400-normal.g7Dtegnw.woff2) format('woff2'), url(/_astro/figtree-latin-400-normal.BD4aNku5.woff) format('woff');
}/* figtree-latin-500-normal */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/_astro/figtree-latin-500-normal.BWnGEVsr.woff2) format('woff2'), url(/_astro/figtree-latin-500-normal.B_yy1phn.woff) format('woff');
}/* figtree-latin-600-normal */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/_astro/figtree-latin-600-normal.Cv_xCTDl.woff2) format('woff2'), url(/_astro/figtree-latin-600-normal.BM_oTo4n.woff) format('woff');
}/* figtree-latin-700-normal */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/_astro/figtree-latin-700-normal.th6qEP7c.woff2) format('woff2'), url(/_astro/figtree-latin-700-normal.BCCt2T1q.woff) format('woff');
}/* figtree-latin-800-normal */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/_astro/figtree-latin-800-normal.30yxI7TZ.woff2) format('woff2'), url(/_astro/figtree-latin-800-normal.B7vj2UK8.woff) format('woff');
}/* figtree-latin-900-normal */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url(/_astro/figtree-latin-900-normal.BCLx4uqW.woff2) format('woff2'), url(/_astro/figtree-latin-900-normal.BAYHxy6Q.woff) format('woff');
}/* martian-mono-latin-400-normal */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/martian-mono-latin-400-normal.DZsjfPjH.woff2) format('woff2'), url(/_astro/martian-mono-latin-400-normal.DM4nBGIh.woff) format('woff');
}/* martian-mono-latin-500-normal */
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/_astro/martian-mono-latin-500-normal.BWC8e-kx.woff2) format('woff2'), url(/_astro/martian-mono-latin-500-normal.BsOs1ffX.woff) format('woff');
}/* silkscreen-latin-400-normal */
@font-face {
  font-family: 'Silkscreen';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/silkscreen-latin-400-normal.CtPo2yA5.woff2) format('woff2'), url(/_astro/silkscreen-latin-400-normal.D0DfPJut.woff) format('woff');
}/* big-shoulders-display-latin-800-normal */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/_astro/big-shoulders-display-latin-800-normal.DDUD9Xuh.woff2) format('woff2'), url(/_astro/big-shoulders-display-latin-800-normal.CI0lhnTM.woff) format('woff');
}/* big-shoulders-display-latin-900-normal */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url(/_astro/big-shoulders-display-latin-900-normal.CW8trzgu.woff2) format('woff2'), url(/_astro/big-shoulders-display-latin-900-normal.DMT-1gsg.woff) format('woff');
}/* Import order is the cascade order and must not change: see docs/05-EDITING-RULES.md §1.2. *//* Layout: one day, then one dig. Above ground the sky runs sunrise to dusk as you scroll; then you break ground and dig to the nether, where a portal opens onto Night City. Light glass by day, dark glass below. Pages: home, work (recipe book), project (written book), log, about, Night City. */
:root {
  --sky1: #ffd6a5;
  --sky2: #bfe3ff;
  --m1: #b9cbe0;
  --m2: #8fa7c0;
  --night: 0;
  --glass: rgba(255, 255, 255, 0.6);
  --glass2: rgba(255, 255, 255, 0.84);
  --edge: rgba(255, 255, 255, 0.78);
  --hair: rgba(19, 32, 43, 0.1);
  --fg: #13202b;
  --mid: #4a5763;
  --dim: #77838e;
  --onsky: #13202b;
  --onsky2: rgba(19, 32, 43, 0.68);
  --dg: rgba(18, 16, 14, 0.7);
  --dedge: rgba(255, 255, 255, 0.12);
  --dfg: #f3f1ea;
  --dmid: #cfccc2;
  --ddim: #9e9a90;
  --grass: #5aa83a;
  --dirt: #8a5a34;
  --dia: #21b8b2;
  --gold: #e8a91a;
  --red: #e24a3b;
  --xp: #9cff3a;
  --volt: #f5e400;
  --cy: #3fd6ec;
  --mag: #ff4f9a;
  --por: #9b4dff;
  --body: 'Figtree', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, monospace;
  --pix: 'Silkscreen', monospace;
  --nc: 'Big Shoulders Display', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
  --sh: 0 24px 60px rgba(19, 32, 43, 0.12), 0 2px 6px rgba(19, 32, 43, 0.05);
}
:root[data-night='1'] {
  --glass: rgba(16, 18, 32, 0.6);
  --glass2: rgba(26, 28, 46, 0.84);
  --edge: rgba(255, 255, 255, 0.1);
  --hair: rgba(255, 255, 255, 0.1);
  --fg: #eef1f8;
  --mid: #b6bccb;
  --dim: #828a9b;
  --onsky: #f3f6fb;
  --onsky2: rgba(243, 246, 251, 0.74);
  --sh: 0 24px 60px rgba(0, 0, 0, 0.4);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: linear-gradient(var(--sky1), var(--sky2)) fixed;
  background-color: var(--sky2);
  color: var(--fg);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}
body.dark {
  background: #121110;
}
body.ncpage {
  background: #0b0b12;
}
body.nohud {
  padding-bottom: 0;
}
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 90;
  background: var(--sky1);
}
body.dark::before,
body.ncpage::before {
  background: #0b0b12;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--dia);
  outline-offset: 2px;
}
img,
canvas {
  image-rendering: pixelated;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  position: relative;
  z-index: 2;
}
.lbl {
  font: 400 11px var(--pix);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.gl {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: 24px;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: var(--sh);
  transition:
    background 0.6s,
    border-color 0.6s,
    color 0.6s;
}
.dk {
  background: var(--dg);
  border: 1px solid var(--dedge);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  color: var(--dfg);
}
.dk .lbl {
  color: var(--ddim);
}
.view {
  display: none;
}
.view.on {
  display: block;
}
.rv.in {
  animation: rise 0.9s var(--ease) both;
}
@keyframes rise {
  from {
    transform: translateY(24px);
    filter: blur(6px);
  }
  to {
    transform: none;
    filter: none;
  }
}
.sky-only {
  transition: opacity 0.4s;
}
body.dark .sky-only,
body.ncpage .sky-only {
  opacity: 0;
  visibility: hidden;
}
/* sky world */
#stars {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: var(--night);
}
.orb {
  position: fixed;
  z-index: -2;
  width: 60px;
  height: 60px;
  pointer-events: none;
}
.orb::after {
  content: '';
  position: absolute;
  inset: -46px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 170, 0.5), transparent 65%);
}
.clouds {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  opacity: calc(1 - var(--night) * 0.7);
}
.clouds i {
  position: absolute;
  height: 20px;
  background: rgba(255, 255, 255, 0.75);
  animation: cl linear infinite;
  box-shadow: 24px -12px 0 -2px rgba(255, 255, 255, 0.75);
}
@keyframes cl {
  from {
    transform: translateX(-30vw);
  }
  to {
    transform: translateX(130vw);
  }
}
.birds {
  position: fixed;
  left: 0;
  top: 22vh;
  z-index: -2;
  pointer-events: none;
  animation: fly 38s linear infinite;
  opacity: calc(1 - var(--night));
}
.birds svg {
  width: 90px;
}
@keyframes fly {
  from {
    transform: translateX(-20vw);
  }
  to {
    transform: translateX(120vw) translateY(-6vh);
  }
}
.horizon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26vh;
  z-index: -1;
  pointer-events: none;
}
.horizon svg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.rain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s;
  background: repeating-linear-gradient(105deg, transparent 0 14px, rgba(120, 150, 200, 0.35) 14px 15px);
  background-size: 200px 200px;
  animation: rainfall 0.35s linear infinite;
}
.rain.on {
  opacity: 1;
}
@keyframes rainfall {
  to {
    background-position: -40px 200px;
  }
}

/* top nav */
.nav {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 18px;
  width: min(1120px, calc(100vw - 24px));
}
.nav .logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 12px 4px 6px;
  text-decoration: none;
  font: 800 16px var(--body);
  white-space: nowrap;
}
.nav .logo i {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(var(--grass) 0 35%, var(--dirt) 35%);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.18);
}
.links {
  display: flex;
  gap: 2px;
  margin-left: 8px;
}
.links a {
  text-decoration: none;
  font: 600 14px var(--body);
  padding: 8px 13px;
  border-radius: 12px;
  color: var(--mid);
  transition:
    background 0.2s,
    color 0.2s;
}
.links a:hover {
  background: var(--hair);
  color: var(--fg);
}
.links a.on {
  background: var(--fg);
  color: var(--sky2);
}
body.dark .links a.on {
  background: #f3f1ea;
  color: #121110;
}
.links a.ncl {
  color: #b89600;
}
body.dark .links a.ncl,
body.ncpage .links a.ncl,
:root[data-night='1'] .links a.ncl {
  color: var(--volt);
}
.links a.ncl.on {
  background: #0b0b12;
  color: var(--volt);
}
.nav .chip {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--hair);
  font: 500 11px var(--mono);
  white-space: nowrap;
}
.nav .chip .ic {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(var(--grass) 0 35%, var(--dirt) 35%);
}
.nav .chip span {
  color: var(--dim);
}
.advb {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 7px 10px;
  border-radius: 12px;
  font: 500 11px var(--mono);
  cursor: pointer;
  white-space: nowrap;
}
.advb:hover {
  background: var(--hair);
}
.advb b {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #e8a91a;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.25);
}
.menu {
  display: none;
  border: 0;
  background: var(--hair);
  border-radius: 12px;
  padding: 8px 12px;
  font: 600 14px var(--body);
  cursor: pointer;
}
.mob {
  display: none;
  position: fixed;
  top: calc(72px + env(safe-area-inset-top, 0px));
  left: 12px;
  right: 12px;
  z-index: 69;
  padding: 10px;
  border-radius: 18px;
}
.mob.on {
  display: grid;
  gap: 4px;
}
.mob a {
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  font: 600 16px var(--body);
}
.mob a:hover {
  background: var(--hair);
}
body.dark .nav,
body.ncpage .nav,
body.dark .mob,
body.ncpage .mob {
  background: rgba(20, 18, 16, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f3f1ea;
}
body.dark .nav .chip,
body.ncpage .nav .chip {
  background: rgba(255, 255, 255, 0.08);
}
body.dark .links a,
body.ncpage .links a {
  color: #c9c6bc;
}

/* sections */
section.s {
  padding-block: 120px;
}
.sh {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.sh h2 {
  font: 900 clamp(42px, 5.2vw, 70px)/0.96 var(--body);
  letter-spacing: -0.05em;
  margin: 12px 0 0;
  color: var(--onsky);
  text-wrap: balance;
}
.sh p {
  color: var(--onsky2);
  font-size: 17px;
  margin: 0;
  max-width: 44ch;
  justify-self: end;
}
.sh .lbl {
  color: var(--onsky2);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  font: 700 14px var(--body);
  text-decoration: none;
  border: 1px solid var(--edge);
  background: var(--glass2);
  color: var(--fg);
  box-shadow: var(--sh);
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.p {
  background: var(--fg);
  color: var(--sky2);
  border-color: var(--fg);
}
.mbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font: 700 14px var(--body);
  text-decoration: none;
  border: 3px solid #000;
  background: #c6c6c6;
  color: #1b1a17;
  cursor: pointer;
  box-shadow:
    inset -3px -3px 0 #555,
    inset 3px 3px 0 #fff;
}
.mbtn:hover {
  background: #b6c8ff;
}
.mbtn.g {
  background: #7bd35a;
}

/* hero */
.hero {
  padding-block: 130px 40px;
}
.hg {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyb {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font: 500 12px var(--mono);
  color: var(--onsky2);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--edge);
}
.eyb i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fb35a;
  box-shadow: 0 0 0 4px rgba(47, 179, 90, 0.18);
}
h1.big {
  font: 900 clamp(72px, 10vw, 132px)/0.9 var(--body);
  letter-spacing: -0.055em;
  margin: 22px 0 18px;
  color: var(--onsky);
}
h1.big .pre {
  display: block;
  font: 400 clamp(14px, 1.4vw, 18px)/1.2 var(--pix);
  letter-spacing: 0.04em;
  color: var(--onsky2);
  margin-bottom: 12px;
}
h1.big .ch {
  display: inline-block;
  animation: drop 0.9s var(--ease) both;
}
@keyframes drop {
  from {
    transform: translateY(-60px) rotate(-6deg);
    filter: blur(6px);
  }
  to {
    transform: none;
    filter: none;
  }
}
.lede {
  font: 500 clamp(19px, 1.9vw, 22px)/1.5 var(--body);
  color: var(--onsky);
  max-width: 34ch;
  margin: 0 0 28px;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.stats div {
  font: 500 11px var(--mono);
  color: var(--onsky2);
}
.stats b {
  display: block;
  font: 800 24px var(--body);
  color: var(--onsky);
  letter-spacing: -0.03em;
}
.island {
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
}
.island canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.island .tag {
  position: absolute;
  font: 400 11px var(--pix);
  padding: 6px 10px;
  border-radius: 10px;
}
.island .t1 {
  left: 2%;
  top: 14%;
}
.island .t2 {
  right: 2%;
  bottom: 18%;
}
.bub {
  position: absolute;
  left: 50%;
  top: 4%;
  transform: translateX(-50%);
  font: 500 12px var(--mono);
  background: #13202b;
  color: #fff;
  padding: 7px 12px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.bub.on {
  opacity: 1;
}
.mq {
  margin-top: 24px;
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
  padding: 13px 0;
}
.mq div {
  display: inline-flex;
  gap: 44px;
  animation: mq 46s linear infinite;
  font: 500 12px var(--mono);
  color: var(--mid);
}
.mq span::before {
  content: '◆ ';
  color: var(--gold);
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

/* story rail */
.railbox {
  padding: 30px 32px;
}
.track {
  position: relative;
  height: 64px;
  margin: 6px 6px 24px;
}
.track .ties {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 12px;
  background: repeating-linear-gradient(90deg, #8a5a34 0 8px, transparent 8px 22px);
}
.track .rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 3px;
  background: #9aa3a0;
  box-shadow: 0 -6px 0 #9aa3a0;
}
.track .st {
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 34px;
  margin-left: -7px;
  background: linear-gradient(#ffd25a 0 6px, #8a5a34 6px);
}
.cart {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 64px;
  height: 40px;
  margin-left: -32px;
  transition: left 0.8s var(--ease);
  z-index: 1;
}
.chaps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.chap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 16px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s var(--ease),
    border-color 0.3s;
  min-width: 0;
}
.chap:hover {
  transform: translateY(-3px);
}
.chap.on {
  background: var(--glass2);
  border-color: var(--edge);
  box-shadow: var(--sh);
}
.chap .yr {
  font: 900 26px/1 var(--body);
  letter-spacing: -0.04em;
}
.chap h3 {
  font: 800 17px/1.25 var(--body);
  margin: 10px 0 6px;
  letter-spacing: -0.01em;
}
.chap p {
  margin: 0;
  color: var(--mid);
  font-size: 15px;
}

/* library */
.shelfw {
  padding: 26px;
}
.shelf {
  border-radius: 12px;
  overflow: hidden;
  background: #6b4a24;
  box-shadow:
    inset 0 0 0 10px #8a5f30,
    inset 0 0 0 13px #4a3218;
}
.srow {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 170px;
  padding: 16px 22px 0;
  border-bottom: 12px solid #8a5f30;
  box-shadow: inset 0 -2px 0 #4a3218;
  background: linear-gradient(#2b1a0c, #3d2814);
  overflow: hidden;
}
.bk {
  flex: none;
  width: 34px;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  transform-origin: bottom;
  transition:
    transform 0.35s var(--ease),
    filter 0.2s;
  box-shadow:
    inset -4px 0 0 rgba(0, 0, 0, 0.25),
    inset 3px 0 0 rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bk::before,
.bk::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.25);
}
.bk::before {
  top: 14px;
}
.bk::after {
  bottom: 14px;
}
.bk span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 400 11px var(--pix);
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  max-height: calc(100% - 40px);
}
.bk.dec {
  cursor: default;
}
.bk.prj {
  animation: ench 3s ease-in-out infinite;
}
@keyframes ench {
  50% {
    filter: brightness(1.18) saturate(1.2);
    box-shadow:
      inset -4px 0 0 rgba(0, 0, 0, 0.25),
      0 0 16px 2px rgba(197, 160, 255, 0.55);
  }
}
.bk.prj:hover,
.bk.prj:focus-visible {
  transform: translateY(-22px) rotate(-3deg);
}
.bk.done {
  opacity: 0.6;
}
.bk.lean {
  transform: rotate(8deg);
  margin-left: 10px;
}
.plant {
  flex: none;
  width: 40px;
  height: 56px;
  margin-left: auto;
  align-self: flex-end;
  background:
    linear-gradient(#5aa83a, #3d8a2c) 50% 0/26px 34px no-repeat,
    linear-gradient(#a0522d, #7a3e20) 50% 100%/30px 22px no-repeat;
}
.shelfft {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.reader {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 12, 20, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.reader.on {
  opacity: 1;
  pointer-events: auto;
}
.tome {
  position: relative;
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e9dcb8;
  border: 6px solid #3a2410;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.92) rotateX(10deg);
  transition: transform 0.45s var(--ease);
  max-height: calc(100vh - 48px);
  overflow: auto;
  color: #2a1d10;
}
.reader.on .tome {
  transform: none;
}
.pg {
  padding: 40px 38px 64px;
  position: relative;
  min-height: 400px;
  background: #efe3c2;
  font: 500 15px/1.75 var(--body);
}
.pg + .pg {
  border-left: 2px solid #c9b48a;
}
.pg h3 {
  font: 400 24px/1.2 var(--pix);
  margin: 8px 0 16px;
}
.pg .k {
  font: 400 10px var(--pix);
  color: #8a6a3a;
}
.pg p {
  margin: 0 0 14px;
}
.pg .big {
  font: 900 54px/1 var(--body);
  letter-spacing: -0.04em;
  color: #7a3e20;
}
.pg .num {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font: 400 11px var(--pix);
  color: #8a6a3a;
}
.pg .stk {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pg .stk span {
  font: 500 11px var(--mono);
  border: 1px solid #c9b48a;
  border-radius: 6px;
  padding: 2px 8px;
}
.flip {
  animation: flip 0.55s var(--ease);
}
@keyframes flip {
  0% {
    transform: perspective(1200px) rotateY(0);
  }
  45% {
    transform: perspective(1200px) rotateY(-80deg);
    filter: brightness(0.8);
  }
  100% {
    transform: none;
  }
}
.tnav {
  position: absolute;
  bottom: 14px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.tnav button,
.tclose {
  border: 2px solid #3a2410;
  background: #d8c79c;
  color: #2a1d10;
  font: 400 12px var(--pix);
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}
.tclose {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
}

/* lab */
.labw {
  padding: 12px;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: var(--hair);
  width: max-content;
  max-width: calc(100% - 24px);
  overflow-x: auto;
  margin: 12px;
}
.tabs button {
  border: 0;
  background: none;
  padding: 10px 16px;
  border-radius: 12px;
  font: 600 14px var(--body);
  color: var(--mid);
  cursor: pointer;
  white-space: nowrap;
}
.tabs button[aria-selected='true'] {
  background: var(--glass2);
  color: var(--fg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.panel {
  padding: 20px 28px 32px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.panel[hidden] {
  display: none;
}
.panel h3 {
  font: 800 26px/1.1 var(--body);
  letter-spacing: -0.03em;
  margin: 6px 0 8px;
}
.panel p {
  margin: 0 0 12px;
  color: var(--mid);
}
.panel code {
  font: 500 13px var(--mono);
  background: var(--hair);
  padding: 1px 6px;
  border-radius: 5px;
}
.cmdb {
  background: #141210;
  border: 4px solid #000;
  box-shadow: inset 0 0 0 3px #c49a5c;
  color: #e9e6dc;
  font: 13px/1.8 var(--mono);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  min-width: 0;
}
.cmdb .hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 2px solid #000;
  background: linear-gradient(90deg, #c49a5c, #a0783f);
  color: #2b1a0c;
  font: 400 11px var(--pix);
}
.cmdb .hd i {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #d9a66a, #8a5a34);
  box-shadow: inset 0 0 0 2px #4a2c14;
}
.cmdb .out {
  flex: 1;
  padding: 12px 16px;
  overflow: auto;
  max-height: 300px;
  white-space: pre-wrap;
  word-break: break-word;
}
.cmdb .y {
  color: #ffe25a;
}
.cmdb .g {
  color: #7dff7d;
}
.cmdb .r {
  color: #ff7a6a;
}
.cmdb .c {
  color: #7fd8ff;
}
.cmdb form {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-top: 2px solid #000;
  background: #0b0a09;
}
.cmdb label {
  color: #ffe25a;
}
.cmdb input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: #fff;
  font: inherit;
}
.qk {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.qk button {
  font: 500 12px var(--mono);
  border: 1px solid var(--hair);
  background: var(--glass2);
  border-radius: 8px;
  padding: 5px 9px;
  cursor: pointer;
}
.rs {
  display: grid;
  gap: 18px;
  justify-items: start;
  min-width: 0;
}
.rsrow {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.lev {
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 0;
  background: none;
  cursor: pointer;
  font: 400 11px var(--pix);
  color: var(--mid);
}
.lev .base {
  width: 46px;
  height: 46px;
  background: #7f8483;
  border: 3px solid #000;
  position: relative;
  box-shadow:
    inset -3px -3px 0 #555,
    inset 3px 3px 0 #a8adac;
}
.lev .base::after {
  content: '';
  position: absolute;
  left: 17px;
  bottom: 14px;
  width: 6px;
  height: 26px;
  background: #7a5a2d;
  border: 2px solid #000;
  transform-origin: bottom center;
  transform: rotate(-35deg);
  transition: transform 0.2s;
}
.lev.on .base::after {
  transform: rotate(35deg);
}
.wire {
  height: 8px;
  width: 56px;
  background: #4a1010;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.wire.on {
  background: #ff3a2a;
  box-shadow: 0 0 10px #ff3a2a;
}
.gate {
  min-width: 86px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #c6c6c6;
  border: 3px solid #000;
  font: 400 13px var(--pix);
  color: #1b1a17;
  box-shadow:
    inset -3px -3px 0 #555,
    inset 3px 3px 0 #fff;
}
.lamp {
  width: 64px;
  height: 64px;
  border: 3px solid #000;
  background: #5b4630;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  position: relative;
}
.lamp::after {
  content: '';
  position: absolute;
  inset: 8px;
  background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.25) 0 4px, transparent 4px 8px);
}
.lamp.on {
  background: #ffcf6a;
  box-shadow: 0 0 24px rgba(255, 207, 106, 0.9);
}
.ins {
  display: grid;
  gap: 10px;
}
.gsel {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gsel button {
  font: 400 11px var(--pix);
  border: 2px solid #000;
  background: #c6c6c6;
  padding: 6px 10px;
  cursor: pointer;
  color: #1b1a17;
}
.gsel button[aria-pressed='true'] {
  background: #7bd35a;
}
.tt {
  border-collapse: collapse;
  font: 500 13px var(--mono);
}
.tt th,
.tt td {
  padding: 6px 14px;
  border: 1px solid var(--hair);
  text-align: center;
}
.tt tr.cur td {
  background: rgba(255, 58, 42, 0.12);
  font-weight: 700;
}

/* off-call */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.oc {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.oc h3 {
  font: 800 26px/1.05 var(--body);
  letter-spacing: -0.03em;
  margin: 0;
}
.oc p {
  margin: 0;
  color: var(--mid);
  font-size: 15px;
}
.b-rl {
  grid-column: span 3;
}
.b-an {
  grid-column: span 3;
}
.rlhd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.rank {
  width: 30px;
  height: 25px;
  flex: none;
  filter: drop-shadow(0 0 6px rgba(79, 227, 214, 0.6));
  animation: rkf 3s ease-in-out infinite;
}
@keyframes rkf {
  50% {
    transform: translateY(-3px);
  }
}
.rank svg,
.keeper svg,
#carpx svg {
  display: block;
  width: 100%;
  height: 100%;
}
.sb {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  font: 400 11px var(--pix);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  margin-top: auto;
  color: #fff;
}
.sb > span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
}
.sb .tb {
  background: #2f6fe0;
}
.sb .to {
  background: #f07a1a;
  justify-content: flex-end;
}
.sb .clk {
  background: #13202b;
  font-size: 13px;
  justify-content: center;
  min-width: 64px;
}
.sb b {
  font: 400 17px var(--pix);
}
.pitch {
  position: relative;
  height: 132px;
  border-radius: 0 0 16px 16px;
  background: repeating-linear-gradient(90deg, #4f9a3a 0 34px, #5aa83a 34px 68px);
  overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.crowd {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    #2f6fe0 0 4px,
    #13202b 4px 6px,
    #f07a1a 6px 10px,
    #ffe25a 10px 12px,
    #13202b 12px 14px
  );
  opacity: 0.75;
  animation: crowd 0.5s steps(2) infinite;
}
.pitch.cheer .crowd {
  animation-duration: 0.18s;
}
@keyframes crowd {
  50% {
    transform: translateY(-2px);
  }
}
.pitch .mid {
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.55);
}
.pitch .circ {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pitch .goal {
  position: absolute;
  top: 34%;
  bottom: 12%;
  width: 10px;
  opacity: 0.9;
}
.pitch .gb {
  left: 0;
  background: repeating-linear-gradient(0deg, #9cc0ff 0 4px, #2f6fe0 4px 8px);
}
.pitch .go2 {
  right: 0;
  background: repeating-linear-gradient(0deg, #ffd0a6 0 4px, #f07a1a 4px 8px);
}
.pad {
  position: absolute;
  bottom: 12px;
  width: 12px;
  height: 4px;
  background: #ffd84a;
  box-shadow: 0 0 8px #ffd84a;
  animation: padp 1.4s ease-in-out infinite;
}
.pad.big {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  bottom: 10px;
  animation-delay: -0.7s;
}
@keyframes padp {
  50% {
    opacity: 0.45;
  }
}
.pitch .car {
  position: absolute;
  left: 6%;
  bottom: 20px;
  width: 64px;
  height: 24px;
  transition: left 1.1s cubic-bezier(0.6, 0, 0.2, 1);
  z-index: 2;
}
.flame {
  position: absolute;
  right: 100%;
  top: 9px;
  width: 0;
  height: 10px;
  background: linear-gradient(90deg, transparent, #ff7a1a, #ffe25a, #fff6c0);
  transition: width 0.15s;
}
.pitch.go .flame {
  width: 36px;
  animation: flm 0.1s steps(2) infinite;
}
@keyframes flm {
  50% {
    height: 6px;
    top: 11px;
  }
}
.keeper {
  position: absolute;
  right: 14px;
  bottom: 20px;
  width: 52px;
  height: 20px;
  transform: scaleX(-1);
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) 0.55s;
  z-index: 2;
}
.pitch.saved .keeper {
  transform: scaleX(-1) translateY(-46px) rotate(-12deg);
}
.pitch .ball {
  position: absolute;
  left: 56%;
  bottom: 22px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #b9c2cc);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.15);
  transition:
    left 1s cubic-bezier(0.6, 0, 0.2, 1) 0.25s,
    bottom 1s 0.25s;
  z-index: 1;
}
.pitch.go .car {
  left: 58%;
}
.pitch.go .ball {
  left: calc(100% - 28px);
  bottom: 46px;
}
.pitch.go.saved .ball {
  left: calc(100% - 96px);
  bottom: 86px;
}
.burst {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) scale(0);
  font: 400 22px var(--pix);
  color: #fff;
  text-shadow: 3px 3px 0 #13202b;
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
  z-index: 3;
  pointer-events: none;
}
.burst::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: #ffe25a;
  box-shadow:
    -40px -22px 0 #f07a1a,
    38px -26px 0 #ffe25a,
    -52px 10px 0 #ffe25a,
    54px 8px 0 #f07a1a,
    -20px 28px 0 #fff,
    24px 30px 0 #f07a1a,
    0 -34px 0 #fff;
}
.burst.on {
  transform: translate(-50%, -50%) scale(1);
}
.wstat {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wstat span {
  font: 500 12px var(--mono);
  color: var(--mid);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--hair);
}
.wstat b {
  color: var(--fg);
  font-weight: 600;
}
.rlf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.boost {
  --b: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(#ff9a2a calc(var(--b) * 1%), rgba(19, 32, 43, 0.15) 0);
  display: grid;
  place-items: center;
  transition: --b 0.3s;
}
.boost span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #13202b;
  color: #ffe25a;
  display: grid;
  place-items: center;
  font: 400 11px var(--pix);
}
.rlmsg {
  flex: 1;
  min-width: 0;
  font: 500 12px var(--mono);
  color: var(--mid);
}
.posters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}
.po {
  aspect-ratio: 2/3;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  color: #fff;
  font: 700 12px/1.15 var(--body);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s;
}
.po:hover {
  transform: translateY(-6px) rotate(-1.5deg);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}
.po::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.6));
}
.po::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.6px) 0 0/6px 6px;
  pointer-events: none;
}
.po * {
  position: relative;
  z-index: 1;
}
.po .art {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 12px 8px 0;
  min-height: 0;
}
.po .art svg {
  width: 88%;
  display: block;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35));
  transition: transform 0.4s var(--ease);
}
.po:hover .art svg {
  transform: translateY(-4px) scale(1.06);
}
.po .pt {
  padding: 6px 8px 12px;
  display: flex;
  flex-direction: column;
}
.po small {
  font: 400 9px var(--pix);
  opacity: 0.9;
  margin-top: 4px;
}
.po .pb {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.4);
}
.po .pb b {
  display: block;
  height: 100%;
  background: #9cff3a;
}
.po .stamp {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: #9cff3a;
  color: #13202b;
  font: 900 12px/20px var(--body);
  text-align: center;
  transform: rotate(8deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  font-style: normal;
}
/* ground + underground */
.ground {
  position: relative;
  z-index: 2;
  height: 120px;
  background-size: 48px 48px;
  display: grid;
  place-items: center;
}
.ground .sign {
  background: #b98a52;
  border: 4px solid #6b4a24;
  color: #2b1a0c;
  padding: 9px 18px;
  font: 400 12px var(--pix);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.ground .sign:hover {
  background: #c99a62;
}
.layer {
  position: relative;
  z-index: 2;
  padding-block: 110px;
  background-size: 64px 64px;
  color: var(--dfg);
}
/* Overflow fix (Plan §11, production only): the glow of a right-hand torch reached past the viewport from
   601px to 1366px wide. Clipping only the x axis hides nothing on screen and creates no scroll container. */
.layer {
  overflow-x: clip;
}
.layer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.l-work {
  background-color: #5b3d22;
}
.l-work::before {
  background: linear-gradient(rgba(20, 12, 6, 0.42), rgba(20, 12, 6, 0.64));
}
.l-cave {
  background-color: #4a4d4e;
}
.l-cave::before {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 170, 60, 0.18), transparent 40%),
    radial-gradient(ellipse at 85% 70%, rgba(255, 170, 60, 0.15), transparent 40%),
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.62));
}
.l-deep {
  background-color: #1d1f24;
}
.l-deep::before {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(40, 220, 200, 0.12), transparent 45%),
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.72));
}
.l-bed {
  height: 48px;
  padding: 0;
}
.l-nether {
  background-color: #5a1a1a;
  padding-bottom: 140px;
}
.l-nether::before {
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255, 122, 26, 0.45), transparent 55%),
    linear-gradient(rgba(30, 4, 4, 0.55), rgba(20, 2, 2, 0.72));
}
.edge {
  position: relative;
  z-index: 2;
  height: 16px;
  background-size: 16px 16px;
}
.layer .sh h2 {
  color: var(--dfg);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.layer .sh p {
  color: var(--dmid);
}
.layer .sh p a {
  color: var(--xp);
}
.msign {
  display: inline-block;
  background: #b98a52;
  border: 4px solid #6b4a24;
  color: #2b1a0c;
  padding: 7px 12px;
  font: 400 11px var(--pix);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}
.torch {
  position: absolute;
  width: 8px;
  height: 26px;
  background: linear-gradient(#ffd25a 0 6px, #8a5a34 6px);
  z-index: 1;
}
.torch::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -6px;
  width: 90px;
  height: 90px;
  margin-left: -45px;
  margin-top: -38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 80, 0.35), transparent 65%);
  animation: flick 2.2s steps(3) infinite;
}
@keyframes flick {
  0%,
  100% {
    opacity: 1;
  }
  40% {
    opacity: 0.75;
  }
  70% {
    opacity: 0.9;
  }
}
.bat {
  position: absolute;
  width: 26px;
  height: 14px;
  pointer-events: none;
  z-index: 1;
  animation: batfly 14s linear infinite;
}
@keyframes batfly {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(40vw, 6vh);
  }
  50% {
    transform: translate(70vw, -2vh) scaleX(-1);
  }
  75% {
    transform: translate(30vw, 8vh) scaleX(-1);
  }
  100% {
    transform: translate(0, 0);
  }
}
.bat svg {
  width: 100%;
  height: 100%;
  animation: flap 0.25s steps(2) infinite;
}
@keyframes flap {
  50% {
    transform: scaleY(0.4);
  }
}
.craft {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  padding: 32px;
  align-items: start;
}
.ui {
  background: #c6c6c6;
  border: 4px solid #000;
  box-shadow:
    inset -4px -4px 0 #555,
    inset 4px 4px 0 #fff;
  padding: 18px;
  color: #3f3f3f;
  font: 400 12px var(--pix);
}
.ui .row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  gap: 4px;
}
.slot {
  width: 54px;
  height: 54px;
  background: #8b8b8b;
  box-shadow:
    inset 3px 3px 0 #373737,
    inset -3px -3px 0 #fff;
  border: 0;
  padding: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.slot:hover {
  background: #a0a0a0;
}
.slot canvas {
  width: 100%;
  height: 100%;
}
.arrow {
  font: 400 28px var(--pix);
  color: #555;
}
.res {
  width: 72px;
  height: 72px;
}
.res.ok {
  background: #9bd17a;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    background: #b8ef94;
  }
}
.inv {
  display: grid;
  grid-template-columns: repeat(8, 46px);
  gap: 4px;
  margin-top: 16px;
}
.inv .slot {
  width: 46px;
  height: 46px;
}
.inv .slot.sel {
  outline: 3px solid #fff;
  outline-offset: -3px;
  background: #b0b0b0;
}
.ui .t {
  margin: 0 0 10px;
}
.cinfo {
  display: grid;
  gap: 14px;
  align-content: start;
}
.cinfo h3 {
  font: 800 26px/1.1 var(--body);
  letter-spacing: -0.03em;
  margin: 0;
}
.rbk {
  display: grid;
  gap: 6px;
}
.rbk button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--dedge);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  cursor: pointer;
  font: 500 15px var(--body);
  color: var(--dfg);
}
.rbk button:hover {
  background: rgba(255, 255, 255, 0.09);
}
.rbk button span {
  font: 400 10px var(--pix);
  color: var(--ddim);
}
.rbk button.done span {
  color: var(--xp);
}
.crafted {
  display: none;
  padding: 18px;
  border-radius: 14px;
  background: rgba(156, 255, 58, 0.08);
  border: 1px solid rgba(156, 255, 58, 0.35);
}
.crafted.on {
  display: block;
}
.crafted b {
  font: 800 22px var(--body);
}
.crafted button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--xp);
  font: 600 15px var(--body);
  cursor: pointer;
  text-decoration: underline;
}
.inv .slot,
#grid .slot {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#grid .slot.over {
  background: #b6d4ff;
  box-shadow:
    inset 3px 3px 0 #373737,
    inset -3px -3px 0 #fff,
    0 0 0 2px #fff;
}
#grid .slot.lifted {
  background: #7a7a7a;
}
.ghost {
  position: fixed;
  z-index: 120;
  width: 46px;
  height: 46px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.15);
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.5));
}
.ghost canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.res.pop {
  animation: rpop 0.4s var(--ease);
}
@keyframes rpop {
  40% {
    transform: scale(1.18);
  }
}
.cbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.cbar button {
  font: 400 11px var(--pix);
  border: 2px solid #000;
  background: #b5b5b5;
  padding: 5px 9px;
  cursor: pointer;
  color: #1b1a17;
}
.cinfo h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.cinfo h3 span {
  font: 400 11px var(--pix);
  color: var(--xp);
}
.rbk {
  max-height: 330px;
  overflow: auto;
  padding-right: 4px;
}
.rbk button.unk {
  color: var(--ddim);
}
.rbk button.unk span {
  font: 500 12px var(--body);
  color: var(--ddim);
  text-align: right;
}
.rbk button.shake {
  animation: shk 0.35s;
}
@keyframes shk {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.coll {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.coll .slot {
  width: 34px;
  height: 34px;
  padding: 5px;
  cursor: default;
}
.coll .slot.no {
  opacity: 0.45;
}
.cout {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}
.cout .slot {
  width: 56px;
  height: 56px;
  cursor: default;
}
.cout p {
  margin: 4px 0 6px;
  color: var(--dmid);
  font-size: 15px;
}
.layer,
.ground,
.edge,
.ore,
.ore::after,
.ob,
.slot canvas {
  image-rendering: pixelated;
}
.mine {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}
.wall {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border: 4px solid #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.ore {
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  background-size: cover;
}
.ore::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  pointer-events: none;
}
.ore.c1::after {
  background-image: var(--crack1);
}
.ore.c2::after {
  background-image: var(--crack2);
}
.ore.gone {
  background: #141313 !important;
  cursor: default;
  box-shadow: inset 0 0 0 1px #000;
}
.ore .sk {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 400 8px/1.1 var(--pix);
  color: var(--xp);
  text-align: center;
  padding: 2px;
}
.skills {
  padding: 28px;
  display: grid;
  gap: 14px;
}
.skills h3 {
  font: 800 26px/1.1 var(--body);
  letter-spacing: -0.03em;
  margin: 0;
}
.skills p {
  margin: 0;
  color: var(--dmid);
  font-size: 15px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chipm {
  font: 400 11px var(--pix);
  padding: 6px 10px;
  border: 2px solid #000;
  background: #2a2a2a;
  color: #777;
}
.chipm.got {
  background: #3a5a1a;
  color: #d6ff9a;
}
.nnl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.nnl .dk {
  padding: 32px;
}
.nnl dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px 16px;
  margin: 16px 0 0;
}
.nnl dt {
  font: 400 10px var(--pix);
  color: var(--ddim);
  padding-top: 5px;
}
.nnl dd {
  margin: 0;
}
.chat {
  font: 14px/2 var(--mono);
  background: rgba(0, 0, 0, 0.62);
}
.chat p {
  margin: 0;
}
.chat .a {
  color: #ffe25a;
}
.chat .g {
  color: #7dff7d;
}
.chat .t {
  color: #8a8a8a;
}
.chat .c {
  color: #c58bff;
}
.chat a {
  color: #7fd8ff;
}
.portalwrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}
.portal {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  grid-template-rows: repeat(5, 44px);
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
}
.portal:hover {
  filter: drop-shadow(0 0 22px rgba(155, 77, 255, 0.8));
}
.ob {
  background-size: cover;
}
.pin {
  grid-column: 2/4;
  grid-row: 2/5;
  position: relative;
  overflow: hidden;
}
.pin canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ptxt {
  font: 400 11px var(--pix);
  color: #e0c8ff;
  margin-top: 14px;
  text-align: center;
}
.contact h3 {
  font: 900 clamp(44px, 6vw, 80px)/0.92 var(--body);
  letter-spacing: -0.05em;
  margin: 0 0 14px;
}
.contact p {
  margin: 0 0 22px;
  color: var(--dmid);
  max-width: 42ch;
}
.mrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.mrow + .mrow {
  margin-top: 8px;
}
.mrow code {
  font: 500 14px var(--mono);
  border: 1px solid var(--dedge);
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  user-select: all;
}
.soc {
  display: flex;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
  font: 600 15px var(--body);
}
.soc a {
  text-decoration: none;
  border-bottom: 2px solid var(--dedge);
}
.soc a:hover {
  border-color: var(--por);
}
.warp {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  background: radial-gradient(circle, rgba(155, 77, 255, 0), rgba(90, 20, 160, 0.92));
  opacity: 0;
  transition: opacity 0.5s;
}
.warp.on {
  opacity: 1;
}

/* HUD */
.hud {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 16px);
  transition:
    transform 0.35s var(--ease),
    opacity 0.3s;
}
body.nohud .hud {
  transform: translate(-50%, 160%);
  opacity: 0;
  pointer-events: none;
}
body.nohud .bit {
  opacity: 0;
  pointer-events: none;
}
.lvl {
  font: 400 14px var(--pix);
  color: var(--xp);
  text-shadow:
    2px 2px 0 #000,
    -1px -1px 0 #000;
  height: 16px;
  transition: transform 0.2s;
}
.lvl.pop {
  transform: scale(1.5);
}
.xpbar {
  width: min(540px, calc(100vw - 24px));
  height: 10px;
  background: #1a1a1a;
  border: 2px solid #000;
  position: relative;
}
.xpbar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(#c8ff6a, #7ad81a);
  transition: width 0.4s;
}
.hotbar {
  display: flex;
  background: rgba(40, 40, 40, 0.85);
  border: 3px solid #111;
  width: min(540px, calc(100vw - 24px));
  position: relative;
}
.hotbar a {
  flex: 1;
  min-width: 0;
  aspect-ratio: 1;
  max-height: 54px;
  display: grid;
  place-items: center;
  border: 3px solid #8b8b8b;
  border-top-color: #c6c6c6;
  border-left-color: #c6c6c6;
  text-decoration: none;
  position: relative;
}
.hotbar a canvas {
  width: 52%;
  height: 52%;
}
.hotbar a .n {
  position: absolute;
  top: 1px;
  left: 3px;
  font: 400 9px var(--pix);
  color: #ddd;
}
.hotbar a.sel {
  outline: 4px solid #fff;
  outline-offset: -3px;
  z-index: 1;
}
.hname {
  position: absolute;
  bottom: calc(100% + 40px);
  left: 50%;
  transform: translateX(-50%);
  font: 400 12px var(--pix);
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  white-space: nowrap;
  pointer-events: none;
}
.hudt {
  position: fixed;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 61;
  font: 400 10px var(--pix);
  background: rgba(40, 40, 40, 0.85);
  color: #ddd;
  border: 2px solid #111;
  padding: 6px 8px;
  cursor: pointer;
}
.bit {
  position: fixed;
  bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  left: 0;
  width: 40px;
  height: 36px;
  z-index: 61;
  cursor: pointer;
  transition: opacity 0.3s;
}
.bit .bb {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #111;
  font: 400 10px var(--pix);
  padding: 5px 8px;
  white-space: nowrap;
  border: 2px solid #000;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.bit .bb.on {
  opacity: 1;
}
.orbxp {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: radial-gradient(circle, #efff9a, #7ad81a);
  box-shadow: 0 0 10px #9cff3a;
  z-index: 96;
  pointer-events: none;
}
.toast {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  top: calc(78px + env(safe-area-inset-top, 0px));
  z-index: 97;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #212121;
  border: 3px solid #555;
  color: #fff;
  padding: 10px 14px;
  transform: translateX(calc(100% + 40px));
  transition: transform 0.35s var(--ease);
  max-width: 320px;
}
.toast.on {
  transform: none;
}
.toast i {
  width: 30px;
  height: 30px;
  flex: none;
  background: #e8a91a;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.25);
}
.toast b {
  display: block;
  color: #ffe25a;
  font: 400 12px var(--pix);
}
.toast span {
  font-size: 13px;
}
.adv {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.adv.on {
  opacity: 1;
  pointer-events: auto;
}
.advbox {
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #c6c6c6;
  border: 4px solid #000;
  box-shadow:
    inset -4px -4px 0 #555,
    inset 4px 4px 0 #fff;
  padding: 22px;
  color: #2b2b2b;
}
.advbox h3 {
  font: 400 18px var(--pix);
  margin: 0 0 4px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.advbox h3 button {
  font: 400 11px var(--pix);
  border: 2px solid #000;
  background: #b5b5b5;
  padding: 4px 8px;
  cursor: pointer;
}
.advbox p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #444;
}
.alist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ai {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: #8b8b8b;
  box-shadow:
    inset 2px 2px 0 #373737,
    inset -2px -2px 0 #fff;
  color: #ddd;
}
.ai i {
  width: 34px;
  height: 34px;
  background: #555;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.3);
}
.ai b {
  display: block;
  font: 400 11px var(--pix);
  color: #eee;
}
.ai small {
  font-size: 12px;
  color: #e2e2e2;
}
.ai.got {
  background: #5a7a3a;
}
.ai.got i {
  background: #e8a91a;
}
.ai.got b {
  color: #ffe25a;
}
/* pages common */
.pghead {
  position: relative;
  z-index: 2;
  padding-block: 130px 56px;
  background-size: 64px;
  color: var(--dfg);
}
.pghead h1 {
  font: 900 clamp(60px, 9vw, 128px)/0.9 var(--body);
  letter-spacing: -0.05em;
  margin: 14px 0;
}
.pghead p {
  color: var(--dmid);
  max-width: 56ch;
  margin: 0;
  font-size: 18px;
}
.crumb {
  font: 400 11px var(--pix);
  color: var(--ddim);
}
.crumb a {
  color: var(--dfg);
}
.pgbody {
  position: relative;
  z-index: 2;
  background-size: 64px;
  padding-block: 40px 120px;
  color: var(--dfg);
}
.rbook {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  border: 4px solid #000;
  background: #c6c6c6;
  box-shadow:
    inset -4px -4px 0 #555,
    inset 4px 4px 0 #fff;
  color: #2b2b2b;
}
.rlist {
  padding: 16px;
  border-right: 4px solid #8b8b8b;
  display: grid;
  gap: 6px;
  align-content: start;
}
.rlist a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  text-decoration: none;
  background: #b5b5b5;
  box-shadow:
    inset 2px 2px 0 #fff,
    inset -2px -2px 0 #6a6a6a;
}
.rlist a:hover,
.rlist a.on {
  background: #9bd17a;
}
.rlist a b {
  font: 700 16px var(--body);
}
.rlist a small {
  display: block;
  font: 400 9px var(--pix);
  color: #555;
}
.rlist .ic {
  width: 44px;
  height: 44px;
  background: #8b8b8b;
  box-shadow:
    inset 2px 2px 0 #373737,
    inset -2px -2px 0 #fff;
  padding: 6px;
}
.rdet {
  padding: 32px;
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}
.rdet h2 {
  font: 900 44px/1 var(--body);
  letter-spacing: -0.04em;
  margin: 0;
  overflow-wrap: anywhere;
}
.rdet p {
  margin: 0;
  color: #3a3a3a;
}
.rdet .row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.rdet .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rdet .tags span {
  font: 400 10px var(--pix);
  background: #8b8b8b;
  color: #fff;
  padding: 5px 8px;
}
.wbook {
  max-width: 820px;
  margin: 0 auto;
  background: #efe3c2;
  color: #2a1d10;
  border: 6px solid #3a2410;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  padding: 56px 64px;
}
.wbook .k {
  font: 400 11px var(--pix);
  color: #8a6a3a;
}
.wbook h1 {
  font: 400 clamp(34px, 5vw, 54px)/1.05 var(--pix);
  margin: 10px 0 18px;
  overflow-wrap: anywhere;
}
.wbook h2 {
  font: 400 19px var(--pix);
  margin: 40px 0 10px;
  color: #5a3a1a;
}
.wbook p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.75;
}
.wbook .meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-top: 2px dashed #c9b48a;
  border-bottom: 2px dashed #c9b48a;
  margin: 18px 0 8px;
}
.wbook .meta span {
  display: block;
  font: 400 9px var(--pix);
  color: #8a6a3a;
}
.wbook .meta b {
  font: 600 15px var(--body);
}
.wbook pre {
  background: #2a1d10;
  color: #efe3c2;
  font: 13px/1.7 var(--mono);
  padding: 18px;
  overflow-x: auto;
  margin: 8px 0 18px;
}
.wbook .mets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.wbook .mets div {
  border: 3px solid #3a2410;
  padding: 14px;
  background: #f6edd4;
}
.wbook .mets b {
  display: block;
  font: 900 34px/1 var(--body);
  color: #7a3e20;
}
.wbook .mets span {
  font-size: 14px;
}
.wbook .pn {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.wbook .pn a {
  font: 400 12px var(--pix);
  color: #2a1d10;
  background: #d8c79c;
  border: 3px solid #3a2410;
  padding: 8px 12px;
  text-decoration: none;
}
.wbook .note {
  font: 500 12px var(--mono);
  color: #8a6a3a;
  border: 1px dashed #c9b48a;
  padding: 8px 12px;
  margin-bottom: 20px;
}

/* log page */
.loglist {
  display: grid;
  gap: 16px;
  max-width: 860px;
}
.post {
  padding: 0;
  overflow: hidden;
}
.post summary {
  list-style: none;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  cursor: pointer;
}
.post summary::-webkit-details-marker {
  display: none;
}
.post time {
  font: 400 11px var(--pix);
  color: var(--ddim);
}
.post h3 {
  font: 800 24px/1.2 var(--body);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.post .tg {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.post .tg span {
  font: 400 10px var(--pix);
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--dmid);
}
.post .pl {
  font: 400 18px var(--pix);
  color: var(--xp);
  transition: transform 0.3s;
}
.post[open] .pl {
  transform: rotate(45deg);
}
.post .pb {
  padding: 0 28px 28px 158px;
  color: var(--dmid);
  max-width: 780px;
}
.post .pb p {
  margin: 0;
}
.lfilter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.lfilter button {
  font: 400 11px var(--pix);
  border: 2px solid #000;
  background: #c6c6c6;
  padding: 7px 12px;
  cursor: pointer;
  color: #1b1a17;
}
.lfilter button[aria-pressed='true'] {
  background: #7bd35a;
}

/* about page */
.ab {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.sheet {
  padding: 28px;
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}
.sheet .por {
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(160deg, #5aa83a, #21b8b2);
  padding: 28px;
  border: 4px solid #000;
}
.sheet h2 {
  font: 900 40px/1 var(--body);
  letter-spacing: -0.04em;
  margin: 0;
}
.sheet dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0;
  font-size: 15px;
}
.sheet dt {
  font: 400 10px var(--pix);
  color: var(--ddim);
  padding-top: 4px;
}
.sheet dd {
  margin: 0;
}
.hearts {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.hearts i {
  width: 16px;
  height: 14px;
  background: #e24a3b;
  clip-path: polygon(50% 100%, 0 40%, 0 15%, 20% 0, 50% 18%, 80% 0, 100% 15%, 100% 40%);
}
.hearts i.h {
  background: linear-gradient(90deg, #e24a3b 50%, #3a1a1a 50%);
}
.abcol {
  display: grid;
  gap: 24px;
}
.abcol .dk {
  padding: 32px;
}
.abcol h3 {
  font: 800 28px/1.1 var(--body);
  letter-spacing: -0.03em;
  margin: 4px 0 14px;
}
.abcol p {
  color: var(--dmid);
  margin: 0 0 12px;
}
.invg {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.invi {
  aspect-ratio: 1;
  background: #8b8b8b;
  box-shadow:
    inset 3px 3px 0 #373737,
    inset -3px -3px 0 #fff;
  position: relative;
  display: grid;
  place-items: center;
  cursor: help;
  border: 0;
  padding: 10px;
}
.invi .q {
  position: absolute;
  right: 4px;
  bottom: 2px;
  font: 400 10px var(--pix);
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}
.invtip {
  margin-top: 12px;
  font: 500 15px var(--body);
  color: var(--dmid);
  min-height: 24px;
}
.invtip b {
  color: #ffe25a;
  font-weight: 600;
}
.setup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.setup div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--dedge);
  border-radius: 12px;
  font-size: 15px;
}
.setup span {
  font: 400 10px var(--pix);
  color: var(--ddim);
  padding-top: 4px;
}
.rules {
  display: grid;
  gap: 12px;
  counter-reset: r;
}
.rules div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 16px;
}
.rules div::before {
  counter-increment: r;
  content: counter(r);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #c6c6c6;
  border: 2px solid #000;
  font: 400 12px var(--pix);
  color: #1b1a17;
}
/* NIGHT CITY page */
.nc {
  --n-bg: #0b0b12;
  --n-s1: #13131c;
  --n-s2: #1b1b28;
  --n-line: rgba(255, 255, 255, 0.1);
  --n-fg: #ececf1;
  --n-mid: #c0bfce;
  --n-dim: #8f8ea3;
  background: var(--n-bg);
  color: var(--n-fg);
  position: relative;
  z-index: 2;
}
.nc .lbl {
  color: var(--n-dim);
}
.nc .sh h2 {
  color: var(--n-fg);
  font: 900 clamp(52px, 6.4vw, 92px)/0.9 var(--nc);
  text-transform: uppercase;
  letter-spacing: 0;
  margin-top: 12px;
}
.nc .sh p {
  color: var(--n-mid);
}
.nc .sh .lbl {
  color: var(--cy);
}
.n-sec {
  padding-block: 110px;
  border-top: 1px solid var(--n-line);
  scroll-margin-top: 130px;
  position: relative;
}
.nbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font: 700 14px var(--body);
  text-decoration: none;
  border: 1px solid var(--n-line);
  background: var(--n-s2);
  color: var(--n-fg);
  cursor: pointer;
  border-radius: 4px;
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.nbtn:hover {
  border-color: var(--volt);
  transform: translateY(-1px);
}
.nbtn.y {
  background: var(--volt);
  color: #0b0b12;
  border-color: var(--volt);
}
.nbtn.sm {
  padding: 8px 12px;
  font-size: 13px;
}
.nbtn kbd {
  font: 500 10px var(--mono);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 4px;
  opacity: 0.7;
}
/* boot */
.n-boot {
  position: fixed;
  inset: 0;
  z-index: 93;
  background: #05050a;
  display: none;
  place-items: center;
  padding: 24px;
  cursor: pointer;
  transition: opacity 0.45s;
}
.n-boot.on {
  display: grid;
}
.n-boot.out {
  opacity: 0;
}
.n-bootin {
  font: 14px/2 var(--mono);
  color: #3dff9a;
  width: min(560px, 100%);
}
.n-bootin b {
  display: block;
  font: 900 clamp(40px, 7vw, 72px)/1 var(--nc);
  color: var(--volt);
  text-transform: uppercase;
  margin-top: 14px;
}
.n-skip {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font: 400 10px var(--pix);
  color: #666;
}
/* hero */
.n-hero {
  position: relative;
  min-height: max(660px, calc(100vh - 104px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.n-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.n-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 11, 18, 0.86), rgba(11, 11, 18, 0.3) 58%, rgba(11, 11, 18, 0)),
    linear-gradient(transparent 60%, rgba(11, 11, 18, 0.55)),
    repeating-linear-gradient(transparent 0 3px, rgba(0, 0, 0, 0.14) 3px 4px);
}
.n-hin {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 40px;
  align-items: end;
  padding-top: 130px;
  padding-bottom: 44px;
  width: 100%;
}
.nct {
  font: 900 clamp(84px, 14vw, 210px)/0.82 var(--nc);
  text-transform: uppercase;
  margin: 14px 0 18px;
  color: var(--volt);
  position: relative;
  display: inline-block;
  text-shadow: 0 0 30px rgba(245, 228, 0, 0.25);
  animation: nglitch 7s steps(1) infinite;
}
.nct .gh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  text-shadow: none;
}
@keyframes nglitch {
  0%,
  93%,
  100% {
    transform: none;
    clip-path: none;
  }
  94% {
    transform: translateX(6px);
    clip-path: inset(20% 0 55% 0);
  }
  95% {
    transform: translateX(-8px);
    clip-path: inset(60% 0 10% 0);
  }
  96% {
    transform: translateX(3px);
    clip-path: inset(5% 0 80% 0);
  }
}
.n-lede {
  font: 500 clamp(19px, 2vw, 23px)/1.45 var(--body);
  max-width: 36ch;
  margin: 0 0 26px;
  color: var(--n-fg);
}
.n-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.n-feed {
  background: rgba(13, 13, 22, 0.78);
  border: 1px solid var(--n-line);
  border-radius: 6px;
  padding: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: 13px/1.5 var(--mono);
}
.n-feed .hd {
  display: flex;
  justify-content: space-between;
  color: var(--n-dim);
  font-size: 11px;
  margin-bottom: 12px;
}
.n-feed .hd span:first-child::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3a3a;
  margin-right: 8px;
  animation: blinkd 1.2s steps(2) infinite;
}
@keyframes blinkd {
  50% {
    opacity: 0;
  }
}
.n-feed dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 14px;
  margin: 0 0 16px;
}
.n-feed dt {
  color: var(--n-dim);
}
.n-feed dd {
  margin: 0;
  text-align: right;
}
.n-feed .r2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.n-heat {
  display: inline-flex;
  gap: 5px;
  vertical-align: middle;
}
.n-heat i {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border: 1px solid var(--mag);
}
.n-heat i.on {
  background: var(--mag);
  box-shadow: 0 0 8px var(--mag);
}
.n-tick {
  position: relative;
  z-index: 3;
  background: var(--volt);
  color: #0b0b12;
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  font: 600 13px var(--mono);
}
.n-tick div {
  display: inline-flex;
  gap: 48px;
  animation: mq 70s linear infinite;
}
.n-tick span::before {
  content: '■ ';
}
.n-sign {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 150px;
  font: 900 24px/1 var(--nc);
  color: var(--mag);
  border: 2px solid currentColor;
  padding: 10px 12px;
  text-shadow: 0 0 12px currentColor;
  box-shadow:
    0 0 18px rgba(255, 79, 154, 0.6),
    inset 0 0 12px rgba(255, 79, 154, 0.4);
  letter-spacing: 0.08em;
  text-align: center;
  background: rgba(11, 11, 18, 0.4);
}
.n-sign .tx {
  display: block;
  animation: nflick 7s infinite;
}
.n-sign small {
  display: block;
  font: 400 10px var(--pix);
  color: var(--cy);
  margin-top: 6px;
  text-shadow: 0 0 8px var(--cy);
}
@keyframes nflick {
  0%,
  100%,
  7%,
  60%,
  63% {
    opacity: 1;
  }
  3%,
  5% {
    opacity: 0.25;
  }
  4%,
  6% {
    opacity: 1;
  }
  61% {
    opacity: 0.45;
  }
}
.n-cat {
  position: absolute;
  left: 10px;
  top: -29px;
  width: 36px;
  height: 30px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.n-cat svg {
  width: 100%;
  height: 100%;
  display: block;
}
.n-meow {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #fff;
  color: #111;
  font: 500 12px var(--mono);
  padding: 5px 9px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  text-shadow: none;
  letter-spacing: 0;
}
.n-meow.on {
  opacity: 1;
}
/* sandevistan + flybys */
.n-fx {
  position: fixed;
  inset: 0;
  z-index: 79;
  pointer-events: none;
  display: none;
}
.nc.sandy .n-fx {
  display: block;
}
.n-sov {
  position: fixed;
  inset: 0;
  z-index: 78;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(61, 255, 154, 0.2)),
    repeating-linear-gradient(transparent 0 2px, rgba(61, 255, 154, 0.05) 2px 3px);
}
.nc.sandy .n-sov {
  opacity: 1;
  visibility: visible;
}
.n-sov span {
  position: absolute;
  top: calc(134px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  font: 600 13px var(--mono);
  color: #3dff9a;
  border: 1px solid #3dff9a;
  background: rgba(5, 20, 12, 0.85);
  padding: 6px 12px;
  white-space: nowrap;
}
.n-fly {
  position: fixed;
  top: calc(140px + env(safe-area-inset-top, 0px));
  left: 0;
  z-index: 81;
  pointer-events: none;
  width: 120px;
  visibility: hidden;
}
.n-fly.go {
  visibility: visible;
  animation: nfly 6.5s linear both;
}
.n-fly.squad.go {
  animation: nflyq 3.6s linear both;
}
@keyframes nfly {
  0% {
    transform: translate(-170px, 0);
  }
  35%,
  65% {
    transform: translate(calc(50vw - 60px), 14px);
  }
  100% {
    transform: translate(calc(100vw + 60px), -50px);
  }
}
@keyframes nflyq {
  from {
    transform: translateX(-170px);
  }
  to {
    transform: translateX(calc(100vw + 60px));
  }
}
.n-av {
  display: block;
  width: 120px;
  position: relative;
  z-index: 1;
  animation: nbob 1s ease-in-out infinite;
}
.n-av svg {
  display: block;
  width: 100%;
}
@keyframes nbob {
  50% {
    transform: translateY(-4px);
  }
}
.n-beam {
  position: absolute;
  left: 28px;
  top: 36px;
  width: 64px;
  height: 280px;
  background: linear-gradient(rgba(200, 250, 255, 0.4), rgba(200, 250, 255, 0));
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  transform-origin: top center;
  animation: nsweep 2.4s ease-in-out infinite;
}
@keyframes nsweep {
  0%,
  100% {
    transform: rotate(-20deg);
  }
  50% {
    transform: rotate(20deg);
  }
}
.n-fly.squad .n-beam {
  display: none;
}
.n-strobe {
  display: none;
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  justify-content: space-between;
  z-index: 2;
}
.n-fly.squad .n-strobe {
  display: flex;
}
.n-strobe i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3a3a;
  box-shadow: 0 0 14px 4px #ff3a3a;
  animation: nstrobe 0.24s steps(1) infinite;
}
.n-strobe i + i {
  background: #3a6aff;
  box-shadow: 0 0 14px 4px #3a6aff;
  animation-delay: 0.12s;
}
@keyframes nstrobe {
  50% {
    opacity: 0;
  }
}
.n-fly b {
  display: block;
  margin-top: 8px;
  font: 600 11px var(--mono);
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--cy);
  padding: 3px 8px;
  white-space: nowrap;
  width: max-content;
  position: relative;
  z-index: 1;
}
.n-fly.squad b {
  border-color: #ff3a3a;
}
/* metro nav */
.n-metro {
  position: sticky;
  top: calc(70px + env(safe-area-inset-top, 0px));
  z-index: 50;
  background: rgba(11, 11, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--n-line);
  border-top: 1px solid var(--n-line);
}
.n-metro .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
}
.n-line {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.n-line::-webkit-scrollbar {
  display: none;
}
.n-line a {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  text-decoration: none;
  font: 600 13px var(--body);
  color: var(--n-mid);
  position: relative;
}
.n-line a + a::before {
  content: '';
  position: absolute;
  left: -14px;
  width: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  top: 50%;
}
.n-line a i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--n-dim);
  background: var(--n-bg);
  flex: none;
}
.n-line a span {
  font: 500 10px var(--mono);
  color: var(--n-dim);
}
.n-line a:hover {
  color: var(--n-fg);
}
.n-line a.on {
  color: var(--volt);
}
.n-line a.on i {
  border-color: var(--volt);
  background: var(--volt);
  box-shadow: 0 0 10px var(--volt);
}
.n-disp {
  font: 500 12px var(--mono);
  color: var(--cy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 330px;
}
.n-disp.flash {
  animation: nflash 0.7s;
}
@keyframes nflash {
  0% {
    color: #fff;
    text-shadow: 0 0 10px var(--cy);
  }
}
.n-mheat {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 11px var(--mono);
  color: var(--n-dim);
  flex: none;
}
/* fixer */
.n-fix {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.n-call {
  background: var(--n-s1);
  border: 1px solid var(--n-line);
  border-radius: 6px;
  padding: 22px;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 150px;
}
.n-callhd {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 500 12px var(--mono);
  color: var(--n-dim);
}
.n-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3dff9a;
  animation: nring 1.1s infinite;
  flex: none;
}
.n-call.live .n-ring {
  animation: none;
  background: var(--volt);
}
@keyframes nring {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 255, 154, 0.7);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(61, 255, 154, 0);
  }
}
.n-fixer {
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 38%, #33204a, #0f0f18 70%);
  border: 1px solid var(--n-line);
  border-radius: 4px;
  padding: 26px 30px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.n-fixer svg {
  width: 100%;
  display: block;
}
.n-fixer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 2px, rgba(63, 214, 236, 0.07) 2px 3px);
  animation: nholo 4s steps(1) infinite;
}
@keyframes nholo {
  0%,
  96% {
    opacity: 1;
  }
  97% {
    opacity: 0.3;
  }
  98% {
    opacity: 1;
  }
}
.n-call:not(.live) .n-fixer svg {
  filter: brightness(0.35) blur(1px);
}
.n-callmsg {
  font: 14px/1.7 var(--mono);
  color: var(--n-fg);
  min-height: 72px;
}
.n-callmsg .who {
  color: var(--volt);
}
.n-gigs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.n-gig {
  background: var(--n-s1);
  border: 1px solid var(--n-line);
  border-radius: 6px;
  padding: 24px 24px 20px 27px;
  display: grid;
  gap: 12px;
  align-content: start;
  transition:
    border-color 0.25s,
    transform 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.n-gig::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gc);
}
.n-gig:hover {
  border-color: var(--gc);
  transform: translateY(-3px);
}
.n-gigs.hot .n-gig {
  animation: ngp 1s 2;
}
@keyframes ngp {
  50% {
    border-color: var(--gc);
    box-shadow: 0 0 24px -6px var(--gc);
  }
}
.n-gig .hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 12px var(--mono);
  color: var(--n-dim);
  gap: 10px;
}
.n-gig h3 {
  font: 900 36px/0.95 var(--nc);
  text-transform: uppercase;
  margin: 0;
}
.n-gig p {
  margin: 0;
  color: var(--n-mid);
  font-size: 15px;
}
.n-gig ul {
  margin: 0;
  padding-left: 18px;
  color: var(--n-mid);
  font-size: 14px;
}
.n-diff {
  display: inline-flex;
  gap: 3px;
}
.n-diff i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--gc);
}
.n-diff i.on {
  background: var(--gc);
}
.n-gig .ft {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--n-line);
  font: 500 12px var(--mono);
  color: var(--n-dim);
  flex-wrap: wrap;
}
.n-gig.taken .nbtn {
  background: #3dff9a;
  border-color: #3dff9a;
  color: #0b0b12;
}
/* ripperdoc */
.n-doc {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.n-bodyw {
  background: var(--n-s1);
  border: 1px solid var(--n-line);
  border-radius: 6px;
  padding: 24px;
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.n-bodyw svg {
  width: 100%;
  max-width: 190px;
  justify-self: center;
  display: block;
}
.n-scanl {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cy);
  box-shadow: 0 0 12px var(--cy);
  top: 0;
  animation: nscan 3.2s linear infinite;
  opacity: 0.55;
  pointer-events: none;
}
@keyframes nscan {
  to {
    top: 100%;
  }
}
.part {
  fill: #2a2a38;
  stroke: #0b0b12;
  stroke-width: 1.5;
  transition: fill 0.4s;
}
.part.ins {
  fill: #3d3d52;
}
.part.hl {
  fill: #5a5a78;
}
.part.on {
  fill: var(--cy);
}
.n-hum {
  display: flex;
  justify-content: space-between;
  font: 500 12px var(--mono);
  color: var(--n-dim);
}
.n-humb {
  height: 8px;
  background: var(--n-s2);
  border-radius: 4px;
  overflow: hidden;
}
.n-humb i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--mag), #3dff9a);
  width: 100%;
  transition: width 0.6s var(--ease);
}
.n-docmsg {
  font: 14px/1.6 var(--mono);
  color: var(--volt);
  min-height: 46px;
}
.n-impl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}
.n-im {
  background: var(--n-s1);
  border: 1px solid var(--n-line);
  border-radius: 6px;
  padding: 18px;
  display: grid;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  color: var(--n-fg);
  font: inherit;
  transition:
    border-color 0.2s,
    background 0.3s;
  min-width: 0;
}
.n-im:hover,
.n-im:focus-visible {
  border-color: var(--cy);
}
.n-im .sl {
  font: 500 11px var(--mono);
  color: var(--n-dim);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.n-im b {
  font: 800 20px/1.2 var(--body);
}
.n-im small {
  color: var(--n-mid);
  font-size: 14px;
}
.n-im .st {
  color: var(--cy);
}
.n-im.on {
  border-color: rgba(63, 214, 236, 0.5);
  background: linear-gradient(135deg, rgba(63, 214, 236, 0.1), var(--n-s1) 60%);
}
.n-im.on .st {
  color: #3dff9a;
}
.n-alert {
  grid-column: 1/-1;
  display: none;
  padding: 16px 18px;
  border: 1px solid var(--mag);
  border-radius: 6px;
  background: rgba(255, 79, 154, 0.08);
  font-size: 15px;
}
.n-alert.on {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  animation: nalert 1s 3;
}
.n-alert b {
  color: var(--mag);
  font: 600 13px var(--mono);
}
@keyframes nalert {
  50% {
    background: rgba(255, 79, 154, 0.2);
  }
}
/* netrun */
.n-breach {
  background: var(--n-s1);
  border: 1px solid var(--n-line);
  border-radius: 6px;
  padding: 32px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 36px;
}
.n-bhd {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.n-bhd b {
  font: 900 36px/1 var(--nc);
  text-transform: uppercase;
  color: var(--volt);
}
.n-bhd span {
  font: 600 14px var(--mono);
  color: var(--cy);
}
.n-tw {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12px var(--mono);
  color: var(--n-dim);
}
.n-tbar {
  height: 6px;
  width: 180px;
  background: var(--n-s2);
  border-radius: 3px;
  overflow: hidden;
}
.n-tbar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--volt);
  transition: width 0.25s linear;
}
.n-tbar i.low {
  background: #ff3a3a;
}
.n-matrix {
  display: grid;
  grid-template-columns: repeat(5, 60px);
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--n-line);
  border-radius: 4px;
  background: var(--n-bg);
  align-self: start;
}
.n-matrix button {
  height: 52px;
  border: 0;
  background: none;
  font: 700 20px var(--mono);
  color: var(--n-fg);
  cursor: pointer;
  border-radius: 3px;
  transition:
    background 0.15s,
    color 0.15s;
}
.n-matrix button.band {
  background: rgba(245, 228, 0, 0.1);
}
.n-matrix button:hover:not(:disabled) {
  background: var(--volt);
  color: #0b0b12;
}
.n-matrix button.used {
  color: #4a4a58;
}
.n-matrix button:disabled {
  cursor: default;
}
.n-matrix button.hint {
  outline: 2px dashed var(--cy);
}
.n-bright {
  display: grid;
  gap: 20px;
  align-content: start;
  min-width: 0;
}
.n-buf {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.n-buf i {
  width: 48px;
  height: 42px;
  border: 1px dashed var(--n-dim);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font: normal 700 16px var(--mono);
  color: var(--volt);
}
.n-buf i.f {
  border-style: solid;
  border-color: var(--volt);
}
.n-dm {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--n-line);
  border-radius: 4px;
}
.n-dm .cd {
  font: 700 15px var(--mono);
  color: var(--volt);
}
.n-dm b {
  font: 700 15px var(--body);
}
.n-dm small {
  grid-column: 1/-1;
  font-size: 14px;
  color: var(--n-mid);
}
.n-dm.ok {
  border-color: #3dff9a;
  background: rgba(61, 255, 154, 0.06);
}
.n-dm.ok b::after {
  content: ' · uploaded';
  color: #3dff9a;
}
.n-loot {
  display: none;
  padding: 16px;
  border: 1px solid var(--cy);
  border-radius: 4px;
  background: rgba(63, 214, 236, 0.06);
}
.n-loot.on {
  display: block;
}
.n-loot.fail {
  border-color: #ff3a3a;
  background: rgba(255, 58, 58, 0.06);
}
.n-bctl {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* market */
.n-mk {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.n-card {
  background: var(--n-s1);
  border: 1px solid var(--n-line);
  border-radius: 6px;
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}
.n-card h3 {
  font: 900 32px/0.95 var(--nc);
  text-transform: uppercase;
  margin: 0;
}
.n-card p {
  margin: 0;
  color: var(--n-mid);
  font-size: 15px;
}
.n-vend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 10px;
  background: linear-gradient(#2a0f2a, #170a1d);
  border: 2px solid var(--mag);
  border-radius: 6px;
  padding: 12px;
  box-shadow:
    0 0 22px rgba(255, 79, 154, 0.25),
    inset 0 0 20px rgba(255, 79, 154, 0.12);
}
.n-vend .nm {
  grid-column: 1/-1;
  font: 900 22px/1 var(--nc);
  color: var(--mag);
  text-shadow: 0 0 10px var(--mag);
  letter-spacing: 0.1em;
  text-align: center;
}
.n-vend .gls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  background: rgba(63, 214, 236, 0.06);
  border: 1px solid rgba(63, 214, 236, 0.3);
}
.n-vend .gls i {
  height: 26px;
  border-radius: 3px;
  background: var(--c);
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.25);
}
.n-vend .sd {
  display: grid;
  gap: 6px;
  align-content: start;
}
.n-vend .scr {
  font: 400 9px/1.3 var(--pix);
  color: #3dff9a;
  background: #041008;
  padding: 6px 4px;
  text-align: center;
  min-height: 40px;
  border: 1px solid #1a3a22;
  display: grid;
  place-items: center;
}
.n-vend .keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.n-vend .keys i {
  height: 10px;
  background: #3a2a40;
  border-radius: 2px;
}
.n-vend .tray {
  grid-column: 1/-1;
  height: 36px;
  background: #08060c;
  border: 1px solid var(--n-line);
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}
.n-can {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 16px;
  height: 24px;
  margin-left: -8px;
  border-radius: 3px;
  opacity: 0;
}
.n-can.drop {
  animation: ncan 0.5s cubic-bezier(0.5, 0, 1, 1) forwards;
}
@keyframes ncan {
  from {
    transform: translateY(-60px);
    opacity: 1;
  }
  to {
    transform: translateY(0) rotate(90deg);
    opacity: 1;
  }
}
.n-quip {
  font: 14px/1.6 var(--mono);
  color: var(--n-mid);
  min-height: 46px;
}
.n-rdisp {
  background: #071012;
  border: 1px solid rgba(63, 214, 236, 0.35);
  border-radius: 4px;
  padding: 14px;
  font: 500 13px var(--mono);
  color: var(--cy);
  display: grid;
  gap: 4px;
  min-width: 0;
}
.n-rdisp b {
  font: 900 30px/1 var(--nc);
  color: var(--volt);
}
.n-rdisp span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.n-eq {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 38px;
}
.n-eq i {
  flex: 1;
  background: var(--mag);
  height: 12%;
  border-radius: 1px;
}
.n-radio.on .n-eq i {
  animation: neq 0.45s ease-in-out infinite alternate;
}
.n-eq i:nth-child(2n) {
  animation-delay: -0.2s !important;
  background: var(--cy);
}
.n-eq i:nth-child(3n) {
  animation-delay: -0.33s !important;
}
.n-eq i:nth-child(5n) {
  animation-duration: 0.3s !important;
}
@keyframes neq {
  from {
    height: 12%;
  }
  to {
    height: 100%;
  }
}
.n-stn {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.n-stn button {
  border: 1px solid var(--n-line);
  background: none;
  color: var(--n-mid);
  font: 500 12px var(--mono);
  padding: 5px 9px;
  border-radius: 3px;
  cursor: pointer;
}
.n-stn button[aria-pressed='true'] {
  border-color: var(--volt);
  color: var(--volt);
}
.n-want {
  background: #e9dcc0;
  color: #2a1a10;
  border-radius: 2px;
  padding: 24px 22px;
  transform: rotate(-1.2deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 10px;
  position: relative;
  transition: transform 0.4s var(--ease);
}
.n-want:hover {
  transform: rotate(0);
}
.n-want::before,
.n-want::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 70px;
  height: 22px;
  background: rgba(255, 255, 230, 0.5);
}
.n-want::before {
  left: -12px;
  transform: rotate(-30deg);
}
.n-want::after {
  right: -12px;
  transform: rotate(30deg);
}
.n-want h3 {
  font: 900 52px/0.9 var(--nc);
  color: #a0201a;
  text-align: center;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}
.n-want .por {
  width: 118px;
  justify-self: center;
  border: 3px solid #2a1a10;
  background: #cfc2a4;
  padding: 8px;
  filter: grayscale(0.55) sepia(0.45);
}
.n-want .por svg {
  display: block;
  width: 100%;
}
.n-want .nmw {
  font: 900 30px/1 var(--nc);
  text-align: center;
  text-transform: uppercase;
}
.n-want p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #2a1a10;
}
.n-want .rw {
  font: 700 14px var(--mono);
  text-align: center;
  border-top: 2px dashed #2a1a10;
  padding-top: 10px;
}
.n-want button {
  justify-self: center;
  font: 700 13px var(--body);
  background: #2a1a10;
  color: #e9dcc0;
  border: 0;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 2px;
}
/* braindance */
.n-bd {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.n-bdl {
  display: grid;
  gap: 8px;
}
.n-bdl button {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 14px 16px;
  background: var(--n-s1);
  border: 1px solid var(--n-line);
  border-radius: 6px;
  cursor: pointer;
  color: var(--n-fg);
  font: 600 15px var(--body);
}
.n-bdl button .rec {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3a48;
}
.n-bdl button small {
  font: 500 12px var(--mono);
  color: var(--volt);
}
.n-bdl button[aria-pressed='true'] {
  border-color: var(--mag);
}
.n-bdl button[aria-pressed='true'] .rec {
  background: var(--mag);
  box-shadow: 0 0 10px var(--mag);
  animation: blinkd 1s steps(2) infinite;
}
.n-ed {
  background: var(--n-s1);
  border: 1px solid var(--n-line);
  border-radius: 6px;
  padding: 26px;
  display: grid;
  gap: 18px;
  min-width: 0;
}
.n-ed .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.n-ed h3 {
  font: 900 40px/0.95 var(--nc);
  text-transform: uppercase;
  margin: 6px 0 0;
}
.n-score {
  font: 900 48px/1 var(--nc);
  color: var(--volt);
}
.n-score small {
  font: 500 13px var(--mono);
  color: var(--n-dim);
}
.n-tl {
  position: relative;
  display: grid;
  gap: 8px;
}
.n-trk {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font: 500 11px var(--mono);
  color: var(--n-dim);
}
.n-lane {
  height: 22px;
  background: var(--n-s2);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.n-lane i {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 2px;
  opacity: 0.85;
}
.n-phw {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 82px;
  right: 0;
  pointer-events: none;
}
.n-ph {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--volt);
  box-shadow: 0 0 8px var(--volt);
}
.n-ph.play {
  animation: nph 4.5s linear forwards;
}
@keyframes nph {
  to {
    left: 100%;
  }
}
.n-clue {
  font: 15px/1.65 var(--mono);
  color: var(--n-fg);
  border-left: 2px solid var(--mag);
  padding-left: 14px;
  min-height: 50px;
}
.n-clue span {
  color: var(--mag);
}
.n-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font: 500 12px var(--mono);
  color: var(--n-dim);
}
.n-meta b {
  color: var(--n-fg);
  font-weight: 500;
}
/* jack out */
.n-deck {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.n-term {
  background: var(--n-s1);
  border: 1px solid var(--n-line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  font: 14px/1.75 var(--mono);
  overflow: hidden;
  min-width: 0;
}
.n-term .tb {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--n-line);
  font: 500 12px var(--mono);
  color: var(--n-dim);
}
.n-term .out {
  flex: 1;
  padding: 16px 18px;
  overflow: auto;
  max-height: 360px;
  white-space: pre-wrap;
  word-break: break-word;
}
.n-term .c {
  color: var(--volt);
}
.n-term .i {
  color: var(--cy);
}
.n-term .r {
  color: #ff6a6a;
}
.n-term .chips2 {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 18px 12px;
}
.n-term .chips2 button {
  border: 1px solid var(--n-line);
  background: none;
  padding: 3px 10px;
  font: 500 12px var(--mono);
  color: var(--n-mid);
  cursor: pointer;
  border-radius: 3px;
}
.n-term .chips2 button:hover {
  border-color: var(--volt);
  color: var(--volt);
}
.n-term form {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--n-line);
}
.n-term label {
  color: var(--volt);
}
.n-term input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--n-fg);
  font: inherit;
}
.n-exit {
  background: var(--n-s1);
  border: 1px solid var(--n-line);
  border-radius: 6px;
  padding: 28px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.n-exit h3 {
  font: 900 44px/0.9 var(--nc);
  text-transform: uppercase;
  margin: 0;
  color: var(--volt);
}
.n-exit p {
  margin: 0;
  color: var(--n-mid);
}
.n-exit .mrow code {
  border-color: var(--n-line);
}
.n-keys {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font: 500 12px var(--mono);
  color: var(--n-dim);
  padding-top: 14px;
  border-top: 1px dashed var(--n-line);
}
.n-keys kbd {
  font: inherit;
  color: var(--n-fg);
  border: 1px solid var(--n-line);
  border-radius: 3px;
  padding: 0 6px;
  text-align: center;
}
.n-foot {
  padding: 36px 0 56px;
  border-top: 1px solid var(--n-line);
  font: 500 12px var(--mono);
  color: var(--n-dim);
  text-align: center;
}
@media (max-width: 1300px) {
  .n-line a span {
    display: none;
  }
  .n-disp {
    max-width: 240px;
  }
}
@media (max-width: 1020px) {
  .n-hin,
  .n-fix,
  .n-doc,
  .n-bd,
  .n-deck,
  .n-breach {
    grid-template-columns: minmax(0, 1fr);
  }
  .n-mk {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .n-call {
    position: static;
  }
  .n-feed {
    max-width: 440px;
  }
  .n-disp {
    display: none;
  }
  .n-sign {
    bottom: auto;
    top: 110px;
    right: 5%;
  }
}
@media (max-width: 600px) {
  .n-gigs,
  .n-impl,
  .n-mk {
    grid-template-columns: minmax(0, 1fr);
  }
  .n-sec {
    padding-block: 84px;
  }
  .n-hero {
    min-height: auto;
  }
  .n-hin {
    padding-top: 200px;
  }
  .nct {
    font-size: clamp(64px, 22vw, 110px);
  }
  .n-sign {
    top: 96px;
    font-size: 18px;
  }
  .n-matrix {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }
  .n-breach,
  .n-ed {
    padding: 18px;
  }
  .n-tbar {
    width: 110px;
  }
  .n-mheat span {
    display: none;
  }
  .n-trk {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .n-phw {
    left: 66px;
  }
}
/* NIGHT CITY · holo layer */
.n-sec {
  isolation: isolate;
  --sg: 63, 214, 236;
}
#nc-fixer {
  --sg: 245, 228, 0;
}
#nc-doc {
  --sg: 63, 214, 236;
}
#nc-net {
  --sg: 61, 255, 154;
}
#nc-market {
  --sg: 255, 79, 154;
}
#nc-bd {
  --sg: 155, 77, 255;
}
#nc-out {
  --sg: 245, 228, 0;
}
.n-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(700px 420px at 88% 12%, rgba(var(--sg), 0.11), transparent 70%),
    radial-gradient(560px 420px at 6% 92%, rgba(155, 77, 255, 0.08), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0/56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0/56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 25%, transparent 78%);
}
.nc .sh .lbl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nc .sh .lbl::before {
  content: '';
  width: 7px;
  height: 7px;
  background: rgb(var(--sg));
  box-shadow: 0 0 10px rgb(var(--sg));
  animation: blinkd 1.4s steps(2) infinite;
}
.nc .sh .lbl::after {
  content: '';
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--sg)), transparent);
}
.nc .sh h2 {
  text-shadow:
    3px 0 rgba(255, 79, 154, 0.35),
    -3px 0 rgba(63, 214, 236, 0.35);
}
.n-ro {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  font: 500 11px var(--mono);
  color: var(--n-dim);
  letter-spacing: 0.04em;
}
.n-ro b {
  color: rgb(var(--sg));
  font-weight: 500;
}
/* slabs */
.n-call,
.n-gig,
.n-bodyw,
.n-im,
.n-breach,
.n-card,
.n-ed,
.n-term,
.n-exit,
.n-bdl button {
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(var(--sg), 0.13), transparent 45%) 0 0/100%
      100% no-repeat,
    linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.08) 48%, rgba(var(--sg), 0.06) 52%, transparent 62%)
      130% 0/300% 100% no-repeat,
    linear-gradient(160deg, rgba(36, 36, 60, 0.55), rgba(12, 12, 22, 0.74));
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(var(--sg), 0.18);
  border-radius: 3px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 40px rgba(var(--sg), 0.03),
    0 24px 50px -24px rgba(0, 0, 0, 0.7);
  transition:
    background-position 0.9s var(--ease),
    border-color 0.3s,
    transform 0.35s var(--ease),
    box-shadow 0.3s;
}
.n-call:hover,
.n-gig:hover,
.n-bodyw:hover,
.n-im:hover,
.n-breach:hover,
.n-card:hover,
.n-ed:hover,
.n-term:hover,
.n-exit:hover,
.n-bdl button:hover {
  background-position:
    0 0,
    -30% 0,
    0 0;
  border-color: rgba(var(--sg), 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 0 40px rgba(var(--sg), 0.06),
    0 30px 60px -24px rgba(0, 0, 0, 0.8),
    0 0 30px -10px rgba(var(--sg), 0.35);
}
.n-gig,
.n-bodyw,
.n-term {
  overflow: visible;
}
.n-term {
  background-clip: padding-box;
}
.n-call::after,
.n-gig::after,
.n-bodyw::after,
.n-im::after,
.n-breach::after,
.n-card::after,
.n-ed::after,
.n-term::after,
.n-exit::after,
.n-bdl button::after {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  --bc: rgba(var(--sg), 0.85);
  opacity: 0.5;
  transition:
    opacity 0.3s,
    inset 0.35s var(--ease);
  background:
    linear-gradient(var(--bc), var(--bc)) 0 0/14px 2px,
    linear-gradient(var(--bc), var(--bc)) 0 0/2px 14px,
    linear-gradient(var(--bc), var(--bc)) 100% 0/14px 2px,
    linear-gradient(var(--bc), var(--bc)) 100% 0/2px 14px,
    linear-gradient(var(--bc), var(--bc)) 0 100%/14px 2px,
    linear-gradient(var(--bc), var(--bc)) 0 100%/2px 14px,
    linear-gradient(var(--bc), var(--bc)) 100% 100%/14px 2px,
    linear-gradient(var(--bc), var(--bc)) 100% 100%/2px 14px;
  background-repeat: no-repeat;
}
.n-call:hover::after,
.n-gig:hover::after,
.n-bodyw:hover::after,
.n-im:hover::after,
.n-breach:hover::after,
.n-card:hover::after,
.n-ed:hover::after,
.n-term:hover::after,
.n-exit:hover::after,
.n-bdl button:hover::after {
  opacity: 1;
  inset: -6px;
}
.n-bdl button::after {
  opacity: 0;
}
.n-gig::before {
  z-index: 1;
}
.n-gig:hover,
.n-im:hover {
  transform: none;
}
.n-tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
}
.n-im.on {
  border-color: rgba(63, 214, 236, 0.6);
  box-shadow:
    inset 0 0 36px rgba(63, 214, 236, 0.14),
    0 0 24px -8px rgba(63, 214, 236, 0.5);
}
.n-bdl button[aria-pressed='true'] {
  border-color: rgba(255, 79, 154, 0.7);
  box-shadow: 0 0 24px -8px rgba(255, 79, 154, 0.6);
}
.n-gig.taken {
  border-color: rgba(61, 255, 154, 0.5);
}
/* slab header strip */
.n-card > .lbl,
.n-exit > .lbl,
.n-bodyw > .lbl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(var(--sg), 0.18);
}
.n-card > .lbl::after,
.n-exit > .lbl::after,
.n-bodyw > .lbl::after {
  content: '▮▮▮▯';
  color: rgb(var(--sg));
  letter-spacing: 1px;
  animation: nbars 2.4s steps(4) infinite;
}
@keyframes nbars {
  25% {
    content: '▮▯▯▯';
  }
  50% {
    content: '▮▮▯▯';
  }
  75% {
    content: '▮▮▮▮';
  }
}
/* materialize */
.n-mat {
  animation: nmat 0.75s var(--ease) var(--d, 0s) backwards;
}
@keyframes nmat {
  0% {
    clip-path: inset(49.5% 0 49.5% 0);
    filter: brightness(2.6) saturate(0);
    opacity: 0.2;
  }
  45% {
    clip-path: inset(0 0 0 0);
    filter: brightness(1.7);
  }
  55% {
    filter: brightness(0.7);
  }
  62% {
    filter: brightness(1.3);
  }
  100% {
    clip-path: inset(0 0 0 0);
    filter: none;
    opacity: 1;
  }
}
/* buttons + bits */
.nc .nbtn {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  background-image: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
  background-size: 300% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  transition:
    background-position 0.7s var(--ease),
    filter 0.2s,
    border-color 0.2s;
}
.nc .nbtn:hover {
  background-position: -30% 0;
  filter: brightness(1.15);
}
.n-metro::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cy), var(--mag), transparent) 0 0/35% 100% no-repeat;
  animation: nrun 5s linear infinite;
}
@keyframes nrun {
  from {
    background-position: -40% 0;
  }
  to {
    background-position: 140% 0;
  }
}
.n-matrix {
  background: rgba(5, 5, 10, 0.6);
  border-color: rgba(61, 255, 154, 0.2);
  box-shadow: inset 0 0 30px rgba(61, 255, 154, 0.05);
}
.n-matrix button {
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.n-lane,
.n-humb,
.n-tbar {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.n-rdisp,
.n-vend .scr {
  position: relative;
  overflow: hidden;
}
.n-rdisp::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 2px, rgba(63, 214, 236, 0.06) 2px 3px);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .n-tilt {
    transform: none;
  }
}
/* NIGHT CITY · exit portal */
.n-home {
  position: relative;
  overflow: hidden;
  padding-top: 110px;
  border-top: 1px solid var(--n-line);
  scroll-margin-top: 130px;
  isolation: isolate;
}
.n-hsky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(transparent 55%, rgba(11, 11, 18, 0.25)),
    linear-gradient(90deg, #0b0b12 0%, #1a0f2e 34%, #7a3a6a 58%, #ff9a5a 80%, #ffd98a 100%);
}
.n-hsky::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 8% 20%, #fff, transparent), radial-gradient(1px 1px at 18% 42%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 30% 14%, #fff, transparent), radial-gradient(1px 1px at 40% 34%, #fff, transparent),
    radial-gradient(1px 1px at 12% 64%, #fff, transparent), radial-gradient(1px 1px at 46% 18%, #fff, transparent);
  opacity: 0.7;
}
.n-hsun {
  position: absolute;
  right: 12%;
  top: 18%;
  width: 64px;
  height: 64px;
  background: #fff2a8;
  box-shadow:
    inset 0 0 0 8px #ffd94d,
    0 0 80px 20px rgba(255, 217, 77, 0.45);
}
.n-hsky i {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff6a0;
  box-shadow: 0 0 8px 2px rgba(255, 240, 140, 0.8);
  animation: nfly2 3s ease-in-out infinite;
}
@keyframes nfly2 {
  50% {
    transform: translate(10px, -14px);
    opacity: 0.4;
  }
}
.n-hw {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: end;
}
.n-htext {
  padding-bottom: 70px;
}
.n-htext h2 {
  font: 900 clamp(48px, 6vw, 84px)/0.9 var(--nc);
  text-transform: uppercase;
  margin: 14px 0 16px;
  color: var(--n-fg);
  text-shadow:
    3px 0 rgba(255, 79, 154, 0.35),
    -3px 0 rgba(63, 214, 236, 0.35);
}
.n-htext p {
  color: var(--n-mid);
  max-width: 40ch;
  margin: 0 0 24px;
  font-size: 17px;
}
.n-htext .lbl {
  color: var(--cy);
}
.n-scene {
  position: relative;
  height: 340px;
}
.n-hp {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 40px);
  grid-template-rows: repeat(5, 40px);
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: filter 0.3s;
}
.n-hp:hover,
.n-hp:focus-visible {
  filter: drop-shadow(0 0 26px rgba(155, 77, 255, 0.9));
}
.n-hp .ob {
  background-size: cover;
  image-rendering: pixelated;
}
.n-hp .pin {
  grid-column: 2/4;
  grid-row: 2/5;
  position: relative;
  overflow: hidden;
}
.n-hp canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.n-mas {
  position: absolute;
  bottom: 0;
  border: 0;
  background: none;
  padding: 0;
  z-index: 2;
}
.n-iabd {
  left: 12%;
  width: 64px;
  height: 64px;
  animation: nwave 2.6s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes nwave {
  0%,
  100% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(-4deg);
  }
  20% {
    transform: rotate(3deg);
  }
  30% {
    transform: rotate(0);
  }
}
.n-bit {
  left: 26%;
  width: 48px;
  height: 43px;
  cursor: pointer;
  animation: nhop 1.6s ease-in-out infinite;
}
@keyframes nhop {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-10px);
  }
}
.n-cat2 {
  right: 16%;
  width: 44px;
  height: 37px;
  cursor: pointer;
}
.n-mas svg {
  display: block;
  width: 100%;
  height: 100%;
}
.n-bub {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-30%);
  width: max-content;
  max-width: 240px;
  background: #fff;
  color: #111;
  font: 500 13px/1.4 var(--mono);
  padding: 9px 12px;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
  text-align: left;
  white-space: normal;
  pointer-events: none;
}
.n-bub::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 24px;
  border: 8px solid transparent;
  border-top-color: #000;
}
.n-bub.sm {
  transform: translateX(-60%);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.n-bub.sm.on {
  opacity: 1;
}
.n-bub.pop {
  animation: nbubp 0.3s var(--ease);
}
@keyframes nbubp {
  from {
    transform: translateX(-30%) scale(0.85);
  }
}
.n-torch {
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 30px;
  background: linear-gradient(#ffd25a 0 7px, #8a5a34 7px);
}
.n-torch::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -30px;
  width: 80px;
  height: 80px;
  margin-left: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 80, 0.4), transparent 65%);
  animation: flick 2.2s steps(3) infinite;
}
.n-flower {
  position: absolute;
  bottom: 0;
  width: 6px;
  height: 18px;
  background: linear-gradient(#e24a3b 0 6px, #3d8a2c 6px);
}
.n-flower.r {
  background: linear-gradient(#f5e400 0 6px, #3d8a2c 6px);
}
.n-ground {
  height: 96px;
  background-size: 48px 48px;
  background-repeat: repeat-x;
  image-rendering: pixelated;
  position: relative;
}
.n-ground::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 11, 18, 0.85), rgba(11, 11, 18, 0.35) 45%, transparent 70%);
}
@media (max-width: 1020px) {
  .n-hw {
    grid-template-columns: minmax(0, 1fr);
  }
  .n-htext {
    padding-bottom: 10px;
  }
  .n-hsky {
    background: linear-gradient(#0b0b12 0%, #1a0f2e 38%, #7a3a6a 62%, #ff9a5a 84%, #ffd98a 100%);
  }
  .n-hsun {
    top: auto;
    bottom: 220px;
  }
}
@media (max-width: 600px) {
  .n-scene {
    height: 300px;
  }
  .n-hp {
    grid-template-columns: repeat(4, 32px);
    grid-template-rows: repeat(5, 32px);
  }
  .n-iabd {
    left: 0;
    width: 52px;
    height: 52px;
  }
  .n-bit {
    left: 17%;
  }
  .n-cat2 {
    right: 2%;
  }
  .n-bub {
    max-width: 190px;
    font-size: 12px;
  }
  .n-torch {
    display: none;
  }
}
@media (max-width: 1020px) {
  .links,
  .nav .chip,
  .advb span {
    display: none;
  }
  .menu {
    display: block;
    margin-left: auto;
  }
  .hg,
  .sh,
  .mine,
  .nnl,
  .portalwrap,
  .ab,
  .deck {
    grid-template-columns: 1fr;
  }
  .sh {
    gap: 14px;
  }
  .sh p {
    justify-self: start;
  }
  .panel,
  .craft {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .b-rl,
  .b-an {
    grid-column: span 6;
  }
  .island {
    max-width: 440px;
    justify-self: center;
    width: 100%;
  }
  .rbook {
    grid-template-columns: 1fr;
  }
  .rlist {
    border-right: 0;
    border-bottom: 4px solid #8b8b8b;
  }
  .chaps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sheet {
    position: static;
  }
  .breach {
    grid-template-columns: 1fr;
  }
  .gigs {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .tome {
    grid-template-columns: 1fr;
  }
  .pg + .pg {
    border-left: 0;
    border-top: 2px solid #c9b48a;
  }
  .srow {
    height: 150px;
    padding: 12px 14px 0;
  }
  .bk {
    width: 28px;
  }
  .grid3 {
    grid-template-columns: repeat(3, 44px);
  }
  .slot {
    width: 44px;
    height: 44px;
  }
  .res {
    width: 56px;
    height: 56px;
  }
  .inv {
    grid-template-columns: repeat(4, 44px);
  }
  .inv .slot {
    width: 44px;
    height: 44px;
  }
  .ui .row {
    gap: 10px;
  }
  .wall {
    grid-template-columns: repeat(6, 1fr);
  }
  .wall .ore:nth-child(n + 25) {
    display: none;
  }
  .posters {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 96px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .sb {
    font-size: 9px;
  }
  .sb > span {
    padding: 6px 7px;
  }
  .wbook {
    padding: 32px 22px;
  }
  .wbook .meta {
    grid-template-columns: 1fr 1fr;
  }
  .wbook .mets {
    grid-template-columns: 1fr;
  }
  .nnl dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  section.s,
  .layer,
  .ncs {
    padding-block: 84px;
  }
  .panel {
    padding: 16px;
  }
  .chaps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .post summary {
    grid-template-columns: 1fr auto;
  }
  .post time {
    grid-column: 1/-1;
  }
  .post .pb {
    padding: 0 22px 22px;
  }
  .setup,
  .alist {
    grid-template-columns: 1fr;
  }
  .matrix {
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
  }
  .bdr {
    grid-template-columns: 14px 1fr 54px;
  }
  .bdr .tr {
    display: none;
  }
  .invg {
    grid-template-columns: repeat(4, 1fr);
  }
  .railbox {
    padding: 22px;
  }
  .rsrow .wire {
    width: 28px;
  }
  .craft {
    padding: 16px;
  }
  .ui {
    padding: 12px;
  }
  .layer .wrap,
  .pgbody .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .torch {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
