/* ============================================================
   EnchantedMC · „Poiana fermecată" · redesign demo
   Palette extracted from the live brand (see DESIGN.md)
   ============================================================ */

:root {
  --gold: #FFCB3D;
  --sun: #EE9000; /* sampled from the logo's sun rays */
  --gold-deep: #C9940A;
  --gold-ink: #4A2F00;
  --orange: #FF6B2E;
  --orange-ink: #571C00;
  --bg: #14100B;
  --bg-deep: #0D0A06;
  --panel: #221B12;
  --panel-2: #2A2217;
  --discord: #5865F2;
  --discord-dark: #3B48D4;
  --text: #D8D2C6;
  --text-dim: #A29A8A;
  --white: #FFFFFF;
  --line: rgba(255, 203, 61, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-btn: cubic-bezier(0.32, 0.72, 0, 1);
  --bevel: inset 0 2px 0 rgba(255, 255, 255, 0.32), inset 2px 0 0 rgba(255, 255, 255, 0.14), inset 0 -3px 0 rgba(0, 0, 0, 0.3), inset -2px 0 0 rgba(0, 0, 0, 0.14);
  --bevel-soft: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 2px 0 0 rgba(255, 255, 255, 0.06), inset 0 -3px 0 rgba(0, 0, 0, 0.32), inset -2px 0 0 rgba(0, 0, 0, 0.16);
  --container: 1240px;
  --nav-h: 72px;
  --font-px: "Jersey 10", "Montserrat", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--gold-ink); }

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:is(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

section { padding-block: clamp(72px, 10vw, 128px); }

/* ---------- Type voice: bold italic uppercase (their brand voice) ---------- */
.kicker {
  display: inline-block;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 14px;
}
h1, h2, h3, h4 {
  color: var(--white);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
.lead { max-width: 62ch; color: var(--text); margin-top: 16px; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons · Minecraft blocky style, same language as the navbar ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 4px;
  border: 2px solid #140D05;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 14.5px;
  letter-spacing: 0.03em;
  box-shadow: var(--bevel), 0 3px 0 #140D05;
  transition: filter 0.2s, transform 0.2s var(--ease-btn), box-shadow 0.2s var(--ease-btn);
  will-change: transform;
}
.pill:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--bevel), 0 4px 0 #140D05; }
.pill:active { transform: translateY(2px); box-shadow: var(--bevel), 0 1px 0 #140D05; }
.pill-sun {
  background: linear-gradient(180deg, #FFD968, #F5B91E);
  color: var(--gold-ink);
}
.pill-yellow {
  background: linear-gradient(180deg, #FF9A5C, #F55E1E);
  color: var(--orange-ink);
}
.pill-discord {
  background: linear-gradient(180deg, #6875F5, #4E5BE4);
  color: var(--white);
}
.pill-ghost {
  background: linear-gradient(180deg, #33291B, #221B12);
  color: var(--white);
  box-shadow: var(--bevel-soft), 0 3px 0 #140D05;
}
.pill-ghost:hover { box-shadow: var(--bevel-soft), 0 4px 0 #140D05; }
.pill-ghost:active { box-shadow: var(--bevel-soft), 0 1px 0 #140D05; }
.pill svg { width: 17px; height: 17px; flex: none; }

.count-chip {
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 2px 9px;
  font-style: normal;
  letter-spacing: 0.02em;
}

/* ============================================================
   Navbar · AppleMC reference: translucent dark, icon + label
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.25s, backdrop-filter 0.25s;
}
.nav.solid {
  background: rgba(18, 13, 8, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav-inner {
  width: 100%;
  height: 100%;
  padding-inline: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
/* brand · their sun logo, cut out on transparency */
.nav-brand {
  display: flex;
  flex: none;
  transition: transform 0.2s var(--ease-btn);
}
.nav-brand img {
  width: auto;
  height: 40px;
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.45));
}
.nav-brand:hover { transform: translateY(-1px); }
.nav-brand:hover img { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 0 10px rgba(255, 203, 61, 0.4)); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 12px);
}
/* links as MC blocky buttons · same language as the IP + Discord buttons */
.nav-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 24px;
  border-radius: 3px;
  border: 2px solid #140D05;
  background: linear-gradient(180deg, #33291B, #221B12);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-px);
  font-weight: 400;
  font-style: normal;
  font-size: 21px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--bevel-soft), 0 3px 0 #140D05;
  transition: filter 0.2s, color 0.25s, border-color 0.25s,
              transform 0.2s var(--ease-btn), box-shadow 0.2s var(--ease-btn);
  white-space: nowrap;
}
.nav-links a svg { width: 16px; height: 16px; flex: none; }
.nav-logo {
  width: auto;
  height: 21px;
  flex: none;
  transition: transform 0.3s var(--ease-btn);
}
.nav-home:hover .nav-logo { transform: scale(1.08); }
.nav-links a:hover {
  color: var(--gold);
  border-color: rgba(255, 203, 61, 0.5);
  background: linear-gradient(180deg, #3C2F1A, #272012);
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: var(--bevel-soft), 0 4px 0 #140D05, 0 0 12px rgba(255, 203, 61, 0.22);
}
.nav-links a:active { transform: translateY(2px); box-shadow: var(--bevel-soft), 0 1px 0 #140D05; }
.nav-links a.active {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: var(--bevel-soft), 0 3px 0 #140D05, 0 0 14px rgba(255, 203, 61, 0.3);
}
.nav-links a.active svg { color: var(--gold); }

.nav-edge { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Minecraft-style blocky buttons: dark outline + pixel bevel (light top, shaded bottom) */
.mc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 3px;
  border: 2px solid #140D05;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 9px 15px;
  box-shadow: var(--bevel), 0 3px 0 #140D05;
  transition: filter 0.2s, transform 0.2s var(--ease-btn), box-shadow 0.2s var(--ease-btn);
}
.mc-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--bevel), 0 4px 0 #140D05; }
.mc-btn:active { transform: translateY(2px); box-shadow: var(--bevel), 0 1px 0 #140D05; }
.mc-sun {
  background: linear-gradient(180deg, #FFD968, #F5B91E);
  color: var(--gold-ink);
}
.mc-sun .count-chip { background: rgba(74, 47, 0, 0.28); color: #FFFFFF; }
.mc-dark {
  background: linear-gradient(180deg, #33291B, #221B12);
  color: var(--gold);
}
.mc-dark .count-chip { background: rgba(255, 203, 61, 0.18); color: var(--gold); }
.mc-dark:hover {
  border-color: rgba(255, 203, 61, 0.5);
  box-shadow: var(--bevel), 0 4px 0 #140D05, 0 0 12px rgba(255, 203, 61, 0.22);
}

.nav-ip { gap: 8px; padding-left: 13px; }
.nav-ip svg { width: 15px; height: 15px; flex: none; }
.nav-discord svg { width: 19px; height: 19px; flex: none; }

.nav-burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 2px solid var(--line-soft);
  place-items: center;
  color: var(--white);
}
.nav-burger svg { width: 20px; height: 20px; }

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; order: 1; }
  .nav-brand { order: 2; }
  .nav-edge { order: 3; margin-left: auto; }
}
@media (max-width: 560px) {
  .nav-ip .nav-ip-text { display: none; }
  .nav-ip { padding: 9px 13px; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  height: 100dvh;
  width: min(320px, 84vw);
  z-index: 150;
  background: var(--bg-deep);
  border-right: 1px solid var(--line);
  padding: 26px 22px;
  transform: translateX(-105%);
  transition: transform 0.45s var(--ease-out);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.drawer-head img { width: 44px; height: auto; }
.drawer-brand { display: flex; align-items: center; gap: 12px; }
.drawer-brand span {
  font-family: "Jersey 10", "Montserrat", sans-serif;
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--white);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
  transform: translateY(-2px);
}
.drawer-close {
  width: 40px; height: 40px; border-radius: 10px;
  border: 2px solid var(--line-soft);
  display: grid; place-items: center; color: var(--white);
}
.drawer ul { list-style: none; display: grid; gap: 4px; }
.drawer ul a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  font-size: 15.5px;
}
.drawer ul a svg { width: 17px; height: 17px; color: var(--gold); }
.drawer ul a:hover, .drawer ul a.active { background: var(--panel); color: var(--white); }
.scrim {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(5, 7, 12, 0.6);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.scrim.show { opacity: 1; visibility: visible; }

/* ============================================================
   Hero · the AppleMC entrance
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.hero-bg, .hero-bg picture, .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg img {
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
  transition: transform 2.4s var(--ease-out);
  filter: brightness(0.9);
}
.hero.loaded .hero-bg img { transform: scale(1.015); }
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 46% at 50% 46%, rgba(255, 203, 61, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(18, 13, 8, 0.62) 0%, rgba(18, 13, 8, 0.3) 30%, rgba(20, 16, 11, 0.4) 62%, var(--bg) 97%);
}
#sparks { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  padding: calc(var(--nav-h) + clamp(16px, 4vh, 48px)) clamp(20px, 4vw, 48px) 24px;
  max-width: 1400px;
  margin-inline: auto;
  width: 100%;
}

/* the floating logo · never scaled past its native 477px so it stays crisp */
.hero-logo {
  flex: none;
  width: min(430px, 60vw);
  opacity: 0;
  transform: translateY(26px) scale(0.94);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.hero-logo img { width: 100%; height: auto; }
.hero.loaded .hero-logo { opacity: 1; transform: none; }
.hero.loaded .hero-logo img { animation: logoFloat 3.4s ease-in-out 0.9s infinite; }
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(9px); }
}

/* MC info slabs flanking the hero logo */
.hero-side {
  flex: none;
  display: grid;
  gap: 14px;
  min-width: 236px;
  padding: 18px 22px;
  background: rgba(18, 13, 8, 0.78);
  border: 2px solid #140D05;
  box-shadow: var(--bevel-soft);
  text-align: left;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out) 0.35s, transform 0.8s var(--ease-out) 0.35s;
}
.side-left { transform: translateX(-26px); }
.side-right { transform: translateX(26px); }
.hero.loaded .hero-side { opacity: 1; transform: none; }
.hs-row { display: grid; gap: 3px; padding: 0; text-align: left; }
.hs-label {
  font-family: var(--font-px);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hs-value {
  font-family: var(--font-px);
  font-size: 24px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7);
}
.hs-value svg { width: 13px; height: 13px; vertical-align: -1px; color: var(--text-dim); }
.hs-copy { cursor: pointer; transition: filter 0.2s; }
.hs-copy:hover { filter: brightness(1.18); }
.hs-copy:hover .hs-value svg { color: var(--gold); }

.hero-cue {
  position: relative;
  z-index: 2;
  justify-self: center;
  padding-bottom: 26px;
  color: rgba(255, 255, 255, 0.5);
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0;
  transition: opacity 1s 1.1s;
}
.hero.loaded .hero-cue { opacity: 1; }
.hero-cue svg { width: 14px; height: 14px; animation: cueBob 1.8s ease-in-out infinite; }
@keyframes cueBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 980px) {
  .hero-stage { flex-direction: column; gap: 22px; }
  .hero-logo { order: -1; width: min(380px, 72vw); }
  .hero-side { transform: translateY(16px); min-width: min(320px, 82vw); }
}

/* ============================================================
   Page hero · compact banner (store page)
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(48px, 7vw, 80px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero-bg, .page-hero-bg picture, .page-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.page-hero-bg img { object-fit: cover; object-position: center 30%; }
.page-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 80% at 50% 30%, rgba(255, 203, 61, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(18, 13, 8, 0.72) 0%, rgba(30, 21, 44, 0.55) 55%, var(--bg) 98%);
}
.page-hero-inner { text-align: center; }
/* Sub-page banner · the artwork carries the wordmark, so no big title over it,
   only the page-name sub. Banner area starts below the fixed nav, otherwise the
   wordmark top hides behind it. */
.ph-banner { padding: var(--nav-h) 0 0; }
.ph-banner .page-hero-bg { top: var(--nav-h); height: calc(100% - var(--nav-h)); }
.ph-banner .page-hero-veil { top: var(--nav-h); }
/* Desktop: artwork runs up BEHIND the transparent navbar (anchored to the image
   top, so the wordmark stays below the nav zone). On mobile the cover-crop would
   eat the wordmark edges, so there the banner keeps starting below the nav. */
@media (min-width: 900px) {
  .ph-banner .page-hero-bg { top: 0; height: 100%; }
  .ph-banner .page-hero-veil { top: 0; }
  .ph-banner .page-hero-bg img { object-position: center top; }
}
.ph-banner .page-hero-inner {
  min-height: clamp(180px, 24vw, 440px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: clamp(14px, 2.6vw, 28px);
}
.ph-banner .page-hero-bg img {
  object-position: center 40%;
  filter: brightness(0.78) saturate(0.88);
}
.ph-banner .page-hero-veil {
  background: linear-gradient(180deg,
    rgba(18, 13, 8, 0.6) 0%,
    rgba(18, 13, 8, 0.3) 30%,
    rgba(18, 13, 8, 0.36) 62%,
    var(--bg) 99%);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.page-hero .lead { margin-inline: auto; }
.page-hero .lead code {
  font-family: inherit;
  font-weight: 800;
  color: var(--orange);
  font-style: italic;
}

/* Logo-style lettering · chunky pink 3D like their wordmark.
   Base text (shifted down) = the dark extrusion; ::after carries the gradient fill on top. */
.logo-type, .logo-sub {
  position: relative;
  display: block;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.logo-type::after, .logo-sub::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
.logo-type {
  font-size: clamp(42px, 6.5vw, 78px);
  color: #5C3D0A;
  -webkit-text-stroke: 0.09em #5C3D0A;
  transform: translate(0.03em, 0.05em);
}
.logo-type::after {
  transform: translate(-0.03em, -0.05em);
  background-image: linear-gradient(180deg, #FFE896 6%, #FFCB3D 46%, #F5A81E 68%, #C9940A 96%);
  -webkit-text-stroke: 1px rgba(74, 47, 0, 0.55);
}
.logo-sub {
  margin-top: 12px;
  font-size: clamp(19px, 2.6vw, 30px);
  letter-spacing: 0.06em;
  color: #571C00;
  -webkit-text-stroke: 0.09em #571C00;
  transform: translate(0.035em, 0.06em);
}
.logo-sub::after {
  transform: translate(-0.035em, -0.06em);
  background-image: linear-gradient(180deg, #FFCFA8 8%, #FF6B2E 52%, #D9481A 96%);
  -webkit-text-stroke: 1px rgba(87, 28, 0, 0.5);
}

/* ============================================================
   Patch notes (index)
   ============================================================ */
.patch-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
  align-items: stretch;
}
@media (max-width: 900px) { .patch-grid { grid-template-columns: 1fr; } }
.patch-grid .news-card { margin: 0; max-width: none; min-height: 380px; }
.patch-tag {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--gold);
  color: var(--gold-ink);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 3px 3px 0 0 var(--gold-deep);
}
.patch-list {
  display: grid;
  gap: 10px;
  align-content: start;
}
.patch-row {
  display: grid;
  gap: 2px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 15px 18px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.05), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.patch-row:hover { transform: translateY(-3px); border-color: rgba(255, 203, 61, 0.4); }
.patch-row time {
  font-size: 11.5px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
}
.patch-title {
  color: var(--white);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 15.5px;
}
.patch-sub { color: var(--text-dim); font-size: 13.5px; }
.patch-more { justify-self: start; margin-top: 6px; }

/* ============================================================
   Server info (index)
   ============================================================ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
}
/* MC inventory-slot treatment: squarer corners + quiet inner bevel */
.info-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 26px 24px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.05), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.45s var(--ease-out), border-color 0.35s;
}
.info-card:hover { transform: translateY(-4px); border-color: rgba(255, 203, 61, 0.35); }
.info-card h3 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.h3-gem { flex: none; }
.info-card p { font-size: 15px; }
.info-card .cmd {
  font-family: inherit;
  font-weight: 800;
  font-style: italic;
  color: var(--orange);
}
.join-steps {
  list-style: none;
  display: grid;
  gap: 14px;
}
.join-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px 12px;
  font-size: 14.5px;
  color: var(--text);
}
.join-steps li .ip-inline { grid-column: 2; justify-self: start; }
.step-num {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 14px;
  box-shadow: 2px 2px 0 0 var(--gold-deep);
}
.ip-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 5px 11px;
  color: var(--white);
  font-weight: 800;
  font-style: italic;
  font-size: 13.5px;
  transition: border-color 0.25s;
}
.ip-inline:hover { border-color: var(--gold); }
.ip-inline svg { width: 12px; height: 12px; color: var(--text-dim); }
.fact-list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.fact-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 11px;
}
.fact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-list span { color: var(--text-dim); font-weight: 700; text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.08em; }
.fact-list strong { color: var(--white); font-size: 14px; text-align: right; }
.fact-list a { font-weight: 700; font-size: 14px; }
.info-gem { margin-block: 10px 16px; }

/* ============================================================
   Store · integrated Tebex
   ============================================================ */
.store { background: var(--bg); position: relative; }
.store-head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.store-head .lead { margin-inline: auto; }
.store-head .lead code {
  font-family: inherit;
  font-weight: 800;
  color: var(--orange);
  font-style: italic;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin-inline: auto;
}
.pack {
  position: relative;
  cursor: pointer;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 30px 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.05), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.45s var(--ease-out), border-color 0.35s, box-shadow 0.45s var(--ease-out);
  will-change: transform;
}
.pack-buy { flex: none; }
.pack:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 203, 61, 0.4);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.05), inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 22px 44px -18px rgba(201, 148, 10, 0.45);
}
.pack-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.pack-badge.seller { background: var(--gold); color: var(--gold-ink); box-shadow: 3px 3px 0 0 var(--gold-deep); }
.pack-badge.value { background: var(--orange); color: var(--orange-ink); box-shadow: 3px 3px 0 0 #C24A10; }
.pack-badge.new { background: var(--white); color: #1A1E2B; box-shadow: 3px 3px 0 0 #9BA3B8; }

.pack-gem { height: 84px; display: grid; place-items: center; margin-bottom: 8px; }
.pack-gem svg, .pack-gem img { filter: drop-shadow(0 8px 18px rgba(201, 148, 10, 0.5)); transition: transform 0.45s var(--ease-out); }
.pack-gem img { height: 84px; width: auto; }
.pack:hover .pack-gem svg, .pack:hover .pack-gem img { transform: translateY(-4px) scale(1.06); }

.pack-bonus {
  background: var(--orange);
  color: var(--orange-ink);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
}
.pack-amount {
  color: var(--white);
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 800;
  font-style: italic;
}
.pack-old {
  color: var(--text-dim);
  text-decoration: line-through;
  font-size: 13.5px;
  font-weight: 700;
}
.pack-buy {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  padding: 12px 10px;
  font-size: 15px;
}
.pack-buy .num { font-style: normal; }
.pack.in-cart .pack-buy {
  background: linear-gradient(180deg, #33291B, #221B12);
  color: var(--gold);
  box-shadow: var(--bevel-soft), 0 3px 0 #140D05;
}

.store-note {
  text-align: center;
  margin-top: 34px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.store-note svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; color: var(--gold); }

/* store FAQ */
.store-faq {
  max-width: 760px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.05), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 14.5px;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--gold);
  transition: transform 0.3s;
  font-style: normal;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; font-size: 15px; color: var(--text); }
.faq-item a { font-weight: 700; }

/* ---------- Cart FAB ---------- */
.cart-fab {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 120;
  width: 60px; height: 60px;
  border-radius: 6px;
  border: 2px solid #140D05;
  background: linear-gradient(180deg, #FFD968, #F5B91E);
  color: var(--gold-ink);
  box-shadow: var(--bevel), 0 3px 0 #140D05;
  display: grid;
  place-items: center;
  transition: filter 0.2s, transform 0.2s var(--ease-btn), box-shadow 0.2s var(--ease-btn), opacity 0.4s, visibility 0.4s;
}
.cart-fab:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: var(--bevel), 0 4px 0 #140D05; }
.cart-fab:active { transform: translateY(2px); box-shadow: var(--bevel), 0 1px 0 #140D05; }
.cart-fab svg { width: 24px; height: 24px; }
.cart-fab[data-count="0"] { opacity: 0; visibility: hidden; }
.cart-count {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--orange-ink);
  font-size: 12.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding-inline: 6px;
  border: 2px solid var(--bg);
}
.cart-fab.bump { animation: bump 0.45s var(--ease-out); }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

/* ---------- Cart drawer ---------- */
.cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  height: 100dvh;
  width: min(420px, 94vw);
  z-index: 160;
  background: var(--bg-deep);
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  transition: transform 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.cart.open { transform: translateX(0); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-head h3 { font-size: 18px; }
.cart-items { flex: 1; overflow-y: auto; padding: 18px 24px; display: grid; gap: 12px; align-content: start; }
.cart-empty { text-align: center; color: var(--text-dim); padding: 40px 0; font-size: 15px; }
.cart-row {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 13px 15px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.05), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}
.cart-row .gem { flex: none; width: 34px; height: 34px; object-fit: contain; }
.cart-row .info { flex: 1; min-width: 0; }
.cart-row .name { color: var(--white); font-weight: 800; font-style: italic; font-size: 14.5px; text-transform: uppercase; }
.cart-row .price { font-size: 13px; color: var(--text-dim); font-weight: 700; }
.qty {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border-radius: 999px;
  padding: 3px;
}
.qty button {
  width: 26px; height: 26px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: background 0.2s;
}
.qty button:hover { background: var(--gold); color: var(--gold-ink); }
.qty .q { min-width: 22px; text-align: center; font-weight: 800; color: var(--white); font-size: 14px; }

.cart-user { padding: 0 24px 6px; }
.cart-user label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.user-row { display: flex; gap: 10px; align-items: center; }
.user-row img {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--panel);
  image-rendering: pixelated;
}
.user-row input {
  flex: 1;
  background: var(--panel);
  border: 2px solid var(--line-soft);
  border-radius: 12px;
  padding: 11px 15px;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s;
  min-width: 0;
}
.user-row input:focus { border-color: var(--gold); }
.edition {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.edition button {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  background: var(--panel);
  color: var(--text-dim);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 12.5px;
  border: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.edition button.on { border-color: var(--gold); color: var(--white); }

.cart-foot {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 13px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--white);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}
.cart-total .num { font-size: 24px; }
.cart-checkout { width: 100%; justify-content: center; font-size: 16px; padding: 15px; }
.cart-secure {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}
.cart-secure svg { width: 11px; height: 11px; vertical-align: -1px; margin-right: 4px; }

/* ---------- Checkout modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 6, 3, 0.65);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s, visibility 0.35s;
}
.modal.show { visibility: visible; opacity: 1; }
.modal-card {
  position: relative;
  width: min(460px, 100%);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.05), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  padding: 30px 28px;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.4s var(--ease-out);
  max-height: 86dvh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #4A3821 transparent;
}
.modal.show .modal-card { transform: none; }
/* page scroll locked while a modal is open · gutter stays reserved, no layout jump */
html.modal-open { overflow: hidden; scrollbar-gutter: stable; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  border: 1px solid var(--line-soft);
}
.modal-close:hover { color: var(--white); }
.modal-card h3 { margin-bottom: 6px; font-size: 20px; }
.modal-card .sub { font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
.demo-strip {
  background: rgba(255, 226, 58, 0.1);
  border: 1px solid rgba(255, 226, 58, 0.35);
  color: #F5DC6B;
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-top: 16px;
}
/* Pack details modal */
.pack-modal-card { width: min(560px, 100%); }
.pm-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 8px; }
.pm-hero img { height: 120px; width: auto; filter: drop-shadow(0 10px 22px rgba(201, 148, 10, 0.5)); }
.pm-hero .pack-amount { font-size: clamp(26px, 2.6vw, 32px); }
.pm-price { color: var(--gold); font-size: 20px; font-weight: 800; }
.pm-limit { color: var(--text-dim); font-size: 12.5px; }
.pm-desc {
  margin-top: 20px;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  overflow-wrap: anywhere;
}
.pm-desc p { margin-bottom: 10px; }
.pm-desc p:last-child { margin-bottom: 0; }
.pm-desc img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin-inline: auto; }
.pm-desc strong { color: var(--white); }

.modal-summary { display: grid; gap: 8px; margin-block: 8px 0; }
.modal-summary .line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.modal-summary .line.total {
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
  margin-top: 4px;
  color: var(--white);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}

/* ============================================================
   Gamemodes
   ============================================================ */
.modes { background: var(--bg); }

/* ---------- Realms showcase · media left, info + arrows right ---------- */
.realm-show {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(26px, 3.5vw, 48px);
  align-items: center;
}
.realm-card {
  position: relative;
  width: min(100%, 440px);
  margin-inline: 0 auto;
  aspect-ratio: 5 / 7;
  background: var(--panel);
  border: 3px solid #3A2C18;
  box-shadow: var(--bevel-soft), 0 34px 64px -30px rgba(0, 0, 0, 0.9);
  isolation: isolate;
  overflow: hidden;
}

.realm-art { position: absolute; inset: 0; opacity: 0; transition: opacity 0.55s ease-out; }
.realm-art.is-active { opacity: 1; }
.realm-art .art-bg, .realm-art .art-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.realm-art .art-bg img { object-fit: cover; }
.art-gens .art-bg img { object-position: 86% 58%; }
.art-prison .art-bg img { object-position: 12% 66%; filter: saturate(0.45) hue-rotate(-14deg) brightness(1.04) contrast(1.02); }

/* Dungeons · Runway fire loop + hero-style sun sparks overlay */
.art-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
/* prison video is wider than the card · keep the torch (right side) in frame */
.art-prison .art-video { object-position: 76% 50%; }
.card-sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }

