/* SeedMapView: daylight Minecraft from the game's own assets: oak plank walls, the light inventory
   GUI panels, the real stone button and checkbox sprites (textures/gui), a stone logo over a render
   of our own 3D world, stone-and-ore strips and a bedrock floor. Square corners everywhere. */
:root {
  --win: #c6c6c6;
  --win-hi: #ffffff;
  --win-lo: #555555;
  --slot: #767676;
  --slot-hi: #ffffff;
  --slot-lo: #373737;
  --label: #2b2b2b;
  --muted: #555555;
  --link: #1f45b5;
  --tip-bg: rgba(16, 0, 16, 0.94);
  --tip-a: #5000ff;
  --tip-b: #28007f;
  --yellow: #ffff55;
  --green: #55ff55;
  --aqua: #55ffff;
  --diamond: #5decf5;
  --emerald: #17dd62;
  --logo: 'Bungee', 'Chakra Petch', system-ui, sans-serif;
  --pixel: 'Chakra Petch', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --topbar: 56px;
  color-scheme: dark;
}
* { box-sizing: border-box; border-radius: 0 !important; }
html { -webkit-text-size-adjust: 100%; background: #101010; }
body { margin: 0; font: 16px/1.55 var(--body); color: #fff; overflow-x: hidden; }
/* the modern Minecraft menu backdrop: the world, blurred, under a dark translucent layer */
/* the page is an oak plank wall (real 16px texture at 4x) */
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background: url('/gui/tex/oak_planks.png') 0 0 / 64px 64px; image-rendering: pixelated; }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(rgba(40,24,8,.12), rgba(40,24,8,.28)); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--pixel); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }
.ico { image-rendering: pixelated; flex: none; }

/* inventory window */
.win, .prose, .card, .bevel, .panel, .feature, dialog#publish {
  background: var(--win); color: var(--label); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 var(--win-hi), inset -2px -2px 0 var(--win-lo), 0 6px 18px rgba(0,0,0,.45);
}
.win h1, .win h2, .win h3, .win h4, .prose h1, .prose h2, .prose h3, .card h3, .feature h3, dialog#publish h2 { color: var(--label); }
/* item tooltip */
.tip, #readout, #info, #toast, .map-hint, .hero-chips span { background: var(--tip-bg); color: #fff; border: 2px solid var(--tip-a); border-bottom-color: var(--tip-b); border-right-color: #3c00bf; }

