/* Craft Hills, official site. Plain CSS, no build step.
   Every surface is the game's own art: 16x16 block textures for the strata, the game's bestiary and
   building renders, and the worn panel renderer (Deepcraft/UI/Worn.swift) pre-rendered into assets/ui.
   --px is one GUI pixel, --blk one block of rock. */

@font-face { font-family: "Silkscreen"; src: url("fonts/Silkscreen-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("fonts/Silkscreen-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --px: 2px;
  --blk: 32px;
  --logo: 2;
  --shaft-w: 32px;
  --shaft-x: 6px;
  --gutter: 14px;
  --content-x: calc(var(--shaft-x) + var(--shaft-w) + 10px);
  --ink: #f6e7c8;
  --ink-dim: #e6d3ac;
  --yellow: #ffff55;
  --aqua: #55ffff;
  --pixel: "Silkscreen", ui-monospace, "Courier New", monospace;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (min-width: 420px) { :root { --logo: 3; } }
@media (min-width: 900px) {
  :root { --px: 3px; --blk: 48px; --logo: 5; --shaft-w: 48px; --gutter: 32px;
          --shaft-x: max(24px, calc(50vw - 700px)); --content-x: calc(var(--shaft-x) + var(--shaft-w) + 44px); }
}
@media (min-width: 1400px) { :root { --logo: 6; } }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: #141018; color: var(--ink); font: 17px/1.6 var(--text); overflow-x: clip; }
@media (min-width: 900px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; }
.px, img.px { image-rendering: pixelated; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: #2a160b; color: var(--yellow); padding: 10px 14px; font: 700 16px var(--pixel); }
.skip:focus { top: 8px; }

/* ---------- type ---------- */
h1, h2, h3, .btn, .chip, .kicker, .mc { font-family: var(--pixel); -webkit-font-smoothing: none; letter-spacing: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; text-wrap: balance; }
h2 { font-size: 40px; color: #fff; text-shadow: 4px 4px 0 #2b2b2b; }
h3 { font-size: 24px; color: var(--yellow); text-shadow: 3px 3px 0 #3f3f15; }
@media (min-width: 900px) { h2 { font-size: 64px; text-shadow: 6px 6px 0 #2b2b2b; } }
.kicker { display: inline-block; font-weight: 700; font-size: 16px; color: var(--aqua); text-shadow: 2px 2px 0 #153f3f; margin-bottom: 12px; }
.lede { margin: 16px 0 0; font-size: 18px; }
@media (min-width: 900px) { .lede { font-size: 20px; } }
.y { color: var(--yellow); } .a { color: var(--aqua); }

/* ---------- worn panels: 9-slice of the pre-rendered Worn art; the middles tile, never stretch ---------- */
.plank, .card, .stone, .well {
  border-style: solid; border-width: calc(var(--px) * 8);
  border-image-slice: 8 fill; border-image-width: calc(var(--px) * 8); border-image-repeat: repeat;
  image-rendering: pixelated;
}
.plank { border-image-source: url("ui/panel-wood.png"); }
.plank.alt { border-image-source: url("ui/panel-wood2.png"); }
.card { border-image-source: url("ui/panel-card.png"); }
.stone { border-image-source: url("ui/panel-stone.png"); color: #1d1420; }
.stone.alt { border-image-source: url("ui/panel-stone2.png"); }
.well { border-image-source: url("ui/panel-well.png"); border-width: calc(var(--px) * 4); }
.card, .plank { padding: calc(var(--px) * 3) calc(var(--px) * 4); text-shadow: 1px 1px 0 rgba(30, 15, 7, .9); }
.card p, .plank p { margin: 0 0 .75em; }
.card p:last-child, .plank p:last-child { margin-bottom: 0; }

/* chips: small dark-oak tags */
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 calc(var(--px) * 1.5); min-height: calc(var(--px) * 12);
  font-weight: 700; font-size: 16px; line-height: 1.2; color: #fff; text-shadow: 2px 2px 0 #1e0f07;
  border-style: solid; border-width: calc(var(--px) * 3); border-image: url("ui/panel-card.png") 8 fill / calc(var(--px) * 3) repeat; image-rendering: pixelated;
}
.chip img { width: calc(var(--px) * 8); height: calc(var(--px) * 8); image-rendering: pixelated; }
.chip.stone { color: #1d1420; text-shadow: 1px 1px 0 rgba(255, 255, 255, .35); border-image-source: url("ui/panel-stone.png"); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }

/* slots: the game's violet wells */
.slot { flex: none; display: inline-grid; place-items: center; width: calc(var(--px) * 18); height: calc(var(--px) * 18);
  border-style: solid; border-width: calc(var(--px) * 1); border-image: url("ui/panel-well.png") 8 fill / calc(var(--px) * 6) repeat; image-rendering: pixelated; }
.slot img { width: calc(var(--px) * 16); height: calc(var(--px) * 16); image-rendering: pixelated; }
.slot.big { width: calc(var(--px) * 26); height: calc(var(--px) * 26); }
.slot.big img { width: calc(var(--px) * 22); height: calc(var(--px) * 22); }

/* ---------- buttons: the game's own button art ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: calc(var(--px) * 20); padding: 0 calc(var(--px) * 7);
  border-style: solid; border-width: calc(var(--px) * 3);
  border-image: url("tex/g_button.png") 3 fill / calc(var(--px) * 3) repeat; image-rendering: pixelated;
  font-weight: 700; font-size: 16px; color: #fff; text-decoration: none; white-space: nowrap; text-shadow: 2px 2px 0 #3f3f3f; cursor: pointer; background: none;
}
.btn:hover, .btn:focus-visible { border-image-source: url("tex/g_button_highlighted.png"); color: var(--yellow); }
.btn:active { transform: translateY(var(--px)); }
.btn img { width: calc(var(--px) * 10); height: calc(var(--px) * 10); image-rendering: pixelated; }
.btn.big { height: calc(var(--px) * 26); font-size: 24px; padding: 0 calc(var(--px) * 9); }
.btn.big img { width: calc(var(--px) * 14); height: calc(var(--px) * 14); }
.btn.sm { height: calc(var(--px) * 16); padding: 0 calc(var(--px) * 5); font-size: 16px; }
@media (max-width: 899px) { .btn.sm { height: 36px; border-width: 6px; border-image-width: 6px; padding: 0 12px; } }

/* ---------- the HUD bar ---------- */
.hud { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px var(--gutter); transition: background-color .3s, box-shadow .3s; }
.hud.solid { background: rgba(20, 14, 26, .94); box-shadow: 0 3px 0 #2a1e2b, 0 6px 0 rgba(0, 0, 0, .35); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 16px var(--pixel); text-shadow: 2px 2px 0 #2b2b2b; }
.brand img { width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 0 0 3px #2a1e2b; }
.hud nav { display: none; gap: 2px; }
.hud nav a { padding: 6px 10px; font: 700 16px var(--pixel); color: #fff; text-decoration: none; text-shadow: 2px 2px 0 #2b2b2b; }
.hud nav a:hover, .hud nav a[aria-current] { color: var(--yellow); }
@media (min-width: 1080px) { .hud nav { display: flex; } }
@media (max-width: 380px) { .brand span { display: none; } }

/* ---------- hero: a living scene ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; height: 100svh; min-height: 700px; max-height: 1100px; background: linear-gradient(#4f82e3 0%, #7eaaf6 55%, #a9c8fb 100%); }
.sun { position: absolute; z-index: -4; top: 14%; right: 11%; width: calc(var(--px) * 24); height: calc(var(--px) * 24); background: url("img/sun.png") 0 0 / 100% 100%; image-rendering: pixelated;
  box-shadow: 0 0 0 calc(var(--px) * 4) rgba(255, 245, 190, .25), 0 0 90px 36px rgba(255, 240, 170, .35); }
@media (max-width: 899px) { .sun { top: 11%; right: 8%; } }
.clouds { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.cloud { position: absolute; left: 0; height: calc(var(--px) * 10); background: #fff; box-shadow: inset 0 calc(var(--px) * -3) 0 #dbe6fb; opacity: .95; animation: drift 150s linear infinite; }
.cloud::before { content: ""; position: absolute; left: 22%; right: 18%; top: calc(var(--px) * -6); height: calc(var(--px) * 6); background: #fff; }
.cloud.k1 { top: 9%; width: calc(var(--px) * 64); animation-delay: -20s; }
.cloud.k2 { top: 22%; width: calc(var(--px) * 96); animation-duration: 210s; animation-delay: -120s; }
.cloud.k3 { top: 6%; width: calc(var(--px) * 44); animation-duration: 180s; animation-delay: -60s; opacity: .8; }
.cloud.k4 { top: 34%; width: calc(var(--px) * 52); animation-duration: 260s; animation-delay: -200s; opacity: .7; }
.cloud.k5 { top: 15%; width: calc(var(--px) * 80); animation-duration: 240s; animation-delay: -10s; }
@keyframes drift { from { transform: translateX(-40vw); } to { transform: translateX(140vw); } }

.hills-far, .hills-mid, .ground-front { position: absolute; left: 0; right: 0; pointer-events: none; image-rendering: pixelated; background-repeat: repeat-x; will-change: transform; }
.hills-far { z-index: -2; bottom: calc(var(--blk) * 3.5); height: calc(var(--blk) * 7); background-image: url("img/hills-far.png"); background-size: calc(var(--blk) * 40) 100%; background-position: 0 100%; }
.hills-mid { z-index: -1; bottom: calc(var(--blk) * 2); height: calc(var(--blk) * 11); background-image: url("img/surface.png"); background-size: calc(var(--blk) * 48) 100%; background-position: 0 100%; }
.ground-front { z-index: 1; bottom: 0; height: calc(var(--blk) * 3); background-image: url("img/ground-front.png"); background-size: calc(var(--blk) * 16) 100%; }

.hero-inner { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px var(--gutter) calc(var(--blk) * 4.4); }
.logo { display: block; width: calc(127px * var(--logo)); height: auto; aspect-ratio: 127 / 48; max-width: 94vw; image-rendering: pixelated; filter: drop-shadow(0 calc(var(--px) * 2) 0 rgba(0, 0, 0, .2)); }
.sign { display: inline-block; transform-origin: 50% 0; animation: sway 5s ease-in-out infinite; margin-top: -4px; }
.sign .chains { display: flex; justify-content: space-between; width: 66%; margin: 0 auto; }
.sign .chains i { display: block; width: calc(var(--px) * 6); height: calc(var(--px) * 12); background: url("tex/b_chain.png") 0 0 / calc(var(--px) * 16) repeat-y; image-rendering: pixelated; }
.sign .plank { display: block; min-width: 236px; margin: 0; padding: 2px 14px; font: 700 16px/1.5 var(--pixel); color: var(--yellow); text-shadow: 2px 2px 0 #3f3f15; }
@media (min-width: 900px) { .sign .plank { font-size: 24px; min-width: 460px; padding: 6px 22px; } }
.splash { display: inline-block; }
.splash.pop { animation: pop-line .35s ease-out; }
@keyframes pop-line { 0% { transform: scale(.86); opacity: .55; } 100% { transform: none; opacity: 1; } }
@keyframes sway { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
.tagline { margin: 24px 0 0; font: 700 24px/1.3 var(--pixel); color: #fff; text-shadow: 3px 3px 0 #23324f; }
@media (min-width: 900px) { .tagline { font-size: 32px; text-shadow: 4px 4px 0 #23324f; } }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; margin-top: 26px; }
.badge-spot { display: inline-flex; flex-direction: column; justify-content: center; padding: 2px calc(var(--px) * 3); text-align: left; font: 700 16px/1.25 var(--pixel); color: #fff; text-shadow: 2px 2px 0 #000; }
.badge-spot small { display: block; font-size: 16px; color: var(--aqua); text-shadow: 2px 2px 0 #153f3f; }
.dig-cue { position: absolute; z-index: 4; left: 50%; bottom: calc(var(--blk) * 3 + 10px); transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font: 700 16px var(--pixel); color: #fff; text-decoration: none; text-shadow: 2px 2px 0 #2b2b2b; }
.dig-cue img { width: calc(var(--px) * 12); height: calc(var(--px) * 12); animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-height: 760px) and (max-width: 899px) { .dig-cue { display: none; } }

/* the shaft mouth, the miner swinging beside it, animals on the grass */
.mouth { position: absolute; z-index: 2; bottom: 0; left: var(--shaft-x); width: var(--shaft-w); height: calc(var(--blk) * 3);
  background: linear-gradient(rgba(10, 6, 12, .45), rgba(10, 6, 12, .8)), url("tex/b_ladder.png") 50% 0 / var(--shaft-w) repeat-y, #2a2018; image-rendering: pixelated;
  box-shadow: inset calc(var(--px) * 2) 0 0 rgba(0, 0, 0, .5), inset calc(var(--px) * -2) 0 0 rgba(0, 0, 0, .5); }
.hero-miner { position: absolute; z-index: 3; bottom: calc(var(--blk) * 3); left: calc(var(--shaft-x) + var(--shaft-w) + var(--px) * 12); width: calc(var(--px) * 16); height: calc(var(--px) * 32); }
.hero-miner .body { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.hero-miner .pick { position: absolute; z-index: 1; left: calc(var(--px) * -12); top: calc(var(--px) * 7); width: calc(var(--px) * 14); height: calc(var(--px) * 14); image-rendering: pixelated; transform-origin: 88% 88%; animation: swing .9s cubic-bezier(.5, 0, .7, 1) infinite; }
@keyframes swing { 0% { transform: rotate(10deg); } 50% { transform: rotate(48deg); } 68% { transform: rotate(-80deg); } 100% { transform: rotate(10deg); } }
.hero-miner .bits { position: absolute; left: calc(var(--px) * -12); bottom: calc(var(--px) * 1); width: calc(var(--px) * 2); height: calc(var(--px) * 2); background: #6b4a2c; box-shadow: calc(var(--px) * 3) calc(var(--px) * -3) 0 #8a6a45, calc(var(--px) * -2) calc(var(--px) * -5) 0 #5a3c22; animation: bits .9s linear infinite; }
@keyframes bits { 0%, 62% { opacity: 0; transform: translate(0, 0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--px) * -4), calc(var(--px) * -9)); } }
.critter { position: absolute; z-index: 2; bottom: calc(var(--blk) * 3); animation: walk 28s linear infinite; }
.critter img { display: block; width: 100%; height: 100%; image-rendering: pixelated; animation: step .5s steps(2) infinite; }
@keyframes step { 0% { transform: translateY(0); } 100% { transform: translateY(calc(var(--px) * -1)); } }
.critter.pig { left: 22%; width: calc(var(--px) * 24); height: calc(var(--px) * 11); }
.critter.chicken { left: 63%; width: calc(var(--px) * 13); height: calc(var(--px) * 11); animation-duration: 19s; animation-delay: -7s; }
.critter.sheep { left: 78%; width: calc(var(--px) * 24); height: calc(var(--px) * 12); animation-duration: 34s; animation-delay: -18s; }
.critter.cow { left: 42%; width: calc(var(--px) * 24); height: calc(var(--px) * 14); animation-duration: 40s; animation-delay: -4s; }
@media (max-width: 899px) { .critter.cow, .critter.sheep { display: none; } .critter.chicken { left: 72%; } .critter.pig { left: 40%; } }
@keyframes walk { 0% { transform: translateX(0) scaleX(1); } 45% { transform: translateX(14vw) scaleX(1); } 50% { transform: translateX(14vw) scaleX(-1); } 95% { transform: translateX(0) scaleX(-1); } 100% { transform: translateX(0) scaleX(1); } }

/* ---------- the underground ---------- */
.underground { position: relative; isolation: isolate; }
.topsoil { position: relative; z-index: 1; height: calc(var(--blk) * 2); background: url("img/layer-dirt.png") 0 0 / calc(var(--blk) * 16) repeat; image-rendering: pixelated; }
.zone { position: relative; padding: calc(var(--blk) * 2.6) var(--gutter) calc(var(--blk) * 2.4) var(--content-x); background-size: calc(var(--blk) * 16); image-rendering: pixelated; }
.zone::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--shade, linear-gradient(rgba(6, 4, 10, .1), rgba(6, 4, 10, .3))); }
.zone > .seam { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: calc(var(--blk) * 2); background-size: calc(var(--blk) * 16) 100%; background-repeat: repeat-x; image-rendering: pixelated; pointer-events: none; }
.zone > .spark { position: absolute; inset: 0; z-index: 1; pointer-events: none; background-size: calc(var(--blk) * 16); image-rendering: pixelated; opacity: 0; animation: twinkle 3.2s ease-in-out infinite; }
.zone > .spark.b { animation-delay: -1.6s; }
@keyframes twinkle { 0%, 100% { opacity: 0; } 45%, 55% { opacity: 1; } }
.zone > .inner { position: relative; z-index: 3; max-width: 1300px; }

.z-stone  { background-image: url("img/layer-stone.png"); }
.z-caves  { background-image: url("img/layer-caves.png");  --shade: linear-gradient(rgba(6,4,10,.2), rgba(6,4,10,.32)); }
.z-deep   { background-image: url("img/layer-deep.png");   --shade: linear-gradient(rgba(6,4,10,.3), rgba(6,4,10,.42)); }
.z-glow   { background-image: url("img/layer-glow.png");   --shade: linear-gradient(rgba(10,2,8,.36), rgba(10,2,8,.46)); }
.z-shale  { background-image: url("img/layer-shale.png");  --shade: linear-gradient(rgba(6,4,10,.3), rgba(6,4,10,.45)); }
.z-sapph  { background-image: url("img/layer-sapph.png");  --shade: linear-gradient(rgba(4,4,16,.32), rgba(4,4,16,.5)); }
.z-abyss  { background-image: url("img/layer-abyss.png");  --shade: linear-gradient(rgba(4,2,8,.4), rgba(4,2,8,.55)); }
.z-hollow { background-image: url("img/layer-hollow.png"); --shade: linear-gradient(rgba(2,8,10,.45), rgba(2,4,8,.6)); }
.z-core   { background-image: url("img/layer-core.png");   --shade: linear-gradient(rgba(10,2,2,.35), rgba(30,6,0,.25)); }
.s-stone { background-image: url("img/seam-stone.png"); } .s-caves { background-image: url("img/seam-caves.png"); }
.s-deep { background-image: url("img/seam-deep.png"); } .s-glow { background-image: url("img/seam-glow.png"); } .s-shale { background-image: url("img/seam-shale.png"); }
.s-sapph { background-image: url("img/seam-sapph.png"); } .s-abyss { background-image: url("img/seam-abyss.png"); } .s-hollow { background-image: url("img/seam-hollow.png"); }
.s-dirt { background-image: url("img/seam-dirt.png"); }
.z-stone > .spark.a { background-image: url("img/spark-stone-a.png"); } .z-stone > .spark.b { background-image: url("img/spark-stone-b.png"); }
.z-caves > .spark.a { background-image: url("img/spark-caves-a.png"); } .z-caves > .spark.b { background-image: url("img/spark-caves-b.png"); }
.z-deep > .spark.a { background-image: url("img/spark-deep-a.png"); } .z-deep > .spark.b { background-image: url("img/spark-deep-b.png"); }
.z-glow > .spark.a { background-image: url("img/spark-glow-a.png"); } .z-glow > .spark.b { background-image: url("img/spark-glow-b.png"); }
.z-shale > .spark.a { background-image: url("img/spark-shale-a.png"); } .z-shale > .spark.b { background-image: url("img/spark-shale-b.png"); }
.z-sapph > .spark.a { background-image: url("img/spark-sapph-a.png"); } .z-sapph > .spark.b { background-image: url("img/spark-sapph-b.png"); }
.z-abyss > .spark.a { background-image: url("img/spark-abyss-a.png"); } .z-abyss > .spark.b { background-image: url("img/spark-abyss-b.png"); }
.z-hollow > .spark.a { background-image: url("img/spark-hollow-a.png"); } .z-hollow > .spark.b { background-image: url("img/spark-hollow-b.png"); }
.z-core > .spark.a { background-image: url("img/spark-core-a.png"); } .z-core > .spark.b { background-image: url("img/spark-core-b.png"); }

/* the shaft the miner climbs down; his lamp lights the rock around him */
.shaft { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--shaft-x); width: var(--shaft-w); pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.25) 30%, rgba(0,0,0,.25) 70%, rgba(0,0,0,.6)), url("tex/b_ladder.png") 50% 0 / var(--shaft-w) repeat-y, #1c1712; image-rendering: pixelated;
  box-shadow: calc(var(--px) * -2) 0 0 rgba(0, 0, 0, .55), calc(var(--px) * 2) 0 0 rgba(0, 0, 0, .55); }
.miner { position: sticky; top: 52vh; width: 100%; height: calc(var(--px) * 34); display: grid; place-items: center; }
.miner img { grid-area: 1 / 1; width: calc(var(--px) * 16); height: calc(var(--px) * 34); image-rendering: pixelated; position: relative; z-index: 2; }
.miner .f-b { visibility: hidden; }
.miner.alt .f-a { visibility: hidden; }
.miner.alt .f-b { visibility: visible; }
.miner .lamp { position: absolute; z-index: 1; left: 50%; top: 40%; width: 760px; height: 760px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 140, .30), rgba(255, 170, 80, .12) 32%, transparent 62%); mix-blend-mode: screen; }
@media (max-width: 899px) { .miner .lamp { width: 420px; height: 420px; } }
.tick-unused { position: absolute; z-index: 4; left: calc(var(--shaft-x) + var(--shaft-w) + 6px); top: calc(var(--blk) * .9); }
@media (max-width: 899px) { .tick { display: none; } }

/* depth meter: the mine's DEPTH panel */

/* ---------- section building blocks ---------- */
.zhead { max-width: 780px; }
.zhead.card { padding: calc(var(--px) * 5) calc(var(--px) * 6); }
@media (max-width: 899px) { .zhead.card { padding: 12px 10px; } }
.two { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .two { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; } .two.flip { grid-template-columns: 340px minmax(0, 1fr); } .two.flip > .phone { order: -1; } }
.two > * { min-width: 0; }
.stack > * + * { margin-top: 22px; }
.gap-l { margin-top: 40px; }
@media (min-width: 900px) { .gap-l { margin-top: 64px; } }

/* phone frames */
.phone { margin: 0 auto; width: min(330px, 80vw); }
.phone .stone { position: relative; padding: calc(var(--px) * 3) calc(var(--px) * 2) calc(var(--px) * 6); }
.phone .stone::after { content: ""; position: absolute; left: 50%; bottom: calc(var(--px) * -6); width: calc(var(--px) * 14); height: calc(var(--px) * 3); transform: translateX(-50%); background: #4a3b4f; box-shadow: 0 calc(var(--px) * 1) 0 #2a1e2b; }
.phone .well { display: block; }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 1102; }
.phone figcaption { margin-top: 14px; text-align: center; }
.tilt-r { transform: rotate(1.6deg); } .tilt-l { transform: rotate(-1.6deg); }

/* stat counters */
.counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .counters { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.counters li { text-align: center; padding: 6px 4px; min-width: 0; container-type: inline-size; }
.counters b { display: block; font: 700 40px/1 var(--pixel); color: #fff; text-shadow: 4px 4px 0 #2a1e2b; }
.counters span { display: block; margin-top: 8px; font: 700 min(16px, 10cqi)/1.25 var(--pixel); color: #2a1e2b; }
.counters b { font-size: min(40px, 23cqi); }
@media (min-width: 900px) { .counters b { font-size: min(64px, 23cqi); text-shadow: 6px 6px 0 #2a1e2b; } }

/* ore cards */
.ores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .ores { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.ores > li { display: flex; }
.ore { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.ore .top { display: flex; align-items: center; gap: 10px; }
.ore h3 { font-size: 16px; }
@media (min-width: 900px) { .ore h3 { font-size: 24px; } }
.ore .band { font: 700 16px var(--pixel); color: var(--aqua); text-shadow: 2px 2px 0 #153f3f; }
.bar { position: relative; height: calc(var(--px) * 6); margin-top: auto; border-style: solid; border-width: calc(var(--px) * 1); border-image: url("ui/panel-well.png") 8 fill / calc(var(--px) * 3) repeat; image-rendering: pixelated; }
.bar i { position: absolute; top: 0; bottom: 0; background: linear-gradient(#ffe36b, #e0a020); box-shadow: inset 0 calc(var(--px) * 1) 0 rgba(255, 255, 255, .5); }
.b-coal i { left: 0; width: 44%; } .b-bronze i { left: 2.4%; width: 27.6%; } .b-steel i { left: 3.2%; width: 60.8%; } .b-moon i { left: 16%; width: 52%; }
.b-gold i { left: 20%; width: 76%; } .b-glow i { left: 28%; width: 70%; } .b-sapph i { left: 44%; width: 56%; } .b-amber i { left: 60%; width: 40%; }
.bar-scale { display: flex; justify-content: space-between; font: 400 16px var(--pixel); color: var(--ink-dim); }

/* the layers, as a core sample */
.core-sample { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.core-sample li { display: flex; align-items: center; gap: 14px; padding: 6px 12px 6px 6px; background: rgba(20, 12, 6, .55); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .45), inset 0 -2px 0 rgba(255, 230, 190, .10); }
.core-sample img { flex: none; width: 32px; height: 32px; image-rendering: pixelated; box-shadow: 0 0 0 2px rgba(0, 0, 0, .6); }
.core-sample b { flex: none; min-width: 4.2em; font: 700 18px var(--pixel); color: #ffe27a; text-shadow: 2px 2px 0 #3a2a00; }
.core-sample span { font: 700 19px/1.25 system-ui, -apple-system, sans-serif; color: #fff6e6; text-shadow: 1px 2px 0 #000; }

/* a carved cave pocket: darker rock, a lit rim, a floor of blocks */
.pocket { position: relative; padding: calc(var(--blk) * .9) calc(var(--blk) * .5) 0; background: rgba(8, 5, 12, .66);
  box-shadow: inset 0 calc(var(--px) * 4) 0 rgba(0, 0, 0, .55), inset calc(var(--px) * 3) 0 0 rgba(0, 0, 0, .4), inset calc(var(--px) * -3) 0 0 rgba(0, 0, 0, .4), 0 0 0 calc(var(--px) * 2) rgba(255, 220, 160, .08); }
.pocket::after { content: ""; display: block; height: calc(var(--blk) * .5); margin: 0 calc(var(--blk) * -.5); background: url("tex/b_stone.png") 0 0 / calc(var(--blk) * .5) repeat-x; image-rendering: pixelated; box-shadow: inset 0 calc(var(--px) * 2) 0 rgba(255, 255, 255, .12); }
.pocket.shale::after { background-image: url("tex/b_cobbled_deepslate.png"); }
.pocket .torch { position: absolute; top: calc(var(--blk) * .3); width: calc(var(--px) * 16); height: calc(var(--px) * 16); background: url("tex/b_torch.png") 0 0 / 100% no-repeat; image-rendering: pixelated; }
.pocket .torch::before { content: ""; position: absolute; left: 50%; top: 30%; width: 300px; height: 300px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 90, .28), rgba(255, 150, 40, .08) 45%, transparent 70%); animation: flicker 2.4s steps(3) infinite; pointer-events: none; }
.pocket .torch.l { left: 10px; } .pocket .torch.r { right: 10px; }
@keyframes flicker { 0%, 100% { opacity: 1; } 40% { opacity: .8; } 70% { opacity: .93; } }
.pocket-title { position: relative; z-index: 1; text-align: center; margin: 0 0 18px; font: 700 16px var(--pixel); color: var(--yellow); text-shadow: 2px 2px 0 #3f3f15; }
.line-up { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 22px 30px; margin: 0; padding: 0; list-style: none; }
.line-up li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; text-align: center; }
.line-up img { image-rendering: pixelated; filter: drop-shadow(var(--px) var(--px) 0 rgba(0, 0, 0, .55)); }
.line-up .nm { font: 700 16px/1.2 var(--pixel); color: #fff; text-shadow: 2px 2px 0 #000; }
.line-up .where { font: 400 16px/1.2 var(--pixel); color: var(--aqua); text-shadow: 2px 2px 0 #000; }
.m-16x32 { width: calc(var(--px) * 16); height: calc(var(--px) * 32); }
.m-12x32 { width: calc(var(--px) * 12); height: calc(var(--px) * 32); }
.m-16x26 { width: calc(var(--px) * 16); height: calc(var(--px) * 26); }
.m-12x9 { width: calc(var(--px) * 12); height: calc(var(--px) * 9); }
.m-15x8 { width: calc(var(--px) * 15); height: calc(var(--px) * 8); }
.m-13x4 { width: calc(var(--px) * 13); height: calc(var(--px) * 4); }

/* buildings and towers: the game's own isometric renders */

/* strike meter */
.strikes { display: flex; flex-wrap: wrap; gap: calc(var(--px) * 1); margin: 14px 0 6px; }
.strikes img { width: calc(var(--px) * 12); height: calc(var(--px) * 12); image-rendering: pixelated; }
.strikes img:last-child { animation: recharge 1.55s steps(4) infinite; }
@keyframes recharge { 0% { opacity: .15; } 100% { opacity: 1; } }

/* boss cards */
.bosses { display: grid; gap: 22px; }
@media (min-width: 800px) { .bosses { grid-template-columns: 1fr 1fr; } }
.boss { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.boss .portrait { display: grid; place-items: end center; padding: 10px 6px 0; background: radial-gradient(ellipse at 50% 80%, var(--aura), transparent 65%); }
.boss .portrait img { width: calc(var(--px) * 24); height: calc(var(--px) * 48); image-rendering: pixelated; }
.boss.chief { --aura: rgba(255, 160, 40, .45); } .boss.king { --aura: rgba(190, 90, 255, .5); }

/* lands */
.lands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .lands { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }
.lands > li { display: flex; }
.land { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; text-align: center; }
.land .pic { display: grid; place-items: end center; width: 100%; height: 118px; padding-bottom: 6px; background: radial-gradient(ellipse at 50% 85%, rgba(255, 220, 150, .22), transparent 70%); }
.land .pic img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.land h3 { font-size: 16px; }
@media (min-width: 900px) { .land h3 { font-size: 24px; } .land .pic { height: 150px; } }
.land .lv { font: 700 16px var(--pixel); color: var(--aqua); text-shadow: 2px 2px 0 #153f3f; }

/* the workbench, crafting a recipe */
.bench .title { font: 700 16px var(--pixel); color: #fff; margin-bottom: 14px; }
.bench .grid { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.bench .g3 { display: grid; grid-template-columns: repeat(3, auto); gap: calc(var(--px) * 1); }
.bench .arrow { position: relative; width: calc(var(--px) * 22); height: calc(var(--px) * 15); }
.bench .arrow::before { content: ""; position: absolute; left: 0; right: calc(var(--px) * 7); top: calc(var(--px) * 5); height: calc(var(--px) * 5); background: #8b8b8b; box-shadow: 0 calc(var(--px) * 1) 0 #3a3a3a; }
.bench .arrow::after { content: ""; position: absolute; right: 0; top: 0; border-left: calc(var(--px) * 8) solid #8b8b8b; border-top: calc(var(--px) * 7.5) solid transparent; border-bottom: calc(var(--px) * 7.5) solid transparent; }
.bench .arrow i { position: absolute; z-index: 1; left: 0; top: calc(var(--px) * 5); height: calc(var(--px) * 5); width: 0; background: #fff; animation: fillbar 6s steps(15) infinite; }
@keyframes fillbar { 0%, 45% { width: 0; } 78%, 100% { width: calc(100% - var(--px) * 7); } }
.bench .g3 .slot img { opacity: 0; animation: dropin 6s ease-out infinite; }
.bench .g3 .slot.e img { animation: none; opacity: 0; }
.bench .s2 img { animation-delay: .4s !important; } .bench .s3 img { animation-delay: .8s !important; } .bench .s5 img { animation-delay: 1.2s !important; } .bench .s8 img { animation-delay: 1.6s !important; }
@keyframes dropin { 0% { opacity: 0; transform: translateY(-10px); } 5% { opacity: 1; transform: none; } 80% { opacity: 1; } 84%, 100% { opacity: 0; } }
.bench .result img { opacity: 0; animation: pop 6s ease-out infinite; }
@keyframes pop { 0%, 78% { opacity: 0; transform: scale(.4); } 82% { opacity: 1; transform: scale(1.25); } 86%, 97% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

/* hotbar with real items */
.hotbar { position: relative; width: calc(var(--px) * 182); height: calc(var(--px) * 22); background: url("tex/g_hotbar.png") 0 0 / 100% 100% no-repeat; image-rendering: pixelated; }
.hotbar ol { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hotbar li { position: absolute; top: calc(var(--px) * 3); width: calc(var(--px) * 16); height: calc(var(--px) * 16); }
.hotbar li img { width: 100%; height: 100%; image-rendering: pixelated; }
.hotbar li:nth-child(1) { left: calc(var(--px) * 3); } .hotbar li:nth-child(2) { left: calc(var(--px) * 23); } .hotbar li:nth-child(3) { left: calc(var(--px) * 43); }
.hotbar li:nth-child(4) { left: calc(var(--px) * 63); } .hotbar li:nth-child(5) { left: calc(var(--px) * 83); } .hotbar li:nth-child(6) { left: calc(var(--px) * 103); }
.hotbar li:nth-child(7) { left: calc(var(--px) * 123); } .hotbar li:nth-child(8) { left: calc(var(--px) * 143); } .hotbar li:nth-child(9) { left: calc(var(--px) * 163); }
.hotbar .sel { position: absolute; top: calc(var(--px) * -1); left: calc(var(--px) * -1); width: calc(var(--px) * 24); height: calc(var(--px) * 23); background: url("tex/g_hotbar_selection.png") 0 0 / 100% 100%; image-rendering: pixelated; animation: hop 10s steps(1) infinite; }
@keyframes hop { 0% { transform: none; } 20% { transform: translateX(calc(var(--px) * 20)); } 40% { transform: translateX(calc(var(--px) * 40)); } 60% { transform: translateX(calc(var(--px) * 60)); } 80% { transform: translateX(calc(var(--px) * 80)); } }
@media (max-width: 419px) { .hotbar { --px: 1.5px; } }
.rows { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; align-items: center; gap: 12px; }
.rows .nm { display: block; font: 700 16px var(--pixel); color: #fff; }
.rows .dd { display: block; font-size: 16px; line-height: 1.35; color: var(--ink-dim); }

/* milestone toasts, in the game's toast art */
.toasts { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; justify-items: start; }
.toast { display: flex; align-items: center; gap: calc(var(--px) * 5); width: calc(var(--px) * 160); max-width: 100%; height: calc(var(--px) * 32); padding: 0 calc(var(--px) * 7); background: url("tex/g_toast.png") 0 0 / 100% 100% no-repeat; image-rendering: pixelated; }
.toast img { flex: none; width: calc(var(--px) * 16); height: calc(var(--px) * 16); image-rendering: pixelated; }
.toast b { display: block; font: 700 16px/1.1 var(--pixel); color: var(--yellow); text-shadow: 2px 2px 0 #3f3f15; }
.toast span { display: block; font: 400 16px/1.2 var(--pixel); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.js .toasts .toast { opacity: 0; transform: translateX(-30px); transition: opacity .5s, transform .5s; }
.js .toasts.in .toast { opacity: 1; transform: none; }
.js .toasts.in .toast:nth-child(2) { transition-delay: .35s; } .js .toasts.in .toast:nth-child(3) { transition-delay: .7s; } .js .toasts.in .toast:nth-child(4) { transition-delay: 1.05s; }
.bignum { display: block; font: 700 80px/1 var(--pixel); color: var(--aqua); text-shadow: 6px 6px 0 #153f3f; }
@media (min-width: 900px) { .bignum { font-size: 144px; text-shadow: 9px 9px 0 #153f3f; } }

/* in short */
.slots4 { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .slots4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1300px) { .slots4 { grid-template-columns: repeat(4, 1fr); } }
.slots4 > li { display: flex; } .slots4 .card { width: 100%; }
.slots4 .head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

/* the Keeper */
.keeper { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1000px) { .keeper { grid-template-columns: 380px minmax(0, 1fr); gap: 48px; } }
.keeper.card { padding: calc(var(--px) * 6); }
@media (min-width: 900px) { .keeper.card { padding: calc(var(--px) * 8) calc(var(--px) * 10); } }
.lair { position: relative; display: grid; place-items: end center; min-height: 360px; padding-bottom: 14px;
  background: radial-gradient(ellipse at 50% 78%, rgba(150, 60, 255, .4), transparent 62%), url("img/layer-hollow.png") 0 0 / calc(var(--blk) * 16); image-rendering: pixelated; box-shadow: inset 0 0 60px 20px rgba(0, 0, 0, .85); }
.lair img { position: relative; height: 320px; width: auto; animation: loom 4s ease-in-out infinite; }
@keyframes loom { 0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 16px rgba(170, 80, 255, .6)); } 50% { transform: translateY(-6px); filter: drop-shadow(0 0 30px rgba(190, 100, 255, 1)); } }
.keeper h2 { color: #ead7ff; text-shadow: 6px 6px 0 #2a0e45; }
.drops { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 10px 0 0; padding: 0; list-style: none; }
.drops li { display: flex; align-items: center; gap: 8px; font: 700 16px var(--pixel); color: #fff; }

/* FAQ */
.faq { display: grid; gap: 14px; margin-top: 26px; }
@media (min-width: 1000px) { .faq { grid-template-columns: 1fr 1fr; align-items: start; } }
.faq details { padding: calc(var(--px) * 2) calc(var(--px) * 4); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; font: 700 16px/1.4 var(--pixel); color: #fff; padding: 6px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: none; width: 24px; text-align: center; color: var(--yellow); font-size: 24px; text-shadow: 2px 2px 0 #3f3f15; }
.faq details[open] summary::before { content: "-"; }
.faq details[open] summary { color: var(--yellow); }
.faq .ans { padding: 6px 0 6px 36px; }
.faq .ans p { margin: 0 0 .7em; }

/* the Ancient Core and the footer */
.ancient { display: block; width: calc(var(--px) * 24); height: calc(var(--px) * 24); margin: 0 auto 18px; image-rendering: pixelated; animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { filter: drop-shadow(0 0 10px rgba(120, 220, 255, .6)); } 50% { filter: drop-shadow(0 0 26px rgba(150, 235, 255, 1)); } }
.foot { text-align: center; max-width: 860px; margin: 64px auto 0; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 10px 0 14px; }
.foot nav a { font: 700 16px var(--pixel); color: var(--yellow); text-shadow: 2px 2px 0 #3f3f15; }
.foot small { display: block; font-size: 14px; line-height: 1.55; color: var(--ink-dim); margin-top: 6px; }

/* reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- legal / support pages ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; height: 380px; background: linear-gradient(#4f82e3, #8db6fa 70%, #a9c8fb); }
.page-hero .hills-mid { bottom: var(--blk); }
.page-hero .ground-front { height: calc(var(--blk) * 2); background-size: calc(var(--blk) * 16) calc(var(--blk) * 3); background-position: 0 0; }
.page-hero .inner { position: relative; z-index: 3; padding: 100px var(--gutter) 0; text-align: center; }
.page-hero h1 { font-size: 40px; color: #fff; text-shadow: 4px 4px 0 #23324f; }
@media (min-width: 900px) { .page-hero { height: 440px; } .page-hero h1 { font-size: 64px; text-shadow: 6px 6px 0 #23324f; } }
.page-hero p { margin: 12px 0 0; font: 700 16px var(--pixel); color: #10203f; }
.page .zone { padding-left: var(--gutter); }
.doc { max-width: 920px; margin: 0 auto; }
.doc .card { padding: calc(var(--px) * 5) calc(var(--px) * 6); }
@media (max-width: 899px) { .doc .card { padding: 12px 10px; } }
.doc h2 { font-size: 24px; margin: 1.7em 0 .5em; color: var(--yellow); text-shadow: 3px 3px 0 #2a160b; }
@media (min-width: 900px) { .doc h2 { font-size: 32px; } }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 16px; margin: 1.3em 0 .4em; color: #fff; text-shadow: 2px 2px 0 #2a160b; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin: .3em 0; }
.doc .updated { font: 700 16px var(--pixel); color: var(--aqua); text-shadow: 2px 2px 0 #153f3f; margin: 0 0 1.2em; }
.doc .tablewrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; margin: .6em 0 1.2em; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 2px solid #3b2212; }
.doc th { font: 700 16px var(--pixel); color: var(--yellow); }
.toc { columns: 1; }
@media (min-width: 640px) { .toc { columns: 2; } }
.mail { font: 700 16px var(--pixel); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .toasts .toast { opacity: 1; transform: none; }
  .bench .g3 .slot img, .bench .result img { opacity: 1; }
  .bench .g3 .slot.e img { opacity: 0; }
  .bench .arrow i { width: calc(100% - var(--px) * 7); }
}
.mt-s { margin-top: 14px; } .mt-m { margin-top: 18px; } .mt-l { margin-top: 22px; } .gap-s { margin-top: 18px; }
@media (min-width: 1000px) { .two.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.bench .grid { flex-wrap: nowrap; }
@media (max-width: 419px) { .bench { --px: 1.75px; } }
.ore .top > div { min-width: 0; flex: 1; container-type: inline-size; }
.ore h3 { font-size: min(16px, 12cqi); }
@media (min-width: 900px) { .ore h3 { font-size: min(24px, 12cqi); } }
@media (max-width: 759px) { .ore .top { flex-direction: column; align-items: flex-start; gap: 8px; } }
@media (max-width: 479px) { .ores { grid-template-columns: 1fr; gap: 10px; } .ore .top { flex-direction: row; align-items: center; gap: 12px; } }
@media (max-width: 419px) { .btn.big { font-size: 16px; padding: 0 14px; gap: 10px; } .tagline { font-size: 24px; } .sign .plank { min-width: 0; } }
.page-hero .hills-mid { bottom: calc(var(--blk) * 2); height: calc(var(--blk) * 5); background-image: url("img/hills-far.png"); background-size: calc(var(--blk) * 40) calc(var(--blk) * 7); background-position: 0 0; }
.nw { display: inline-block; }
@media (max-width: 419px) { .counters b { font-size: min(32px, 23cqi); } }

/* buildings, towers and traps: the game's isometric renders, all at one scale, standing on one baseline */
.builds { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 26px 28px; margin: 0; padding: 0; list-style: none; }
.builds li { display: grid; grid-template-rows: auto 2.6em; justify-items: center; align-items: end; gap: 8px; min-width: 110px; text-align: center; }
.builds img { display: block; max-width: none; height: auto; transition: transform .2s; }
.builds li:hover img { transform: translateY(-3px); }
.builds .nm { align-self: start; font: 700 16px/1.25 var(--pixel); color: #fff; text-shadow: 2px 2px 0 #000; }
@media (max-width: 899px) { .builds { gap: 22px 12px; } .builds li { width: calc(50% - 6px); min-width: 0; } .builds img { zoom: .6; } }

/* depth gauge: the mine's DEPTH panel, hung under the HUD bar on two chains over the shaft */
.meter { position: fixed; z-index: 35; top: 56px; left: max(4px, calc(var(--shaft-x) - 8px)); pointer-events: none; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
.meter.on { opacity: 1; transform: none; }
.meter .chain { position: absolute; top: -14px; width: calc(var(--px) * 6); height: 18px; background: url("tex/b_chain.png") 0 0 / calc(var(--px) * 16) repeat-y; image-rendering: pixelated; }
.meter .chain.l { left: 18px; } .meter .chain.r { right: 18px; }
.meter .stone { padding: 0 calc(var(--px) * 2); min-width: 150px; }
.meter b { display: block; font: 700 16px/1.2 var(--pixel); color: #fff; text-shadow: 2px 2px 0 #2a1e2b; white-space: nowrap; }
.meter b em { font-style: normal; font-size: 24px; color: #fff; text-shadow: 2px 2px 0 #2a1e2b, 0 0 8px rgba(255, 240, 170, .75); }
.meter span { display: block; font: 700 16px/1.2 var(--pixel); color: var(--yellow); text-shadow: 2px 2px 0 #3f3f15; white-space: nowrap; }
@media (min-width: 900px) { .meter { top: 62px; } .meter .stone { min-width: 230px; } .meter b em { font-size: 32px; } }
@media (max-width: 899px) { .meter .stone { min-width: 0; } .meter span { display: none; } .meter .chain.l { left: 10px; } .meter .chain.r { right: 10px; } }

/* hero: room for the HUD bar, a logo that fits the height, the scroll hint in the flow under the buttons */
.hero { height: clamp(640px, 100svh, 1100px); min-height: 0; max-height: none; }
.hero-inner { min-height: 0; height: 100%; padding: 96px var(--gutter) calc(var(--blk) * 3 + 20px); }
.logo { width: min(calc(127px * var(--logo)), 92vw, calc((min(100svh, 1100px) - 580px) * 127 / 48)); min-width: min(254px, 92vw); }
.dig-cue { position: static; transform: none; margin-top: 26px; }
.hero-miner, .critter { z-index: 1; }
.hero-inner { z-index: 3; }