.art-tint { position: absolute; inset: 0; z-index: 1; }
.art-gens .art-tint {
  background:
    radial-gradient(70% 45% at 50% 76%, rgba(255, 203, 61, 0.3), transparent 70%),
    linear-gradient(185deg, rgba(30, 20, 2, 0.16), rgba(34, 20, 2, 0.58) 90%);
}
.art-prison .art-tint { background: linear-gradient(185deg, rgba(4, 10, 22, 0.22), rgba(4, 10, 22, 0.56) 90%); }

.art-scene { position: absolute; inset: 0; z-index: 3; }

/* Prison · bars in front of the scene */
.art-bars {
  position: absolute; inset: 0; z-index: 5;
  background: repeating-linear-gradient(90deg, rgba(7, 10, 16, 0.88) 0 9px, rgba(30, 40, 56, 0.35) 9px 10px, transparent 10px 36px);
}

/* frame + label */
.realm-frame {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(255, 203, 61, 0.3);
  background-image:
    linear-gradient(var(--gold) 0 0), linear-gradient(var(--gold) 0 0),
    linear-gradient(var(--gold) 0 0), linear-gradient(var(--gold) 0 0),
    linear-gradient(var(--gold) 0 0), linear-gradient(var(--gold) 0 0),
    linear-gradient(var(--gold) 0 0), linear-gradient(var(--gold) 0 0);
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  background-size: 20px 4px, 4px 20px, 20px 4px, 4px 20px, 20px 4px, 4px 20px, 20px 4px, 4px 20px;
  background-repeat: no-repeat;
}
/* the info side */
.realm-copy .kicker { margin-bottom: 10px; }
.realm-title {
  font-size: clamp(64px, 8.5vw, 124px);
  line-height: 0.95;
  color: var(--gold);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}
