:root {
  color-scheme: dark;
  --bg: #101310;
  --panel: #171c17;
  --line: #303a2d;
  --text: #eef1e7;
  --muted: #a5ad9a;
  --accent: #c6f778;
  --accent-rgb: 198, 247, 120;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, "Segoe UI", sans-serif; }
body.nether { --accent: #f6a078; --accent-rgb: 246, 160, 120; --line: #44332e; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, canvas:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.ambient { position: absolute; z-index: -1; inset: 0 0 auto; height: 1050px; background: radial-gradient(ellipse at 76% 37%, #697e3029, transparent 47%), radial-gradient(ellipse at 50% 15%, #5c487417, transparent 40%); pointer-events: none; }
.skip { position: absolute; top: -100px; left: 15px; z-index: 10; padding: 10px 20px; background: var(--panel); }
.skip:focus { top: 12px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 4px; font-weight: 800; letter-spacing: -.055em; font-size: 21px; }
.brand > span:not(.brand-cube) { color: var(--accent); }
.brand .brand-cube { font-size: 35px; margin-right: 8px; color: var(--accent); }
.brand small { display: block; margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--line); font: 9px/1.5 ui-monospace, monospace; letter-spacing: .08em; color: var(--muted); }
nav { display: flex; gap: 30px; font-size: 13px; }
nav a:hover, .footer a:hover { color: var(--accent); }
.header-coordinate { display: flex; align-items: center; gap: 10px; font: 12px ui-monospace, monospace; color: var(--muted); }
.header-coordinate b { color: var(--text); font-weight: 500; }
.header-coordinate i, .eyebrow > span { width: 6px; height: 6px; background: var(--accent); display: inline-block; box-shadow: 0 0 14px rgb(var(--accent-rgb), .4); }
.hero { display: grid; grid-template-columns: .92fr 1.08fr; gap: 32px; align-items: center; padding-block: 70px 65px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 10px/1.6 ui-monospace, monospace; letter-spacing: .14em; color: var(--accent); }
h1 { margin: 26px 0; font-size: clamp(58px, 6.4vw, 91px); line-height: .98; letter-spacing: -.075em; font-weight: 650; }
h1 em { color: var(--accent); font-style: normal; }
.intro { max-width: 415px; color: var(--muted); font-size: 17px; line-height: 1.75; margin-bottom: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 26px; border: 1px solid transparent; border-radius: 5px; min-height: 50px; padding: 12px 21px; font-size: 13px; font-weight: 650; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 27px rgb(var(--accent-rgb), .13); }
.primary { color: #192011; background: var(--accent); }
.button span { font-size: 19px; }
.small-note { margin-top: 16px; color: var(--muted); font: 11px/1.7 ui-monospace, monospace; }
.specimen { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, #1c23196b, #1217116b); overflow: hidden; scroll-margin-top: 20px; }
.specimen-label { position: absolute; z-index: 1; inset: 22px 22px auto; display: flex; justify-content: space-between; font: 9px ui-monospace, monospace; letter-spacing: .12em; color: var(--muted); pointer-events: none; }
#block { display: block; width: 100%; height: clamp(350px, 38vw, 510px); cursor: grab; touch-action: pan-y; }
#block:active { cursor: grabbing; }
.specimen-axis { position: absolute; right: 25px; bottom: 105px; color: var(--muted); font: 9px ui-monospace, monospace; pointer-events: none; }
.specimen-axis span { display: inline-block; transform: rotate(-30deg); padding: 9px; color: var(--accent); }
.specimen-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 23px 17px; font: 10px/1.6 ui-monospace, monospace; color: var(--muted); }
.specimen-caption button { background: none; border: 0; color: var(--accent); padding: 5px; font-size: 10px; }
.model-controls { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px 20px; border-top: 1px solid var(--line); }
.chip { padding: 7px 11px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; }
.chip.selected { border-color: var(--accent); color: var(--accent); background: rgb(var(--accent-rgb), .06); }
.fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); padding: 25px 0; }
.fact-strip > div { padding-left: 26px; border-left: 1px solid var(--line); }
.fact-strip > div:first-child { padding-left: 0; border-left: 0; }
.fact-strip span { display: block; color: var(--muted); font: 9px/1.5 ui-monospace, monospace; letter-spacing: .07em; }
.fact-strip strong { display: block; margin-top: 7px; font-size: 16px; font-weight: 550; }
.world-section, .notes-section { padding-block: 80px 30px; scroll-margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; gap: 45px; align-items: end; margin-bottom: 35px; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.15; letter-spacing: -.055em; font-weight: 570; }
.section-head h2 { margin-top: 12px; }
.section-head > p { max-width: 360px; color: var(--muted); font-size: 14px; }
.world-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; border: 1px solid var(--line); padding: 35px; border-radius: 10px; background: #151a14; }
.segmented { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 5px; margin-bottom: 24px; }
.segmented button { background: transparent; border: 0; padding: 8px 12px; color: var(--muted); font-size: 11px; border-radius: 3px; }
.segmented .selected { background: var(--accent); color: #192011; }
h3 { font-size: 20px; font-weight: 580; letter-spacing: -.025em; margin-bottom: 12px; }
.world-copy > p { color: var(--muted); font-size: 14px; }
.world-copy label { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin: 30px 0 8px; }
output { color: var(--accent); font: 11px ui-monospace, monospace; }
input[type="range"] { width: 100%; accent-color: var(--accent); cursor: ew-resize; }
.strata { --cut: 50%; position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 310px; border: 1px solid #3e4939; border-radius: 5px; overflow: hidden; }
.strata > div { flex-shrink: 0; display: flex; justify-content: space-between; padding: 12px 16px; font: 9px ui-monospace, monospace; letter-spacing: .1em; }
.strata-air { flex-grow: 1; color: #b6c7a9; background: linear-gradient(transparent, #607f3e38); align-items: end; }
.strata-air b { font-size: 8px; font-weight: 500; opacity: .7; }
.strata-earth { height: 60px; background: repeating-linear-gradient(19deg, #55584d 0 6px, #494e44 6px 13px, #41463c 13px 17px); color: #d0d1bd; border-top: 5px solid #6a8644; transition: height .15s; }
.strata-deep { height: var(--depth-height, 70px); max-height: 110px; background: repeating-linear-gradient(0deg, #282e2a 0 5px, #323932 5px 10px); color: #8e998c; }
.strata-bedrock { height: 45px; color: var(--accent); background: repeating-conic-gradient(#1c201c 0 25%, #333a30 0 50%, #141814 0 75%, #4b5146 0) 0 0 / 13px 15px; border-block: 1px solid #7b866155; }
.strata-void { height: 50px; background: #0b0f0c; color: #6a7467; }
.nether .strata-earth { border-color: #7e342b; background: repeating-linear-gradient(19deg, #674234 0 6px, #58392e 6px 13px, #4c2f2a 13px 17px); }
.nether .strata-deep { background: repeating-linear-gradient(0deg, #442b26 0 5px, #39231f 5px 10px); }
.nether .strata-air { background: linear-gradient(transparent, #8f3e252e); }
.impact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 45px; margin-top: 45px; border: 1px solid var(--line); border-radius: 10px; background: radial-gradient(ellipse at right, #4f5d1c24, transparent 70%); }
.impact-section h2 { margin-block: 13px; }
.impact-section p { color: var(--muted); max-width: 365px; font-size: 14px; }
.impact-test .button { width: 100%; }
.integrity { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font: 10px ui-monospace, monospace; margin-top: 23px; }
.integrity b { color: var(--accent); }
.integrity i { width: 100%; margin-top: 10px; height: 5px; background: var(--accent); }
.impact-test > p { margin-top: 14px; font: 11px/1.7 ui-monospace, monospace; min-height: 38px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.notes-grid article { border-top: 1px solid var(--line); padding: 23px 0; }
.note-index { display: inline-block; color: var(--accent); font: 10px ui-monospace, monospace; margin-bottom: 27px; }
.notes-grid h3 { font-size: 18px; }
.notes-grid p { color: var(--muted); font-size: 13px; max-width: 320px; }
.about { padding: 18px 0; margin: 20px 0 40px; border-block: 1px solid var(--line); font-size: 12px; color: var(--muted); }
summary { cursor: pointer; color: var(--text); }
.about p { max-width: 800px; margin-top: 15px; }
.about a { color: var(--accent); text-decoration: underline; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: 25px 35px; color: var(--muted); font: 11px ui-monospace, monospace; }
.footer .brand { font: 700 17px system-ui, sans-serif; }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 44px); }
  .brand small { display: none; }
  .hero { gap: 20px; }
  h1 { font-size: 65px; }
  .world-layout { gap: 30px; padding: 25px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .topbar { min-height: 80px; flex-wrap: wrap; padding-block: 16px; gap: 13px; }
  .topbar nav { width: 100%; order: 3; gap: 24px; font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  h1 { font-size: clamp(57px, 13vw, 85px); }
  .intro { font-size: 15px; }
  .specimen { margin-top: 15px; }
  #block { height: 370px; }
  .fact-strip { grid-template-columns: repeat(2, 1fr); gap: 25px 12px; }
  .fact-strip > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact-strip strong { font-size: 14px; }
  .section-head { flex-direction: column; align-items: start; gap: 20px; }
  .world-layout, .impact-section { grid-template-columns: 1fr; gap: 30px; padding: 22px; }
  .world-section, .notes-section { padding-top: 55px; }
  .notes-grid { grid-template-columns: 1fr; gap: 0; }
  .note-index { margin-bottom: 12px; }
  .notes-grid p { max-width: none; }
  .footer { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
