@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/AtkinsonHyperlegible-400i.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/AtkinsonHyperlegible-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/AtkinsonHyperlegible-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/BarlowCondensed-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/BarlowCondensed-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/JetBrainsMono-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* The Zone guides. Colours from the launcher logo: moss, rust, fog, portal teal. Dark first, light on request of the OS. */
:root {
  --bg: #15170f;
  --panel: #1f2218;
  --panel-2: #272b1f;
  --ink: #e6e9df;
  --muted: #a3aa96;
  --rule: #3a3f2f;
  --moss: #8fae5a;
  --rust: #c07a45;
  --portal: #6fe0bf;
  --fog: #c1c9bc;
  --rare: #6fa3ff;
  --epic: #c08cff;
  --unique: #f0c84a;
  --legend: #6bd785;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef0e8; --panel: #ffffff; --panel-2: #f5f6f0; --ink: #1d2016; --muted: #5d6452; --rule: #d3d8c8;
    --moss: #5a7a2c; --rust: #9a5426; --portal: #1f7f66; --fog: #59604f;
    --rare: #2f6fd6; --epic: #8a3fd1; --unique: #a07600; --legend: #2e8b40; color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
a { color: var(--portal); }
a:focus-visible { outline: 2px solid var(--portal); outline-offset: 2px; }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 5; }
.skip:focus { left: 8px; }
.gut { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Site frame */
header.site { border-bottom: 1px solid var(--rule); background: var(--panel); }
header.site .gut { display: flex; align-items: center; gap: 14px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--rule), 0 0 16px -2px var(--portal); }
.brand span { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; }
.brand small { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
nav.top { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
nav.top a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 15px; }
nav.top a.on { color: var(--ink); background: var(--panel-2); }
nav.top a:hover { color: var(--ink); }
footer.site { margin-top: 64px; border-top: 1px solid var(--rule); background: var(--panel); }
footer.site .gut { padding-block: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }

/* Home */
.banner { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); margin-top: 20px; }
.banner img { display: block; width: 100%; height: auto; min-height: 260px; object-fit: cover; object-position: 50% 30%; }
.banner-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; background: linear-gradient(transparent, rgba(12, 14, 8, .88) 55%); color: #eef1e6; }
.banner-cap h1 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 6vw, 68px); line-height: .95; margin: 0 0 8px; text-transform: uppercase; text-wrap: balance; }
.banner-cap h1 em { font-style: normal; color: #a9cc6c; }
.banner-cap p { margin: 0; max-width: 58ch; color: #cfd5c4; font-size: 17px; }
@media (max-width: 600px) { .banner img { aspect-ratio: 4 / 3; } .banner-cap { position: static; background: var(--panel); color: var(--ink); padding: 16px; } .banner-cap p { color: var(--muted); } }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 40px 0 10px; }
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.guide { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; display: grid; align-content: start; min-width: 0; text-decoration: none; color: var(--ink); }
.guide img.pic { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-bottom: 1px solid var(--rule); }
.guide .in { padding: 14px 16px 16px; }
.guide .lv { font-family: var(--mono); font-size: 12px; color: var(--rust); }
.guide h2 { font-family: var(--display); font-weight: 700; font-size: 28px; margin: 2px 0 4px; text-transform: uppercase; letter-spacing: .02em; }
.guide p { margin: 0; color: var(--muted); font-size: 15px; }
a.guide:hover { border-color: var(--moss); }

/* Guide pages */
.page { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 36px; margin-top: 28px; }
@media (max-width: 880px) { .page { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.toc { font-size: 14px; align-self: start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); max-height: calc(100vh - 32px); overflow-y: auto; }
@media (max-width: 880px) { .toc { position: static; max-height: none; } }
.toc .h { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.toc ol { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 3px 0 3px 10px; border-left: 2px solid var(--rule); color: var(--ink); text-decoration: none; }
.toc a:hover { border-left-color: var(--portal); color: var(--portal); }
.doc { min-width: 0; }
.doc h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 64px); line-height: .95; margin: 0 0 10px; text-transform: uppercase; }
.doc .intro { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0 0 8px; }
section { scroll-margin-top: 16px; }
h2.sec { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.05; margin: 44px 0 10px; text-transform: uppercase; letter-spacing: .02em; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 26px 0 6px; letter-spacing: .02em; }
p, li { max-width: 68ch; }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 12px; }
.prose .lead { font-size: 19px; line-height: 1.5; }
.prose .aside { font-style: italic; color: var(--muted); }
code { font-family: var(--mono); font-size: .9em; }