.realm-copy .lead { margin-top: 16px; font-size: clamp(17px, 1.5vw, 19.5px); max-width: 58ch; }
.realm-panel {
  margin-top: 30px;
  border: 3px solid #3A2C18;
  background: var(--bg);
  padding: 24px 28px;
}
.realm-cap { display: none; min-height: 196px; }
.realm-cap.is-active { display: block; }
.realm-cap .mini-kicker { font-size: 15px; color: var(--text-dim); }
.realm-cap h3 { color: var(--gold); font-size: 34px; margin: 10px 0 10px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55); }
.realm-cap p { font-size: 16.5px; }
.realm-cap .mode-feats { margin-top: 16px; }
.realm-nav { display: flex; gap: 12px; margin-top: 24px; }
.realm-arrow { padding: 12px 16px; }
.realm-arrow svg { width: 19px; height: 19px; display: block; }

@media (max-width: 900px) {
  .realm-show { grid-template-columns: 1fr; }
  .realm-card { width: min(100%, 340px); }
  .realm-cap { min-height: 0; }
}


.mode-feats {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
/* MC blocky chips · same language as the nav buttons */
.mode-feats li {
  display: flex;
  align-items: center;
  padding: 6px 15px;
  border-radius: 3px;
  border: 2px solid #140D05;
  background: linear-gradient(180deg, #33291B, #221B12);
  box-shadow: var(--bevel-soft), 0 2px 0 #140D05;
  font-family: var(--font-px);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  cursor: default;
  user-select: none;
  transition: color 0.25s, border-color 0.25s, background 0.25s,
              transform 0.2s var(--ease-btn), box-shadow 0.2s var(--ease-btn);
}
.mode-feats li:hover {
  color: var(--gold);
  border-color: rgba(255, 203, 61, 0.45);
  background: linear-gradient(180deg, #3C2F1A, #272012);
  transform: translateY(-1px);
  box-shadow: var(--bevel-soft), 0 3px 0 #140D05, 0 0 10px rgba(255, 203, 61, 0.18);
}

/* ============================================================
   News
   ============================================================ */
.news { background: var(--bg); }
.news-card {
  position: relative;
  max-width: 860px;
  margin: clamp(36px, 5vw, 52px) auto 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  display: grid;
  min-height: 320px;
  align-content: end;
  padding: 30px;
  isolation: isolate;
  transition: transform 0.45s var(--ease-out), border-color 0.35s;
}
.news-card:hover { transform: translateY(-6px); border-color: rgba(255, 203, 61, 0.4); }
.news-card .mode-bg img { object-fit: cover; }
.news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(190deg, rgba(18, 13, 8, 0.05) 35%, rgba(18, 13, 8, 0.92) 85%);
}
.news-card time {
  font-size: 12.5px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
}
.news-card h3 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 6px; color: var(--white); }
.news-card p { margin-top: 8px; max-width: 60ch; font-size: 15px; color: var(--text); }
.news-card .more {
  margin-top: 14px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 13.5px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.news-card .more svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-btn); }
