/* Asfra site: Minecraft menu language, drawn from scratch (no Mojang assets). */

/* ---------- Fonts (self-hosted, latin + latin-ext for Turkish) ---------- */
@font-face { font-family: "Pixelify Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/pixelify-sans-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pixelify Sans"; font-weight: 400; font-display: swap; src: url("../assets/fonts/pixelify-sans-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Pixelify Sans"; font-weight: 600; font-display: swap; src: url("../assets/fonts/pixelify-sans-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pixelify Sans"; font-weight: 600; font-display: swap; src: url("../assets/fonts/pixelify-sans-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Pixelify Sans"; font-weight: 700; font-display: swap; src: url("../assets/fonts/pixelify-sans-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pixelify Sans"; font-weight: 700; font-display: swap; src: url("../assets/fonts/pixelify-sans-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Silkscreen"; font-weight: 400; font-display: swap; src: url("../assets/fonts/silkscreen-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+FEFF, U+FFFD; }
@font-face { font-family: "Silkscreen"; font-weight: 400; font-display: swap; src: url("../assets/fonts/silkscreen-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF; }
@font-face { font-family: "Silkscreen"; font-weight: 700; font-display: swap; src: url("../assets/fonts/silkscreen-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+FEFF, U+FFFD; }
@font-face { font-family: "Silkscreen"; font-weight: 700; font-display: swap; src: url("../assets/fonts/silkscreen-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF; }
@font-face { font-family: "Chivo"; font-weight: 400; font-display: swap; src: url("../assets/fonts/chivo-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chivo"; font-weight: 400; font-display: swap; src: url("../assets/fonts/chivo-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chivo"; font-weight: 500; font-display: swap; src: url("../assets/fonts/chivo-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chivo"; font-weight: 500; font-display: swap; src: url("../assets/fonts/chivo-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chivo"; font-weight: 600; font-display: swap; src: url("../assets/fonts/chivo-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chivo"; font-weight: 600; font-display: swap; src: url("../assets/fonts/chivo-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chivo Mono"; font-weight: 400; font-display: swap; src: url("../assets/fonts/chivo-mono-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+FEFF, U+FFFD; }
@font-face { font-family: "Chivo Mono"; font-weight: 400; font-display: swap; src: url("../assets/fonts/chivo-mono-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --ink: #0e0e12;
  --panel: rgb(14 14 18 / .88);
  --text: #f0f0f2;
  --text-2: #c4c4cc;
  --text-3: #8f8f9a;
  --mc-shadow: #3f3f3f;
  --gui: #c6c6c6;
  --gui-hi: #ffffff;
  --gui-lo: #555555;
  --gui-ink: #3f3f3f;
  --slot: #8b8b8b;
  --slot-lo: #373737;
  --grass: #5d9b32;
  --yellow: #ffff55;
  --aqua: #55ffff;
  --green: #55ff55;
  --red: #ff5555;
  --gray: #aaaaaa;
  --paper: #f3e7c9;
  --paper-ink: #2b2014;

  --f-pixel: "Pixelify Sans", "Silkscreen", monospace;
  --f-block: "Silkscreen", "Pixelify Sans", monospace;
  --f-body: "Chivo", system-ui, sans-serif;
  --f-mono: "Chivo Mono", ui-monospace, monospace;

  --nav-h: 60px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* filled by js/textures.js; solid colours carry the page without JS */
  --tex-stone: none;
  --tex-paper: none;

  --z-canvas: 0;
  --z-page: 1;
  --z-nav: 20;
  --z-hotbar: 25;
  --z-tip: 40;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100dvh; overflow-x: clip;
  background: var(--ink); color: var(--text);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--f-pixel); font-weight: 600; line-height: 1.05; text-wrap: balance; letter-spacing: 0; }
::selection { background: #3d6fff; color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html { scrollbar-color: #5a5a5a #141418; scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #141418; }
::-webkit-scrollbar-thumb { background: #5a5a5a; border: 3px solid #141418; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; font-family: var(--f-pixel); }
.skip:focus { top: 10px; }

/* ---------- Panorama ---------- */
.panorama {
  position: fixed; left: -16px; top: -16px; z-index: var(--z-canvas);
  background: linear-gradient(#6d97ea, #b9d0fb 60%, #d6e4ff);
  transition: filter .6s var(--ease);
}
/* past the title screen the panorama blurs and dims, like the menus in game */
.is-menu .panorama { filter: blur(7px) brightness(.46) saturate(.9); }
.page { position: relative; z-index: var(--z-page); }

/* ---------- Pixel icons (css/icons.css sets --sprite per .i-name) ---------- */
.ico {
  display: inline-block; width: 25px; height: 25px; flex: none;
  background: var(--sprite) center / contain no-repeat;
  image-rendering: pixelated;
}

/* ---------- Minecraft button ---------- */
.mc-btn {
  --face: #717171;
  --hi: rgb(255 255 255 / .38);
  --lo: rgb(0 0 0 / .42);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  font-family: var(--f-pixel); font-weight: 400; font-size: 21px; line-height: 1;
  color: #fff; text-decoration: none; white-space: nowrap;
  text-shadow: 2px 2px 0 var(--mc-shadow);
  background-color: var(--face);
  background-image: var(--tex-stone);
  background-size: 96px 96px;
  image-rendering: pixelated;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 var(--hi), inset -2px -3px 0 var(--lo);
  cursor: pointer;
  transition: filter .12s, border-color .12s;
}
.mc-btn .ico { width: 25px; height: 25px; }
.mc-btn:hover { border-color: #fff; filter: brightness(1.12); }
.mc-btn:active { box-shadow: inset 2px 3px 0 var(--lo), inset -2px -2px 0 var(--hi); padding-top: 2px; }
.mc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 0; border-color: #fff; }
.mc-btn.is-green {
  --face: var(--grass);
  --hi: rgb(210 255 160 / .5);
  --lo: rgb(20 50 0 / .5);
  background-image: var(--tex-grass, none);
}
.mc-btn.is-sm { min-height: 38px; padding: 0 14px; font-size: 16px; }
.mc-btn[aria-pressed="true"] { border-color: #fff; }
.mc-btn .ver { font-family: var(--f-block); font-size: 13px; padding: 4px 6px; background: rgb(0 0 0 / .28); text-shadow: none; }
.mc-btn .ver:empty { display: none; }

/* ---------- GUI container (light) ---------- */
.gui {
  position: relative;
  background: var(--gui);
  color: var(--gui-ink);
  padding: 14px;
  border: 2px solid #000;
  border-radius: 4px;
  box-shadow: inset 3px 3px 0 var(--gui-hi), inset -3px -3px 0 var(--gui-lo), 0 24px 40px -24px rgb(0 0 0 / .7);
}
.gui-title { font-family: var(--f-pixel); font-size: 18px; color: var(--gui-ink); padding: 0 2px 10px; }
.slot {
  position: relative; width: var(--s, 54px); height: var(--s, 54px);
  display: grid; place-items: center;
  background: var(--slot);
  box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 #fff;
}
.slot .ico { width: min(50px, 86%); height: min(50px, 86%); } /* icons are drawn on a 25px grid: 1x or 2x keeps every line crisp */
button.slot:hover::after, button.slot:focus-visible::after, .slot.is-active::after {
  content: ""; position: absolute; inset: 2px; background: rgb(255 255 255 / .42);
}
button.slot:focus-visible { outline: 2px solid #fff; outline-offset: 1px; z-index: 1; }
.slot.is-dim .ico { opacity: .45; }

/* ---------- Tooltip ---------- */
.tip {
  background: rgb(16 0 16 / .95);
  color: #fff;
  font-family: var(--f-pixel); font-size: 16px; line-height: 1.35;
  padding: 8px 10px;
  border: 2px solid transparent;
  border-image: linear-gradient(#5000ff, #28007f) 1;
  outline: 2px solid #100010;
}
.tip .t-desc { color: var(--gray); }
.tip .t-mod { color: #7373ff; font-style: italic; }
.float-tip { position: fixed; left: 0; top: 0; z-index: var(--z-tip); pointer-events: none; opacity: 0; max-width: 300px; transition: opacity .08s; }
.float-tip.is-on { opacity: 1; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: var(--nav-h); transition: background-color .3s var(--ease); }
.nav.is-stuck { background: rgb(12 12 16 / .88); box-shadow: 0 2px 0 rgb(0 0 0 / .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font-family: var(--f-block); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-shadow: 2px 2px 0 var(--mc-shadow); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 10px; font-family: var(--f-pixel); font-size: 17px; text-decoration: none; color: #e6e6ea; text-shadow: 2px 2px 0 var(--mc-shadow); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--yellow); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: flex; }
.lang .mc-btn { min-height: 34px; padding: 0 10px; font-size: 15px; }
.lang .mc-btn + .mc-btn { margin-left: -2px; }
.lang .mc-btn[aria-pressed="true"] { z-index: 1; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-end .dl-nav { display: none; }
}

/* ---------- Title screen ---------- */
.title {
  position: relative; min-height: 100dvh;
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 140px;
}
.title::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 20% 66%, rgb(6 8 18 / .66), transparent 74%),
              linear-gradient(90deg, rgb(6 8 18 / .32), rgb(6 8 18 / .06) 60%),
              linear-gradient(transparent 72%, rgb(14 14 18 / .55));
}
.title-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 52px) clamp(32px, 5vw, 72px); align-items: center; }
.title-grid > .logo-wrap { grid-column: 1 / -1; justify-self: start; }
.logo-wrap { position: relative; display: inline-block; font-size: clamp(76px, 12.4vw, 184px); }
.logo {
  font-family: var(--f-block); font-weight: 700;
  font-size: 1em; line-height: .9; letter-spacing: .02em;
  color: #ececec;
  text-shadow:
    .035em .035em 0 #a3a3a3, .07em .07em 0 #767676, .105em .105em 0 #515151,
    .14em .14em 0 #333, .18em .2em .3em rgb(0 0 0 / .35);
}
.splash {
  position: absolute; right: 0; bottom: -.55em;
  font-family: var(--f-pixel); font-weight: 700; font-size: clamp(16px, .15em, 26px);
  color: var(--yellow); text-shadow: 2px 2px 0 #3f3f15; white-space: nowrap;
  transform: rotate(-14deg) translateX(38%);
  pointer-events: none;
}
.splash span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .splash span { animation: splash .45s ease-in-out infinite alternate; }
}
@keyframes splash { from { transform: scale(1); } to { transform: scale(1.07); } }
.title-copy { max-width: 460px; }
.title-sub {
  font-size: clamp(17px, 1.35vw, 20px); color: #fff; text-align: center;
  padding: 12px 16px;
  background: rgb(8 10 20 / .58);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  text-shadow: 0 2px 0 rgb(0 0 0 / .5);
}
.title-menu { margin-top: 30px; display: grid; gap: 10px; max-width: 460px; }
.title-menu .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.title-menu .mc-btn { width: 100%; }
.release-error { margin-top: 12px; font-family: var(--f-pixel); font-size: 15px; color: var(--yellow); text-shadow: 2px 2px 0 #3f3f15; display: none; }
.release-error.is-shown { display: block; }

.appwin-frame { padding: 10px 12px 12px; }
.appwin-bar { display: flex; align-items: center; gap: 8px; padding: 0 2px 8px; }
.appwin-bar .sp { flex: 1; }
.appwin-frame img { width: 100%; height: auto; aspect-ratio: 880 / 580; background: #111; border: 2px solid #373737; }
.appwin-foot { display: flex; justify-content: flex-end; margin-top: 12px; }

.title-corner { position: absolute; bottom: 96px; font-family: var(--f-pixel); font-size: 15px; color: #fff; text-shadow: 2px 2px 0 var(--mc-shadow); }
.title-corner.l { left: var(--gutter); }
.title-corner.r { right: var(--gutter); }

@media (max-width: 1000px) {
  .title-grid { grid-template-columns: minmax(0, 1fr); }
  .title { padding-bottom: 170px; }
  .splash { right: 0; transform: rotate(-14deg) translateX(8%); bottom: -.8em; }
  .title-corner { display: none; }
  .title .appwin-foot { display: none; }
}

/* ---------- Hotbar ---------- */
.hotbar-wrap { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: var(--z-hotbar); display: grid; justify-items: center; gap: 8px; }
.hotbar-label { font-family: var(--f-pixel); font-size: 17px; color: #fff; text-shadow: 2px 2px 0 var(--mc-shadow); background: rgb(0 0 0 / .6); padding: 2px 10px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.hotbar-label.is-on { opacity: 1; }
.hotbar { display: flex; padding: 3px; background: rgb(0 0 0 / .55); border: 2px solid rgb(0 0 0 / .8); }
.hotbar a {
  position: relative; width: 50px; height: 50px; display: grid; place-items: center;
  border: 3px solid #6b6b6b; margin-left: -3px; background: rgb(30 30 34 / .55);
}
.hotbar a:first-child { margin-left: 0; }
.hotbar a .ico { width: 25px; height: 25px; }
.hotbar a .n { position: absolute; right: 3px; bottom: 0; font-family: var(--f-pixel); font-size: 13px; color: #fff; text-shadow: 1px 1px 0 #000; }
.hotbar a[aria-current="true"] { z-index: 1; border-color: #fff; box-shadow: inset 0 0 0 2px #000; }
.hotbar a:hover { background: rgb(255 255 255 / .14); }
@media (max-width: 520px) {
  .hotbar a { width: 40px; height: 40px; border-width: 2px; margin-left: -2px; }
  .hotbar a .ico { width: 20px; height: 20px; }
  .hotbar a .n { display: none; }
}

/* ---------- Sections ---------- */
.band { position: relative; background: rgb(10 10 14 / .42); }
.section { padding: clamp(84px, 11vw, 140px) 0 clamp(110px, 13vw, 160px); }
.head { max-width: 720px; }
.head h2 { font-size: clamp(36px, 4.4vw, 58px); color: #fff; text-shadow: .1em .1em 0 var(--mc-shadow); }
.head p { margin-top: 16px; color: var(--text-2); font-size: 18px; max-width: 58ch; }
.head.center { margin-inline: auto; text-align: center; }
.head.center p { margin-inline: auto; }

/* Interface: creative tabs */
.showcase { margin: 56px auto 0; max-width: 1000px; }
.ctabs { display: flex; gap: 4px; padding: 8px 0 0 8px; overflow-x: auto; scrollbar-width: none; }
.ctab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 16px; margin-bottom: -2px; margin-top: 6px;
  font-family: var(--f-pixel); font-size: 17px; color: var(--gui-ink);
  background: #a3a3a3; border: 2px solid #000; border-bottom: 0; border-radius: 4px 4px 0 0;
  box-shadow: inset 2px 2px 0 rgb(255 255 255 / .55);
  white-space: nowrap;
}
.ctab .ico { width: 25px; height: 25px; filter: brightness(0) opacity(.72); }
.ctab[aria-selected="true"] { background: var(--gui); height: 56px; margin-top: 0; z-index: 1; box-shadow: inset 3px 3px 0 #fff; }
.ctab[aria-selected="true"] .ico { filter: brightness(0) opacity(.9); }
.ctab:hover { background: #b8b8b8; }
.showcase .gui { border-top-left-radius: 0; }
.shot { width: 100%; height: auto; aspect-ratio: 880 / 580; border: 2px solid #373737; background: #222; }
.showcase-foot { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; margin-top: 14px; }
.showcase-foot p { font-size: 16px; color: var(--gui-ink); max-width: 62ch; }

/* Features: inventory */
.inv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 56px; align-items: start; }
.inv-grid { display: grid; grid-template-columns: repeat(9, var(--s)); --s: 58px; }
.inv-label { grid-column: 1 / -1; font-family: var(--f-pixel); font-size: 15px; color: var(--gui-ink); padding: 12px 2px 5px; }
.inv-label:first-child { padding-top: 0; }
.inv-detail { position: sticky; top: calc(var(--nav-h) + 24px); max-width: 480px; padding: 18px 20px; font-size: 18px; }
.inv-detail .d-top { display: flex; align-items: center; gap: 14px; }
.inv-detail .d-top .slot { --s: 64px; }
.inv-detail h3 { font-size: 26px; font-weight: 400; color: #fff; }
.inv-detail .d-cat { color: var(--aqua); font-size: 16px; }
.inv-detail .d-desc { margin-top: 14px; color: #ececec; }
.inv-detail .d-how { margin-top: 10px; color: var(--gray); }
.inv-detail .d-how b { font-weight: 400; color: var(--yellow); }
.inv-detail .d-soon { margin-top: 10px; color: var(--red); }
.inv-detail .d-mod { margin-top: 12px; }
.inv-hint { margin-top: 14px; font-family: var(--f-pixel); font-size: 15px; color: var(--text-3); }
@media (max-width: 1040px) {
  .inv { grid-template-columns: minmax(0, 1fr); }
  .inv > .gui { justify-self: center; }
  .inv-detail { position: static; max-width: none; }
}
@media (max-width: 640px) {
  .inv-grid { --s: calc((100vw - 2 * var(--gutter) - 32px) / 9); }
  .inv > .gui { padding: 12px; justify-self: stretch; }
}

/* Engine: crafting table */
.craft-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.recipe { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 22px; justify-content: center; }
.recipe .grid3 { display: grid; grid-template-columns: repeat(3, 60px); }
.recipe .grid3 .slot { --s: 60px; }
.recipe .out .slot { --s: 84px; }
.recipe .out .slot .ico { --c: #b89cff; }
.recipe .arrow { width: 46px; height: 32px; background: #8b8b8b; clip-path: polygon(0 34%, 58% 34%, 58% 0, 100% 50%, 58% 100%, 58% 66%, 0 66%); }
.craft-list { list-style: none; padding: 0; margin-top: 34px; display: grid; gap: 18px; }
.craft-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.craft-list .slot { --s: 44px; }
.craft-list .slot .ico { width: 25px; height: 25px; }
.craft-list b { display: block; font-family: var(--f-pixel); font-weight: 400; font-size: 19px; color: #fff; }
.craft-list span { color: var(--text-2); font-size: 16px; }
@media (max-width: 960px) { .craft-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .recipe { gap: 10px; }
  .recipe .grid3 { grid-template-columns: repeat(3, 46px); }
  .recipe .grid3 .slot { --s: 46px; }
  .recipe .out .slot { --s: 62px; }
  .recipe .arrow { width: 28px; height: 22px; }
  .recipe.gui { padding: 12px 10px; }
}

/* Servers: multiplayer list */
.servers { margin: 56px auto 0; max-width: 880px; }
.srv-list { list-style: none; padding: 8px 0; background: rgb(0 0 0 / .45); border-block: 2px solid #000; box-shadow: inset 0 2px 0 rgb(255 255 255 / .06); }
.srv { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 14px; border: 2px solid transparent; }
.srv:hover { border-color: #808080; }
.srv.is-sel { border-color: #fff; }
.srv-icon { width: 64px; height: 64px; display: grid; place-items: center; font-family: var(--f-block); font-weight: 700; font-size: 26px; color: #fff; text-shadow: 3px 3px 0 rgb(0 0 0 / .45); background: var(--bg, #555); image-rendering: pixelated; box-shadow: inset -4px -4px 0 rgb(0 0 0 / .25), inset 4px 4px 0 rgb(255 255 255 / .15); }
.srv-name { font-family: var(--f-pixel); font-size: 20px; color: #fff; }
.srv-motd { font-family: var(--f-pixel); font-size: 16px; color: var(--gray); line-height: 1.3; }
.srv-motd .g { color: var(--green); }
.srv-motd .y { color: var(--yellow); }
.srv-motd .a { color: var(--aqua); }
.srv-status { display: grid; justify-items: end; gap: 4px; font-family: var(--f-pixel); font-size: 15px; color: var(--gray); text-align: right; }
.ping { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.ping i { width: 3px; background: var(--c, #3fbf3f); box-shadow: 1px 1px 0 #1b3a1b; }
.ping i:nth-child(1) { height: 5px; } .ping i:nth-child(2) { height: 8px; } .ping i:nth-child(3) { height: 11px; } .ping i:nth-child(4) { height: 14px; } .ping i:nth-child(5) { height: 16px; }
.ping.is-caution i:nth-child(n+3) { --c: #3a3a3a; box-shadow: none; }
.ping.is-caution i:nth-child(-n+2) { --c: #e0b000; }
.srv-status .ok { color: var(--green); }
.srv-status .warn { color: var(--yellow); }
.srv-status .ico { width: 20px; height: 20px; }
.srv-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
@media (max-width: 600px) {
  .srv { grid-template-columns: 48px minmax(0, 1fr); padding: 8px 10px; }
  .srv-icon { width: 48px; height: 48px; font-size: 20px; }
  .srv-status { grid-column: 2; justify-items: start; text-align: left; display: flex; gap: 10px; align-items: center; }
}

/* Security: warning screen */
.warn-screen { max-width: 1000px; margin-inline: auto; text-align: center; }
.warn-screen h2 { font-size: clamp(32px, 3.8vw, 50px); color: #fff; text-shadow: .1em .1em 0 var(--mc-shadow); }
.warn-screen h2 em { font-style: normal; color: var(--red); text-shadow: .1em .1em 0 #3f1515; }
.warn-screen .lede { margin: 18px auto 0; max-width: 60ch; color: var(--text-2); font-size: 18px; }
.warn-cols { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; text-align: left; align-items: start; }
.flags { list-style: none; padding: 0; display: grid; gap: 2px; }
.flags li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 16px; padding: 16px 18px; background: rgb(0 0 0 / .38); }
.flags b { font-family: var(--f-pixel); font-weight: 400; font-size: 18px; color: #fff; display: block; line-height: 1.25; }
.flags code { font-family: var(--f-mono); font-size: 12.5px; color: var(--text-3); }
.flags span { color: var(--text-2); font-size: 16px; }
.does { font-size: 17px; }
.does h3 { font-size: 21px; font-weight: 400; color: #fff; }
.does ul { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 8px; }
.does li { color: var(--gray); padding-left: 18px; position: relative; }
.does li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; image-rendering: pixelated; background: var(--sprite) center / 10px 10px no-repeat; }
.does li.y::before { --sprite: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Cpath fill='%2355ff55' d='M4 0h1v2H4zM3 2h1v1H3zM2 3h1v1H2zM1 2h1v1H1zM0 1h1v1H0z'/%3E%3C/svg%3E"); }
.does li.n::before { --sprite: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Cpath fill='%23ff5555' d='M0 0h1v1H0zM4 0h1v1H4zM1 1h1v1H1zM3 1h1v1H3zM2 2h1v1H2zM1 3h1v1H1zM3 3h1v1H3zM0 4h1v1H0zM4 4h1v1H4z'/%3E%3C/svg%3E"); }
.does li b { font-weight: 400; color: #fff; }
.does .smart { margin-top: 14px; padding-top: 12px; border-top: 2px solid #3a2a4a; color: var(--gray); }
.does .smart b { color: var(--yellow); font-weight: 400; }
.warn-actions { margin-top: 36px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 860px) {
  .warn-cols { grid-template-columns: minmax(0, 1fr); }
  .flags li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Updates: book and quill */
.book-wrap { margin-top: 56px; display: grid; justify-items: center; gap: 18px; }
.book {
  width: min(100%, 920px);
  display: grid; grid-template-columns: 1fr 1fr;
  background: #6b4a2b;
  border: 2px solid #000;
  padding: 10px;
  box-shadow: inset 2px 2px 0 #8a6340, inset -2px -2px 0 #3e2a17, 0 30px 50px -28px rgb(0 0 0 / .8);
}
.page-p {
  position: relative; min-height: 430px;
  background-color: var(--paper);
  background-image: var(--tex-paper);
  background-size: 128px 128px;
  image-rendering: pixelated;
  color: var(--paper-ink);
  padding: 36px 32px 48px;
  font-family: var(--f-pixel); font-size: 17px; line-height: 1.45;
}
.page-p:first-child { box-shadow: inset -18px 0 16px -16px rgb(90 60 20 / .35); }
.page-p + .page-p { box-shadow: inset 18px 0 16px -16px rgb(90 60 20 / .35); }
.page-p .pno { position: absolute; top: 12px; right: 16px; font-size: 14px; color: #6b5a3f; }
.page-p h3 { font-size: 26px; font-weight: 600; color: #1d150b; }
.page-p h3 small { display: block; font-size: 15px; font-weight: 400; color: #7a5a2a; margin-top: 6px; }
.page-p ul { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 9px; }
.page-p li b { font-weight: 600; color: #3a2400; }
.page-p .sign { position: absolute; left: 32px; bottom: 16px; font-size: 14px; color: #7a5a2a; }
.book-nav { display: flex; gap: 10px; align-items: center; }
.book-nav .ico { width: 25px; height: 25px; }
.book-nav .pos { font-family: var(--f-pixel); font-size: 16px; color: var(--text-2); min-width: 100px; text-align: center; }
.book-nav .mc-btn[disabled] { filter: grayscale(1) brightness(.6); cursor: default; border-color: #000; }
@media (max-width: 760px) {
  .book { grid-template-columns: minmax(0, 1fr); }
  .page-p:first-child, .page-p + .page-p { box-shadow: none; }
  .page-p { min-height: 0; padding: 32px 22px 46px; }
  .page-p .sign { left: 22px; }
}

/* Download: back to the title screen */
.band.is-clear { background: linear-gradient(rgb(10 10 14 / .42), rgb(10 10 14 / .12) 40%, rgb(10 10 14 / .3)); }
.get { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.get h2 { font-family: var(--f-block); font-weight: 700; font-size: clamp(38px, 5.2vw, 76px); line-height: .95; color: #ececec; text-shadow: .045em .045em 0 #8a8a8a, .09em .09em 0 #555, .135em .135em 0 #333; }
.get p { margin-top: 22px; color: #f2f4fa; font-size: 18px; max-width: 42ch; text-shadow: 0 1px 2px rgb(0 0 0 / .7); }
.get .title-menu { margin-top: 28px; }
.f3 { display: grid; justify-items: start; gap: 2px; font-family: var(--f-pixel); font-size: 17px; line-height: 1.25; }
.f3 span { background: rgb(60 60 60 / .72); color: #e0e0e0; padding: 1px 5px; }
.f3 span b { font-weight: 400; color: #fff; }
.f3 .gap { height: 10px; padding: 0; background: none; }
@media (max-width: 900px) { .get { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.footer { position: relative; background: rgb(8 8 10 / .95); padding: 26px 0 110px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-family: var(--f-pixel); font-size: 16px; color: var(--gray); }
.footer-links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: #e0e0e0; text-shadow: 2px 2px 0 var(--mc-shadow); }
.footer-links a:hover { color: var(--yellow); }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