/* ---------- top bar: like the in-game header with its separator line ---------- */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--topbar); background: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.3)), url('/gui/tex/dark_oak_planks.png') 0 0 / 48px 48px; image-rendering: pixelated; border-bottom: 3px solid #000; box-shadow: inset 0 -2px 0 rgba(255,255,255,.12), 0 4px 12px rgba(0,0,0,.5); }
.topbar .brand, .topbar .nav { image-rendering: auto; }
.topbar .wrap { width: calc(100% - 32px); display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font: 400 1.3rem var(--logo); color: #fff; text-decoration: none; white-space: nowrap; text-shadow: 2px 2px 0 #3f3f3f; }
.brand:hover { color: #fff; }
.brand img { width: 30px; height: 30px; image-rendering: pixelated; }
.brand b { color: var(--diamond); font-weight: 400; }
.nav { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 4px 10px; font: 600 1.05rem var(--pixel); text-decoration: none; color: #e0e0e0; white-space: nowrap; text-shadow: 2px 2px 0 #3f3f3f; }
.nav a:hover { color: var(--yellow); }
.nav a[aria-current] { color: var(--yellow); }

/* ---------- the real Minecraft button (nine-slice sprite, border 3) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 12px; border: 6px solid transparent; border-image: url('/gui/button.png') 3 fill stretch; image-rendering: pixelated; background: none; color: #fff; font: 600 1.02rem var(--pixel); cursor: pointer; text-decoration: none; white-space: nowrap; text-shadow: 2px 2px 0 #3f3f3f; }
.btn:hover { border-image-source: url('/gui/button_highlighted.png'); color: var(--yellow); }
.btn:disabled { border-image-source: url('/gui/button_disabled.png'); color: #a0a0a0; text-shadow: none; cursor: default; }
.btn.primary { color: var(--green); }
.btn.primary:hover { color: var(--yellow); }
.btn.icon { width: 40px; padding: 0; font-size: 1.3rem; }
.btn.small { height: 34px; font-size: .92rem; }
/* text field: black with the grey outline, white when focused */
input[type=text], input[type=number], select { width: 100%; height: 38px; padding: 0 9px; border: 2px solid #a0a0a0; background: #000; color: #fff; font: 600 .95rem var(--body); min-width: 0; }
input:focus, select:focus { outline: none; border-color: #fff; }
input::placeholder { color: #707070; }
select { font: 600 1rem var(--pixel); }
/* real checkbox sprites */
.check { display: flex; align-items: center; gap: 7px; font-size: .86rem; cursor: pointer; color: var(--label); padding: 2px 0; font-weight: 600; line-height: 1.15; }
.check input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; flex: none; background: url('/gui/checkbox.png') 0 0 / 16px 16px; image-rendering: pixelated; cursor: pointer; }
.check input:hover { background-image: url('/gui/checkbox_highlighted.png'); }
.check input:checked { background-image: url('/gui/checkbox_selected.png'); }
.check input:checked:hover { background-image: url('/gui/checkbox_selected_highlighted.png'); }
.check .ico { width: 16px; height: 16px; }
/* choice rows: stone buttons, the chosen one highlighted */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.seg.seg2 { grid-template-columns: 1fr 1fr; }
.seg button, .viewswitch button { height: 36px; border: 5px solid transparent; border-image: url('/gui/button_disabled.png') 3 fill stretch; image-rendering: pixelated; background: none; color: #d0d0d0; font: 600 .98rem var(--pixel); cursor: pointer; text-shadow: 2px 2px 0 #2a2a2a; padding: 0 4px; }
.seg button:hover, .viewswitch button:hover { border-image-source: url('/gui/button.png'); color: #fff; }
.seg button[aria-pressed=true], .viewswitch button[aria-pressed=true] { border-image-source: url('/gui/button_highlighted.png'); color: var(--yellow); }

/* ---------- page head ---------- */
.page-head { position: relative; padding: 56px 0 44px; background: url('/gui/hero.jpg') center bottom / max(100%, 1300px) auto no-repeat, #9ec5ff; }
.page-head:has(.title-screen) { padding: 64px 0 70px; min-height: 500px; }
.page-head::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 35%, rgba(0,0,0,.45)); pointer-events: none; }
.page-head > .wrap { position: relative; }
/* deepslate with the odd ore: divider under the hero and above the footer */
.ore-strip { height: 32px; background: url('/gui/tex/strip.png') 0 0 / 1024px 32px repeat-x; image-rendering: pixelated; border-top: 3px solid #000; border-bottom: 3px solid #000; box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.hero-inner { position: relative; }
/* title like the game logo: stone-textured letters with a dark extruded edge */
.hero-inner h1 { font: 400 clamp(2.4rem, 6vw, 4.6rem)/1.05 var(--logo); margin: 0 0 14px; max-width: 980px; overflow-wrap: anywhere; color: #b9b9b9;
  background: url('/gui/tex/stone.png') 0 0 / 48px 48px; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 #585858) drop-shadow(0 3px 0 #2c2c2c) drop-shadow(0 5px 6px rgba(0,0,0,.7)); }
.hero-inner .lead { color: #e8e8e8; font-size: 1.1rem; font-weight: 600; max-width: 760px; margin: 0 0 14px; text-shadow: 2px 2px 0 #000; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.splash { position: absolute; right: 3%; top: 4px; color: var(--yellow); font: 700 1.5rem var(--pixel); text-shadow: 3px 3px 0 #3f3f00; transform: rotate(-18deg); animation: splash .45s ease-in-out infinite alternate; pointer-events: none; white-space: nowrap; }
@keyframes splash { from { transform: rotate(-18deg) scale(1); } to { transform: rotate(-18deg) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .splash { animation: none; } }
.eyebrow { display: inline-block; font: 700 1rem var(--pixel); color: #fff; margin-bottom: 10px; text-shadow: 2px 2px 0 #1d3a6b; letter-spacing: .02em; }
.crumbs { font-size: .86rem; color: #cfcfcf; margin: 0 0 12px; font-weight: 600; text-shadow: 1px 1px 0 #000; }
.crumbs a { color: #fff; }
.seed-search { display: grid; grid-template-columns: minmax(0, 1fr) 120px 180px auto; gap: 6px; padding: 10px; max-width: 920px; margin-top: 18px; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.25); }
.seed-search input, .seed-search select { height: 46px; font-size: 1.1rem; }
.seed-search .btn { height: 46px; padding: 0 22px; font-size: 1.15rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-chips span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .84rem; padding: 3px 9px; }
.hero-chips img { width: 16px; height: 16px; image-rendering: pixelated; }
@media (max-width: 760px) { .seed-search { grid-template-columns: 1fr 1fr; } .seed-search input, .seed-search .btn { grid-column: 1 / -1; } .splash { display: none; } }

/* ---------- map tool: settings window + map, same height, nothing scrolls inside ---------- */
.tool { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 14px; padding: 18px 0 6px; align-items: stretch; }
.controls { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ctl-head .tool-title { font: 700 1.45rem/1.1 var(--pixel); margin: 0; color: var(--label); }
.ctl-head .sub { margin: 3px 0 0; color: var(--muted); font-size: .84rem; font-weight: 600; }
.ctl-block { display: grid; gap: 6px; }
.ctl-block h4 { font: 700 1rem var(--pixel); color: var(--label); margin: 2px 0 0; }
.seed-row { display: flex; gap: 6px; }
.seed-row .btn.icon img { width: 22px; height: 22px; }
#seed-value { font-size: .76rem; color: var(--muted); font-weight: 600; }
#seed-value:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.layer-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; padding: 8px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.layer-group .check, .opts .check { color: #fff; text-shadow: 1px 1px 0 #3f3f3f; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; padding: 8px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.goto { display: grid; grid-template-columns: 1fr 1fr auto; gap: 4px; }
.goto input { padding: 0 6px; }
.ctl-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.near { background: var(--slot); padding: 8px 10px; box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.near strong { font: 700 .95rem var(--pixel); color: #fff; text-shadow: 1px 1px 0 #3f3f3f; }
.mapbox { position: relative; min-height: 680px; background: #0b0b0f; border: 2px solid #000; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 0 6px 18px rgba(0,0,0,.45); overflow: hidden; }
#map, #view3d { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
#map { cursor: grab; }
#map:active { cursor: grabbing; }
.map-ui { position: absolute; display: flex; gap: 4px; z-index: 4; }
.map-ui.tl { top: 10px; left: 10px; }
.map-ui.tr { top: 10px; right: 10px; flex-direction: column; }
.viewswitch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.viewswitch button { min-width: 48px; height: 40px; }
.map-hint { position: absolute; right: 10px; bottom: 10px; font-size: .78rem; padding: 3px 8px; z-index: 3; pointer-events: none; }
#readout { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; font: 700 .84rem var(--mono); pointer-events: none; z-index: 4; white-space: nowrap; }
#readout:empty { display: none; }
#info { position: absolute; left: 10px; top: 60px; padding: 10px 30px 10px 12px; display: grid; gap: 4px; min-width: 200px; z-index: 5; }
#info strong { color: var(--aqua); font-family: var(--pixel); font-size: 1.05rem; }
#info span { color: #ddd; font: 600 .85rem var(--mono); }
#toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); opacity: 0; padding: 8px 14px; font-weight: 700; transition: .2s; z-index: 60; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.nearest { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 1px; }
.nearest li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .86rem; color: #fff; }
.nearest button, .nearest a { border: 0; background: none; color: #fff; font: 700 .85rem var(--mono); cursor: pointer; padding: 1px 0; text-decoration: underline; text-shadow: 1px 1px 0 #3f3f3f; }
.nearest button:hover, .nearest a:hover { color: var(--yellow); }
.nearest small { color: #eaeaea; font-family: var(--mono); text-shadow: 1px 1px 0 #3f3f3f; }
#saved-wrap { padding: 8px 10px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
#saved-wrap h4 { font: 700 .95rem var(--pixel); color: #fff; margin: 0; text-shadow: 1px 1px 0 #3f3f3f; }
.nearest [data-del] { color: #fff; font-size: 1rem; text-decoration: none; }
@media (max-width: 960px) {
  .tool { grid-template-columns: 1fr; }
  .mapbox { min-height: 70vh; order: -1; }
  .map-hint { display: none; }
}

/* ---------- content ---------- */
.content { padding: 26px 0 64px; }
.prose { padding: clamp(18px, 3.5vw, 30px); }
.prose h2 { margin: 1.3em 0 .45em; }
.prose h2:first-child, .prose h1:first-child { margin-top: 0; }
.prose p, .prose li { color: #d6d6dc; }
.prose a, .card a, .feature a, .linklist a, .sort a { color: var(--diamond); }
.prose a:hover { color: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.prose th, .prose td { text-align: left; padding: 8px 10px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.07); }
.prose th { font: 600 .95rem var(--pixel); }
.prose td a { color: var(--link); font-weight: 700; }
.prose code { background: #000; color: #fff; padding: 1px 6px; font-family: var(--mono); font-size: .88em; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.side { display: grid; gap: 14px; position: sticky; top: calc(var(--topbar) + 14px); }
.card { padding: 16px; }
.card h3 { margin: 0 0 8px; }
.card table { width: 100%; font-size: .9rem; border-collapse: collapse; color: var(--label); }
.card th, .card td { text-align: left; padding: 3px 0; vertical-align: top; }
.card th { padding-right: 10px; color: var(--muted); }
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.linklist a { font-weight: 700; text-decoration: none; }
.linklist a:hover { text-decoration: underline; }
.faq details { border-bottom: 2px solid rgba(255,255,255,.1); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--label); }
.faq details p { margin: 8px 0 0; }
.grid-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.grid-links a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--slot); color: #fff; font-weight: 700; text-decoration: none; text-shadow: 1px 1px 0 #3f3f3f; box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.grid-links a:hover { background: #a3a3a3; color: var(--yellow); }
.grid-links .ico { width: 24px; height: 24px; }
.note { color: var(--muted); font-size: .9rem; }
.section-title { font: 400 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--logo); color: #fff; text-shadow: 0 3px 0 #2c2c2c, 0 5px 8px rgba(0,0,0,.6); margin: 0 0 16px; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; } .side { position: static; } }

/* features (home): item in a slot + text, in an inventory window */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0 0 26px; }
.feature { padding: 14px; display: grid; grid-template-columns: 64px 1fr; gap: 2px 14px; align-content: start; text-decoration: none; color: var(--label); }
/* item in an item frame */
.feature .frame { grid-row: span 2; width: 64px; height: 64px; display: grid; place-items: center; background: url('/gui/tex/item_frame.png') 0 0 / 64px 64px; image-rendering: pixelated; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.feature .frame img { width: 36px; height: 36px; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.45)); }
.feature h3 { margin: 2px 0 0; }
.feature p { margin: 0; color: var(--muted); font-size: .9rem; }
a.feature:hover { outline: 2px solid #fff; outline-offset: -2px; color: var(--label); }

/* footer */
/* the bottom of the world: bedrock */
.site-footer { background: linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,.72)), url('/gui/tex/bedrock.png') 0 0 / 64px 64px; image-rendering: pixelated; color: #c4c4c4; padding: 40px 0; font-size: .9rem; }
.site-footer * { image-rendering: auto; }
.site-footer a { color: #e6e6e6; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer-grid h4 { color: var(--yellow); margin: 0 0 10px; font-size: 1.1rem; text-shadow: 2px 2px 0 #3f3f00; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.footer-note { margin-top: 24px; color: #808080; font-size: .8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* calculators + finder */
.calc { display: grid; gap: 12px; max-width: 780px; }
.calc fieldset { border: 0; padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.calc legend { font: 700 1rem var(--pixel); color: #fff; text-shadow: 1px 1px 0 #3f3f3f; float: left; width: 100%; grid-column: 1 / -1; padding: 0; }
label.field { display: grid; gap: 3px; font-size: .74rem; font-weight: 800; color: var(--label); text-transform: uppercase; letter-spacing: .06em; }
.calc fieldset label.field { color: #fff; text-shadow: 1px 1px 0 #3f3f3f; }
.calc-out { margin: 0; font-size: 1.05rem; color: var(--label); }
.tool-page { padding: 24px 0 0; }
.tool-page .panel { padding: 22px; }
.finder { display: grid; gap: 10px; }
.conds { display: grid; gap: 6px; }
.cond { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.cond label { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--label); white-space: nowrap; font-weight: 700; }
.cond input { width: 96px; }
.finder-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.results li { display: grid; gap: 2px; justify-content: start; padding: 6px 0; border-bottom: 2px solid rgba(255,255,255,.08); }
.finder .nearest, .calc .nearest { background: var(--slot); padding: 6px 10px; box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
@media (max-width: 600px) { .cond { grid-template-columns: 1fr auto; } .cond label { grid-column: 1; } }

/* seed library */
dialog#publish { padding: 18px; width: min(470px, 100% - 32px); }
dialog#publish::backdrop { background: rgba(0,0,0,.65); }
#publish-form { display: grid; gap: 10px; }
.tagpick { border: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px 8px; padding: 10px; margin: 0; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); }
.tagpick legend { font: 700 .95rem var(--pixel); color: #fff; text-shadow: 1px 1px 0 #3f3f3f; float: left; width: 100%; grid-column: 1 / -1; padding: 0; }
.tagpick .check { color: #fff; text-shadow: 1px 1px 0 #3f3f3f; }
.hp { position: absolute; left: -9999px; }
.publish-err { color: #aa0000; margin: 0; min-height: 1em; font-size: .9rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0; }
.chips a { display: inline-flex; align-items: center; height: 36px; padding: 0 10px; border: 5px solid transparent; border-image: url('/gui/button.png') 3 fill stretch; image-rendering: pixelated; text-decoration: none; color: #fff; font: 600 .95rem var(--pixel); text-shadow: 2px 2px 0 #3f3f3f; }
.chips a:hover { border-image-source: url('/gui/button_highlighted.png'); color: var(--yellow); }
.chips a[aria-current] { border-image-source: url('/gui/button_highlighted.png'); color: var(--yellow); }
.sort a[aria-current] { font-weight: 800; color: var(--label); text-decoration: none; }
.seed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; margin-top: 12px; }
.seed-card { display: grid; gap: 3px; padding: 12px; text-decoration: none; color: #fff; background: var(--slot); position: relative; box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); text-shadow: 1px 1px 0 #3f3f3f; }
.seed-card:hover { background: #a3a3a3; color: #fff; }
.seed-card strong { font: 700 1.1rem var(--pixel); padding-right: 50px; color: #fff; }
.seed-meta { color: #f0f0f0; font-size: .84rem; }
.seed-num { font: 700 .8rem var(--mono); color: var(--yellow); }
.seed-likes { position: absolute; top: 12px; right: 12px; color: #ff5555; font-weight: 800; font-size: .88rem; }
.pager { display: flex; gap: 6px; margin-top: 14px; }
.row2:has(#ylevel) { grid-template-columns: 1fr; }
#view3d canvas { display: block; width: 100% !important; height: 100% !important; }
.info-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: #aaa; font-size: 1.2rem; cursor: pointer; line-height: 1; }
.info-x:hover { color: #fff; }
.info-btns { display: flex; gap: 4px; margin-top: 4px; }
h4 small { font: 600 .75rem var(--body); color: var(--muted); }
.seed-search { background: rgba(0,0,0,.6); border: 3px solid #000; box-shadow: inset 0 0 0 2px #5a5a5a; }
.mapbox.is-full { position: fixed; inset: 0; z-index: 200; min-height: 0; border: 0; }
.mapbox:fullscreen { width: 100vw; height: 100vh; }
html.map-full { overflow: hidden; }
.btn.icon svg { display: block; }

/* ---------- light inventory panels: dark text, readable tables ---------- */
.win, .prose, .card, .panel, .feature, dialog#publish { border: 3px solid #000; }
.prose p, .prose li { color: #2f2f2f; }
.prose a:not(.btn), .card a:not(.btn), .linklist a, .sort a, .crumbs a { color: var(--link); }
.prose a:hover, .card a:hover, .linklist a:hover { color: #000; }
.feature h3, .card h3, .prose h2, .prose h1 { color: #262626; }
.prose h2 { font-family: var(--pixel); }
.prose table { box-shadow: none; background: #e4e4e4; border: 3px solid #555; }
.prose th, .prose td { color: #262626; border-bottom: 2px solid #c6c6c6; text-shadow: none; }
.prose thead th { background: #8b8b8b; color: #fff; font: 700 .8rem var(--body); text-transform: uppercase; letter-spacing: .06em; text-shadow: 1px 1px 0 #3f3f3f; }
.prose tbody tr:nth-child(even) td { background: #d9d9d9; }
.prose tbody tr:hover td { background: #fff7c2; }
.prose td .ico { width: 22px; height: 22px; vertical-align: -6px; margin-right: 8px; }
.prose td.coord { font: 700 .9rem var(--mono); color: #0a6a7a; }
a.feature:hover { outline: 3px solid #fff; outline-offset: -3px; color: var(--label); }
.crumbs { color: #3a3a3a; text-shadow: none; }
.page-head .crumbs, .page-head .crumbs a { color: #fff; text-shadow: 1px 1px 0 #000; }
.section-title { color: #fff; }
.nearest small { color: #eaeaea; }

/* ---------- header: logo + nav made of the game's stone buttons ---------- */
:root { --topbar: 64px; }
.nav { gap: 4px; align-items: center; }
.nav a { height: 38px; display: inline-flex; align-items: center; padding: 0 12px; border: 5px solid transparent; border-image: url('/gui/button.png') 3 fill stretch; image-rendering: pixelated; font: 600 .98rem var(--pixel); color: #f0f0f0; text-shadow: 2px 2px 0 #2a2a2a; }
.nav a:hover { border-image-source: url('/gui/button_highlighted.png'); color: var(--yellow); }
.nav a[aria-current] { border-image-source: url('/gui/button_highlighted.png'); color: var(--yellow); }
.brand { font-size: 1.45rem; }
.brand img { width: 36px; height: 36px; }

/* ---------- home hero: the title screen (logo centred, splash on its corner) ---------- */
.title-screen { text-align: center; display: grid; justify-items: center; }
.logo-wrap { position: relative; display: inline-block; margin: 0 0 6px; }
.title-screen h1 { margin: 0; }
.title-screen .splash { position: absolute; right: -64px; bottom: 6px; top: auto; font-size: clamp(1rem, 2vw, 1.4rem); transform-origin: center; }
.title-screen .lead { margin: 20px auto 6px; }
.title-screen .seed-search { margin: 16px auto 0; width: 100%; text-align: left; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 18px 0 0; padding: 0; color: #fff; font-weight: 700; font-size: .92rem; text-shadow: 1px 1px 0 #000, 0 0 6px rgba(0,0,0,.6); }
.hero-stats li { display: inline-flex; align-items: center; gap: 7px; }
.hero-stats img { width: 20px; height: 20px; image-rendering: pixelated; }
.check.off { opacity: .45; cursor: not-allowed; }
.check.off input { cursor: not-allowed; }
/* links on grey slots: white game text, yellow on hover (never blue on grey) */
.prose .grid-links a, .grid-links a, .prose .seed-card, .seed-card, .seed-card strong { color: #fff; text-shadow: 2px 2px 0 #3f3f3f; text-decoration: none; }
.prose .grid-links a:hover, .grid-links a:hover, .prose .seed-card:hover { color: var(--yellow); }
.seed-card .seed-meta { color: #f0f0f0; text-shadow: 1px 1px 0 #3f3f3f; }
/* breadcrumbs sitting on the plank wall */
.content > .crumbs, .content > .crumbs a { color: #fff; text-shadow: 1px 1px 0 #000, 0 0 4px rgba(0,0,0,.8); }
/* stone-button links (chips, .btn) keep the game's white/yellow button text */
.chips a, .prose .chips a, a.btn, .prose a.btn, .card a.btn { color: #fff; text-shadow: 2px 2px 0 #3f3f3f; text-decoration: none; }
.chips a:hover, .prose .chips a:hover, a.btn:hover, .prose a.btn:hover, .chips a[aria-current], .prose .chips a[aria-current] { color: var(--yellow); }
.seed-likes { color: #fff; text-shadow: 1px 1px 0 #7a1010; }
.nearest li, .prose code { text-shadow: 1px 1px 0 #3f3f3f; }
.prose code { background: #2b2b2b; text-shadow: none; }
.nearest small, .seed-card .seed-meta { color: #fff; }
.info-note { display: block; max-width: 250px; margin-top: 4px; color: #bdbdbd; font: 600 .74rem/1.35 var(--body); }

/* ---------- wood signs instead of flat grey: birch-plank panels in dark-oak frames, spruce slots ---------- */
:root { --label: #2b2014; --muted: #5a4630; --link: #1d3fa6; --sign: rgba(255, 249, 236, .74); --frame: #4a321b; }
.win, .prose, .card, .panel, .feature, dialog#publish {
  background: linear-gradient(var(--sign), var(--sign)), url('/gui/tex/birch_planks.png') 0 0 / 64px 64px;
  image-rendering: pixelated; color: var(--label);
  border: 4px solid var(--frame);
  box-shadow: inset 0 0 0 2px #7a5a36, inset 0 3px 0 2px rgba(255,255,255,.35), 0 6px 0 rgba(0,0,0,.35), 0 10px 22px rgba(0,0,0,.35);
}
.win *, .prose *, .card *, .feature *, dialog#publish * { image-rendering: auto; }
.win img, .prose img, .card img, .feature img, .ico { image-rendering: pixelated; }
.prose h1, .prose h2, .prose h3, .card h3, .feature h3, .ctl-head .tool-title, .ctl-block h4, dialog#publish h2 { color: #3a2814; }
.prose p, .prose li, .feature p, .faq summary, .card td { color: #2b2014; }
.ctl-head .sub, #seed-value, .note, h4 small, .card th { color: var(--muted); }
/* slots: dark spruce wood with white game text */
.layer-group, .opts, .near, #saved-wrap, .calc fieldset, .tagpick, .finder .nearest, .calc .nearest, .grid-links a, .seed-card {
  background: linear-gradient(rgba(20,12,4,.5), rgba(20,12,4,.5)), url('/gui/tex/spruce_planks.png') 0 0 / 48px 48px;
  box-shadow: inset 0 0 0 2px #2a1a0c, inset 0 2px 0 3px rgba(255,255,255,.08);
}
.grid-links a:hover, .seed-card:hover { background: linear-gradient(rgba(20,12,4,.28), rgba(20,12,4,.28)), url('/gui/tex/spruce_planks.png') 0 0 / 48px 48px; }
.prose table { background: rgba(255,252,244,.9); border: 3px solid var(--frame); }
.prose thead th { background: linear-gradient(rgba(20,12,4,.45), rgba(20,12,4,.45)), url('/gui/tex/spruce_planks.png') 0 0 / 48px 48px; color: #fff; }
.prose th, .prose td { border-bottom: 2px solid rgba(74,50,27,.18); }
.prose tbody tr:nth-child(even) td { background: rgba(122,90,54,.08); }
.prose tbody tr:hover td { background: #fff3b8; }
.faq details { border-bottom: 2px solid rgba(74,50,27,.25); }
.feature .frame { box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.map-ui.tr { align-items: flex-end; }
.fs-btn { height: 40px; font-size: .95rem; gap: 8px; }
.info-warn { color: #ffd76b !important; max-width: 250px; font: 600 .78rem/1.35 var(--body) !important; }
.biome-find { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.ctl-buttons label.btn { cursor: pointer; }
.info-near { max-width: 260px; margin-top: 6px !important; }
.info-near button { display: inline-flex; align-items: center; gap: 5px; }
/* seed grade badge */
.seed-grade { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px 14px; background: linear-gradient(rgba(20,12,4,.5), rgba(20,12,4,.5)), url('/gui/tex/spruce_planks.png') 0 0 / 48px 48px; box-shadow: inset 0 0 0 2px #2a1a0c; color: #fff; }
.seed-grade strong { display: block; font: 700 1.1rem var(--pixel); color: #fff; text-shadow: 2px 2px 0 #2a1a0c; }
.seed-grade span:not(.grade) { color: #f3ead8; font-size: .9rem; }
.grade { flex: none; width: 54px; height: 54px; display: grid; place-items: center; font: 400 2rem var(--logo); color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.5); border: 3px solid #000; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), inset 0 4px 0 rgba(255,255,255,.25); }
.g-S { background: #d4a514; } .g-A { background: #3a9d3a; } .g-B { background: #2f78c4; } .g-C { background: #7a6a55; } .g-D { background: #8a4b2b; } .g-F { background: #6b2b2b; }

/* ---------- homepage sections ---------- */
.home-sec { margin: 0 0 26px; }
.who { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.who-card { grid-template-columns: 64px 1fr; }
.who-card .who-links { grid-column: 1 / -1; margin-top: 8px; font-size: .88rem; font-weight: 700; }
.compare td.yes { font-weight: 700; color: #1d6b2a; }
.steps li { margin-bottom: 6px; }
.controls-table { margin-top: 14px; }
.linklist.icons a { display: inline-flex; align-items: center; gap: 8px; }
.seg.seg3 { grid-template-columns: repeat(3, 1fr); max-width: 360px; }
.feature a, .who-card .who-links a { color: var(--link); }
.who { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .who { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .who { grid-template-columns: 1fr; } }
.features { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.seed-rating { margin: 0 0 20px; }
.seed-rating .seed-grade { margin-bottom: 8px; }
.rating-parts { list-style: none; margin: 0; padding: 10px 14px; display: grid; gap: 4px; background: rgba(255,252,244,.9); border: 3px solid var(--frame); }
.rating-parts li { display: grid; grid-template-columns: 120px 1fr 48px; align-items: center; gap: 10px; font-weight: 700; color: #2b2014; }
.stars { color: #e3a90f; letter-spacing: 1px; font-size: 1.05rem; text-shadow: 1px 1px 0 #7a5208; white-space: nowrap; }
.stars .off { color: #c9bda6; text-shadow: none; }
.rating-parts b { text-align: right; font-family: var(--mono); font-size: .85rem; }
/* ---------- best seeds collections ---------- */
.lead-p { font-size: 1.08rem; }
.seed-picks { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; gap: 10px; }
.seed-pick { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; background: rgba(255,252,244,.92); border: 3px solid var(--frame); box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.seed-pick .rank { width: 40px; height: 40px; display: grid; place-items: center; font: 400 1.3rem var(--logo); color: #fff; background: linear-gradient(rgba(20,12,4,.45), rgba(20,12,4,.45)), url('/gui/tex/spruce_planks.png') 0 0 / 48px 48px; border: 2px solid #000; text-shadow: 2px 2px 0 #000; }
.pick-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pick-seed { font: 700 1.05rem var(--mono); background: #2b2b2b; color: #fff; padding: 2px 8px; }
.pick-head .grade { width: 32px; height: 32px; font-size: 1.15rem; border-width: 2px; }
.pick-score { font: 700 .9rem var(--mono); color: #3a2814; }
.pick-meta { margin: 6px 0 4px !important; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.pick-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; }
.pick-facts li { display: inline-flex; align-items: center; gap: 6px; color: #2b2014 !important; }
.pick-facts .coord { font: 600 .82rem var(--mono); color: #0a6a7a; }
.pick-actions { display: grid; gap: 6px; }
.grid-links.picks a { flex-wrap: wrap; }
.grid-links.picks small { flex-basis: 100%; padding-left: 34px; color: #f3ead8; font-weight: 600; text-shadow: 1px 1px 0 #2a1a0c; }
@media (max-width: 640px) { .seed-pick { grid-template-columns: 36px 1fr; } .pick-actions { grid-column: 1 / -1; display: flex; } }
.page-icon { display: flex; align-items: center; gap: 12px; margin: 0 0 12px !important; font: 700 1.3rem var(--pixel); color: #3a2814 !important; }
.page-icon img { image-rendering: pixelated; border: 3px solid var(--frame); }
.howto { margin: 16px 0 6px; padding: 12px 16px; background: rgba(255,252,244,.92); border: 3px solid var(--frame); }
.howto h2 { margin: 0 0 8px !important; font-size: 1.25rem; }
.howto ol { margin: 0; padding-left: 20px; }
.howto li { margin-bottom: 4px; }
.biome-table td a { display: inline-flex; align-items: center; gap: 8px; }
.info-loot { max-width: 300px; max-height: 260px; overflow: auto; margin-top: 6px; display: grid; gap: 6px; font-size: .82rem; }
.info-loot .chest { background: rgba(255,255,255,.06); padding: 6px 8px; border-left: 3px solid #ffd76b; }
.info-loot strong { color: #ffd76b !important; font-size: .82rem !important; }
.info-loot ul { margin: 4px 0 0; padding-left: 16px; }
.info-loot em { color: #b5a8ff; font-style: normal; }
.loot-ship { color: #8dffb0; font-weight: 700; }
.loot-note { color: #aaa; font-size: .72rem; margin: 0; }
#recent-wrap { padding: 8px 10px; background: linear-gradient(rgba(20,12,4,.5), rgba(20,12,4,.5)), url('/gui/tex/spruce_planks.png') 0 0 / 48px 48px; box-shadow: inset 0 0 0 2px #2a1a0c; }
#recent-wrap h4 { font: 700 .95rem var(--pixel); color: #fff; margin: 0; }
.keys-hint { margin: 0; font-size: .74rem; color: var(--muted); }
kbd { display: inline-block; padding: 0 5px; font: 700 .72rem var(--mono); background: #2b2b2b; color: #fff; border-bottom: 2px solid #000; }
#biome-hits:not([hidden]) { padding: 8px 10px; background: linear-gradient(rgba(20,12,4,.5), rgba(20,12,4,.5)), url('/gui/tex/spruce_planks.png') 0 0 / 48px 48px; box-shadow: inset 0 0 0 2px #2a1a0c; }
/* map is one screen tall and stays in view while a long settings column scrolls past */
.tool { align-items: start; }
.mapbox { position: sticky; top: calc(var(--topbar) + 12px); height: calc(100vh - var(--topbar) - 28px); min-height: 520px; max-height: 1100px; }
@media (max-width: 960px) { .mapbox { position: relative; top: auto; height: 70vh; min-height: 380px; } }

/* language switcher (footer) */
.langs { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 0 16px; margin: 0 0 18px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
.langs a { color: inherit; opacity: .85; text-decoration: none; }
.langs a:hover { opacity: 1; text-decoration: underline; }
.langs a[aria-current] { opacity: 1; font-weight: 700; }

/* right-to-left pages (Arabic): text flows RTL, but the map, seeds, coordinates and commands stay LTR */
[dir="rtl"] .mapbox, [dir="rtl"] .seed-row, [dir="rtl"] #seed-value, [dir="rtl"] .goto, [dir="rtl"] code, [dir="rtl"] kbd, [dir="rtl"] .nearest .coords { direction: ltr; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-right: 1.4em; padding-left: 0; }
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .prose th, [dir="rtl"] .prose td, [dir="rtl"] .card th, [dir="rtl"] .card td,
[dir="rtl"] .title-screen .seed-search { text-align: start; }
[dir="rtl"] .card th { padding-right: 0; padding-left: 10px; }
[dir="rtl"] .howto ol { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .grid-links.picks small { padding-left: 0; padding-right: 34px; }
[dir="rtl"] #hero-seed, [dir="rtl"] input[type="number"], [dir="rtl"] .coords,
[dir="rtl"] [data-go], [dir="rtl"] [data-goto], [dir="rtl"] strong[data-out],
[dir="rtl"] code, [dir="rtl"] kbd { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] #info, [dir="rtl"] .map-hint { direction: rtl; }
/* More room for vowel marks and stacked glyphs in these writing systems. */
:is(:lang(ar), :lang(hi), :lang(th)) :is(h1, h2, h3, h4) { line-height: 1.4; letter-spacing: normal; }

/* header: language menu (flags) and the mobile menu button */
.nav-toggle { display: none; }
.flag { flex: none; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.55); }
.lang-menu { position: relative; flex: none; }
.lang-menu summary, .menu-btn { list-style: none; cursor: pointer; height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 5px solid transparent; border-image: url('/gui/button.png') 3 fill stretch; image-rendering: pixelated; font: 600 .95rem var(--pixel); color: #f0f0f0; text-shadow: 2px 2px 0 #2a2a2a; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary, .menu-btn:hover, .nav-toggle:checked ~ .menu-btn { border-image-source: url('/gui/button_highlighted.png'); color: var(--yellow); }
.lang-cur { display: inline-flex; align-items: center; gap: 7px; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: grid; grid-template-columns: repeat(3, max-content); gap: 2px; padding: 8px; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.5)), url('/gui/tex/dark_oak_planks.png') 0 0 / 48px 48px; border: 3px solid #000; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 8px 18px rgba(0,0,0,.5); }
.lang-list a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font: 600 .95rem var(--ui, inherit); color: #f2f2f2; text-decoration: none; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
.lang-list a:hover { background: rgba(255,255,255,.12); color: var(--yellow); }
.lang-list a[aria-current] { color: var(--yellow); background: rgba(255,255,255,.08); }
.menu-btn { display: none; padding: 0 9px; }
.langs a { display: inline-flex; align-items: center; gap: 6px; }
[dir="rtl"] .lang-list { right: auto; left: 0; }
@media (max-width: 1180px) {
  .topbar .wrap { gap: 8px; }
  .brand { margin-right: auto; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; }
  .nav-toggle:checked ~ .nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: var(--topbar); left: 0; right: 0; margin: 0; padding: 10px 16px 16px; gap: 6px; background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.45)), url('/gui/tex/dark_oak_planks.png') 0 0 / 48px 48px; border-bottom: 3px solid #000; box-shadow: 0 10px 20px rgba(0,0,0,.5); image-rendering: pixelated; }
  .nav-toggle:checked ~ .nav a { justify-content: center; height: 46px; font-size: 1.05rem; }
  [dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
}
@media (max-width: 560px) {
  .brand { font-size: 1.1rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .lang-cur > span { display: none; }
  .lang-list { position: fixed; top: calc(var(--topbar) + 6px); left: 12px; right: 12px; grid-template-columns: repeat(2, 1fr); }
}

/* guides: preview image cards and the image at the top of each guide */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 26px; }
.guide-card { display: flex; flex-direction: column; text-decoration: none; border: 3px solid #2a1d10; background: linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.35)), url('/gui/tex/dark_oak_planks.png') 0 0 / 48px 48px; image-rendering: pixelated; box-shadow: inset 0 0 0 2px rgba(255,255,255,.1); transition: transform .12s; }
.guide-card:hover { transform: translateY(-2px); }
.guide-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block; border-bottom: 3px solid #2a1d10; image-rendering: auto; }
.guide-card span { padding: 12px 14px 14px; font: 700 1.02rem/1.35 var(--pixel); color: #fff; text-shadow: 2px 2px 0 #2a2a2a; image-rendering: auto; }
.guide-card:hover span { color: var(--yellow); }
.guide-hero { width: 100%; height: auto; aspect-ratio: 1200 / 630; display: block; margin: 6px 0 18px; border: 3px solid #2a1d10; }