.news-card:hover .more svg { transform: translateX(4px); }
.news-cta { text-align: center; margin-top: 30px; }

/* ============================================================
   Discord band
   ============================================================ */
.discord-band { background: var(--bg); }
.reveal.in.logo-type { transform: translate(0.03em, 0.05em); }
.pill-sun .count-chip { background: rgba(74, 47, 0, 0.28); color: var(--white); }

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(48px, 6vw, 72px);
  font-size: 15px;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
.foot-grid h5 {
  color: var(--white);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.foot-grid p { color: var(--text-dim); font-size: 14.5px; }
.foot-disclaimer {
  border-top: 1px solid var(--line-soft);
  padding-block: 18px 22px;
  color: var(--text-dim);
  opacity: 0.75;
  font-size: 12.5px;
  text-align: center;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.foot-brand h5 { margin-bottom: 0; }
.foot-logo {
  width: 46px;
  height: auto;
  flex: none;
  filter: drop-shadow(0 4px 10px rgba(201, 148, 10, 0.35));
}
.foot-banner {
  display: block;
  margin-top: 16px;
  width: 100%;
  max-width: 320px;
  height: auto;
  border: 2px solid #140D05;
  box-shadow: var(--bevel-soft), 0 3px 0 #140D05;
}
.foot-social { display: grid; gap: 10px; justify-items: start; }
/* MC blocky footer buttons · same language as the navbar */
.foot-social a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 3px;
  border: 2px solid #140D05;
  background: linear-gradient(180deg, #33291B, #221B12);
  box-shadow: var(--bevel-soft), 0 3px 0 #140D05;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-px);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.03em;
  transition: color 0.25s, border-color 0.25s, filter 0.2s,
              transform 0.2s var(--ease-btn), box-shadow 0.2s var(--ease-btn);
}
.foot-social a:hover {
  color: var(--gold);
  border-color: rgba(255, 203, 61, 0.5);
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: var(--bevel-soft), 0 4px 0 #140D05, 0 0 12px rgba(255, 203, 61, 0.2);
}
.foot-social a:active { transform: translateY(2px); box-shadow: var(--bevel-soft), 0 1px 0 #140D05; }
.foot-social svg { width: 18px; height: 18px; flex: none; color: var(--gold); }
/* Explore · quiet sitemap links in a 2-col grid (a 6-button ladder read too heavy) */
.foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px 30px;
  justify-items: start;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-px);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.03em;
  transition: color 0.2s, transform 0.2s var(--ease-btn);
}
.foot-links svg { width: 17px; height: 17px; flex: none; color: rgba(255, 203, 61, 0.6); transition: color 0.2s; }
.foot-links a:hover { color: var(--gold); transform: translateX(2px); }
.foot-links a:hover svg { color: var(--gold); }
.foot-ip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 3px;
  border: 2px solid #140D05;
  background: linear-gradient(180deg, #33291B, #221B12);
  box-shadow: var(--bevel-soft), 0 3px 0 #140D05;
  padding: 11px 18px;
  color: var(--white);
  font-family: var(--font-px);
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, filter 0.2s,
              transform 0.2s var(--ease-btn), box-shadow 0.2s var(--ease-btn);
  margin-top: 12px;
}
.foot-ip:hover {
  color: var(--gold);
  border-color: rgba(255, 203, 61, 0.5);
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: var(--bevel-soft), 0 4px 0 #140D05, 0 0 12px rgba(255, 203, 61, 0.2);
}
.foot-ip:active { transform: translateY(2px); box-shadow: var(--bevel-soft), 0 1px 0 #140D05; }
.foot-ip svg { width: 15px; height: 15px; color: var(--text-dim); }
.foot-legal {
  border-top: 1px solid var(--line-soft);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

/* ============================================================
   MC GUI devices · notched panels, XP-bar divider, ghost type,
   Sunbits showcase (dawn.gg-style mechanics, SunRealms skin)
   ============================================================ */
/* pixel-notched corners · the MC tooltip/slot silhouette */
.mc-frame, .info-card, .pack, .hero-pack, .faq-item, .pack-chip, .sun-visual, .sun-note-panel, .realm-panel, .social-card, .ann-card, .mc-card, .hero-side {
  border-radius: 0;
  clip-path: polygon(
    0 10px, 10px 10px, 10px 0,
    calc(100% - 10px) 0, calc(100% - 10px) 10px, 100% 10px,
    100% calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 100%,
    10px 100%, 10px calc(100% - 10px), 0 calc(100% - 10px));
}
.info-card, .faq-item { border-width: 2px; border-color: #3A2C18; }

/* stone-button cracks · tiny pixel fissures on every blocky button */
.mc-btn, .pill, .nav-links a, .cat-chip, .mode-feats li, .foot-social a, .foot-ip, .pack-chip {
  position: relative;
  isolation: isolate;
}
.mc-btn::before, .pill::before, .nav-links a::before, .cat-chip::before,
.mode-feats li::before, .foot-social a::before, .foot-ip::before, .pack-chip::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Cg fill='%23000' fill-opacity='.16'%3E%3Crect x='0' y='0' width='3' height='3'/%3E%3Crect x='3' y='3' width='3' height='3'/%3E%3Crect x='6' y='3' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Cg fill='%23000' fill-opacity='.16'%3E%3Crect x='6' y='0' width='3' height='3'/%3E%3Crect x='3' y='3' width='3' height='3'/%3E%3Crect x='0' y='3' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Cg fill='%23000' fill-opacity='.16'%3E%3Crect x='0' y='6' width='3' height='3'/%3E%3Crect x='3' y='3' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cg fill='%23000' fill-opacity='.16'%3E%3Crect x='9' y='9' width='3' height='3'/%3E%3Crect x='6' y='9' width='3' height='3'/%3E%3Crect x='9' y='6' width='3' height='3'/%3E%3Crect x='3' y='9' width='3' height='3'/%3E%3Crect x='9' y='3' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cg fill='%23000' fill-opacity='.16'%3E%3Crect x='0' y='0' width='3' height='3'/%3E%3Crect x='3' y='3' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cg fill='%23000' fill-opacity='.16'%3E%3Crect x='3' y='0' width='3' height='3'/%3E%3Crect x='0' y='3' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E");
  background-position: 0 0, 100% 0, 0 100%, 100% 100%, 0 60%, 35% 0;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

/* the big showcase frame (dawn's mc-slice panel, house skin) */
.mc-frame {
  position: relative;
  background: var(--panel);
  border: 3px solid #4A3821;
  box-shadow: var(--bevel-soft), inset 0 0 0 1px rgba(255, 203, 61, 0.09);
  padding: clamp(22px, 3.5vw, 44px);
}

/* section divider · full-bleed Minecraft block rail with their sun at the center */
.mc-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.mc-divider::before, .mc-divider::after {
  content: "";
  flex: 1;
  height: 4px;
  background-image: repeating-linear-gradient(90deg,
    var(--gold) 0 4px, transparent 4px 18px,
    var(--gold-deep) 18px 22px, transparent 22px 36px);
  opacity: 0.8;
}
.mc-divider img {
  width: auto;
  height: 34px;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5));
}

.hl { color: var(--gold); }

/* section head · divider sun + big pixel title under it */
.sec-title {
  text-align: center;
  margin-top: 14px;
  font-size: clamp(42px, 5.5vw, 74px);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}
#sunbits { padding-top: clamp(34px, 4.5vw, 56px); }
#sunbits .sun-copy .lead { margin-top: 0; }

/* footer card · their store-style two-band card, SunRealms skin */
.mc-card {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  border: 3px solid #140D05;
  box-shadow: var(--bevel-soft), 0 26px 52px -26px rgba(0, 0, 0, 0.85);
  text-align: left;
  isolation: isolate;
}
.card-logo {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.55));
}
.mc-card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(180deg, #FFD968, #F5B91E);
  padding: 16px 22px 16px 210px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.card-count { cursor: default; }
.card-discord { margin-left: auto; }
.card-discord svg { width: 20px; height: 20px; }
.mc-card-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  background: linear-gradient(180deg, #9C7410, #7C5C0C);
  padding: 24px 30px 24px 210px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}
.card-copy p:first-child { color: var(--white); font-weight: 800; font-size: 15px; }
.card-copy p + p { color: rgba(255, 255, 255, 0.78); font-size: 13.5px; margin-top: 2px; }
.card-sig {
  margin-left: auto;
  font-family: "Mr Dafoe", cursive;
  font-size: 38px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
  transform: rotate(-7deg);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: color 0.25s, transform 0.3s var(--ease-btn);
}
.card-sig:hover { color: var(--white); transform: rotate(-7deg) scale(1.06); }
@media (max-width: 760px) {
  .card-logo { display: none; }
  .mc-card-top { padding: 14px 18px; }
  .mc-card-bottom { padding: 20px 18px; }
}
.modes h2, .store h2, .server-info h2 { text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55); }

