/* JukeZone site - shared styles. Pixel display type + readable body; block textures are original (web/tools/make_art.py). */
:root {
  --sky: #160e2a;
  --sky-2: #241640;
  --ink: #1d0f08;
  --cream: #fff3dc;
  --cream-2: #e9dcc2;
  --muted: #b9a98f;
  --amber: #fd9601;
  --amber-hi: #ffc04a;
  --red: #c61d1e;
  --red-hi: #f34335;
  --grass: #5d9e34;
  --wood: #9e512c;
  --gui: #c6c6c6;
  --gui-hi: #ffffff;
  --gui-lo: #555555;
  --gui-text: #2b2b2b;
  --link: #7fd4ff;
  --px: "Jersey 10", "Courier New", monospace;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--sky); color: var(--cream);
  font: 400 17px/1.6 var(--body); font-synthesis: none;
}
img, video, svg { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--amber-hi); }
:focus-visible { outline: 3px solid var(--amber-hi); outline-offset: 2px; }
h1, h2, h3, .px { font-family: var(--px); font-weight: 400; line-height: 1.05; letter-spacing: .02em; }
h1 { font-size: clamp(42px, 8.5vw, 70px); margin: 0 0 .4em; }
h2 { font-size: clamp(32px, 5.4vw, 44px); margin: 1.5em 0 .5em; }
h3 { font-size: 27px; margin: 1.3em 0 .4em; }
main { flex: 1; width: 100%; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header: a strip of dark oak planks ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: url(/assets/tex/dark_planks.png) 0 0 / 48px 48px; image-rendering: pixelated;
  border-bottom: 4px solid var(--ink); box-shadow: 0 4px 0 #0006;
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--amber); flex: none; }
.brand img { width: 28px; height: 37px; }
.brand span { font: 700 29px/1 var(--px); text-shadow: 2px 2px 0 var(--ink); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; color: var(--cream); text-decoration: none; font: 500 21px/1 var(--px);
  padding: 10px 10px; text-shadow: 2px 2px 0 var(--ink);
}
.nav a:hover, .nav a[aria-current] { color: var(--amber-hi); }
.acct { flex: none; }
@media (max-width: 720px) {
  .top .wrap { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 4px; gap: 4px 10px; }
  .brand span { font-size: 21px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 6px; }
  .acct { margin-left: auto; }
}

/* ---------- Minecraft-style buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: 500 22px/1 var(--px); color: #fff; text-shadow: 2px 2px 0 #3f3f3f;
  background: #6f6f6f url(/assets/tex/stone.png) 0 0 / 32px 32px; image-rendering: pixelated;
  border: 3px solid var(--ink); padding: 13px 20px; min-height: 48px;
  box-shadow: inset 3px 3px 0 #ffffff55, inset -3px -3px 0 #00000055;
}
.btn:hover { color: #ffffa0; outline: 3px solid #fff; outline-offset: -6px; }
.btn:active { box-shadow: inset -3px -3px 0 #ffffff44, inset 3px 3px 0 #00000066; }
.btn.go { background: var(--grass) url(/assets/tex/grass_top.png) 0 0 / 32px 32px; }
.btn.amber { background: var(--amber); color: var(--ink); text-shadow: 1px 1px 0 #ffd890; }
.btn.discord { background: #5865f2; }
.btn.small { font-size: 15px; padding: 8px 12px; min-height: 36px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- panels ---------- */
/* inventory GUI: forms, dialogs */
.gui {
  background: var(--gui); color: var(--gui-text); border: 3px solid var(--ink);
  box-shadow: inset 4px 4px 0 var(--gui-hi), inset -4px -4px 0 var(--gui-lo);
  padding: 22px;
}
.gui h1, .gui h2, .gui h3 { color: #3f3f3f; text-shadow: none; }
.gui a { color: #1e4fd6; }
.gui a.btn { color: #fff; }
.gui a.btn.amber { color: var(--ink); }
/* sign/plank boards: content cards */
.board {
  background: #3d2614 url(/assets/tex/dark_planks.png) 0 0 / 64px 64px; image-rendering: pixelated;
  border: 3px solid var(--ink); box-shadow: inset 3px 3px 0 #ffffff14, 0 6px 0 #0005;
  padding: 18px; color: var(--cream);
}
.board, .board * { image-rendering: auto; }
.slot { /* an inventory slot: thumbnails */
  background: #8b8b8b; border: 3px solid; border-color: #373737 #fff #fff #373737; display: block;
}

/* ---------- form fields: the sign-edit / chat box look ---------- */
label { display: block; font: 500 20px/1.2 var(--px); margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=search], textarea, select {
  width: 100%; font: 400 17px/1.4 var(--body); color: #fff; background: #000;
  border: 3px solid #a0a0a0; padding: 11px 12px; border-radius: 0;
}
input:focus, textarea:focus, select:focus { border-color: #fff; outline: none; }
textarea { min-height: 120px; resize: vertical; }
.hint { font-size: 14px; color: #555; margin-top: 4px; }
.err { background: #3a0d0b; color: #ffd2cc; border: 3px solid var(--red); padding: 10px 12px; margin: 12px 0; }
.ok { background: #183a10; color: #d8ffc8; border: 3px solid var(--grass); padding: 10px 12px; margin: 12px 0; }

/* ---------- world layers: sky (header/hero) -> grass -> dirt (content) -> stone (footer) ---------- */
body.inner main { position: relative; isolation: isolate; padding-top: 30px; }
body.inner main::before { content: ""; position: absolute; inset: 0; z-index: -1; image-rendering: pixelated;
  background: linear-gradient(#0000006b, #0000006b), url(/assets/tex/dirt.png) 0 0 / 64px 64px; }
body.inner main::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px; z-index: -1; image-rendering: pixelated;
  background: url(/assets/tex/grass_side.png) 0 0 / 30px 30px repeat-x; border-bottom: 3px solid #0006; }
body.inner main h1 { text-shadow: 3px 3px 0 #000; }
.ground { display: none; }
/* ---------- ground strip used at page ends (unused) ---------- */
.ground {
  height: 64px; background:
    url(/assets/tex/grass_side.png) 0 0 / 64px 64px repeat-x,
    url(/assets/tex/dirt.png) 0 64px / 64px 64px;
  image-rendering: pixelated; border-top: 3px solid var(--ink);
}
footer.foot {
  background: linear-gradient(#00000040, #00000040), url(/assets/tex/stone.png) 0 0 / 64px 64px; image-rendering: pixelated; color: var(--cream);
  border-top: 4px solid #2a2a2a;
  padding: 20px 0 28px; font-size: 15px; text-shadow: 1px 1px 0 #000;
}
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer.foot a { color: var(--cream); }
footer.foot .ip { font-family: var(--px); color: var(--amber-hi); }

/* ---------- small shared bits ---------- */
.ipbox {
  display: flex; max-width: 520px; border: 3px solid var(--ink); background: #000;
  box-shadow: 0 6px 0 #0007;
}
.ipbox code { flex: 1; min-width: 0; font: 600 clamp(19px, 4.6vw, 28px)/1 var(--px); color: #fff; padding: 16px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ipbox .btn { border-width: 0 0 0 3px; }
.tag { display: inline-block; font: 500 16px/1 var(--px); padding: 5px 7px; background: #0006; color: var(--amber-hi); border: 2px solid #0008; }
.meta { color: var(--muted); font-size: 15px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.avatar { width: 32px; height: 32px; border: 2px solid var(--ink); background: #222; image-rendering: pixelated; flex: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