/* Overview */
.loop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
@media (max-width: 780px) { .loop { grid-template-columns: minmax(0, 1fr); } }
.node { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 14px; min-width: 0; }
.node-h { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; letter-spacing: .02em; }
.node p { font-size: 14px; color: var(--muted); margin: 8px 0; }
.node ul { margin: 0; padding-left: 18px; font-size: 14px; }
.ruler { margin: 18px 0 8px; overflow-x: auto; }
.ruler-inner { min-width: 560px; }
.ticks { display: grid; grid-template-columns: 1.4fr repeat(16, 1fr); gap: 3px; }
.ticks div { font-family: var(--mono); font-size: 11px; text-align: center; padding: 6px 0; background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; font-variant-numeric: tabular-nums; }
.ticks .s1 { color: var(--moss); border-color: var(--moss); }
.bands { display: grid; grid-template-columns: 1.4fr 5fr 5fr 6fr; gap: 3px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.bands div { border-top: 2px solid var(--moss); padding-top: 4px; }

/* Stages */
.stage { padding-top: 36px; }
.stage-hero { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); }
.stage-hero img.pic { display: block; width: 100%; height: auto; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 50%; }
.stage-hero .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(12, 14, 8, .9) 60%); display: flex; align-items: flex-end; gap: 14px; color: #eef1e6; }
.stage-hero .n { font-family: var(--display); font-weight: 700; font-size: 72px; line-height: .8; color: #a9cc6c; }
.stage-hero h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1; margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.stage-hero .meta { font-family: var(--mono); font-size: 12px; color: #c1c9bc; }
@media (max-width: 560px) { .stage-hero img.pic { aspect-ratio: 16 / 9; } .stage-hero .n { font-size: 52px; } }
.stage-body { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; margin-top: 18px; }
@media (max-width: 780px) { .stage-body { grid-template-columns: minmax(0, 1fr); } }
.kit { align-self: start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
@media (max-width: 780px) { .kit { position: static; } }
.kit-h { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); margin-top: 4px; }
.kit-row { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.3; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0; align-items: start; }
@media (max-width: 560px) { .pair { grid-template-columns: minmax(0, 1fr); } }
figure.shot { margin: 0; }
figure.shot img { display: block; height: auto; border-radius: 8px; border: 1px solid var(--rule); }
figure.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Items and icons */
.ic { width: 32px; height: 32px; image-rendering: pixelated; object-fit: contain; flex: none; }
.slot { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--rule); flex: none; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin: 12px 0; }
.item { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.item .t { font-weight: 700; line-height: 1.3; }
.item .d { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.item .rar { margin-top: 4px; }
.iname { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.rar { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.rar::before { content: ""; width: 6px; height: 14px; border-radius: 2px; background: currentColor; }
.rar.rare { color: var(--rare); } .rar.epic { color: var(--epic); } .rar.unique { color: var(--unique); } .rar.legend { color: var(--legend); }
.rar.none { color: var(--muted); font-weight: 400; }
.rar.none::before { background: transparent; border: 1px solid var(--muted); }
.legend-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 10px 0; }

/* Tables */
.tablewrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
td.name { font-weight: 700; }
td.grp { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
table.sets { min-width: 640px; }
table.sets th { text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 15px; color: var(--ink); font-weight: 700; }
table.sets th:first-child { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.sets .lvl { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 500; }
table.sets td { font-variant-numeric: tabular-nums; font-size: 14px; }
table.sets td.pc { font-family: var(--mono); font-size: 12px; color: var(--moss); white-space: nowrap; }
table.sets tr.total td { background: var(--panel-2); font-weight: 700; }
table.recipes td { font-size: 14px; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.compare > div { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; }
.compare h3 { margin: 0 0 6px; }
.compare ul { margin: 0; padding-left: 18px; font-size: 15px; }
.rule-card { border-left: 3px solid var(--moss); padding: 4px 0 4px 14px; margin: 14px 0; }
.rule-card b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: .02em; }
.chain { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chain > div { flex: 1 1 160px; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.chain .lv { font-family: var(--mono); font-size: 12px; color: var(--moss); }
.chain .nm { font-family: var(--display); font-weight: 600; font-size: 18px; }
.chain .how { font-size: 13px; color: var(--muted); }
.fams { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; margin: 14px 0; }
.fam { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 12px; min-width: 0; }
.fam .t { font-family: var(--display); font-weight: 600; font-size: 20px; }
.fam .w { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.fam .b { font-size: 14px; line-height: 1.4; margin-top: 4px; }
.fam .b b { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--rust); margin-right: 6px; font-weight: 500; }