/* Sunbits showcase */
.sun-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
  text-align: left;
}
@media (max-width: 860px) { .sun-grid { grid-template-columns: 1fr; } }
.mini-kicker {
  display: block;
  font-family: var(--font-px);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.sun-note-panel {
  margin-top: 26px;
  border: 3px solid #3A2C18;
  background: var(--bg);
  padding: 18px 20px;
}
.sun-note-panel p { font-size: 14.5px; margin-top: 8px; }
.sun-note-panel p svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; color: var(--gold); }
.sun-note-panel .pill { margin-top: 16px; }
.sun-visual {
  position: relative;
  border: 3px solid #3A2C18;
  background: var(--bg-deep);
  box-shadow: var(--bevel-soft);
  aspect-ratio: 1200 / 658;
  overflow: hidden;
}
.sun-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sun-packs {
  border-top: 3px solid #3A2C18;
  margin-top: clamp(26px, 4vw, 40px);
  padding-top: clamp(22px, 3vw, 32px);
  text-align: left;
}
.sun-packs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.sun-packs-head h3 { font-size: 22px; }
.pack-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.pack-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marq 38s linear infinite;
}
.pack-marquee:hover .pack-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.pack-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  background: var(--panel-2);
  border: 2px solid #3A2C18;
  box-shadow: var(--bevel-soft);
  white-space: nowrap;
  transition: border-color 0.25s, filter 0.25s;
}
.pack-chip:hover { border-color: rgba(255, 203, 61, 0.5); filter: brightness(1.07); }
.pack-chip img { width: 26px; height: 26px; object-fit: contain; }
.pack-chip .pc-name {
  font-family: var(--font-px);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.pack-chip .pc-price { font-family: var(--font-px); font-size: 15px; color: var(--gold); }

/* store social proof · top customer + recent payments (live store data) */
.store-social {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  max-width: 1080px;
  margin: clamp(30px, 4vw, 44px) auto 0;
}
.social-card {
  background: var(--panel);
  border: 2px solid #3A2C18;
  box-shadow: var(--bevel-soft);
  padding: 18px 20px;
}
.social-card .mini-kicker { margin-bottom: 14px; }
.social-body { display: flex; align-items: center; gap: 14px; }
.social-face, .social-heads img {
  display: block;
  image-rendering: pixelated;
  border: 2px solid #140D05;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.social-name {
  font-family: var(--font-px);
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}
.social-body p { font-size: 14px; color: var(--text-dim); margin-top: 5px; }
.social-heads { display: flex; flex-wrap: wrap; gap: 10px; }
.social-heads .head { position: relative; display: block; line-height: 0; }
.social-heads img { width: 44px; height: 44px; transition: transform 0.2s var(--ease-btn), border-color 0.25s; }
.social-heads .head:hover img { transform: translateY(-2px); border-color: rgba(255, 203, 61, 0.5); }
.social-heads .head::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translate(-50%, 4px);
  z-index: 5;
  padding: 5px 9px;
  background: #140D05;
  border: 2px solid var(--gold);
  color: var(--white);
  font-family: var(--font-px);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s var(--ease-btn);
}
.social-heads .head::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  border: 5px solid transparent;
  border-top-color: var(--gold);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.social-heads .head:hover::after { opacity: 1; transform: translate(-50%, 0); }
