/* =========================================================
   ZamanPurba | Minecraft-inspired UI
   ========================================================= */

/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "Jersey 10"; src: url("../fonts/jersey-10-latin-400-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; size-adjust: 128%; }
@font-face { font-family: "VT323"; src: url("../fonts/vt323-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --font-ui: "Jersey 10", ui-monospace, monospace;
  --font-body: "VT323", ui-monospace, monospace;

  --c-white: #ffffff;
  --c-gray: #aaaaaa;
  --c-dgray: #555555;
  --c-black: #000000;
  --c-yellow: #ffff55;
  --c-gold: #ffaa00;
  --c-green: #55ff55;
  --c-aqua: #55ffff;
  --c-red: #ff5555;
  --c-pink: #ff55ff;
  --c-xp: #80ff20;

  --gui: #c6c6c6;
  --gui-hi: #ffffff;
  --gui-lo: #555555;
  --gui-ink: #3f3f3f;
  --slot: #8b8b8b;

  --bg: #16120f;
  --nav-h: 66px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-bounce: cubic-bezier(.2, .9, .25, 1.25);
  --notch: 3px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; image-rendering: pixelated; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1.25;
  color: #e6e6e6;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(14, 10, 8, .82), rgba(14, 10, 8, .82)), url("../img/dirt.png");
  background-size: auto, 64px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, ol, ul { margin: 0; }
::selection { background: #3f3fff; color: #fff; }
:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* scrollbar */
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: #0e0c0a; }
::-webkit-scrollbar-thumb { background: #6f6f6f; border: 2px solid #0e0c0a; box-shadow: inset 2px 2px 0 #9a9a9a, inset -2px -2px 0 #3e3e3e; }
html { scrollbar-color: #6f6f6f #0e0c0a; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.container--narrow { max-width: 900px; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: #000; color: #fff; padding: 8px 12px; font-family: var(--font-ui); transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* loader: see "ZP LOADER" at the end of this file */

/* =========================================================
   Minecraft components
   ========================================================= */

/* Button */
.mc-btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .5em 1.4em .6em;
  font-family: var(--font-ui); font-weight: 500; font-size: 1.05rem; line-height: 1;
  color: #e8e8e8; text-shadow: 2px 2px 0 #383838; text-decoration: none; white-space: nowrap;
  background-color: #6e6e6e;
  background-image: linear-gradient(rgba(118, 118, 118, .62), rgba(118, 118, 118, .62)), url("../img/stone.png");
  background-size: auto, 64px;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .42), inset -2px -4px 0 rgba(0, 0, 0, .42);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease), color .18s, border-color .18s, box-shadow .18s;
}
.mc-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(120, 140, 255, .32), rgba(120, 140, 255, .22));
  opacity: 0; transition: opacity .18s;
}
.mc-btn:hover { color: #ffffa0; border-color: #fff; transform: translateY(-2px); }
.mc-btn:hover::before { opacity: 1; }
.mc-btn:active { transform: translateY(1px); box-shadow: inset 2px 4px 0 rgba(0, 0, 0, .4), inset -2px -2px 0 rgba(255, 255, 255, .18); }
.mc-btn.is-active {
  color: #fff; border-color: #fff;
  background-image: linear-gradient(rgba(40, 40, 40, .55), rgba(40, 40, 40, .55)), url("../img/stone.png");
  box-shadow: inset 2px 4px 0 rgba(0, 0, 0, .45), inset -2px -2px 0 rgba(255, 255, 255, .15);
  transform: none;
}
.mc-btn--sm { min-height: 38px; padding: .45em 1em .5em; font-size: .95rem; }
.mc-btn--lg { min-height: 54px; padding-inline: 2em; font-size: 1.15rem; min-width: 200px; }
.mc-btn--block { display: flex; width: 100%; }
.mc-btn--green { background-image: linear-gradient(rgba(58, 150, 62, .72), rgba(48, 128, 52, .72)), url("../img/stone.png"); }
.mc-btn--green::before { background: linear-gradient(rgba(170, 255, 140, .28), rgba(120, 230, 120, .18)); }
.mc-btn--gold { color: #fff; background-image: linear-gradient(rgba(214, 160, 30, .78), rgba(178, 120, 18, .8)), url("../img/stone.png"); }
.mc-btn--gold::before { background: rgba(255, 240, 150, .25); }
.mc-btn--discord { background-image: linear-gradient(rgba(88, 101, 242, .82), rgba(70, 82, 220, .82)), url("../img/stone.png"); }
.mc-btn--discord::before { background: rgba(255, 255, 255, .14); }

/* Light GUI panel with notched corners */
.gui {
  background: var(--gui); color: var(--gui-ink);
  border: 3px solid #1a1a1a;
  box-shadow: inset 4px 4px 0 var(--gui-hi), inset -4px -4px 0 var(--gui-lo);
  clip-path: polygon(0 var(--notch), var(--notch) var(--notch), var(--notch) 0, calc(100% - var(--notch)) 0, calc(100% - var(--notch)) var(--notch), 100% var(--notch), 100% calc(100% - var(--notch)), calc(100% - var(--notch)) calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, var(--notch) 100%, var(--notch) calc(100% - var(--notch)), 0 calc(100% - var(--notch)));
}

/* Inventory slot */
.slot {
  flex: none; width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--slot);
  box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #fff;
}
.slot img { width: 40px; height: 40px; transition: transform .35s var(--ease-bounce); }
.slot--lg { width: 84px; height: 84px; }
.slot--lg img { width: 56px; height: 56px; }

/* Text field */
.mc-input {
  display: flex; align-items: center;
  background: #000; border: 2px solid #a0a0a0;
  transition: border-color .18s;
}
.mc-input:focus-within, .mc-input:hover { border-color: #fff; }
.mc-input input {
  width: 100%; min-height: 42px; padding: 6px 12px;
  background: transparent; border: 0; outline: 0;
  font-family: var(--font-body); font-size: 1.35rem; color: #e0e0e0;
}
.mc-input input::placeholder { color: #707070; }

/* Copy chip (inline IP + copy) */
.copy-chip {
  display: inline-flex; align-items: stretch; margin-top: 12px; padding: 0;
  border: 2px solid #1a1a1a; background: #000; cursor: pointer; max-width: 100%;
  transition: transform .18s var(--ease), border-color .18s;
}
.copy-chip code { padding: 6px 10px; font-family: var(--font-body); font-size: 1.3rem; color: var(--c-yellow); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-chip span { display: grid; place-items: center; padding: 0 12px; font-family: var(--font-ui); font-size: .9rem; color: #fff; background: #3a8a3e; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .3), inset -2px -2px 0 rgba(0, 0, 0, .35); }
.copy-chip:hover { border-color: #fff; transform: translateY(-2px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .35s, backdrop-filter .35s, box-shadow .35s;
}
.nav.is-scrolled {
  background-color: rgba(14, 30, 19, .84);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .6);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-ui); font-weight: 700; font-size: 1.3rem; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.brand__logo { height: 50px; width: auto; image-rendering: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); transition: transform .45s var(--ease-bounce); }
.brand:hover .brand__logo { transform: scale(1.06) rotate(-2deg); }
.brand--footer .brand__logo { height: 84px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 8px 12px; text-decoration: none;
  font-family: var(--font-ui); font-size: 1rem; color: #dcdcdc; text-shadow: 2px 2px 0 #2a2a2a;
  transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px;
  background: var(--c-yellow); box-shadow: 2px 2px 0 #3f3f15;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--c-yellow); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 12px; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(0, 0, 0, .5); border: 2px solid rgba(255, 255, 255, .15); font-family: var(--font-body); font-size: 1.15rem; color: #ddd; }
.status-pill i { width: 10px; height: 10px; background: #777; box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); }
.status-pill[data-state="online"] i { background: var(--c-green); animation: pulse 2s infinite; }
.status-pill[data-state="offline"] i { background: var(--c-red); }
.status-pill b { font-weight: 400; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(0, 0, 0, .5), 0 0 0 0 rgba(85, 255, 85, .6); } 60% { box-shadow: 0 0 0 2px rgba(0, 0, 0, .5), 0 0 0 7px rgba(85, 255, 85, 0); } }

.nav__toggle { display: none; margin-left: auto; width: 46px; height: 46px; padding: 0; background: rgba(0, 0, 0, .45); border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .2); cursor: pointer; place-content: center; gap: 5px; }
.nav__toggle span { display: block; width: 22px; height: 4px; background: #fff; box-shadow: 2px 2px 0 #3f3f3f; transition: transform .3s var(--ease), opacity .2s; }

/* XP bar (scroll progress) */
.xpbar { position: absolute; left: 0; right: 0; bottom: -4px; height: 6px; pointer-events: none; opacity: 0; transition: opacity .35s; }
.nav.is-scrolled .xpbar { opacity: 1; }
.xpbar__track { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); }
.xpbar__track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 18 - 2px), rgba(0, 0, 0, .55) calc(100% / 18 - 2px) calc(100% / 18)); }
.xpbar__fill { height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(#b5ff6a, var(--c-xp) 50%, #4fae12); will-change: transform; }
.xpbar__level { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); font-family: var(--font-ui); font-weight: 700; font-size: .95rem; color: var(--c-xp); text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000; opacity: 0; transition: opacity .3s; z-index: 1; }
.nav.is-scrolled .xpbar__level { opacity: 1; }

/* Mobile game menu */
.game-menu {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; padding: 24px;
  background-color: rgba(10, 8, 6, .55);
  background-image: linear-gradient(rgba(10, 8, 6, .55), rgba(10, 8, 6, .55)), url("../img/dirt.png");
  background-size: auto, 64px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.game-menu.is-open { opacity: 1; visibility: visible; }
.game-menu__inner { width: min(100%, 380px); display: grid; gap: 10px; transform: translateY(16px) scale(.98); transition: transform .45s var(--ease); }
.game-menu.is-open .game-menu__inner { transform: none; }
.game-menu__title { text-align: center; margin-bottom: 14px; font-family: var(--font-ui); font-size: 1.4rem; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.game-menu__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.game-menu__back { margin-top: 14px; }
body.menu-open { overflow: hidden; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
  padding: calc(var(--nav-h) + 28px) 0 clamp(120px, 18vh, 200px);
  isolation: isolate;
}
.hero__sky { position: absolute; inset: 0; z-index: -4; background: linear-gradient(180deg, #4a76e8 0%, #6f98f2 38%, #a9c6f7 72%, #c9dcf9 100%); }
.hero__sun {
  position: absolute; z-index: -3; top: 13%; right: 8%;
  width: clamp(44px, 6vw, 80px); aspect-ratio: 1;
  background: #fffbe3;
  box-shadow: 0 0 0 clamp(8px, 1vw, 14px) rgba(255, 250, 215, .35), 0 0 120px 50px rgba(255, 238, 170, .45);
  animation: sun 9s ease-in-out infinite;
}
@keyframes sun { 50% { transform: translateY(-6px); } }
.panorama { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1.2s var(--ease); }
.panorama.is-ready { opacity: 1; }
.pano-wrap { position: absolute; left: 0; right: 0; bottom: 0; will-change: transform; }
.pano-wrap--clouds { top: 7%; bottom: auto; opacity: .92; }
.pano-wrap--far { bottom: 0; }
.pano-layer { display: block; image-rendering: pixelated; image-rendering: crisp-edges; will-change: transform; }
.pano-wrap--clouds .pano-layer { image-rendering: pixelated; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 46%, rgba(0, 0, 0, .32), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 18%, transparent 62%, rgba(22, 18, 15, .55) 86%, var(--bg) 100%);
}

.hero__content { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.4vh, 22px); text-align: center; }

.update-chip {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 6px 12px 6px 6px; text-decoration: none;
  font-family: var(--font-body); font-size: 1.2rem; color: #f0f0f0;
  background: rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color .2s, transform .25s var(--ease);
  animation: drop-in .8s var(--ease) .3s backwards;
}
.update-chip:hover { border-color: #fff; transform: translateY(-2px); }
.update-chip > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.update-chip__new { flex: none; padding: 2px 6px 3px; font-family: var(--font-ui); font-size: .8rem; font-weight: 700; color: #3f3f15; background: var(--c-yellow); }
.update-chip__arrow { flex: none; width: 8px; height: 8px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); transition: transform .25s var(--ease); }
.update-chip:hover .update-chip__arrow { transform: translateX(3px) rotate(-45deg); }

/* Logo title */
.logo-title { position: relative; display: grid; justify-items: center; gap: 4px; margin: 4px 0 2px; animation: drop-in 1s var(--ease) .15s backwards; }
.logo-title__img {
  width: clamp(280px, 44vw, 620px); height: auto;
  image-rendering: auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .38));
  animation: logo-float 6s ease-in-out infinite;
  transition: transform .5s var(--ease-bounce);
}
.logo-title:hover .logo-title__img { transform: scale(1.025) rotate(-.6deg); }
@keyframes logo-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.logo-title__main {
  display: block;
  font-family: var(--font-logo); font-weight: 400; line-height: 1.1;
  font-size: clamp(1.85rem, 8.1vw, 5.4rem); letter-spacing: 0; text-transform: uppercase;
  color: transparent;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .06) 46%, rgba(0, 0, 0, .18) 54%, rgba(0, 0, 0, .05) 100%), url("../img/stone.png");
  background-size: 100% 100%, 48px;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 3px 0 #4a4a4a) drop-shadow(0 3px 0 #2c2c2c) drop-shadow(3px 0 0 #1c1c1c) drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
}
.logo-title__sub {
  font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; letter-spacing: .32em;
  font-size: clamp(.8rem, 1.6vw, 1.05rem); color: #fff; padding: 6px 10px 6px calc(10px + .32em);
  background: rgba(0, 0, 0, .45); text-shadow: 2px 2px 0 #3f3f3f;
}
.splash {
  position: absolute; left: 100%; top: 66%; right: auto; bottom: auto;
  font-family: var(--font-ui); font-weight: 500; font-size: clamp(.95rem, 2vw, 1.45rem); white-space: nowrap;
  color: var(--c-yellow); text-shadow: 2px 2px 0 #3f3f15;
  transform-origin: center; transform: translate(-50%, -50%) rotate(-18deg);
  animation: splash .6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes splash { from { transform: translate(-50%, -50%) rotate(-18deg) scale(1); } to { transform: translate(-50%, -50%) rotate(-18deg) scale(1.1); } }

.hero__tagline { max-width: 600px; font-size: clamp(1.25rem, 2.2vw, 1.55rem); color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, .55); animation: drop-in .9s var(--ease) .3s backwards; }

/* Server list entry */
.server-entry {
  width: min(100%, 580px);
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start;
  padding: 10px 12px 10px 10px; text-align: left;
  background: rgba(0, 0, 0, .58); border: 2px solid rgba(160, 160, 160, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .25s, transform .3s var(--ease);
  animation: drop-in .9s var(--ease) .42s backwards;
}
.server-entry:hover { border-color: #fff; }
.server-entry__icon { width: 64px; height: 64px; background: rgba(255, 255, 255, .06); }
.server-entry__icon[src$=".png"][src*="icon-dino"] { image-rendering: auto; }
.server-entry__body { min-width: 0; }
.server-entry__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.server-entry__name { font-family: var(--font-ui); font-weight: 500; font-size: 1.15rem; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-entry__players { flex: none; display: inline-flex; align-items: flex-end; gap: 8px; font-size: 1.25rem; color: var(--c-gray); text-shadow: 2px 2px 0 #2a2a2a; }
.server-entry__motd { margin-top: 2px; font-size: 1.25rem; line-height: 1.12; color: var(--c-gray); text-shadow: 2px 2px 0 #222; white-space: pre-line; word-break: break-word; min-height: 2.24em; }
.server-entry__heads { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.server-entry__heads img { width: 22px; height: 22px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .55); transition: transform .2s var(--ease); }
.server-entry__heads img:hover { transform: translateY(-3px) scale(1.15); }
.server-entry__heads span { font-size: 1.1rem; color: var(--c-gray); align-self: center; margin-left: 4px; }

.signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.signal i { width: 4px; background: #2e2e2e; box-shadow: 1px 1px 0 #000; transition: background .3s; }
.signal i:nth-child(1) { height: 4px; } .signal i:nth-child(2) { height: 7px; } .signal i:nth-child(3) { height: 10px; } .signal i:nth-child(4) { height: 13px; } .signal i:nth-child(5) { height: 16px; }
[data-state="online"] .signal i { background: #3ce03c; }
[data-state="offline"] .signal i { background: #4a4a4a; }
[data-state="offline"] .signal i:nth-child(1) { background: var(--c-red); }
[data-state="loading"] .signal i { animation: ping 1.2s infinite; }
.signal i:nth-child(2) { animation-delay: .12s !important; } .signal i:nth-child(3) { animation-delay: .24s !important; } .signal i:nth-child(4) { animation-delay: .36s !important; } .signal i:nth-child(5) { animation-delay: .48s !important; }
@keyframes ping { 0%, 100% { background: #2e2e2e; } 40% { background: #3ce03c; } }

/* IP box */
.ip-box { width: min(100%, 580px); display: flex; gap: 10px; animation: drop-in .9s var(--ease) .52s backwards; }
.ip-box__field { flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: 4px 14px 6px; text-align: left; }
.ip-box__label { font-size: 1rem; color: #8a8a8a; line-height: 1; }
.ip-box__field code { font-family: var(--font-body); font-size: 1.7rem; line-height: 1.05; color: #fff; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ip-box__btn { min-width: 132px; min-height: 58px; }

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; animation: drop-in .9s var(--ease) .62s backwards; }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 46px; height: 46px; display: grid; place-items: center; z-index: 2; }
.scroll-hint span { width: 16px; height: 16px; border-right: 4px solid #fff; border-bottom: 4px solid #fff; filter: drop-shadow(2px 2px 0 #3f3f3f); transform: rotate(45deg); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0%, 100% { transform: translateY(-4px) rotate(45deg); opacity: .6; } 50% { transform: translateY(5px) rotate(45deg); opacity: 1; } }

@keyframes drop-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; scroll-margin-top: calc(var(--nav-h) - 8px); }
.section--deep {
  background-color: #17331f;
  background-image: linear-gradient(rgba(12, 30, 18, .82), rgba(10, 24, 15, .86)), url("../img/deepslate.png");
  background-size: auto, 64px;
  box-shadow: inset 0 4px 0 rgba(0, 0, 0, .55), inset 0 -4px 0 rgba(0, 0, 0, .55);
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.eyebrow { font-family: var(--font-ui); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-yellow); text-shadow: 2px 2px 0 #3f3f15; margin-bottom: 10px; }
.section-title { font-family: var(--font-ui); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.05; color: #fff; text-shadow: 3px 3px 0 #3f3f3f; }
.section-lead { margin-top: 14px; font-size: clamp(1.25rem, 2vw, 1.45rem); color: #cfcfcf; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 12px; background: rgba(0, 0, 0, .42); border: 2px solid #2a2a2a; transition: border-color .25s, transform .3s var(--ease); }
.stat:hover { border-color: #8a8a8a; transform: translateY(-3px); }
.stat:hover .slot img { transform: scale(1.15) rotate(-6deg); }
.stat b { display: block; font-family: var(--font-ui); font-weight: 700; font-size: 1.45rem; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; line-height: 1.1; }
.stat span { display: block; font-size: 1.15rem; color: var(--c-gray); }
.stat .slot { width: 52px; height: 52px; }
.stat .slot img { width: 34px; height: 34px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 20px; transition: transform .35s var(--ease), filter .35s; }
.feature h3 { font-family: var(--font-ui); font-weight: 700; font-size: 1.2rem; color: var(--gui-ink); margin: 2px 0 6px; }
.feature p { font-size: 1.25rem; color: #4a4a4a; }
.feature:hover { transform: translateY(-6px); filter: drop-shadow(0 12px 0 rgba(0, 0, 0, .35)); }
.feature:hover .slot img { transform: scale(1.18) rotate(-10deg); }

/* tabs + steps */
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade-up .5s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.step { position: relative; padding: 24px 20px 22px; overflow: visible; transition: transform .35s var(--ease); }
.step:hover { transform: translateY(-5px); }
.step__num {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px;
  font-family: var(--font-ui); font-weight: 700; font-size: 1.4rem; color: #fff; text-shadow: 2px 2px 0 #3f3f3f;
  background: var(--slot); box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #fff;
}
.step h3 { font-family: var(--font-ui); font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.step p { font-size: 1.25rem; color: #474747; }
.step b { color: #222; font-weight: 400; background: rgba(0, 0, 0, .08); padding: 0 4px; }
.step__port { margin-top: 8px; }
.step .copy-chip code { font-size: 1.2rem; }
.steps-arrow { display: none; }

/* =========================================================
   PATCH NOTES
   ========================================================= */
.pn-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.pn-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; margin: -4px -2px; }
.pn-filters::-webkit-scrollbar { display: none; }
.pn-search { width: min(100%, 280px); }

.notes { position: relative; display: grid; gap: 14px; padding-left: 34px; }
.notes::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 4px; background: repeating-linear-gradient(180deg, #3a3a44 0 8px, #2a2a32 8px 16px); }

.note {
  --type: var(--c-aqua);
  position: relative;
  background: rgba(16, 0, 16, .92);
  border: 3px solid transparent;
  border-image: linear-gradient(180deg, #5a14ff, #2a0084) 1;
  box-shadow: 0 0 0 2px #0c000c, 0 10px 0 -2px rgba(0, 0, 0, .25);
  transition: transform .3s var(--ease), box-shadow .3s;
  animation: fade-up .55s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.note[data-type="major"] { --type: var(--c-gold); }
.note[data-type="hotfix"] { --type: var(--c-pink); }
.note::before {
  content: ""; position: absolute; left: -33px; top: 24px; width: 16px; height: 16px;
  background: var(--type); box-shadow: 0 0 0 3px #0e0c0a, inset -3px -3px 0 rgba(0, 0, 0, .3);
  transition: transform .3s var(--ease-bounce);
}
.note:hover { transform: translateX(4px); border-image: linear-gradient(180deg, #8a4bff, #4410c4) 1; }
.note:hover::before, .note.is-open::before { transform: scale(1.25); }

.note__head {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px;
  padding: 16px 18px; background: none; border: 0; text-align: left; cursor: pointer;
}
.note__ver { font-family: var(--font-ui); font-weight: 700; font-size: 1rem; color: var(--type); padding: 4px 8px 5px; border: 2px solid var(--type); text-shadow: 2px 2px 0 rgba(0, 0, 0, .7); white-space: nowrap; }
.note__titles { min-width: 0; display: grid; gap: 2px; }
.note__title { font-family: var(--font-ui); font-weight: 500; font-size: 1.2rem; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.note__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 1.15rem; color: #8f8f8f; }
.tag { font-family: var(--font-ui); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--type); }
.note__new { font-family: var(--font-ui); font-weight: 700; font-size: .85rem; color: var(--c-yellow); text-shadow: 2px 2px 0 #3f3f15; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.note__chev { width: 12px; height: 12px; margin-right: 4px; border-right: 3px solid #bbb; border-bottom: 3px solid #bbb; transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--ease); }
.note.is-open .note__chev { transform: translateY(3px) rotate(225deg); }

.note__panel, .acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.note.is-open .note__panel, .acc.is-open .acc__panel { grid-template-rows: 1fr; }
.note__clip, .acc__clip { min-height: 0; overflow: hidden; }
.note__body { padding: 2px 18px 18px; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .45s var(--ease); }
.note.is-open .note__body { opacity: 1; transform: none; transition-delay: .08s; }
.note__summary { color: #d8d8d8; font-size: 1.3rem; padding: 12px 14px; background: rgba(255, 255, 255, .04); border-left: 3px solid var(--type); margin-bottom: 14px; }
.note__group + .note__group { margin-top: 12px; }
.note__group h4 { font-family: var(--font-ui); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }
.note__group--added h4 { color: var(--c-green); }
.note__group--changed h4 { color: var(--c-yellow); }
.note__group--fixed h4 { color: var(--c-aqua); }
.note__group--removed h4 { color: var(--c-red); }
.note__group ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.note__group li { position: relative; padding-left: 20px; color: #c9c9c9; font-size: 1.25rem; }
.note__group li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 8px; height: 8px; background: currentColor; }
.note__group--added li::before { color: var(--c-green); }
.note__group--changed li::before { color: var(--c-yellow); }
.note__group--fixed li::before { color: var(--c-aqua); }
.note__group--removed li::before { color: var(--c-red); }
.note__foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.note__link { background: none; border: 0; padding: 4px 0; cursor: pointer; font-family: var(--font-ui); font-size: .9rem; color: #9a7bff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; transition: color .2s; }
.note__link:hover { color: #c4b0ff; }

.notes-empty { text-align: center; color: var(--c-gray); padding: 24px; }
.notes-more { display: flex; justify-content: center; margin-top: 26px; }

/* =========================================================
   RULES (book)
   ========================================================= */
.book {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 14px; gap: 0;
  background: #5a2a1d;
  box-shadow: inset 4px 4px 0 #7a3f2a, inset -4px -4px 0 #3a1a10, 0 0 0 3px #1a0c08, 0 22px 0 -6px rgba(0, 0, 0, .35);
}
.book__page {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(22px, 3.4vw, 38px);
  background: #f3ead0;
  background-image: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .35), transparent 70%);
  color: #2e261a;
}
.book__page--left { box-shadow: inset -26px 0 26px -18px rgba(90, 60, 20, .45); }
.book__page--right { box-shadow: inset 26px 0 26px -18px rgba(90, 60, 20, .45); }
.book__head { font-family: var(--font-ui); font-weight: 700; font-size: 1.35rem; text-align: center; margin-bottom: 18px; color: #2e261a; }
.book__head--cont { color: #8a7650; font-weight: 500; }
.rules { list-style: none; padding: 0; counter-reset: rule; display: grid; gap: 14px; flex: 1; }
.rules[start="5"] { counter-reset: rule 4; }
.rules li { counter-increment: rule; position: relative; padding-left: 44px; font-size: 1.3rem; line-height: 1.2; }
.rules li::before { content: counter(rule); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; color: #f3ead0; background: #8a3f2a; box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .3), inset 3px 3px 0 rgba(255, 255, 255, .18); }
.rules b { font-weight: 400; color: #8a2a12; }
.book__foot { margin-top: 20px; text-align: center; font-size: 1.1rem; color: #8a7650; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: grid; gap: 10px; }
.acc { background: rgba(0, 0, 0, .45); border: 2px solid #34302c; transition: border-color .25s, background-color .25s; }
.acc:hover, .acc.is-open { border-color: #9a9a9a; }
.acc.is-open { background: rgba(0, 0, 0, .6); }
.acc__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-ui); font-weight: 500; font-size: 1.12rem; color: #fff; text-shadow: 2px 2px 0 #3f3f3f;
}
.acc__icon { flex: none; position: relative; width: 18px; height: 18px; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 4px; background: var(--c-yellow); box-shadow: 2px 2px 0 #3f3f15; transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__body { padding: 0 18px 18px; color: #cfcfcf; font-size: 1.3rem; }
.acc__body b { color: var(--c-yellow); font-weight: 400; }

/* =========================================================
   CTA + FOOTER
   ========================================================= */
.section--cta { padding-top: 0; }
.cta {
  display: flex; align-items: center; gap: 24px;
  padding: clamp(22px, 4vw, 36px);
  background-color: #23232b;
  background-image: linear-gradient(120deg, rgba(214, 160, 30, .26), rgba(16, 36, 22, .78) 60%), url("../img/deepslate.png");
  background-size: auto, 64px;
  border: 3px solid #000;
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .15), inset -3px -3px 0 rgba(0, 0, 0, .5);
}
.cta__text { flex: 1; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.slot__dino { image-rendering: auto; }
.cta h2 { font-family: var(--font-ui); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; text-shadow: 3px 3px 0 #3f3f3f; }
.cta p { margin-top: 6px; color: #cfcfcf; font-size: 1.3rem; }
.cta:hover .slot img { transform: scale(1.15) rotate(-8deg); }

.footer {
  position: relative; margin-top: 40px; padding: 72px 0 28px;
  background-color: #2a1e15;
  background-image: linear-gradient(rgba(20, 14, 10, .62), rgba(20, 14, 10, .82)), url("../img/dirt.png");
  background-size: auto, 64px;
}
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 32px; background: url("../img/grass_edge.png") repeat-x; background-size: 32px 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 10px; color: #c8c8c8; }
.footer__col { display: grid; align-content: start; gap: 8px; }
.footer__title { font-family: var(--font-ui); font-weight: 700; color: var(--c-yellow); text-shadow: 2px 2px 0 #3f3f15; margin-bottom: 4px; }
.footer__col a { width: fit-content; text-decoration: none; color: #d6d6d6; transition: color .2s, transform .25s var(--ease); }
.footer__col a:hover { color: #fff; transform: translateX(4px); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 2px solid rgba(255, 255, 255, .08); font-size: 1.1rem; color: #9a9a9a; }

/* =========================================================
   TOAST + TO TOP
   ========================================================= */
.toast {
  position: fixed; z-index: 250; top: calc(var(--nav-h) + 16px); right: 16px;
  display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px;
  min-width: 270px; padding: 10px 16px 10px 10px;
  background: #212121; border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #5a5a5a, inset -2px -2px 0 #111, 0 8px 0 rgba(0, 0, 0, .3);
  transform: translateX(calc(100% + 32px)); transition: transform .5s var(--ease-bounce);
  pointer-events: none;
}
.toast.is-shown { transform: none; }
.toast__icon { width: 40px; height: 40px; padding: 4px; background: var(--slot); box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; }
.toast__title { font-family: var(--font-ui); font-weight: 500; font-size: 1rem; color: var(--c-yellow); }
.toast__text { font-size: 1.25rem; color: #fff; }

.to-top {
  position: fixed; z-index: 90; right: 18px; bottom: 18px; width: 50px; min-height: 50px; padding: 0;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s, visibility .3s, transform .35s var(--ease), color .18s, border-color .18s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top.is-shown:hover { transform: translateY(-3px); }
.to-top span { width: 14px; height: 14px; border-left: 4px solid currentColor; border-top: 4px solid currentColor; transform: translateY(3px) rotate(45deg); filter: drop-shadow(2px 2px 0 #383838); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .nav.menu-active .nav__toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav.menu-active .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-active .nav__toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

@media (max-width: 680px) {
  :root { --nav-h: 60px; --notch: 2px; }
  body { font-size: 1.25rem; }
  .brand { font-size: 1.15rem; }
  .hero { padding-bottom: 110px; }
  .hero__content { gap: 14px; }
  .splash { left: 74%; top: 92%; font-size: .95rem; }
  .logo-title__img { width: min(92vw, 400px); }
  .server-entry { grid-template-columns: 48px 1fr; gap: 10px; padding: 8px 10px 8px 8px; }
  .server-entry__icon { width: 48px; height: 48px; }
  .server-entry__name { font-size: 1.02rem; }
  .server-entry__motd { font-size: 1.15rem; }
  .ip-box { flex-direction: column; }
  .ip-box__btn { width: 100%; min-height: 50px; }
  .hero__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__actions .mc-btn { min-width: 0; padding-inline: .8em; font-size: 1.02rem; }
  .hero__actions .mc-btn:nth-child(3) { grid-column: 1 / -1; }
  .features { grid-template-columns: 1fr; gap: 14px; }
  .feature { padding: 16px; }
  .steps { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat { padding: 10px; gap: 10px; }
  .stat .slot { width: 44px; height: 44px; }
  .stat .slot img { width: 28px; height: 28px; }
  .stat b { font-size: 1.15rem; }
  .stat span { font-size: 1.05rem; }
  .pn-controls { flex-direction: column; align-items: stretch; }
  .pn-search { width: 100%; }
  .notes { padding-left: 0; }
  .notes::before, .note::before { display: none; }
  .note:hover { transform: none; }
  .note__head { grid-template-columns: 1fr auto; grid-template-areas: "ver chev" "titles titles"; gap: 8px 10px; padding: 14px; }
  .note__ver { grid-area: ver; justify-self: start; }
  .note__titles { grid-area: titles; }
  .note__chev { grid-area: chev; }
  .note__new { position: absolute; top: 18px; left: 92px; }
  .note__body { padding: 0 14px 14px; }
  .book { grid-template-columns: 1fr; padding: 10px; }
  .book__page--left { box-shadow: inset 0 -20px 22px -18px rgba(90, 60, 20, .45); }
  .book__page--right { box-shadow: inset 0 20px 22px -18px rgba(90, 60, 20, .45); }
  .cta { flex-direction: column; text-align: center; }
  .cta__actions { width: 100%; }
  .cta .mc-btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .toast { left: 12px; right: 12px; min-width: 0; top: calc(var(--nav-h) + 10px); transform: translateY(calc(-100% - var(--nav-h) - 24px)); }
  .scroll-hint { display: none; }
}

@media (max-height: 700px) and (min-width: 681px) {
  .hero__tagline { display: none; }
  .scroll-hint { display: none; }
}

@media (hover: none) {
  .mc-btn:hover, .feature:hover, .step:hover, .stat:hover { transform: none; }
  .feature:hover { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* hold hero intro animations until the loading screen fades */
.js:not(.is-loaded) .hero__content > * { animation-play-state: paused; }

/* =========================================================
   RICH PATCH NOTES
   ========================================================= */
.note__body b, .item__title { color: #fff; font-weight: 400; }
.note__highlights { margin: 0 0 18px; padding: 12px 14px 14px; background: rgba(255, 255, 85, .06); border: 2px solid rgba(255, 255, 85, .32); }
.note__highlights h4 { font-family: var(--font-ui); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-yellow); text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); margin-bottom: 8px; }
.note__highlights ul { list-style: none; padding: 0; display: grid; gap: 5px; }
.note__highlights li { position: relative; padding-left: 24px; color: #e6e6e6; font-size: 1.25rem; }
.note__highlights li::before { content: ""; position: absolute; left: 3px; top: .3em; width: 10px; height: 5px; border-left: 3px solid var(--c-yellow); border-bottom: 3px solid var(--c-yellow); transform: rotate(-45deg); }
.note__group + .note__group { margin-top: 16px; }
.note__group .sublist { margin-top: 4px; }

.cmd {
  display: inline; padding: 0 6px; margin: 0 1px;
  font-family: var(--font-body); font-size: 1em; line-height: 1.1;
  color: var(--c-aqua); background: rgba(85, 255, 255, .08); border: 1px solid rgba(85, 255, 255, .35);
  cursor: pointer; transition: background .2s, border-color .2s;
}
.cmd:hover { background: rgba(85, 255, 255, .2); border-color: var(--c-aqua); }

.subs { display: grid; gap: 8px; margin-top: 10px; }
.sub { background: rgba(255, 255, 255, .03); border: 2px solid #34245a; transition: border-color .25s, background-color .25s; }
.sub:hover, .sub.is-open { border-color: #7a5cff; }
.sub.is-open { background: rgba(255, 255, 255, .045); }
.sub__head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: none; border: 0; cursor: pointer; text-align: left; }
.sub__title { flex: 1; font-family: var(--font-ui); font-size: 1.08rem; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.sub__hint { font-size: 1.05rem; color: #8f8f8f; }
.sub .acc__icon { width: 14px; height: 14px; }
.sub .acc__icon::before, .sub .acc__icon::after { width: 14px; height: 3px; }
.sub.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.sub__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.sub.is-open .sub__panel { grid-template-rows: 1fr; }
.sub__clip { min-height: 0; overflow: hidden; }
.sub__body { padding: 2px 14px 16px; display: grid; gap: 12px; }

.blk-p { color: #d2d2d2; font-size: 1.25rem; }
.blk-h { margin: 6px 0 0; font-family: var(--font-ui); font-weight: 700; font-size: .98rem; text-transform: uppercase; letter-spacing: .07em; color: var(--c-yellow); text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }
.blk-note { color: #d6d6d6; font-size: 1.2rem; padding: 8px 12px; background: rgba(85, 255, 255, .06); border-left: 3px solid var(--c-aqua); }
.sub__body .blk-list { margin: 0; }

.pn-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pn-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; background: rgba(0, 0, 0, .35); }
.pn-table th, .pn-table td { padding: 5px 10px; border: 2px solid #2b2140; text-align: left; vertical-align: top; }
.pn-table thead th { font-family: var(--font-ui); font-weight: 500; font-size: .88rem; text-transform: uppercase; letter-spacing: .05em; color: #bdbdbd; background: rgba(255, 255, 255, .05); white-space: nowrap; }
.pn-table tbody th { font-weight: 400; color: #fff; }
.pn-table td { color: #d6d6d6; white-space: nowrap; }
.pn-table tbody tr { transition: background-color .15s; }
.pn-table tbody tr:hover { background: rgba(255, 255, 255, .05); }
.pn-table--tiers td, .pn-table--tiers thead th.tier { text-align: center; }
.pn-table--tiers td { font-size: 1.35rem; }
.tier--stone { color: #b9b9b9 !important; }
.tier--copper { color: #ec9563 !important; }
.tier--iron { color: #ececec !important; }
.tier--gold { color: #ffd83d !important; }
.tier--diamond { color: #5ff0ea !important; }
.tier--netherite { color: #c2a6d0 !important; }
.tier__short { display: none; }
.pn-footnote { font-size: 1.05rem; color: #8f8f8f; margin-top: 4px; }

.skill { display: grid; gap: 8px; padding: 12px 14px 14px; background: rgba(255, 255, 255, .035); border: 2px solid rgba(255, 255, 255, .08); transition: border-color .25s; }
.skill:hover { border-color: rgba(85, 255, 255, .35); }
.skill__name { font-family: var(--font-ui); font-weight: 700; font-size: 1.2rem; color: var(--c-aqua); text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }
.skill__row { color: #d2d2d2; font-size: 1.22rem; }
.skill__row--why { color: #a8a8a8; }
.skill__label { display: inline-block; margin-right: 8px; padding: 0 6px 1px; font-family: var(--font-ui); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #9a9a9a; border: 1px solid #555; vertical-align: 2px; }
.skill__label--req { justify-self: start; margin-top: 2px; color: var(--c-yellow); border-color: rgba(255, 255, 85, .4); }

@media (max-width: 680px) {
  .tier__full { display: none; }
  .tier__short { display: inline; }
  .pn-table { font-size: 1.1rem; }
  .pn-table th, .pn-table td { padding: 4px 6px; }
  .pn-table--tiers td { font-size: 1.2rem; }
  .sub__head { padding: 12px; }
  .sub__body { padding: 0 10px 14px; }
  .sub__hint { display: none; }
  .skill { padding: 10px; }
}
/* keep wide tables inside their card; they scroll sideways on small screens */
.sub__body, .skill { grid-template-columns: minmax(0, 1fr); }
.pn-table-wrap { max-width: 100%; }
.note__body, .note__group, .subs, .sub { min-width: 0; }
@media (max-width: 680px) {
  .pn-table--tiers th, .pn-table--tiers td { padding: 4px 5px; }
  .pn-table--tiers tbody th { white-space: normal; min-width: 64px; }
}
@media (max-width: 680px) {
  .pn-table--tiers { table-layout: fixed; }
  .pn-table--tiers thead th:first-child, .pn-table--tiers tbody th { width: 27%; min-width: 0; }
  .pn-table--tiers thead th { font-size: .74rem; letter-spacing: 0; padding: 4px 2px; }
  .pn-table--tiers td { padding: 4px 2px; font-size: 1.15rem; }
}
.footer__admin { margin-left: 8px; color: #7d7d7d; text-decoration: underline; text-underline-offset: 3px; }
.footer__admin:hover { color: #fff; }
.book--single { grid-template-columns: 1fr; max-width: 560px; }
.book--single .book__page--left { box-shadow: none; }
/* command buttons on light GUI panels need darker colors */
.gui .cmd { color: #0a5f63; background: rgba(0, 110, 115, .1); border-color: rgba(0, 95, 100, .45); }
.gui .cmd:hover { background: rgba(0, 110, 115, .2); border-color: #0a5f63; }

/* =========================================================
   MOBILE SAFETY (no sideways scrolling)
   ========================================================= */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
main, section, .container, .hero__content { min-width: 0; }
@media (max-width: 680px) {
  .pn-controls { flex-wrap: nowrap; }
  .pn-filters { max-width: 100%; min-width: 0; }
  .pn-filters .mc-btn { flex: none; }
  .hero__actions .mc-btn { width: 100%; }
  .cta__actions .mc-btn { min-width: 0; }
  .copy-chip { max-width: 100%; }
}

/* inline command look for static text */
.cmd-static { padding: 0 6px; font-family: var(--font-body); color: var(--c-aqua); background: rgba(85, 255, 255, .08); border: 1px solid rgba(85, 255, 255, .35); }

/* =========================================================
   SOCIAL SLOTS (hero + game menu)
   ========================================================= */
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; animation: drop-in .9s var(--ease) .7s backwards; }
.soc { display: grid; justify-items: center; gap: 5px; width: 66px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.soc__slot { width: 52px; height: 52px; display: grid; place-items: center; background: var(--slot); box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #fff; transition: transform .25s var(--ease-bounce), background-color .2s; }
.soc__slot img { width: 32px; height: 32px; image-rendering: pixelated; transition: transform .3s var(--ease-bounce); }
.soc__label { font-family: var(--font-ui); font-size: .82rem; line-height: 1; color: #fff; text-shadow: 2px 2px 0 #2a2a2a; white-space: nowrap; }
.soc:hover .soc__slot, .soc:focus-visible .soc__slot { background: #c2c2c2; transform: translateY(-3px); }
.soc:hover .soc__slot img { transform: scale(1.12) rotate(-6deg); }
.socials--menu { margin-top: 6px; animation: none; }

/* =========================================================
   GAME MODES
   ========================================================= */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.mode { --mc: var(--c-green); display: flex; flex-direction: column; min-width: 0; background: rgba(0, 0, 0, .58); border: 3px solid #000; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08), 0 10px 0 -2px rgba(0, 0, 0, .3); transition: transform .35s var(--ease), box-shadow .35s; }
.mode:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 2px var(--mc), 0 14px 0 -2px rgba(0, 0, 0, .3); }
.mode--green { --mc: #55ff55; } .mode--orange { --mc: #ffaa00; } .mode--yellow { --mc: #ffff55; }
.mode--aqua { --mc: #55ffff; } .mode--red { --mc: #ff5555; } .mode--purple { --mc: #ff55ff; } .mode--gray { --mc: #aaaaaa; }
.mode__img { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 4px solid var(--mc); background: #111; }
.mode__img img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; transition: transform .6s var(--ease); }
.mode:hover .mode__img img { transform: scale(1.04); }
.mode__body { display: grid; gap: 10px; padding: 16px 18px 18px; }
.mode__top { display: grid; gap: 6px; }
.mode__name { font-family: var(--font-ui); font-weight: 700; font-size: 1.5rem; line-height: 1.05; color: var(--mc); text-shadow: 2px 2px 0 rgba(0, 0, 0, .75); }
.mode__diff { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.mode__meter { display: inline-flex; gap: 3px; }
.mode__meter i { width: 14px; height: 14px; background: #2b2b2b; box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .5), inset -2px -2px 0 rgba(255, 255, 255, .1); }
.mode__meter i.on { background: var(--mc); box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .35), inset -2px -2px 0 rgba(0, 0, 0, .35); }
.mode__difflabel { font-size: 1.12rem; color: #d6d6d6; }
.mode__tag { color: #f0f0f0; font-size: 1.25rem; }
.mode__points { list-style: none; padding: 0; display: grid; gap: 4px; }
.mode__points li, .mode__dl ul li { position: relative; padding-left: 18px; color: #d2d2d2; font-size: 1.2rem; }
.mode__points li::before, .mode__dl ul li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 7px; height: 7px; background: var(--mc); }
.mode__more { border-top: 2px solid rgba(255, 255, 255, .08); padding-top: 8px; }
.mode__more summary { cursor: pointer; list-style: none; font-family: var(--font-ui); font-size: .98rem; color: var(--mc); text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }
.mode__more summary::-webkit-details-marker { display: none; }
.mode__more summary::after { content: " +"; }
.mode__more[open] summary::after { content: " -"; }
.mode__dl { margin: 10px 0 0; display: grid; gap: 2px; }
.mode__dl dt { font-family: var(--font-ui); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #9a9a9a; margin-top: 6px; }
.mode__dl dd { margin: 0; color: #e0e0e0; font-size: 1.2rem; }
.mode__dl ul { list-style: none; padding: 0; display: grid; gap: 3px; }

/* =========================================================
   RANKS + SHOP
   ========================================================= */
.ranks { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.ranks__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rank-slot {
  --rank: #aaa;
  display: grid; gap: 1px; min-width: 0; padding: 9px 12px 10px; text-align: left; cursor: pointer;
  background: rgba(0, 0, 0, .55); border: 2px solid #2c2c2c; border-left: 6px solid var(--rank);
  transition: background-color .2s, border-color .2s, transform .25s var(--ease);
}
.rank-slot:hover { background: rgba(255, 255, 255, .06); transform: translateX(3px); }
.rank-slot.is-active { background: rgba(255, 255, 255, .1); border-color: var(--rank); }
.rank-slot__prefix { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .1em; color: var(--rank); text-shadow: 1px 1px 0 #000; }
.rank-slot__name { font-family: var(--font-ui); font-size: 1.05rem; color: #fff; text-shadow: 2px 2px 0 #2a2a2a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-slot__price { font-size: 1.15rem; color: #cfcfcf; }
.rank-card {
  --rank: #aaa;
  display: grid; gap: 16px; min-width: 0; padding: clamp(16px, 2.4vw, 24px);
  background: rgba(16, 0, 16, .9); border: 3px solid #000;
  box-shadow: inset 0 0 0 2px var(--rank), 0 10px 0 -2px rgba(0, 0, 0, .3);
  animation: fade-up .4s var(--ease);
}
.rank-card__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 18px; }
.rank-tag { display: inline-block; padding: 2px 8px 3px; font-family: var(--font-ui); font-size: .82rem; letter-spacing: .1em; color: #111; background: var(--rank); }
.rank-card__name { margin-top: 6px; font-family: var(--font-ui); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; text-shadow: 3px 3px 0 #2a2a2a; }
.rank-card__price { text-align: right; }
.rank-card__price b { display: block; font-family: var(--font-ui); font-weight: 700; font-size: 1.6rem; color: var(--c-yellow); text-shadow: 2px 2px 0 #3f3f15; }
.rank-card__price span { font-size: 1.12rem; color: #bdbdbd; }
.rank-group h4 { margin-bottom: 6px; font-family: var(--font-ui); font-weight: 700; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rank); text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }
.rank-group dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; }
.rank-group dt { color: #9a9a9a; font-size: 1.15rem; }
.rank-group dd { margin: 0; color: #ececec; font-size: 1.2rem; }

.shop { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 18px; margin-top: 22px; align-items: start; }
.shop h3 { font-family: var(--font-ui); font-weight: 700; font-size: 1.2rem; margin-bottom: 6px; }
.shop__form { display: grid; gap: 10px; padding: 18px; }
.shop__form h3 { color: var(--gui-ink); }
.shop__field { display: grid; gap: 4px; }
.shop__field span { font-family: var(--font-ui); font-size: .95rem; color: #3f3f3f; }
.shop__input { width: 100%; min-height: 42px; padding: 6px 10px; font-family: var(--font-body); font-size: 1.25rem; color: #e6e6e6; background: #000; border: 2px solid #8a8a8a; border-radius: 0; }
.shop__input:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 85, .35); }
.shop__pay { font-size: 1.25rem; color: #3f3f3f; }
.shop__pay b { font-family: var(--font-ui); font-weight: 700; color: #1d6b20; }
.shop__pay b.is-muted { font-family: var(--font-body); font-weight: 400; color: #6a6a6a; }
.shop__info { padding: 18px; background: rgba(0, 0, 0, .5); border: 2px solid #34302c; }
.shop__info h3 { color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.shop__steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 8px; }
.shop__steps li { counter-increment: step; position: relative; padding-left: 36px; color: #d8d8d8; font-size: 1.22rem; }
.shop__steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; display: grid; place-items: center; font-family: var(--font-ui); font-size: .95rem; color: #fff; background: var(--slot); box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; }
.shop__note { margin-top: 14px; color: #bdbdbd; font-size: 1.15rem; }
.shop__note--help { color: var(--c-aqua); }
.shop__note:empty { display: none; }

/* =========================================================
   RULES: Book and Quill (one page per view)
   ========================================================= */
.bq { max-width: 520px; margin: 0 auto; outline: none; }
.bq:focus-visible .bq__page { box-shadow: 0 0 0 10px #5a2a1d, 0 0 0 13px var(--c-yellow), 0 22px 0 6px rgba(0, 0, 0, .35); }
.bq__page {
  position: relative; display: flex; flex-direction: column;
  min-height: 460px; padding: 30px clamp(22px, 5vw, 38px) 76px;
  color: #2e261a;
  background-color: #f3ead0;
  background-image: var(--bq-paper, radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, .4), transparent 72%));
  border: 3px solid #1a0c08;
  box-shadow: 0 0 0 10px #5a2a1d, 0 0 0 13px #1a0c08, inset 0 0 0 3px #e2d4ad, 0 22px 0 6px rgba(0, 0, 0, .35);
}
.bq__count { align-self: flex-end; font-size: 1.15rem; color: #6e5d3d; margin-bottom: 10px; }
.bq__head { font-family: var(--font-ui); font-weight: 700; font-size: 1.35rem; text-align: center; margin-bottom: 16px; }
.bq .rules { flex: 1; align-content: start; }
.bq__arrow {
  position: absolute; bottom: 8px; width: 64px; height: 56px; padding: 0;
  display: grid; place-items: center; background: transparent; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bq__arrow--prev { left: 8px; }
.bq__arrow--next { right: 8px; }
.bq__arrow span {
  width: 30px; height: 18px; background: rgba(110, 72, 34, .42);
  clip-path: polygon(0 33%, 60% 33%, 60% 0, 100% 50%, 60% 100%, 60% 67%, 0 67%);
  transition: background-color .2s, transform .25s var(--ease);
}
.bq__arrow--prev span { transform: scaleX(-1); }
.bq__arrow:hover span, .bq__arrow:focus-visible span { background: rgba(110, 72, 34, .9); }
.bq__arrow--next:hover span { transform: translateX(3px); }
.bq__arrow--prev:hover span { transform: scaleX(-1) translateX(3px); }
.bq__arrow:focus-visible { outline-offset: -4px; }
.bq.is-turn-next .rules { animation: bq-next .35s var(--ease); }
.bq.is-turn-prev .rules { animation: bq-prev .35s var(--ease); }
@keyframes bq-next { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes bq-prev { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Y-LEVEL BACKGROUND + F3
   ========================================================= */
.depth { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: none; image-rendering: pixelated; }
.has-depth .depth { display: block; }
.has-depth .section--deep { background-color: transparent; background-image: linear-gradient(rgba(10, 26, 16, .5), rgba(10, 22, 14, .55)); }
.f3 {
  position: fixed; left: 10px; bottom: 10px; z-index: 80;
  display: grid; justify-items: start; gap: 2px; pointer-events: none;
  font-family: var(--font-body); font-size: 1.2rem; line-height: 1;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease);
}
.f3.is-shown { opacity: 1; transform: none; }
body.menu-open .f3 { opacity: 0; }
.f3__line { padding: 3px 5px 4px; color: #e0e0e0; background: rgba(40, 40, 40, .62); text-shadow: 2px 2px 0 #3a3a3a; }
.f3__line b { font-weight: 400; color: #fff; }
.f3__ore { display: flex; align-items: center; gap: 6px; }
.f3__ore img { width: 16px; height: 16px; image-rendering: pixelated; }
@media (max-width: 680px) {
  .f3 { font-size: 1.05rem; left: 6px; bottom: 6px; }
  .f3__line:first-child { display: none; }
}

/* footer sits on bedrock */
.footer {
  background-color: #1d1d1d;
  background-image: linear-gradient(rgba(10, 10, 10, .55), rgba(8, 8, 8, .78)), url("../img/bedrock.png");
  background-size: auto, 64px;
  box-shadow: inset 0 4px 0 #000;
}
.footer::before { display: none; }

/* =========================================================
   ZP LOADER: Baby Rex Digging (pixel)
   Gambar bisa diganti dari tab Aset (variabel --ld-*)
   ========================================================= */
:root {
  --ld-rex: url("/assets/loader/baby_rex_sprite.png");
  --ld-pick: url("/assets/loader/pickaxe_sprite.png");
  --ld-chase: url("/assets/loader/chase_sprite.png");
  --ld-bg: url("/assets/loader/bg_dirt.png");
  --ld-dirt: url("/assets/loader/tile_dirt.png");
  --ld-stone: url("/assets/loader/tile_stone.png");
  --ld-deepslate: url("/assets/loader/tile_deepslate.png");
  --ld-diamond: url("/assets/loader/tile_diamond.png");
  --ld-dark: url("/assets/loader/tile_dark.png");
}
#zp-loader {
  --s: 3; --u: calc(var(--s) * 1px);
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(6 * var(--u));
  background: linear-gradient(rgba(10, 8, 6, .74), rgba(10, 8, 6, .74)), var(--ld-bg) repeat;
  background-size: auto, calc(16 * var(--u)) calc(16 * var(--u));
  image-rendering: pixelated;
  color: #e8e8e8; font-family: var(--font-body);
  transition: opacity .45s ease, visibility .45s;
}
.no-loader #zp-loader { display: none; }
#zp-loader.zp-done { opacity: 0; visibility: hidden; pointer-events: none; }
#zp-loader * { box-sizing: border-box; }
.zp-stage { position: relative; width: calc(132 * var(--u)); height: calc(47 * var(--u)); margin-top: calc(12 * var(--u)); }
.zp-rex { position: absolute; left: 0; top: calc(-2 * var(--u)); width: calc(48 * var(--u)); height: calc(42 * var(--u)); z-index: 3; }
.zp-rex.zp-hop { animation: zp-hop .7s steps(7) 1; }
@keyframes zp-hop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(calc(-9 * var(--u))); } 60% { transform: translateY(calc(-4 * var(--u))); } 80% { transform: translateY(calc(-1 * var(--u))); } }
.zp-rex-px { width: 100%; height: 100%; background: var(--ld-rex) 0 0 no-repeat; background-size: calc(192 * var(--u)) calc(336 * var(--u)); image-rendering: pixelated; }
.zp-bar {
  position: absolute; left: calc(8 * var(--u)); top: calc(35 * var(--u)); width: calc(124 * var(--u)); height: calc(12 * var(--u));
  padding: calc(2 * var(--u)); background: #121212;
  box-shadow: inset 0 0 0 var(--u) #5a5a5a, inset var(--u) var(--u) 0 var(--u) #2b2b2b; z-index: 2;
}
.zp-track { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--ld-dark) repeat; background-size: calc(8 * var(--u)) calc(8 * var(--u)); }
.zp-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; overflow: hidden; transition: width .2s steps(3); }
.zp-layers { position: absolute; left: 0; top: 0; height: 100%; width: calc(120 * var(--u)); display: flex; }
.zp-layers i { display: block; height: 100%; background-repeat: repeat; background-size: calc(8 * var(--u)) calc(8 * var(--u)); }
.zp-layers .l1 { width: calc(40 * var(--u)); background-image: var(--ld-dirt); }
.zp-layers .l2 { width: calc(40 * var(--u)); background-image: var(--ld-stone); }
.zp-layers .l3 { width: calc(40 * var(--u)); background-image: var(--ld-deepslate); }
.zp-gem { position: absolute; right: 0; top: 0; width: calc(8 * var(--u)); height: 100%; background: var(--ld-diamond); background-size: 100% 100%; }
.zp-gem.zp-shine { animation: zp-gemflash .3s steps(2) 3; }
@keyframes zp-gemflash { 50% { filter: brightness(1.8); } }
.zp-pick {
  position: absolute; top: calc(26 * var(--u)); left: calc(4 * var(--u)); width: calc(16 * var(--u)); height: calc(16 * var(--u)); z-index: 2;
  background: var(--ld-pick) 0 0 no-repeat; background-size: calc(64 * var(--u)) 100%;
  animation: zp-swing .45s steps(4) infinite; image-rendering: pixelated;
}
@keyframes zp-swing { to { background-position: calc(-64 * var(--u)) 0; } }
.zp-pick.zp-still { animation: none; background-position: calc(-32 * var(--u)) 0; }
.zp-chip { position: absolute; top: calc(37 * var(--u)); width: var(--u); height: var(--u); background: var(--chip, #7a5434); z-index: 4; opacity: 0; animation: zp-chip .45s steps(5) infinite; }
.zp-chip.c2 { animation-delay: .22s; width: calc(2 * var(--u)); height: calc(2 * var(--u)); }
@keyframes zp-chip { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(calc(-6 * var(--u)), calc(-7 * var(--u))); } }
.zp-pick.zp-still ~ .zp-chip { display: none; }
.zp-chase {
  display: none; position: absolute; left: 0; top: calc(-21 * var(--u)); width: calc(128 * var(--u)); height: calc(56 * var(--u)); z-index: 3;
  background: var(--ld-chase) 0 0 no-repeat; background-size: calc(1024 * var(--u)) calc(64 * var(--u));
  animation: zp-run .8s steps(8) infinite; image-rendering: pixelated;
}
@keyframes zp-run { to { background-position: calc(-1024 * var(--u)) 0; } }
#zp-loader.zp-egg .zp-chase { display: block; }
#zp-loader.zp-egg .zp-rex { display: none; }
#zp-loader.zp-egg .zp-stage { margin-top: calc(21 * var(--u)); }
.zp-title { font-size: calc(14 * var(--u)); letter-spacing: 1px; text-shadow: 3px 3px 0 #2a2a2a; margin: 0; text-align: center; padding: 0 12px; }
.zp-tip { font-size: calc(7 * var(--u)); color: #bdbdbd; min-height: 1.2em; text-align: center; padding: 0 16px; margin: 0; }
@media (max-width: 480px) {
  #zp-loader { --s: 2; }
  .zp-title { font-size: clamp(18px, 6vw, 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .zp-pick, .zp-chip, .zp-chase, .zp-rex.zp-hop { animation: none; }
}

/* =========================================================
   RESPONSIVE (new sections)
   ========================================================= */
@media (max-width: 1080px) {
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ranks { grid-template-columns: minmax(0, 1fr); }
  .ranks__list { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 6px; }
  .rank-slot { flex: 0 0 auto; width: 150px; scroll-snap-align: start; }
  .rank-slot:hover { transform: none; }
}
@media (max-width: 760px) {
  .modes { grid-template-columns: minmax(0, 1fr); }
  .shop { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .rank-group dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rank-group dt { margin-top: 6px; font-size: 1.05rem; }
  .rank-card__price { text-align: left; }
  .bq__page { min-height: 420px; }
  .socials { gap: 8px; }
  .soc { width: 58px; }
  .soc__slot { width: 46px; height: 46px; }
  .soc__label { font-size: .74rem; }
}
@media (hover: none) {
  .mode:hover, .rank-slot:hover { transform: none; }
}
@media (max-width: 680px) {
  .logo-title { margin-bottom: 14px; }
  .splash { left: 74%; top: 90%; width: 8.5em; white-space: normal; text-align: center; line-height: 1.05; font-size: .85rem; }
}
@media (max-width: 680px) {
  .f3 { display: flex; gap: 0; opacity: 0; }
  .f3.is-shown { opacity: .9; }
  .f3__line { padding: 2px 4px 3px; }
  .f3__ore b { display: none; }
  .socials--menu { gap: 6px 4px; }
  .socials--menu .soc { width: 56px; }
}
.shop__form, .shop__field { grid-template-columns: minmax(0, 1fr); }
.shop__field, .shop__input { min-width: 0; max-width: 100%; }
select.shop__input { text-overflow: ellipsis; }

/* =========================================================
   UPDATE NOVEMBER 2026: bahasa, suara, mode, store, tim, donatur
   ========================================================= */

/* Chinese has no glyphs in the pixel fonts: use a clean CJK fallback */
html:lang(zh-Hans) { --font-ui: "Jersey 10", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; --font-body: "VT323", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
html:lang(zh-Hans) body { font-size: 1.12rem; line-height: 1.45; }
html:lang(zh-Hans) .section-title { letter-spacing: .02em; }

/* ---------- language switcher ---------- */
.lang { position: relative; }
.lang__btn { min-width: 52px; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; display: grid; min-width: 190px; padding: 6px;
  background: rgba(16, 0, 16, .94); border: 2px solid #28005e; box-shadow: inset 0 0 0 2px #2a0a4a, 0 10px 24px rgba(0, 0, 0, .5);
}
.lang__menu[hidden] { display: none; }
.lang__menu button { padding: 8px 10px; text-align: left; background: none; border: 0; cursor: pointer; font-family: var(--font-body); font-size: 1.2rem; color: #e8e8e8; }
.lang__menu button:hover, .lang__menu button:focus-visible { background: rgba(255, 255, 255, .1); color: var(--c-yellow); }
.lang__menu button.is-active { color: var(--c-yellow); }
.lang__menu button.is-active::before { content: "> "; }
.lang-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lang-row .mc-btn { min-width: 0; padding-inline: .3em; }
.lang-row .mc-btn.is-active { color: var(--c-yellow); border-color: var(--c-yellow); }
@media (max-width: 1360px) { .nav__cta .status-pill { display: none; } }
@media (max-width: 1220px) { .nav__links a { padding: 8px 8px; } .nav__links a::after { left: 8px; right: 8px; } .nav__inner { gap: 14px; } }

/* ---------- sound widget ---------- */
.sound { position: fixed; z-index: 91; right: 18px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.sound[hidden] { display: none; }
body.menu-open .sound { opacity: 0; pointer-events: none; }
.sound__btn { width: 50px; min-height: 50px; padding: 0; }
.sound__icon { position: relative; width: 22px; height: 18px; }
.sound__icon::before { content: ""; position: absolute; left: 0; top: 5px; width: 6px; height: 8px; background: currentColor; box-shadow: 2px 2px 0 #383838; }
.sound__icon::after { content: ""; position: absolute; left: 4px; top: 0; border: 9px solid transparent; border-right-color: currentColor; border-left-width: 0; filter: drop-shadow(2px 2px 0 #383838); }
.sound.is-playing .sound__btn { color: var(--c-green); }
.sound.is-playing .sound__icon { animation: bob 1s steps(2) infinite; }
.sound.is-muted .sound__btn { color: #9a9a9a; }
@keyframes bob { 50% { transform: translateY(-2px); } }
.sound__panel {
  width: 250px; display: grid; gap: 10px; padding: 12px 14px;
  background: rgba(16, 0, 16, .94); border: 2px solid #28005e; box-shadow: inset 0 0 0 2px #2a0a4a, 0 10px 24px rgba(0, 0, 0, .5);
}
.sound__panel[hidden] { display: none; }
.sound__title { font-family: var(--font-ui); font-size: 1.1rem; color: var(--c-yellow); text-shadow: 2px 2px 0 #3f3f15; }
.sound__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #e6e6e6; font-size: 1.15rem; }
.sound__row[hidden] { display: none; }
.sound__row--range input { width: 120px; accent-color: var(--c-green); }
.sound__tog { min-width: 58px; padding: 3px 8px; cursor: pointer; font-family: var(--font-ui); font-size: .95rem; color: #fff; background: #5a1a1a; border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .2), inset -2px -2px 0 rgba(0, 0, 0, .35); }
.sound__tog.is-on { background: #1f6b1f; }
.sound__now { font-size: 1.05rem; color: #b8b8b8; border-top: 2px solid rgba(255, 255, 255, .08); padding-top: 8px; }
.sound__now b { font-weight: 400; color: #fff; }
/* the back-to-top button sits above the sound button */
.to-top { bottom: 78px; }

/* ---------- F3: one row on phones, name visible ---------- */
@media (max-width: 680px) {
  .f3 { bottom: 8px; left: 6px; }
  .f3__ore b { display: inline; }
  .f3__line { white-space: nowrap; }
}

/* ---------- sub page hero (store, mode) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(48px, 7vw, 80px); text-align: center; }
.page-hero .hero__sky { background: linear-gradient(180deg, #2c4fa8 0%, #4a76e8 55%, #7aa0ee 100%); }
.page-hero__inner { display: grid; gap: 10px; justify-items: center; max-width: 760px; }
.page-hero h1 { margin: 0; }
.section-more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- mode cards (home) ---------- */
.mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.mode-card {
  --mc: var(--c-green); position: relative; display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: inherit;
  background: rgba(0, 0, 0, .58); border: 3px solid #000; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08), 0 10px 0 -2px rgba(0, 0, 0, .3);
  transition: transform .35s var(--ease), box-shadow .35s;
}
a.mode-card:hover, a.mode-card:focus-visible { transform: translateY(-4px); box-shadow: inset 0 0 0 2px var(--mc), 0 14px 0 -2px rgba(0, 0, 0, .3); }
.mode-card__img { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 4px solid var(--mc); background: #111; }
.mode-card__img img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; transition: transform .6s var(--ease); }
a.mode-card:hover .mode-card__img img { transform: scale(1.04); }
.mode-card__body { display: grid; gap: 10px; padding: 16px 18px 18px; }
.mode-card__worlds { display: flex; flex-wrap: wrap; gap: 8px; }
.world-chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 8px; background: rgba(0, 0, 0, .45); border: 2px solid var(--mc); font-size: 1.1rem; }
.world-chip b { font-weight: 400; color: var(--mc); }
.world-chip span { color: #cfcfcf; }
.mode-card__more { justify-self: start; font-family: var(--font-ui); font-size: 1rem; color: var(--mc); text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }
.mode-card__more::after { content: " >"; }
.mode-card.is-soon { filter: grayscale(.85); opacity: .75; }
.mode-card__soon { position: absolute; top: 12px; left: 12px; padding: 3px 8px; font-family: var(--font-ui); font-size: .9rem; color: #3f3f15; background: var(--c-yellow); box-shadow: 2px 2px 0 #000; }
.mode-card .mode__name { color: var(--mc); }

/* ---------- mode page ---------- */
.mode-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-bottom: 28px; }
.mode-pick {
  --mc: var(--c-green); position: relative; display: grid; padding: 0; cursor: pointer; text-align: left; overflow: hidden;
  background: #111; border: 3px solid #000; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.mode-pick img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; image-rendering: auto; opacity: .7; transition: opacity .3s; }
.mode-pick__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(0, 0, 0, .75); border-top: 3px solid var(--mc); }
.mode-pick__cap b { font-family: var(--font-ui); font-weight: 700; font-size: 1.3rem; color: var(--mc); text-shadow: 2px 2px 0 rgba(0, 0, 0, .7); }
.mode-pick:hover, .mode-pick:focus-visible { transform: translateY(-3px); }
.mode-pick:hover img, .mode-pick.is-active img { opacity: 1; }
.mode-pick.is-active { box-shadow: inset 0 0 0 3px var(--mc), 0 0 0 3px var(--mc); }
.mode-pick.is-soon { cursor: not-allowed; filter: grayscale(.9); opacity: .6; }
.mode-pick.is-soon:hover { transform: none; }
.mode-pick__soon { font-size: 1rem; color: #3f3f15; background: var(--c-yellow); padding: 1px 6px; }

.mdet { --mc: var(--c-green); display: grid; gap: 20px; padding: clamp(16px, 3vw, 28px); background: rgba(0, 0, 0, .6); border: 3px solid #000; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08); }
.mdet__head { display: grid; gap: 8px; }
.mdet__name { font-family: var(--font-ui); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1; color: var(--mc); text-shadow: 3px 3px 0 rgba(0, 0, 0, .7); }
.mdet__tag { font-size: 1.35rem; color: #f2f2f2; max-width: 70ch; }
.mdet__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 20px; align-items: start; }
.mdet__grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.mdet__main { display: grid; gap: 14px; }
.mdet__main .mode__img { border: 3px solid #000; border-bottom: 4px solid var(--mc); }
.world-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 3px solid #000; }
.world-tab {
  --mc: var(--c-green); display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 18px 8px; margin-bottom: -3px; cursor: pointer;
  background: rgba(0, 0, 0, .45); border: 3px solid #000; border-bottom-color: transparent; color: #bbb; font-size: 1.15rem;
}
.world-tab b { font-family: var(--font-ui); font-weight: 700; font-size: 1.2rem; color: #ddd; }
.world-tab.is-active { background: rgba(255, 255, 255, .06); box-shadow: inset 0 3px 0 var(--mc); border-bottom-color: rgba(30, 30, 30, 1); }
.world-tab.is-active b { color: var(--mc); }
.world { --mc: var(--c-green); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
.world__img { aspect-ratio: 16 / 10; overflow: hidden; border: 3px solid #000; border-bottom: 4px solid var(--mc); background: #111; }
.world__img img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.world__body { display: grid; gap: 12px; min-width: 0; }
.world .mode__name { font-size: 1.7rem; }

/* commands: Minecraft tooltip style */
.cmdbox { padding: 10px 12px 12px; background: rgba(16, 0, 16, .94); border: 2px solid #28005e; box-shadow: inset 0 0 0 2px #2a0a4a, 0 0 0 2px #100010; }
.cmdbox__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.cmdbox__title { font-family: var(--font-ui); font-size: 1.15rem; color: var(--c-yellow); text-shadow: 2px 2px 0 #3f3f15; }
.cmdbox__hint { font-size: 1rem; color: #8a8a8a; }
.cmdbox__list { list-style: none; padding: 0; display: grid; gap: 2px; }
.cmdbox__cmd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; width: 100%; padding: 4px 6px; text-align: left; cursor: pointer; background: none; border: 0; }
.cmdbox__cmd:hover, .cmdbox__cmd:focus-visible { background: rgba(255, 255, 255, .07); }
.cmdbox__c { font-size: 1.22rem; color: var(--c-aqua); }
.cmdbox__d { font-size: 1.15rem; color: #c8c8c8; }
.cmdbox__cmd .cmdbox__d::before { content: "- "; color: #6a6a6a; }

/* ---------- store teaser (home) ---------- */
.store-teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text btn" "ranks ranks"; gap: 18px 24px; align-items: center; padding: clamp(18px, 3vw, 30px); }
.store-teaser__text { grid-area: text; display: grid; gap: 6px; }
.store-teaser .section-title { color: #3f3f3f; text-shadow: none; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.store-teaser .eyebrow { color: #7a5a00; text-shadow: none; }
.store-teaser__from { font-family: var(--font-ui); font-size: 1.1rem; color: #2a6a1a; }
.store-teaser__btn { grid-area: btn; }
.store-teaser__ranks { grid-area: ranks; display: flex; flex-wrap: wrap; gap: 6px; }
.rank-chip { padding: 2px 8px; font-family: var(--font-ui); font-size: .9rem; color: var(--rank); background: #2b2b2b; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .12), inset -2px -2px 0 rgba(0, 0, 0, .4); text-shadow: 1px 1px 0 #000; }
.shop__join { display: block; margin-top: 10px; text-align: center; font-size: 1.15rem; color: #3b4ed8; }
.shop__join[hidden] { display: none; }
@media (max-width: 760px) {
  .store-teaser { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "ranks" "btn"; }
  .store-teaser__btn { width: 100%; }
}

/* ---------- top donors ---------- */
.donors { list-style: none; padding: 0; display: grid; gap: 8px; }
.donor { display: grid; grid-template-columns: 48px 36px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 14px; background: rgba(0, 0, 0, .55); border: 3px solid #000; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06); }
.donor__rank { font-family: var(--font-ui); font-weight: 700; font-size: 1.3rem; color: #cfcfcf; text-shadow: 2px 2px 0 #000; }
.donor .mc-head { width: 32px; height: 32px; image-rendering: pixelated; }
.donor__text { display: grid; min-width: 0; }
.donor__text b { font-weight: 400; font-size: 1.3rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donor__text span { font-size: 1.05rem; color: #aaa; }
.donor--1 { box-shadow: inset 0 0 0 2px #ffd83d; } .donor--1 .donor__rank { color: #ffd83d; }
.donor--2 { box-shadow: inset 0 0 0 2px #d6d6d6; } .donor--2 .donor__rank { color: #e8e8e8; }
.donor--3 { box-shadow: inset 0 0 0 2px #d08a4a; } .donor--3 .donor__rank { color: #e0965a; }
.donors__empty { padding: 18px; text-align: center; color: #cfcfcf; background: rgba(0, 0, 0, .45); border: 3px dashed rgba(255, 255, 255, .15); }

/* ---------- team ---------- */
.team { display: grid; gap: 26px; }
.team__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.team__stats { display: flex; gap: 12px; }
.team__stat { display: grid; padding: 6px 14px; background: rgba(0, 0, 0, .55); border: 3px solid #000; min-width: 110px; }
.team__stat b { font-family: var(--font-ui); font-weight: 700; font-size: 1.6rem; color: #fff; text-shadow: 2px 2px 0 #000; }
.team__stat span { font-size: 1.05rem; color: #b5b5b5; }
.team__stat--on b { color: var(--c-green); }
.team__filter { display: flex; flex-wrap: wrap; gap: 6px; }
.team__filter .mc-btn.is-active { color: var(--c-yellow); border-color: var(--c-yellow); }
.team__group { display: grid; gap: 12px; }
.team__role { display: flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-weight: 700; font-size: 1.35rem; color: #fff; text-shadow: 2px 2px 0 #000; }
.team__role img { width: 24px; height: 24px; image-rendering: pixelated; }
.team__count { padding: 0 7px; font-size: 1rem; color: #3f3f15; background: var(--c-yellow); text-shadow: none; }
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.tcard { position: relative; display: grid; justify-items: center; gap: 4px; padding: 18px 12px 14px; text-align: center; background: rgba(0, 0, 0, .55); border: 3px solid #000; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06); min-width: 0; }
.tcard__face { width: 64px; height: 64px; display: grid; place-items: center; background: var(--slot); box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #fff; margin-bottom: 4px; }
.tcard__face .mc-head { width: 48px; height: 48px; image-rendering: pixelated; }
.tcard__name { font-weight: 400; font-size: 1.3rem; color: #fff; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard__role { font-size: 1.05rem; color: var(--c-yellow); }
.tcard__note { font-size: 1.05rem; color: #bdbdbd; }
.tcard__link { font-size: 1.05rem; color: var(--c-aqua); }
.tcard__badge { position: absolute; top: 6px; right: 6px; padding: 1px 6px; font-family: var(--font-ui); font-size: .82rem; color: #fff; border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .25); }
.tcard__badge--on { background: #1f9a1f; }
.tcard__badge--off { background: #a32020; }
.tcard__badge--unknown { background: #5a5a5a; }

/* ---------- misc ---------- */
.pn-langnote { margin: -10px 0 16px; text-align: center; font-size: 1.1rem; color: #b8b8b8; }
@media (max-width: 900px) {
  .mdet__grid, .world { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .world-tab { padding: 8px 12px 6px; flex: 1 1 auto; justify-content: center; }
  .team__stat { min-width: 0; flex: 1; }
  .team__stats { width: 100%; }
  .sound { right: 12px; bottom: 12px; }
  .to-top { right: 12px; bottom: 70px; }
  .sound__panel { width: min(250px, calc(100vw - 24px)); }
}
/* color classes must win over the defaults set on the cards above */
.mode--green { --mc: #55ff55; } .mode--orange { --mc: #ffaa00; } .mode--yellow { --mc: #ffff55; }
.mode--aqua { --mc: #55ffff; } .mode--red { --mc: #ff5555; } .mode--purple { --mc: #ff55ff; } .mode--gray { --mc: #aaaaaa; }
