:root {
  color-scheme: dark;
  --bg: #0b1424;
  --bg-2: #0f1b30;
  --panel: #12213a;
  --panel-2: #172a48;
  --line: #22385a;
  --text: #dfe9f5;
  --muted: #8ea3bf;
  --accent: #6ff0d1;
  --accent-ink: #062a24;
  --amber: #ffd27a;
  --rose: #ff7aa8;
  --violet: #a996ff;
  --radius: 10px;
  --head: "Chakra Petch", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body);
  background-image: linear-gradient(rgba(111,240,209,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(111,240,209,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .86em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: .08em .4em; overflow-wrap: anywhere; }
kbd { font-family: var(--mono); font-size: .8em; background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 5px; padding: .05em .45em; margin: 0 .1em; white-space: nowrap; }
b[data-k] { font-family: var(--mono); color: var(--accent); font-weight: 600; }

.logo { display: inline-block; width: 18px; height: 20px; margin-right: 8px; vertical-align: -3px;
  background: linear-gradient(135deg, var(--accent) 0 50%, #3a8f84 50%); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100vw - 1180px) / 2)); background: rgba(11,20,36,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font: 700 20px var(--head); letter-spacing: .3em; color: var(--text); text-decoration: none; }
.top nav { display: flex; gap: 22px; overflow-x: auto; }
.top nav a { color: var(--muted); text-decoration: none; font: 500 14px var(--head); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.top nav a:hover { color: var(--accent); }

main { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 64px 0 40px; }
.kicker { font: 600 13px var(--head); letter-spacing: .25em; text-transform: uppercase; color: var(--amber); margin: 0; }
h1 { font: 700 clamp(56px, 9vw, 104px)/1 var(--head); letter-spacing: .18em; margin: 10px 0 18px; color: #fff; text-shadow: 0 0 30px rgba(111,240,209,.35); }
.faq { display: grid; gap: 10px; }
.faq summary { cursor: pointer; font: 600 17px var(--head); color: #fff; }
.faq p { margin: 10px 0 0; color: #c8d6e8; }
.lead { font-size: 18px; color: #c8d6e8; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { color: var(--muted); font-size: 14px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font: 600 15px var(--head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent), 0 8px 30px rgba(111,240,209,.25); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--accent), 0 10px 36px rgba(111,240,209,.4); }
.btn.ghost { color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.wide { width: 100%; margin: 18px 0 10px; }

.hero-shot, .gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
/* The captures carry a dark title strip at the top: crop it away. */
.hero-shot img, .gallery img { width: 100%; height: auto; aspect-ratio: 1600 / 970; object-fit: cover; object-position: center bottom; }
.hero-shot { box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(111,240,209,.15); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: 24px; }
.gallery figcaption { font: 500 13px var(--head); letter-spacing: .06em; color: var(--muted); padding: 8px 12px; }

.block { padding: 56px 0 24px; border-top: 1px solid var(--line); margin-top: 32px; }
h2 { font: 700 30px var(--head); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 24px; display: flex; align-items: baseline; gap: 14px; }
h2 span { font: 600 14px var(--mono); color: var(--accent); letter-spacing: 0; }
h3 { font: 600 19px var(--head); letter-spacing: .04em; margin: 0 0 12px; color: #fff; }
.intro { color: var(--muted); margin: -10px 0 22px; }
.card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0 0 10px; }
.card ul { margin: 8px 0; padding-left: 20px; }
.card li { margin: 4px 0; }
.note { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }

.download-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); gap: 16px; }
.release { border-color: rgba(111,240,209,.45); box-shadow: inset 3px 0 0 var(--accent); }
.label { font: 600 12px var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0; }
.version { font: 700 44px/1.1 var(--head); color: #fff; margin: 4px 0 14px !important; }
.facts { margin: 0; display: grid; gap: 6px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font: 14px var(--mono); text-align: right; }
.hash { font-size: 12px; color: var(--muted); margin: 0 !important; }
.hash code { font-size: 11px; display: block; margin-top: 4px; }
.steps { padding-left: 22px; margin: 0 0 12px; }
.steps li { margin: 6px 0; }
.changes ul { list-style: none; padding: 0; margin: 0 0 12px; }
.changes li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.changes li time { display: block; font: 12px var(--mono); color: var(--muted); }
.more { font: 600 14px var(--head); text-decoration: none; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.keys { width: 100%; border-collapse: collapse; }
.keys td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.keys td:first-child { white-space: nowrap; color: var(--muted); width: 1%; padding-right: 18px; }
.path { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.path li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.path li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center;
  font: 600 13px var(--mono); color: var(--accent); border: 1px solid var(--accent); border-radius: 8px; background: rgba(111,240,209,.07); }
.path li::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 4px; width: 1px; background: var(--line); }
.path li:last-child::after { display: none; }
.path strong { color: #fff; }

.manual-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { font: 600 13px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px; padding: 9px 14px; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
#filter { font: 15px var(--body); color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px; padding: 9px 14px; min-width: 220px; }
#filter:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.entry { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.entry header { display: flex; gap: 12px; align-items: center; }
.entry h4 { font: 600 16px var(--head); margin: 0; color: #fff; }
.entry .sub { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-family: var(--head); }
.entry p { margin: 0; font-size: 14px; color: #c8d6e8; }
.stats { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0; font-size: 13px; }
.stats div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font-family: var(--mono); text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font: 600 11px var(--head); letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); }
.tag.on { color: var(--accent); border-color: rgba(111,240,209,.5); }
.tag.warn { color: var(--rose); border-color: rgba(255,122,168,.5); }
.tag.amber { color: var(--amber); border-color: rgba(255,210,122,.5); }

/* Isometric voxel drawn from the block's in-game colour. */
.cube { --c: #888; width: 40px; height: 44px; flex: none; position: relative; }
.cube i { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 25%, 50% 50%, 0 25%); background: var(--c); filter: brightness(1.15); }
.cube i:nth-child(2) { clip-path: polygon(0 25%, 50% 50%, 50% 100%, 0 75%); filter: brightness(.82); }
.cube i:nth-child(3) { clip-path: polygon(50% 50%, 100% 25%, 100% 75%, 50% 100%); filter: brightness(.64); }
.cube.plant i { clip-path: polygon(45% 10%, 55% 10%, 60% 100%, 40% 100%); filter: none; }
.cube.plant i:nth-child(2) { clip-path: polygon(10% 40%, 25% 35%, 50% 100%, 40% 100%); }
.cube.plant i:nth-child(3) { clip-path: polygon(90% 40%, 75% 35%, 60% 100%, 50% 100%); }
.cube.glow { filter: drop-shadow(0 0 8px var(--c)); }
.chip-ico { width: 40px; height: 40px; flex: none; border-radius: 9px; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 60%, #000)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.creature .mob-shot { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin: -6px 0 -4px; border-radius: 8px;
  background: radial-gradient(circle at 50% 62%, rgba(111,240,209,.10), transparent 62%); }
.mob-ico { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 18px var(--head); color: var(--accent-ink); background: var(--c); }

.recipe-group h3 { margin: 26px 0 12px; display: flex; gap: 10px; align-items: baseline; }
.recipe-group h3 small { font: 400 14px var(--body); color: var(--muted); }
.recipe-group:first-child h3 { margin-top: 0; }
.ingredients { display: flex; flex-wrap: wrap; gap: 6px; }
.ing { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px 3px 4px; cursor: pointer; color: var(--text); font-family: var(--body); }
.ing:hover { border-color: var(--accent); }
.ing .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }
.ing b { font-family: var(--mono); color: var(--accent); }
.yield { font: 600 13px var(--mono); color: var(--amber); }

.mech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mech .wide { grid-column: span 2; grid-row: span 2; }
.energy-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 14px 0; }
.energy-table div { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.energy-table span { display: block; font-size: 12px; color: var(--muted); }
.energy-table strong { font: 600 18px var(--mono); color: var(--accent); }
.energy-table strong.neg { color: var(--amber); }

.planets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.planet { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.planet .sky { height: 120px; display: flex; align-items: flex-end; padding: 16px; }
.planet .sky h4 { font: 700 30px var(--head); letter-spacing: .08em; margin: 0; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.planet .body { padding: 16px; }

footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 26px 16px; text-align: center; color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .download-grid, .mech { grid-template-columns: 1fr; }
  .mech .wide { grid-column: auto; grid-row: auto; }
  .two, .planets { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .top nav { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .keys td:first-child { white-space: normal; }
  #filter { width: 100%; min-width: 0; }

}