.social-heads .head:hover::before { opacity: 1; }
@media (max-width: 760px) { .store-social { grid-template-columns: 1fr; } }

/* ============================================================
   Reveals · toast
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 190;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 12px 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, transform 0.35s var(--ease-out), visibility 0.35s;
  white-space: nowrap;
  max-width: 92vw;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============================================================
   Display face · Jersey 10 (Minecraft-style pixel font)
   Body/UI stays Inter; the display layer goes pixel.
   Pixel fonts have no real bold/italic, so both are reset here.
   ============================================================ */
h1, h2, h3, h4,
.kicker, .pill, .mc-btn,
.logo-type, .logo-sub,
.pack-amount, .patch-title,
.foot-grid h5, .faq-item summary, .cart-total {
  font-family: var(--font-px);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.02em;
}
h2 { font-size: clamp(34px, 4.4vw, 54px); }
h3 { font-size: clamp(24px, 2.6vw, 31px); }
.kicker { font-size: 19px; letter-spacing: 0.1em; }
.pill { font-size: 20px; padding-block: 10px; }
.mc-btn { font-size: 18px; padding-block: 7px; }
.logo-type { font-size: clamp(54px, 8vw, 96px); }
.logo-sub { font-size: clamp(26px, 3.4vw, 40px); }
.discord-band .logo-type { font-size: clamp(40px, 5.4vw, 68px); }
.pack-amount { font-size: clamp(27px, 2.8vw, 33px); }
.patch-title { font-size: 21px; }
.foot-grid h5 { font-size: 19px; }
.faq-item summary { font-size: 20px; }
.cart-total { font-size: 19px; }
.cart-total .num { font-size: 26px; }
.cart-head h3 { font-size: 22px; }
.modal-card h3 { font-size: 24px; }
.info-card h3 { font-size: 23px; }
.news-card h3 { font-size: clamp(26px, 3vw, 36px); }

/* ============================================================
   SunRealms components
   ============================================================ */
/* Store overview · compact "Most popular" strip (their Tebex store shape) */
.pop-strip { max-width: 1080px; margin-inline: auto; }
.pop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.pop-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 3px;
  border: 2px solid #4A3821;
  background: linear-gradient(180deg, #2C2214, #201810);
  box-shadow: var(--bevel-soft);
  text-align: left;
  transition: border-color 0.2s, filter 0.2s, transform 0.2s var(--ease-btn);
}
.pop-mini:hover { border-color: rgba(255, 203, 61, 0.5); filter: brightness(1.1); transform: translateY(-1px); }
.pop-mini img { width: 68px; height: 68px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45)); }
.pop-mini-text { display: grid; gap: 5px; min-width: 0; }
.pop-mini-name { font-family: var(--font-px); font-size: 21px; color: var(--white); line-height: 1.1; }
.pop-mini-price { font-size: 16px; font-weight: 800; color: var(--gold); }

