/* PumpCraft: scrolling the page digs down through the world, sky -> bedrock. */

@font-face { font-family: "Pixelify"; src: url("/fonts/PixelifySans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "PressStart"; src: url("/fonts/PressStart2P.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "VT323"; src: url("/fonts/VT323.woff2") format("woff2"); font-display: swap; }

:root {
  --block: 24px;
  --sky: #0f1726;
  --sky-hi: #1d2f4f;
  --dirt: #6b4a31;
  --stone: #7a7a7a;
  --deep: #2b2b31;
  --emerald: #1fd16f;
  --emerald-dk: #0b7a3e;
  --splash: #ffff55;
  --ink: #f4f4f4;
  --ink-dim: #cfd5d0;
  --shade: #3f3f3f;
  --gui: #c6c6c6;
  --gui-ink: #333;
  --tip-bg: rgba(16, 0, 16, .94);
  --tip-edge: #2a0f63;
  --tip-edge-hi: #5a18c9;
  --font: "Pixelify", ui-rounded, system-ui, sans-serif;
  --font-title: "PressStart", "Pixelify", monospace;
  --font-code: "VT323", ui-monospace, monospace;
  --tile: 64px;
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--font);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--emerald); text-underline-offset: 3px; }
a:hover { color: #7dffb3; }
b { font-weight: 700; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
code, kbd { font-family: var(--font-code); font-size: 1.2em; line-height: 1; }
code { background: rgba(0, 0, 0, .45); padding: .05em .35em; color: #e8ffe8; overflow-wrap: anywhere; }
kbd { display: inline-block; padding: .1em .45em; background: #e3e3e3; color: #222; border: 2px solid #000; box-shadow: inset -2px -3px 0 #8b8b8b; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #000; color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- textures / layers ---------- */
.layer { position: relative; padding: clamp(48px, 8vw, 88px) 0; image-rendering: pixelated; }
.dirt    { background: linear-gradient(rgba(20, 12, 6, .38), rgba(20, 12, 6, .56)), url("/assets/tex/dirt.png") 0 0 / var(--tile); }
.dirt-deep { background: linear-gradient(rgba(20, 12, 6, .56), rgba(20, 12, 6, .7)), url("/assets/tex/dirt.png") 0 0 / var(--tile); }
.stone   { background: linear-gradient(rgba(15, 15, 15, .55), rgba(10, 10, 10, .68)), url("/assets/tex/stone.png") 0 0 / var(--tile); }
.deep    { background: linear-gradient(rgba(8, 8, 12, .45), rgba(8, 8, 12, .6)), url("/assets/tex/deepslate.png") 0 0 / var(--tile); }
.ore     { background: radial-gradient(circle at 12% 18%, rgba(31, 209, 111, .14), transparent 30%), radial-gradient(circle at 88% 70%, rgba(31, 209, 111, .1), transparent 32%), linear-gradient(rgba(8, 8, 12, .58), rgba(8, 8, 12, .66)), url("/assets/tex/emerald_ore.png") 0 0 / var(--tile); }
.bedrock { background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .7)), url("/assets/tex/bedrock.png") 0 0 / var(--tile); }
.layer + .layer:not(#features) { box-shadow: inset 0 6px 0 rgba(0, 0, 0, .55); }
#features { padding-top: 28px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 10px max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: rgba(10, 14, 22, .92);
  border-bottom: 3px solid #000;
  box-shadow: 0 3px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; text-shadow: 2px 2px 0 #000; }
.brand img { image-rendering: auto; }
.topnav { display: none; margin-left: auto; gap: 4px; }
.topnav a { color: var(--ink-dim); text-decoration: none; padding: 8px 12px; text-shadow: 2px 2px 0 #000; }
.topnav a:hover, .topnav a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.topbar > .btn { margin-left: auto; }

/* ---------- F3 depth readout ---------- */
.f3 {
  display: none;
  position: fixed; left: 12px; top: 76px; z-index: 30;
  flex-direction: column;
  font-family: var(--font-code); font-size: 1.15rem; line-height: 1.15;
  color: #e0e0e0; pointer-events: none;
}
.f3 span { background: rgba(80, 80, 80, .55); padding: 1px 6px; width: fit-content; text-shadow: 2px 2px 0 #3f3f3f; }

/* ---------- buttons (stone button with bevel) ---------- */
.btn {
  --face: #727272;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px;
  font: 600 1.05rem/1.1 var(--font); color: #fff; text-decoration: none; text-align: center;
  text-shadow: 2px 2px 0 var(--shade);
  background: var(--face) url("/assets/tex/stone.png") 0 0 / 48px;
  background-blend-mode: multiply;
  border: 3px solid #000;
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .38), inset -3px -4px 0 rgba(0, 0, 0, .42);
  image-rendering: pixelated;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: #ffffa0; border-color: #fff; }
.btn:active { box-shadow: inset 3px 4px 0 rgba(0, 0, 0, .42), inset -3px -3px 0 rgba(255, 255, 255, .2); }
.btn img { image-rendering: pixelated; width: 28px; height: 28px; }
.btn-emerald { --face: #1db866; background-image: url("/assets/tex/emerald.png"); text-shadow: 2px 2px 0 #08532a; }
.btn-emerald:hover { color: #fff; }
.btn-lg { min-height: 58px; padding: 14px 26px; font-size: 1.2rem; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: 1rem; }
.btn-xs { min-height: 36px; padding: 4px 12px; font-size: .95rem; }
.btn[disabled], .btn.is-off { filter: grayscale(1) brightness(.7); color: #bbb; cursor: not-allowed; border-color: #000; }

/* ---------- hero (title screen) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 64px);
  display: grid; place-items: center;
  padding: 24px 0 calc(var(--block) * 6.5);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 45% at 50% 34%, rgba(31, 209, 111, .2), transparent 70%),
    radial-gradient(2px 2px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 14%, #cfe 50%, transparent 51%),
    radial-gradient(2px 2px at 64% 62%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 30% 74%, #dfe 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 44%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 6% 58%, #fff 50%, transparent 51%),
    linear-gradient(var(--sky), var(--sky-hi));
  image-rendering: auto;
}
.hero-inner { position: relative; z-index: 2; width: min(860px, 100% - 32px); }
.sky, .horizon { position: absolute; left: 0; right: 0; pointer-events: none; }
.sky { inset: 0; z-index: 0; }
.moon {
  position: absolute; top: 9%; right: 9%;
  width: 64px; height: 64px;
  z-index: 1;
  background: url("/assets/moon.png") 0 0 / 100%; image-rendering: pixelated;
  filter: drop-shadow(0 0 22px rgba(232, 232, 214, .35));
}
.clouds {
  position: absolute; left: 0; right: 0; top: 3%; height: 96px;
  background: url("/assets/clouds.png") 0 0 / 1536px 96px repeat-x; image-rendering: pixelated;
  opacity: .1;
  animation: drift 260s linear infinite;
}
@keyframes drift { to { background-position-x: -1536px; } }
.horizon { bottom: 0; height: calc(var(--block) * 11); z-index: 1; }
.hills {
  position: absolute; left: 0; right: 0; bottom: calc(var(--block) * 3);
  height: calc(var(--block) * 4.5);
  background: url("/assets/hills.png") 0 100% / auto 100% repeat-x; image-rendering: pixelated;
}
.land {
  position: absolute; inset: 0;
  background: url("/assets/land.png") 50% 100% / auto 100% repeat-x; image-rendering: pixelated;
  filter: brightness(.62) saturate(.92);
}
.logo-wrap { position: relative; width: min(460px, 82vw, 50svh); margin: 0 auto 8px; }
.logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 0 rgba(0, 0, 0, .35)); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* the yellow title-screen splash */
.splash {
  position: absolute; right: -22%; bottom: 30%;
  max-width: 52%;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 400 clamp(.62rem, 2.2vw, .95rem)/1.35 var(--font-title);
  color: var(--splash); text-shadow: 2px 2px 0 #3f3f00;
  transform: rotate(-20deg);
  transform-origin: center;
  animation: splash .5s ease-in-out infinite alternate;
}
@keyframes splash { from { scale: 1; } to { scale: 1.08; } }
.splash:focus-visible { outline-offset: 6px; }

.hero h1 {
  font: 700 clamp(1.6rem, 5vw, 2.7rem)/1.15 var(--font);
  text-shadow: 3px 3px 0 #000;
  margin: 8px auto 14px;
  max-width: 24ch;
  text-wrap: balance;
}
.lead { color: var(--ink-dim); max-width: 46ch; margin: 0 auto 26px; font-size: clamp(1.05rem, 2.4vw, 1.25rem); text-shadow: 2px 2px 0 #000; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .btn { flex: 1 1 240px; max-width: 320px; }
.pills { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pills li { padding: 4px 10px; background: rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .14); color: var(--ink-dim); font-size: 1rem; }

/* ---------- features ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features h3 { font-size: 1.15rem; margin: 4px 0 4px; color: #fff; }
.features p { color: var(--ink-dim); font-size: 1.02rem; }
.features .slot img { width: 32px; height: 32px; }

/* ---------- section titles ---------- */
.title {
  display: flex; align-items: center; gap: 14px;
  font: 400 clamp(1.05rem, 3.2vw, 1.55rem)/1.3 var(--font-title);
  text-shadow: 3px 3px 0 #000;
  margin-bottom: 24px;
}
.title img { image-rendering: pixelated; flex: none; }
.sub { font-size: 1.3rem; margin: 40px 0 14px; text-shadow: 2px 2px 0 #000; }
.intro { color: var(--ink-dim); margin: -8px 0 20px; text-shadow: 2px 2px 0 #000; }
.small { font-size: .95rem; color: var(--ink-dim); }

/* ---------- GUI panel (inventory gray) ---------- */
.gui {
  background: var(--gui);
  color: var(--gui-ink);
  border: 3px solid #000;
  box-shadow: inset 4px 4px 0 #fff, inset -4px -4px 0 #555;
  padding: clamp(18px, 3.5vw, 28px);
}
.gui a:not(.btn) { color: #0b6b37; }
.slot {
  display: inline-grid; place-items: center; position: relative;
  width: 44px; height: 44px; flex: none;
  background: #8b8b8b;
  box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #fff;
}
.slot img { image-rendering: pixelated; }
.slot-xl { width: 96px; height: 96px; }
.slot-xl img { width: 64px; height: 64px; image-rendering: auto; }
.stack { position: absolute; right: 6px; bottom: 2px; font: 400 .75rem/1 var(--font-title); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }

/* ---------- contract ---------- */
.ca-label { font-weight: 600; margin-bottom: 10px; }
.ca-box { display: flex; gap: 10px; align-items: stretch; }
.ca-box code {
  flex: 1; min-width: 0;
  display: flex; align-items: center;
  padding: 10px 14px;
  background: #000; color: #e8ffe8;
  border: 3px solid #a0a0a0;
  font-size: clamp(1.15rem, 3.2vw, 1.55rem); line-height: 1.15;
  word-break: break-all;
}
.ca-box[data-state="soon"] code, .ca-box[data-state="loading"] code { color: #b8b8b8; word-break: normal; font-family: var(--font); font-size: 1.05rem; }
.ca-box[data-state="live"] code { color: #7dffb3; }
.ca-box .btn { flex: none; }
.ca-lock { flex: none; align-self: center; image-rendering: pixelated; }
.ca-box[data-state="live"] .ca-lock { display: none; }
.ca-box[data-state="soon"] code { border-style: dashed; }
.ca-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ca-warn { margin-top: 16px; font-size: .98rem; padding-left: 12px; border-left: 4px solid #b02e26; }

/* ---------- download ---------- */
.dl-card { display: grid; gap: 16px 28px; grid-template-columns: 1fr; grid-template-areas: "head" "btn" "note" "specs" "hash"; }
.dl-head { grid-area: head; display: flex; gap: 18px; align-items: center; }
.dl-card > .btn { grid-area: btn; }
.dl-note { grid-area: note; margin: 0; color: #444; }
.dl-note.warn { color: #8a1f1a; font-weight: 600; }
.specs { grid-area: specs; }
.hash { grid-area: hash; }
.dl-name { font-size: 1.6rem; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ver { font-size: 1rem; font-weight: 600; color: #fff; text-shadow: 1px 1px 0 #3f3f3f; background: #6f6f6f; border: 2px solid #3a3a3a; padding: 2px 8px; }
.ver:empty { display: none; }
.dl-sub { margin: 0; color: #555; }
.btn-xl { min-height: 76px; padding: 12px 26px; font-size: 1.35rem; justify-content: flex-start; gap: 16px; }
.btn-xl img { width: 40px; height: 40px; }
.btn-xl span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.btn-xl small { font-size: .92rem; font-weight: 500; opacity: .92; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; padding-top: 14px; border-top: 3px solid #a8a8a8; }
.specs div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 2px dotted #9a9a9a; padding-bottom: 2px; }
.specs dt { color: #555; }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.hash { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hash span { color: #555; }
.hash code { background: #000; color: #cfc; padding: 4px 8px; font-size: 1.05rem; max-width: 100%; }

.needs { display: grid; gap: 12px; grid-template-columns: 1fr; }
.need {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, .55);
  border: 3px solid #000; box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .1), inset -3px -3px 0 rgba(0, 0, 0, .4);
  color: var(--ink); text-decoration: none;
}
a.need:hover { border-color: #fff; color: #fff; }
.need b { display: block; font-size: 1.1rem; }
.need small { color: var(--ink-dim); font-size: .98rem; }

/* ---------- tooltip-style cards (steps, FAQ) ---------- */
.tip {
  background: var(--tip-bg);
  border: 3px solid #000;
  box-shadow: inset 0 0 0 2px var(--tip-edge), inset 0 2px 0 2px var(--tip-edge-hi);
  padding: 16px 18px;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps > li { display: flex; gap: 16px; align-items: flex-start; }
.steps > li > div { min-width: 0; flex: 1; }
.steps h3 { font-size: 1.2rem; margin: 6px 0 6px; color: #fff; }
.steps p { color: var(--ink-dim); }
.slot.n { font: 400 .95rem/1 var(--font-title); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }

/* tabs, styled as creative-inventory tabs */
.tabs { display: flex; gap: 4px; margin-bottom: -3px; position: relative; z-index: 1; }
.tab {
  flex: none;
  font: 600 1rem/1 var(--font); color: #333;
  padding: 12px 16px 14px;
  background: #9a9a9a; border: 3px solid #000; border-bottom: 0;
  box-shadow: inset 3px 3px 0 #cfcfcf;
  cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--gui); color: #111; box-shadow: inset 3px 3px 0 #fff; padding-bottom: 17px; }
.tabpanel { background: var(--gui); border: 3px solid #000; box-shadow: inset -4px -4px 0 #555; padding: 12px; }

.os { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 10px; }
.os-btn { font: 600 .95rem/1 var(--font); padding: 8px 12px; background: #2d2d2d; color: #ddd; border: 2px solid #000; box-shadow: inset 2px 2px 0 #555; cursor: pointer; }
.os-btn[aria-pressed="true"] { background: var(--emerald-dk); color: #fff; box-shadow: inset 2px 2px 0 #3bdc85; }
.path { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.path code { font-size: 1.25rem; padding: 6px 10px; background: #000; }

/* ---------- usage ---------- */
.use { display: grid; gap: 24px; }
.mock { display: grid; gap: 14px; align-content: start; }
.mc-screen {
  background: rgba(0, 0, 0, .72);
  border: 3px solid #000;
  padding: 18px 16px;
  text-align: center;
  font-size: .95rem;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
}
.mc-title { color: #fff; text-shadow: 2px 2px 0 #3f3f3f; margin-bottom: 2px; }
.mc-sub { color: #9aa0a6; margin-bottom: 12px; font-size: .88rem; }
.mc-wallet { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 4px 0 10px; color: #9aa0a6; font-size: .88rem; text-align: left; }
.mc-wallet .mc-btn { flex: none; }
.mc-cost { color: #9aa0a6; font-size: .85rem; margin: 2px 0 8px; }
.mc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.mc-row.three { grid-template-columns: .9fr 1fr 1fr; }
.mc-field { grid-column: auto; text-align: left; background: #000; border: 2px solid #a0a0a0; padding: 4px 6px; color: #e0e0e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-field.wide { grid-column: 1 / -1; }
.mc-field.hint { color: #707070; }
.mc-btn { background: #6f6f6f; border: 2px solid #000; box-shadow: inset 2px 2px 0 #aaa, inset -2px -2px 0 #444; padding: 4px 6px; color: #fff; text-shadow: 1px 1px 0 #3f3f3f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-btn.on { color: #ffffa0; border-color: #fff; }
.mc-status { color: #aaa; margin-top: 8px; font-size: .88rem; }
.mc-chat { background: rgba(0, 0, 0, .5); padding: 8px 10px; font-size: .95rem; text-align: left; }
.mc-chat p { margin: 0 0 4px; text-shadow: 1px 1px 0 #3f3f3f; overflow-wrap: anywhere; }
.mc-chat .g { color: #55ff55; }
.mc-chat .gold { color: #ffaa00; }
.mc-chat u { color: #55ffff; }

.cmds { display: grid; gap: 8px; margin: 0; }
.cmds div { display: grid; gap: 4px; padding: 12px 14px; background: rgba(0, 0, 0, .55); border: 3px solid #000; }
.cmds dt code { font-size: 1.35rem; }
.cmds dd { margin: 0; color: var(--ink-dim); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { padding: 0; }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 16px 48px 16px 18px; position: relative;
  font-weight: 600; font-size: 1.15rem; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; font: 400 1rem/1 var(--font-title); color: var(--emerald); }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 18px 18px; margin: 0; color: var(--ink-dim); }

/* ---------- footer ---------- */
.footer { background: #050505; border-top: 6px solid #000; padding: 32px 0 40px; color: #a8a8a8; font-size: .95rem; }
.footer p { max-width: 70ch; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- hotbar (mobile nav) ---------- */
.hotbar {
  position: fixed; z-index: 50; left: 50%; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  translate: -50% 0;
  display: flex;
  padding: 3px;
  background: #1b1b1b;
  border: 3px solid #000;
  box-shadow: inset 0 0 0 2px #5a5a5a;
}
.hotbar a {
  position: relative;
  width: 54px; height: 54px;
  display: grid; place-items: center; align-content: center; gap: 1px;
  color: #ddd; text-decoration: none;
  background: rgba(139, 139, 139, .25);
  box-shadow: inset 0 0 0 2px #3a3a3a;
  font-size: .72rem; line-height: 1;
}
.hotbar a img { image-rendering: pixelated; width: 26px; height: 26px; }
.hotbar a.active { box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px #000; z-index: 1; color: #fff; }

/* ---------- advancement toast ---------- */
.toast {
  position: fixed; z-index: 60;
  top: 12px; right: 12px; left: auto;
  display: flex; align-items: center; gap: 12px;
  width: min(340px, calc(100% - 24px));
  padding: 10px 14px;
  background: #212121;
  border: 3px solid #000;
  box-shadow: inset 0 0 0 2px #555, inset 0 0 0 4px #000, 0 6px 0 rgba(0, 0, 0, .4);
  animation: toast-in .25s steps(5) both;
}
.toast img { image-rendering: pixelated; flex: none; }
.toast strong { display: block; color: var(--splash); font-weight: 600; }
.toast span { color: #fff; }
.toast.out { animation: toast-out .25s steps(5) both; }
@keyframes toast-in { from { translate: 110% 0; } to { translate: 0 0; } }
@keyframes toast-out { to { translate: 110% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 859px) {
  .splash { right: -4%; bottom: 22%; max-width: 56%; }
  :root { --bar-h: 76px; --tile: 48px; --block: 18px; }
  .moon { width: 40px; height: 40px; top: 3%; right: 5%; }
  html { scroll-padding-top: 64px; }
}
@media (max-width: 479px) {
  .tab { flex: 1 1 0; min-width: 0; padding: 10px 8px 12px; font-size: .92rem; line-height: 1.15; }
  .tab[aria-selected="true"] { padding-bottom: 15px; }
  body { font-size: 1.06rem; }
  .ca-box { flex-direction: column; }
  .ca-box .btn { width: 100%; }
  .hotbar a { width: min(54px, calc((100vw - 34px) / 6)); }
  .tip { padding: 14px; }
  .steps > li { gap: 12px; }
}
@media (min-width: 640px) {
  .needs { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .cmds { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .dl-card { grid-template-columns: 1fr minmax(300px, auto); grid-template-areas: "head btn" "note btn" "specs specs" "hash hash"; align-items: center; }
  .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .topnav { display: flex; }
  .topnav + .btn { margin-left: 8px; }
  .hotbar { display: none; }
  .f3 { display: flex; }
  .use { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .mock { position: sticky; top: 88px; }
}
@media (min-width: 1100px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 860px) and (max-width: 1399px) {
  .f3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .splash, .clouds { animation: none; }
  .toast, .toast.out { animation: none; }
}

/* ---------- 404 (death screen) ---------- */
.dead { background: rgba(120, 0, 0, .55) url("/assets/tex/deepslate.png") 0 0 / 64px; background-blend-mode: multiply; image-rendering: pixelated; min-height: 100svh; display: grid; place-items: center; padding-bottom: 0; }
.death { text-align: center; padding: 24px; }
.death h1 { font: 400 clamp(1.6rem, 6vw, 3rem)/1.3 var(--font-title); text-shadow: 4px 4px 0 #3f0000; margin-bottom: 18px; }
.death p { text-shadow: 2px 2px 0 #000; }
.death .score b { color: var(--splash); }
.death-btns { display: grid; gap: 10px; margin-top: 24px; }

/* ---------- admin ---------- */
.admin-page { padding-bottom: 0; }
.admin { min-height: 100svh; }
.admin-form { display: grid; gap: 10px; margin-bottom: 16px; }
.admin-form label { font-weight: 600; }
.admin-form .row { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-form input { flex: 1 1 240px; min-width: 0; min-height: 48px; padding: 8px 12px; font: 1.2rem var(--font-code); color: #e8ffe8; background: #000; border: 3px solid #a0a0a0; }
.admin-form input:focus { border-color: #fff; outline: none; }
.admin-form .btn-sm { justify-self: start; }
.msg { min-height: 1.2em; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.admin-h { font-size: 1.15rem; margin-top: 6px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 6px; background: #8b8b8b; box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #fff; }
.bar { flex: 0 1 28px; min-width: 4px; background: var(--emerald-dk); box-shadow: inset 2px 2px 0 #3bdc85; }
.small-dark { color: #444; font-size: .95rem; margin: 0; }
.ca-box[data-state="soon"] .btn, .ca-box[data-state="loading"] .btn { display: none; }