/* Merch tags · "Best Seller" / "Best Value" pixel labels on tagged packs */
.pack-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-family: var(--font-px);
  font-weight: 400;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 11px 7px;
  border-radius: 2px;
  border: 2px solid #140D05;
  box-shadow: 0 2px 0 #140D05;
  background: linear-gradient(180deg, #FFE896, #FFCB3D);
  color: #3A2600;
}
.pack-tag-value { background: linear-gradient(180deg, #FFCFA8, #FF6B2E); color: #401400; }
.pop-mini { position: relative; }
.pop-mini .pack-tag { position: relative; top: auto; right: auto; margin-left: auto; flex: none; }
.pm-hero .pack-tag { position: relative; top: auto; right: auto; display: inline-block; margin-bottom: 2px; }

/* Tag glint · the MC enchanted-item shine sweeps each badge, with a synced glow
   pulse; Best Value runs offset so the two never blink in unison */
.pack-tag, .pack-sale, .pm-sale { overflow: hidden; }
.pack-tag::after, .pack-sale::after, .pm-sale::after {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 0;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.9) 50%, transparent);
  transform: translateX(-180%) skewX(-20deg);
  animation: tagGlint 3.4s ease-in-out infinite;
  pointer-events: none;
}
.pack-tag { animation: tagGlowGold 3.4s ease-in-out infinite; }
.pack-tag-value { animation-name: tagGlowOrange; }
.pack-sale, .pm-sale { animation: tagGlowOrange 3.4s ease-in-out infinite; }
.pack-tag-value, .pack-tag-value::after { animation-delay: 1.7s; }
@keyframes tagGlint {
  0%, 62% { transform: translateX(-180%) skewX(-20deg); }
  80%, 100% { transform: translateX(320%) skewX(-20deg); }
}
@keyframes tagGlowGold {
  0%, 60%, 92%, 100% { box-shadow: 0 2px 0 #140D05; }
  74% { box-shadow: 0 2px 0 #140D05, 0 0 16px rgba(255, 203, 61, 0.6); }
}
@keyframes tagGlowOrange {
  0%, 60%, 92%, 100% { box-shadow: 0 2px 0 #140D05; }
  74% { box-shadow: 0 2px 0 #140D05, 0 0 16px rgba(255, 107, 46, 0.6); }
}
@media (prefers-reduced-motion: reduce) {
  .pack-tag, .pack-sale, .pm-sale,
  .pack-tag::after, .pack-sale::after, .pm-sale::after { animation: none; }
}

/* Sale + limited-time · rendered only when the Tebex panel sets discount / expiry */
.pack-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-px);
  font-weight: 400;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.05em;
  padding: 8px 11px 7px;
  border-radius: 2px;
  border: 2px solid #140D05;
  box-shadow: 0 2px 0 #140D05;
  background: linear-gradient(180deg, #FF8A5C, #E0543C);
  color: #3A0C00;
}
.pack-was { display: inline-flex; align-items: baseline; gap: 10px; }
.pack-was s { color: var(--text-dim); font-size: 14px; }
.pack-was b { color: var(--gold); font-size: 17px; }
.pack-timer {
  display: inline-block;
  font-family: var(--font-px);
  font-weight: 400;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFB061;
  padding: 8px 12px 7px;
  border-radius: 2px;
  border: 2px solid rgba(224, 84, 60, 0.55);
  background: rgba(224, 84, 60, 0.14);
  text-shadow: 0 0 10px rgba(255, 138, 92, 0.4);
}
.pop-mini-price s { color: var(--text-dim); font-weight: 400; margin-right: 6px; }
.pop-mini .pack-timer { font-size: 14px; padding: 5px 8px 4px; justify-self: start; }
.pm-price s { color: var(--text-dim); font-size: 0.72em; margin-right: 8px; }
.pm-sale {
  position: relative; /* contains the glint ::after · unpositioned it swept the whole modal */
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
  font-family: var(--font-px);
  font-size: 17px;
  line-height: 1;
  padding: 6px 9px 5px;
  border-radius: 2px;
  border: 2px solid #140D05;
  box-shadow: 0 2px 0 #140D05;
  background: linear-gradient(180deg, #FF8A5C, #E0543C);
  color: #3A0C00;
}
.pm-hero .pack-timer { display: block; margin-top: 10px; }
/* Staff roster renders from JS after first paint · reserve room so the footer
   does not jump into view and back down (was CLS 0.199 on staff.html) */
#staffArea { min-height: 100svh; }

/* Coupons / gift cards + purchase terms · cart footer */
.cart-codes { margin-bottom: 16px; }
.cart-codes > label {
  display: block;
  font-family: var(--font-px);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.code-row { display: flex; gap: 8px; }
.code-row input {
  flex: 1;
  min-width: 0;
  background: var(--panel);
  border: 2px solid #3A2C18;
  border-radius: 3px;
  color: var(--white);
  padding: 10px 12px;
  font-size: 14px;
}
.code-row input:focus { outline: none; border-color: rgba(255, 203, 61, 0.5); }
.code-apply { padding: 10px 16px; flex: none; }
.code-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-px);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border: 2px solid #3A2C18;
  border-radius: 3px;
  background: var(--panel);
  color: var(--gold);
}
.code-chip button { display: grid; place-items: center; color: var(--text-dim); }
.code-chip button:hover { color: #E0543C; }
.cart-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
  cursor: pointer;
}
.cart-terms input { width: 16px; height: 16px; flex: none; margin-top: 2px; accent-color: var(--gold); cursor: pointer; }
.cart-terms a { color: var(--gold); text-decoration: underline; }

/* Store overview · welcome/support/refund panel (their Tebex store-home texts) */
.store-info {
  max-width: 1080px;
  margin: clamp(24px, 3.5vw, 40px) auto 0;
}
.store-info .kicker { display: block; }
.store-info h2 { margin-top: 4px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55); }
.store-info p { margin-top: 12px; font-size: 15.5px; max-width: 78ch; }
.store-info h3 { margin: 28px 0 0; }
.store-info .store-info-legal { margin-top: 26px; font-size: 14px; font-style: italic; opacity: 0.7; }

.cat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 40px);
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 4px;
  border: 2px solid #140D05;
  background: linear-gradient(180deg, #33291B, #221B12);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-px);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: var(--bevel-soft), 0 3px 0 #140D05;
  transition: filter 0.2s, transform 0.2s var(--ease-btn);
}
.cat-chip:hover { filter: brightness(1.12); transform: translateY(-1px); }
.cat-chip.on {
  background: linear-gradient(180deg, #FFD968, #F5B91E);
  color: var(--gold-ink);
  box-shadow: var(--bevel), 0 3px 0 #140D05;
}
.cat-chip img { width: 28px; height: 28px; object-fit: contain; }

/* realm category blocks (Dungeons / Gens / Prison) */
.store-block { padding-block: 0; margin-top: clamp(36px, 5vw, 54px); }
.store-block:first-child { margin-top: 0; }
.store-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto 18px;
  border-bottom: 3px solid #3A2C18;
  padding-bottom: 10px;
}
.store-block-head h3 {
  font-size: clamp(21px, 2.2vw, 26px);
  font-style: italic;
  color: var(--white);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}
.store-grid.row-grid { grid-template-columns: repeat(auto-fit, minmax(295px, 1fr)); }
.pack.pack-row {
  flex-direction: row;
  justify-content: space-between;
  text-align: left;
  padding: 16px 16px 16px 20px;
  gap: 14px;
}
.pack.pack-row .pack-amount { font-size: clamp(17px, 1.6vw, 20px); flex: 1; min-width: 0; }
/* Row cards have no free corner: the absolute badge lands on the name, so the
   sale/tag chips join the row flow instead (relative, not static · the glint
   ::after needs a positioned container or it sweeps the whole card) */
.pack.pack-row .pack-sale,
.pack.pack-row .pack-tag { position: relative; top: auto; left: auto; right: auto; flex: none; }
/* On sale the row cannot fit one line (badge + struck + new price + button), so
   the card goes two-line: name on top, [-15% · old · new] grouped under it, the
   button spanning both lines. Non-:has browsers keep the in-flow chip row above. */
.pack.pack-row:has(.pack-sale) {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "name name buy" "sale was was";
  gap: 9px 14px;
  align-items: center;
}
.pack.pack-row:has(.pack-sale) .pack-amount { grid-area: name; }
/* min-width guards the chip: its overflow:hidden (glint) zeroes the automatic
   minimum, so under track pressure the badge column collapses and clips it */
.pack.pack-row:has(.pack-sale) .pack-sale { grid-area: sale; min-width: max-content; }
.pack.pack-row:has(.pack-sale) .pack-was { grid-area: was; justify-self: start; }
.pack.pack-row:has(.pack-sale) .pack-buy { grid-area: buy; justify-self: end; }
/* optional chips (countdown, [tag:] label) drop to their own full-width line
   instead of auto-placing into the narrow badge column */
.pack.pack-row:has(.pack-sale) .pack-timer,
.pack.pack-row:has(.pack-sale) .pack-tag { grid-column: 1 / -1; justify-self: start; }
.pack.pack-row .pack-buy {
  margin-top: 0;
  width: auto;
  padding: 12px 18px;
  font-size: 16px;
  white-space: nowrap;
}
.pack.pack-row .pack-buy .num { font-size: 17.5px; letter-spacing: 0.01em; }

/* ============================================================
   Featured drop · seasonal hero bundle (rendered when a package
   carries [hero] / [hero: Ribbon] in its Tebex description)
   ============================================================ */
.hero-pack {
  position: relative;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) 1.12fr;
  max-width: 1080px;
  margin: 0 auto clamp(36px, 5vw, 54px);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 3px solid #4A3821;
  box-shadow: var(--bevel-soft), inset 0 0 0 1px rgba(255, 203, 61, 0.09);
  transition: transform 0.45s var(--ease-out), border-color 0.35s, box-shadow 0.45s var(--ease-out);
  will-change: transform;
}
.hero-pack:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 203, 61, 0.55);
  box-shadow: var(--bevel-soft), inset 0 0 0 1px rgba(255, 203, 61, 0.09), 0 26px 52px -20px rgba(201, 148, 10, 0.5);
}
.hero-pack.hero-noart { grid-template-columns: 1fr; }
.hero-art {
  position: relative;
  min-height: 100%;
  border-right: 3px solid #4A3821;
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-art .pack-sale { top: 12px; left: 12px; }
.hero-body {
  padding: clamp(24px, 3.2vw, 40px) clamp(22px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
}
.hero-title {
  color: var(--white);
  font-size: clamp(25px, 2.8vw, 34px);
  font-weight: 800;
  font-style: italic;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
  padding-right: 56px; /* clears the ribbon on narrow desktop widths */
}
.hero-flag {
  color: var(--orange);
  white-space: nowrap;
}
.hero-sub {
  font-size: 15.5px;
  color: var(--text);
  max-width: 58ch;
}
.hero-items {
  list-style: none;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.hero-items li {
  background: var(--bg);
  border: 2px solid #3A2C18;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.3), inset 0 -2px 0 rgba(255, 255, 255, 0.04);
  padding: 10px 13px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
}
.hero-foot {
  margin-top: auto;
  padding-top: 6px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.hero-foot .pack-timer { flex: none; }
.hero-buy {
  padding: 15px 26px;
  font-size: 16.5px;
}
.hero-foot .pack-was s { font-size: 15px; }
/* diagonal seasonal ribbon · orange = the "hot/limited" color, pixel type */
.hero-ribbon {
  position: absolute;
  top: 30px;
  right: -54px;
  z-index: 3;
  width: 210px;
  transform: rotate(45deg);
  text-align: center;
  font-family: var(--font-px);
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 9px 0 8px;
  background: linear-gradient(180deg, #FFCFA8, #FF6B2E);
  color: #401400;
  border-block: 2px solid #140D05;
  overflow: hidden;
  pointer-events: none;
}
/* ribbon variants · "[hero: Winter | blue]", "| green", "| purple" */
.hero-ribbon-blue {
  background: linear-gradient(180deg, #CFF0FF, #38B6E8);
  color: #063049;
}
.hero-ribbon-green {
  background: linear-gradient(180deg, #D9F7C0, #52B93E);
  color: #143D06;
}
.hero-ribbon-purple {
  background: linear-gradient(180deg, #E6D0FF, #8E4EE0);
  color: #2C0A52;
}
.hero-ribbon::after {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 0;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.9) 50%, transparent);
  transform: translateX(-180%) skewX(-20deg);
  animation: tagGlint 3.4s ease-in-out infinite;
  animation-delay: 1.1s;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-ribbon::after { animation: none; }
}
@media (max-width: 880px) {
  .hero-pack { grid-template-columns: 1fr; }
  .hero-art { border-right: 0; border-bottom: 3px solid #4A3821; }
  .hero-art img { position: static; aspect-ratio: 5 / 3; }
  .hero-title { padding-right: 0; }
  .hero-ribbon { top: 26px; right: -62px; }
}
@media (max-width: 560px) {
  .hero-items { grid-template-columns: 1fr; }
  .hero-buy { width: 100%; justify-content: center; }
}

/* ============================================================
   Staff application (apply.html)
   ============================================================ */
.apply-req {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 3.5vw, 44px);
  text-align: left;
}
@media (max-width: 760px) { .apply-req { grid-template-columns: 1fr; } }
.req-list { list-style: none; margin-top: 12px; display: grid; gap: 9px; }
.req-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
}
.req-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.req-list.req-soft li { color: var(--text); font-weight: 500; }
.req-list.req-soft li::before { background: var(--orange); }

.apply-wrap { max-width: 880px; }
.apply-wrap .store-block-head { max-width: none; }
.field { margin-top: 20px; text-align: left; border: 0; padding: 0; }
.field label, .field legend {
  display: block;
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  color: var(--white);
}
.field label b, .field legend b { color: var(--gold); }
.field .help { margin-top: 5px; font-size: 13px; color: var(--text-dim); }
.field input[type="text"], .field textarea {
  display: block;
  width: 100%;
  margin-top: 9px;
  background: var(--bg);
  border: 3px solid #3A2C18;
  color: var(--white);
  font: inherit;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 0;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 74px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.28); }
.field.invalid input, .field.invalid textarea, fieldset.invalid { border-color: #C0392B !important; }
fieldset.field { border: 0; }
.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(18px, 3vw, 34px); }
@media (max-width: 700px) { .af-grid { grid-template-columns: 1fr; } }
.opt-row { display: flex; gap: 10px; margin-top: 10px; }
.opt-row.opt-wrap { flex-wrap: wrap; }
.opt-col { display: grid; gap: 8px; margin-top: 10px; }
.opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(180deg, #33291B, #221B12);
  border: 2px solid #140D05;
  box-shadow: var(--bevel-soft), 0 3px 0 #140D05;
  border-radius: 4px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  transition: filter 0.15s;
  user-select: none;
}
.opt:hover { filter: brightness(1.12); }
.opt input {
  /* hidden but still focusable · the whole pill is the control */
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt:has(input:checked) {
  background: linear-gradient(180deg, #FFD968, #F5B91E);
  border-color: #8A5E00;
  box-shadow: var(--bevel-soft), 0 3px 0 #140D05, 0 0 16px rgba(255, 203, 61, 0.35);
  color: var(--gold-ink);
  font-weight: 700;
  animation: optPop 0.32s var(--ease-out);
}
@keyframes optPop {
  0% { transform: scale(0.9); }
  55% { transform: scale(1.07); }
  100% { transform: scale(1); }
}
.apply-submit { margin-top: clamp(30px, 4vw, 44px); text-align: center; }
.apply-submit .pill { font-size: 16px; padding: 15px 34px; }
.apply-submit .cart-secure { margin-top: 12px; justify-content: center; display: flex; align-items: center; gap: 6px; }
.apply-success { text-align: center; padding-block: clamp(40px, 6vw, 64px); }
.apply-success .as-sun {
  width: 58px;
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.4)) drop-shadow(0 0 14px rgba(255, 203, 61, 0.35));
}
.apply-success h3 { font-size: clamp(24px, 3vw, 32px); font-style: italic; color: var(--white); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55); }
.apply-success p { margin-top: 10px; max-width: 460px; margin-inline: auto; font-size: 14.5px; }
.apply-success a { color: var(--gold); }

/* ============================================================
   Server rules (rules.html)
   ============================================================ */
.rules-link { color: var(--gold); }
.rules-toc { margin-top: clamp(24px, 3vw, 34px); }
.rules-toc .cat-chip { font-size: 19px; padding: 12px 22px; text-decoration: none; }
.rules-wrap .store-block { scroll-margin-top: 96px; }
.rules-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-dim);
  font-style: italic;
}
.rules-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: 18px; }
@media (max-width: 760px) { .rules-cols { grid-template-columns: 1fr; } }
.rules-cols .mini-kicker { display: block; margin-bottom: 4px; }

.pun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.pun-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.05), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  padding: 16px 18px;
}
.pun-card h4 {
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}
.pun-card p { margin-top: 6px; font-size: 13.5px; }
.pun-card p b { color: var(--white); }
.pun-card a { color: var(--gold); }
.pun-card.pun-appeal { border-color: rgba(255, 203, 61, 0.35); }

.rules-list { margin-top: 18px; display: grid; gap: 10px; }
.chat-ex {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}
.chat-ex span {
  display: block;
  background: var(--bg-deep);
  border-left: 3px solid var(--orange);
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-dim);
}
.chat-ex span::before { content: "✕ "; color: var(--orange); font-weight: 800; }

.mods-cols { align-items: start; }
.mod-panel {
  border: 3px solid #3A2C18;
  background: var(--bg);
  padding: 18px 20px;
}
.mod-list { list-style: none; margin-top: 12px; display: grid; gap: 9px; }
.mod-list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--text); }
.mod-list.mod-ok li::before {
  content: "✔";
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-weight: 800;
}
.mod-list.mod-no li::before {
  content: "✕";
  position: absolute; left: 0; top: 0;
  color: #E0543C;
  font-weight: 800;
}

/* ============================================================
   Staff (staff.html)
   ============================================================ */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.staff-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.05), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  padding: 22px 16px 18px;
  text-align: center;
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
}
.staff-card:hover { transform: translateY(-4px); border-color: var(--rank, var(--gold)); }
.staff-card img {
  width: 84px;
  height: 84px;
  margin-inline: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
}
.staff-name {
  display: block;
  margin-top: 12px;
  color: var(--white);
  font-weight: 800;
  font-style: italic;
  font-size: 15.5px;
  overflow-wrap: anywhere;
}
.staff-rank {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #14100B;
  background: var(--rank, var(--gold));
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.45);
}

/* ============================================================
   Vote (vote.html)
   ============================================================ */
.vote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 700px) { .vote-grid { grid-template-columns: 1fr; } }
.vote-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.05), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  padding: 18px 20px;
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
}
.vote-card:hover { transform: translateY(-4px); border-color: rgba(255, 203, 61, 0.4); }
.vote-num {
  flex: none;
  font-family: var(--font-px);
  font-size: 30px;
  color: var(--gold);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
  min-width: 52px;
  text-align: center;
}
.vote-ic { width: 26px; height: 26px; color: var(--gold); }
.vote-site {
  flex: 1;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
}
.vote-site em {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 500;
  font-style: normal;
  color: var(--text-dim);
}
.vote-go { flex: none; padding: 10px 18px; font-size: 14px; }
.vote-card.vote-wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .vote-card.vote-wide { grid-column: auto; } }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .hero-logo, .hero-side, .hero-cue { opacity: 1 !important; transform: none !important; }
  #sparks { display: none; }
  .pack-marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}
