/* =====================================================================
   SawcoSMP store: THEME
   Change these variables to re-theme the whole site.
   ===================================================================== */
:root {
  /* Brand (matched to the SawcoSMP logo) */
  --gold: #ffb000;
  --orange: #ff7a00;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --purple: #b58cff;
  --grass: #6cc24a;
  --discord: #5865f2;

  /* Surfaces */
  --bg: #0b1530;            /* deep navy night sky */
  --bg-deep: #070e22;
  --bg-2: #0e1a3a;
  --surface: #122249;
  --surface-2: #182b5a;
  --glass: rgba(16, 29, 64, 0.62);
  --border: rgba(148, 178, 255, 0.14);
  --border-strong: rgba(148, 178, 255, 0.26);

  /* Text */
  --text: #f1f5ff;
  --text-muted: #aab7d8;
  --text-dim: #8190b5;
  --on-gold: #2a1600;

  /* Gradients */
  --grad-gold: linear-gradient(180deg, #ffc93d 0%, var(--gold) 45%, var(--orange) 100%);
  --grad-cyan: linear-gradient(180deg, #7ff0ff, var(--cyan) 50%, var(--cyan-deep));

  /* Type */
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Misc */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
h1, h2, h3, h4 { line-height: 1.2; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.t-gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-cyan { background: var(--grad-cyan); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Dev notice ---------- */
.dev-notice {
  position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: repeating-linear-gradient(45deg, #3a2a00, #3a2a00 12px, #2e2200 12px, #2e2200 24px);
  color: #ffd98a; font-size: 13px; font-weight: 600; padding: 7px 44px; text-align: center;
  border-bottom: 1px solid rgba(255, 176, 0, .35);
}
.dev-notice[hidden] { display: none; }
.dev-notice code { background: rgba(0,0,0,.35); padding: 1px 6px; border-radius: 4px; }
.dev-notice__close { position: absolute; right: 8px; background: none; border: 0; color: inherit; font-size: 22px; cursor: pointer; width: 36px; height: 36px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0;
  font: 800 15px/1 var(--font-body); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  color: var(--text); background: var(--surface-2);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.25), 0 6px 18px rgba(0,0,0,.25);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.2), 0 2px 6px rgba(0,0,0,.25); }
.btn--gold { background: var(--grad-gold); color: var(--on-gold); }
.btn--gold:hover { box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.4), 0 12px 30px rgba(255,140,0,.45); }
.btn--discord { background: linear-gradient(180deg, #6d79ff, var(--discord)); color: #fff; }
.btn--discord:hover { box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.3), 0 12px 30px rgba(88,101,242,.5); }
.btn--white { background: #fff; color: #3a44c9; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); transition: background .3s, border-color .3s, box-shadow .3s; border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7,14,34,.55), rgba(7,14,34,0)); }
.nav.is-scrolled { background: rgba(9, 17, 40, .88); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--border); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: var(--s6); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand img { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); transition: transform .3s var(--ease); }
.nav__brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav__name { font: 13px var(--font-pixel); letter-spacing: .5px; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a { position: relative; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 10px; transition: color .15s; }
.nav__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: var(--s3); }
.nav__ip, .footer__ip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text); font: 600 13px var(--font-body);
  transition: border-color .2s, background .2s;
}
.nav__ip:hover, .footer__ip:hover { border-color: var(--cyan); background: rgba(34,211,238,.08); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); flex: none; }
.is-online .dot { background: var(--grass); box-shadow: 0 0 0 3px rgba(108,194,74,.2); }
.nav__ip.is-copied, .footer__ip.is-copied { border-color: var(--grass); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--nav-h)); margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + var(--s5)) 0 calc(var(--s9) + var(--s4));
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
}
.hero__sky { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(900px 520px at 50% 38%, rgba(34, 211, 238, .16), transparent 65%),
    radial-gradient(700px 400px at 85% 10%, rgba(120, 90, 255, .18), transparent 70%),
    radial-gradient(600px 380px at 10% 80%, rgba(255, 140, 0, .10), transparent 70%),
    linear-gradient(180deg, #050b1f 0%, #0b1a45 45%, #12275f 80%, #0b1530 100%);
}
.hero__stars { position: absolute; inset: 0; }
.hero__stars i { position: absolute; background: #fff; opacity: .2; animation: twinkle 3s ease-in-out infinite alternate; box-shadow: 0 0 6px rgba(200,230,255,.6); }
@keyframes twinkle { from { opacity: .15; } to { opacity: .95; } }
.hero__moon { position: absolute; top: 14%; right: 9%; width: 56px; height: 56px; background: #f3f0d8; box-shadow: 0 0 60px 18px rgba(243, 240, 216, .18), inset -10px -10px 0 rgba(0,0,0,.08); image-rendering: pixelated; }
.hero__moon::after { content: ""; position: absolute; width: 12px; height: 12px; left: 14px; top: 18px; background: rgba(0,0,0,.09); box-shadow: 22px 12px 0 -2px rgba(0,0,0,.08); }
.hero__clouds { position: absolute; inset: 0; will-change: transform; }
.cloud { position: absolute; left: 0; fill: #dbe8ff; animation: drift linear infinite; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
.hero__terrain { position: absolute; left: 0; right: 0; bottom: 0; will-change: transform; }
.hero__terrain svg { width: 100%; height: 100%; }
.hero__terrain--far { height: 260px; opacity: .9; }
.hero__terrain--near { height: 180px; bottom: -2px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; z-index: -1; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }

.hero__content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__logo { position: relative; width: min(440px, 78vw, 46svh); margin: 0 0 calc(-1 * var(--s2)); }
.hero__logo img { width: 100%; height: auto; position: relative; filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)); animation: float 6s ease-in-out infinite; }
.hero__glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.45), rgba(255,176,0,.18) 45%, transparent 70%); filter: blur(40px); animation: glow 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-14px) rotate(.4deg); } }
@keyframes glow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.hero__tagline { max-width: 560px; margin: 0 0 var(--s5); font-size: 19px; color: #c9d5f2; text-shadow: 0 2px 10px rgba(0,0,0,.5); }

/* Play pill */
.play {
  position: relative; display: flex; align-items: stretch; gap: 0; padding: 6px; border-radius: 999px; cursor: pointer;
  background: rgba(8, 15, 38, .75); border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255,176,0,.0), 0 18px 50px rgba(0,0,0,.45), 0 0 50px rgba(255,176,0,.12);
  color: var(--text); font-family: var(--font-body); transition: transform .2s var(--ease), box-shadow .25s, border-color .25s;
}
.play::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), var(--gold), var(--cyan), var(--orange), var(--cyan), var(--gold));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .8; animation: spin 6s linear infinite; }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
.play:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 22px 60px rgba(0,0,0,.5), 0 0 70px rgba(255,176,0,.25); }
.play:active { transform: translateY(1px) scale(.99); }
.play__status { display: flex; align-items: center; gap: 8px; padding: 0 18px 0 16px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.play__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-dim); flex: none; }
.play__count { font: 800 18px var(--font-body); color: var(--text); font-variant-numeric: tabular-nums; }
[data-state="online"] .play__dot { background: var(--grass); animation: pulse 1.8s infinite; }
[data-state="online"] .play__count { color: #b9f5a0; }
[data-state="offline"] .play__dot { background: var(--orange); }
[data-state="loading"] .play__dot { animation: blink 1s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(108,194,74,.7); } 100% { box-shadow: 0 0 0 12px rgba(108,194,74,0); } }
@keyframes blink { 50% { opacity: .3; } }
.play__main { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 8px 18px 8px 20px; text-align: left; }
.play__cta { font: 14px var(--font-pixel); background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 1px; line-height: 1.5; }
.play__ip { font: 600 17px var(--font-body); color: var(--text); letter-spacing: .02em; }
.play__copy { display: grid; place-items: center; width: 56px; border-radius: 999px; background: var(--grad-gold); color: var(--on-gold); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.play__copy svg { width: 22px; height: 22px; }
.play:hover .play__copy { transform: rotate(-8deg) scale(1.05); }
.play.is-copied .play__copy { background: linear-gradient(180deg, #9be27a, var(--grass)); }
.hero__hint { margin: var(--s3) 0 var(--s5); font-size: 13px; color: var(--text-dim); }
.hero__hint [data-config="versionLabel"] { color: var(--cyan); font-weight: 600; }
.hero__cta { display: flex; gap: var(--s4); flex-wrap: wrap; justify-content: center; }
.tag { font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.tag--warn { background: rgba(255,176,0,.15); color: var(--gold); border: 1px solid rgba(255,176,0,.4); }

.scroll-cue { position: relative; margin-top: var(--s6); width: 28px; height: 44px; border: 2px solid rgba(255,255,255,.35); border-radius: 16px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--gold); border-radius: 2px; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- Features strip ---------- */
.features { position: relative; z-index: 2; margin-top: calc(-1 * var(--s8)); padding-bottom: var(--s8); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.feature {
  display: flex; align-items: center; gap: var(--s4); padding: var(--s5); border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature__icon { flex: none; width: 52px; height: 52px; padding: 10px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); }
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 { margin: 0 0 2px; font-size: 16px; font-weight: 800; }
.feature p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.45; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin: 0 auto var(--s7); max-width: 680px; }
.section-head--left { text-align: left; margin: 0; }
.eyebrow { display: inline-block; margin: 0 0 var(--s4); padding: 6px 12px; border-radius: 999px; font: 10px/1.4 var(--font-pixel); letter-spacing: 1px; text-transform: uppercase; color: var(--cyan); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25); }
.eyebrow--light { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); }
.section-title { margin: 0; font: clamp(26px, 4vw, 42px)/1.3 var(--font-pixel); text-shadow: 0 4px 0 rgba(0,0,0,.45); }
.section-sub { margin: var(--s4) 0 0; color: var(--text-muted); font-size: 17px; }
.pixel-divider { display: flex; justify-content: center; align-items: center; gap: 6px; margin: var(--s5) 0 0; }
.pixel-divider i { width: 8px; height: 8px; background: var(--cyan); opacity: .45; }
.pixel-divider i:nth-child(2), .pixel-divider i:nth-child(6) { opacity: .7; }
.pixel-divider i:nth-child(3), .pixel-divider i:nth-child(5) { opacity: 1; }
.pixel-divider b { width: 14px; height: 14px; background: var(--grad-gold); transform: rotate(45deg); margin: 0 6px; box-shadow: 0 0 14px rgba(255,176,0,.6); }
.pixel-divider--left { justify-content: flex-start; }

/* ---------- Store ---------- */
.store { position: relative; padding: var(--s8) 0 var(--s7); }
.store::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
.chips { position: sticky; top: calc(var(--nav-h) + 10px); z-index: 20; display: flex; justify-content: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto var(--s7); padding: 6px; border-radius: 999px; background: rgba(9,17,40,.82); border: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: 14px; transition: color .2s, background .2s; }
.chip span { font-size: 11px; min-width: 22px; text-align: center; background: rgba(255,255,255,.08); color: var(--text-muted); border-radius: 999px; padding: 2px 7px; }
.chip:hover { color: var(--text); background: rgba(255,255,255,.06); }
.chip.is-active { color: var(--on-gold); background: var(--grad-gold); }
.chip.is-active span { background: rgba(0,0,0,.18); color: var(--on-gold); }

.category { margin-bottom: var(--s9); }
.category:last-child { margin-bottom: var(--s6); }
.category__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s6); padding-bottom: var(--s4); position: relative; }
.category__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: repeating-linear-gradient(90deg, rgba(148,178,255,.22) 0 8px, transparent 8px 16px); }
.category__title { display: flex; align-items: center; gap: 14px; margin: 0; font: 20px/1.4 var(--font-pixel); }
.category__block { width: 22px; height: 22px; background: var(--grad-gold); box-shadow: inset -4px -4px 0 rgba(0,0,0,.25), inset 4px 4px 0 rgba(255,255,255,.3); }
#keys .category__block { background: var(--grad-cyan); }
#bundles .category__block { background: linear-gradient(180deg, #d4b8ff, #8b5cf6); }
.category__sub { margin: 0; color: var(--text-muted); }
.swipe-hint { display: none; }
.dots { display: none; }

.grid { display: grid; gap: var(--s5); grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; perspective: 1200px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; margin-inline: auto; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 660px; margin-inline: auto; }
.grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; margin-inline: auto; row-gap: var(--s6); }
.grid--8 { row-gap: var(--s6); }
.grid--1 { grid-template-columns: minmax(0, 340px); justify-content: center; }
.card-wrap { display: flex; padding-top: 14px; }

/* ---------- Product card ---------- */
.card {
  --accent: var(--gold); --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; flex: 1; display: flex; flex-direction: column; padding: var(--s5); padding-top: var(--s4);
  border-radius: var(--radius-lg); isolation: isolate;
  background:
    radial-gradient(260px 180px at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(180deg, #172a58 0%, #101f45 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, var(--shadow);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before { /* shimmer sweep */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; pointer-events: none; overflow: hidden;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 45%, rgba(255,255,255,.02) 55%, transparent 70%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0; transition: background-position 0s;
}
.card::after { /* cursor light */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 75%, transparent); transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-8px);
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 30px 60px rgba(0,0,0,.5), 0 0 40px color-mix(in srgb, var(--accent) 30%, transparent); }
.card:hover::before { background-position: -60% 0; transition: background-position .9s var(--ease); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 2; }

.card--featured {
  border: 2px solid transparent;
  background:
    radial-gradient(280px 200px at 50% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%) padding-box,
    linear-gradient(180deg, #1a3066 0%, #11224b 100%) padding-box,
    linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent) 40%, color-mix(in srgb, var(--accent) 25%, transparent) 60%, var(--accent)) border-box;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 20px 50px rgba(0,0,0,.45), 0 0 50px color-mix(in srgb, var(--accent) 28%, transparent);
}

.ribbon {
  position: absolute !important; top: -14px; left: 50%; transform: translateX(-50%); z-index: 3 !important;
  padding: 7px 14px 6px; border-radius: 8px; white-space: nowrap;
  font: 9px/1.4 var(--font-pixel); letter-spacing: .5px; text-transform: uppercase;
  color: #06121a; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 60%, #fff), var(--accent));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 -2px 0 rgba(0,0,0,.2);
}
.card:not(.card--featured) .ribbon { background: rgba(9,17,40,.95); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: none; }

.card__stage { position: relative; height: 128px; display: grid; place-items: center; margin: var(--s3) 0 var(--s4); }
.card__icon { width: 76px; height: 76px; position: relative; z-index: 2; filter: drop-shadow(0 10px 8px rgba(0,0,0,.45)); animation: bob 3.6s ease-in-out infinite; transition: transform .35s var(--ease); }
.card-wrap:nth-child(2n) .card__icon { animation-delay: -1.2s; }
.card-wrap:nth-child(3n) .card__icon { animation-delay: -2.4s; }
.card__icon svg { width: 100%; height: 100%; }
.card:hover .card__icon { transform: scale(1.12) translateZ(40px); }
@keyframes bob { 0%, 100% { translate: 0 -6px; } 50% { translate: 0 4px; } }
.card__platform { position: absolute; bottom: 4px; width: 120px; height: 26px; border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 70%, transparent) 0%, color-mix(in srgb, var(--accent) 25%, transparent) 40%, transparent 70%);
  filter: blur(2px); animation: platform 3.6s ease-in-out infinite; }
.card__platform::before { content: ""; position: absolute; inset: 7px 22px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 80%, #fff); opacity: .55; }
.card-wrap:nth-child(2n) .card__platform { animation-delay: -1.2s; }
.card-wrap:nth-child(3n) .card__platform { animation-delay: -2.4s; }
@keyframes platform { 0%, 100% { transform: scale(.9); opacity: .8; } 50% { transform: scale(1.05); opacity: 1; } }

.card__name { margin: 0; text-align: center; font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.price { display: flex; justify-content: center; align-items: flex-start; margin: var(--s2) 0 var(--s5); color: var(--text); line-height: 1; }
.price__cur { font-size: 20px; font-weight: 800; margin-top: 6px; color: var(--accent); }
.price__num { font-size: 48px; font-weight: 900; letter-spacing: -.03em; }
.price__cents { font-size: 20px; font-weight: 800; margin-top: 6px; color: var(--text-muted); }
.card__perks { list-style: none; margin: 0 0 var(--s5); padding: var(--s4) 0 0; border-top: 1px solid var(--border); flex: 1; display: grid; gap: 10px; align-content: start; }
.card__perks li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.45; color: #d6def5; }
.card__perks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.card__perks li::after { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M6 1h1v2H6v1H5v1H4v1H2V5H1V4H0V3h2v1h1V3h1V2h1V1h1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M6 1h1v2H6v1H5v1H4v1H2V5H1V4H0V3h2v1h1V3h1V2h1V1h1z'/%3E%3C/svg%3E") center / contain no-repeat; }

.btn--buy { color: var(--on-gold); background: var(--grad-gold); }
.btn--buy svg { transition: transform .2s var(--ease); }
.btn--buy:hover svg { transform: translateX(4px); }
.card:not(.card--featured) .btn--buy { background: rgba(255,255,255,.07); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 -3px 0 rgba(0,0,0,.25); }
.card:not(.card--featured):hover .btn--buy { background: var(--grad-gold); color: var(--on-gold); box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), 0 10px 26px rgba(255,140,0,.35); }
.card--featured .btn--buy { box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.4), 0 10px 26px rgba(255,140,0,.35); }

/* ---------- Reveal ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- FAQ ---------- */
.faq { padding: var(--s9) 0 var(--s8); background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.faq__layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s8); align-items: start; }
.faq__layout .section-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq__list { display: grid; gap: var(--s3); }
.faq__item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, background .25s, box-shadow .25s; }
.faq__item:hover { border-color: var(--border-strong); }
.faq__item[open] { background: linear-gradient(180deg, #172b5c, var(--surface)); border-color: rgba(255,176,0,.45); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.faq__item summary { position: relative; list-style: none; cursor: pointer; padding: 20px 64px 20px 24px; font-size: 17px; font-weight: 700; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 8px;
  background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cpath fill='%23ffb000' d='M4 1h2v3h3v2H6v3H4V6H1V4h3z'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .3s var(--ease), background-color .3s; }
.faq__item[open] summary::after { transform: rotate(180deg); background-color: rgba(255,176,0,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' shape-rendering='crispEdges'%3E%3Cpath fill='%23ffb000' d='M1 4h8v2H1z'/%3E%3C/svg%3E"); }
.faq__body { padding: 0 24px 22px; color: var(--text-muted); animation: faqIn .35s var(--ease); }
.faq__body p { margin: 0; }
.faq__body code { color: var(--cyan); background: rgba(34,211,238,.1); padding: 1px 6px; border-radius: 4px; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Discord CTA ---------- */
.cta { padding: 0 0 var(--s9); background: var(--bg-2); }
.cta__box {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: var(--s6);
  padding: var(--s8); border-radius: 32px; color: #fff;
  background:
    radial-gradient(500px 300px at 90% 20%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, #4450e6 0%, #5865f2 45%, #7b5cff 100%);
  box-shadow: 0 30px 80px rgba(88,101,242,.35), inset 0 1px 0 rgba(255,255,255,.3);
}
.cta__box::before { content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.6) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.6) 2px, transparent 2px); background-size: 40px 40px;
  mask-image: radial-gradient(circle at 80% 50%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 80% 50%, #000, transparent 70%); }
.cta__text { position: relative; }
.cta__title { margin: 0 0 var(--s3); font: clamp(20px, 2.6vw, 30px)/1.4 var(--font-pixel); text-shadow: 0 4px 0 rgba(0,0,0,.2); }
.cta__text p { margin: 0 0 var(--s5); font-size: 17px; color: rgba(255,255,255,.88); max-width: 480px; }
.cta__art { position: relative; height: 240px; }
.iso { position: absolute; inset: 0; margin: auto; width: 260px; height: 240px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.iso__block--top { animation: hop 3s ease-in-out infinite; }
@keyframes hop { 0%, 100% { transform: translate(60px, 22px); } 50% { transform: translate(60px, 8px); } }
.cta__bubble { position: absolute; padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: 13px; color: #fff; background: rgba(20,24,60,.55); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 10px 24px rgba(0,0,0,.2); white-space: nowrap; }
.cta__bubble--a { top: 8px; left: -10px; animation: float 5s ease-in-out infinite; }
.cta__bubble--b { bottom: -2px; right: 0; color: #cfd6ff; animation: float 6s ease-in-out -2s infinite; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--bg-deep); padding: var(--s8) 0 var(--s5); }
.footer__terrain { position: absolute; left: 0; right: 0; top: -23px; height: 24px;
  background:
    linear-gradient(90deg, var(--bg-deep) 0 100%) bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, var(--bg-deep) 0 48px, transparent 48px 64px, var(--bg-deep) 64px 112px, transparent 112px 128px) bottom / 100% 16px no-repeat,
    repeating-linear-gradient(90deg, var(--bg-deep) 0 24px, transparent 24px 88px) bottom / 100% 24px no-repeat; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s7); padding-bottom: var(--s7); }
.footer__brand img { width: 72px; height: 72px; margin-bottom: var(--s4); }
.footer__brand p { margin: 0 0 var(--s4); color: var(--text-muted); max-width: 340px; }
.footer__ip small { margin-left: 6px; color: var(--gold); font-weight: 700; font-size: 12px; }
.footer__col { display: flex; flex-direction: column; gap: var(--s3); }
.footer__col h4 { margin: 0 0 var(--s2); font: 11px var(--font-pixel); color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.footer__col a { color: var(--text-muted); text-decoration: none; font-weight: 500; width: fit-content; transition: color .2s, transform .2s; }
.footer__col a:hover { color: var(--text); transform: translateX(3px); }
.footer__legal { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding-top: var(--s5); border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }
.footer__legal p { margin: 0; }

/* ---------- Kit preview button + modal ---------- */
.btn--kit { margin-bottom: var(--s3); min-height: 44px; font-size: 14px; color: #bff6ff; background: rgba(34,211,238,.08);
  box-shadow: inset 0 0 0 1px rgba(34,211,238,.45), inset 0 -3px 0 rgba(0,0,0,.25); }
.btn--kit svg { width: 16px; height: 16px; }
.btn--kit:hover { background: rgba(34,211,238,.18); color: #fff; box-shadow: inset 0 0 0 1px var(--cyan), inset 0 -3px 0 rgba(0,0,0,.25), 0 10px 24px rgba(34,211,238,.25); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.kit-open, html.kit-open body { overflow: hidden; }

.kit-modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: var(--s4); }
.kit-modal[hidden] { display: none; }
.kit-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 8, 22, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.kit-modal__panel {
  --accent: var(--gold);
  position: relative; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: var(--s6) var(--s5) var(--s5); border-radius: var(--radius-lg);
  background:
    radial-gradient(320px 200px at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(23,42,88,.94), rgba(12,24,54,.96));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, var(--shadow-lg), 0 0 60px color-mix(in srgb, var(--accent) 22%, transparent);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.kit-modal__panel:focus { outline: none; }
.kit-modal.is-open .kit-modal__backdrop { opacity: 1; }
.kit-modal.is-open .kit-modal__panel { opacity: 1; transform: none; }
.kit-modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.06); color: var(--text); transition: background .2s, border-color .2s, color .2s; }
.kit-modal__close svg { width: 14px; height: 14px; }
.kit-modal__close:hover { background: rgba(255,176,0,.16); border-color: var(--gold); color: var(--gold); }
.kit-modal__head { display: flex; align-items: center; gap: var(--s4); padding-right: 48px; }
.kit-modal__icon { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
.kit-modal__icon svg { width: 100%; height: 100%; }
.kit-modal__eyebrow { margin: 0 0 6px; font: 9px/1.5 var(--font-pixel); letter-spacing: .5px; text-transform: uppercase; color: var(--cyan); }
.kit-modal__title { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.01em; color: var(--accent); }
.kit-modal__desc { margin: var(--s4) 0 var(--s4); color: var(--text-muted); font-size: 14.5px; }
.kit-modal__note { margin: var(--s4) 0 0; color: var(--text-dim); font-size: 12.5px; text-align: center; }

/* Minecraft-style inventory grid */
.kit-grid { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px;
  background: #1b1b22; border: 3px solid; border-color: #3a3a46 #0c0c10 #0c0c10 #3a3a46; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255,176,0,.25), inset 0 0 20px rgba(0,0,0,.4); }
.kit-slot { position: relative; aspect-ratio: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 4px 6px; border: 3px solid;
  background: linear-gradient(180deg, #2a2f45, #20243a); border-color: #0d1020 #4a5378 #4a5378 #0d1020; border-radius: 3px;
  transition: background .15s, box-shadow .15s; }
.kit-modal.is-open .kit-slot:not(.kit-slot--empty) { animation: slotIn .35s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes slotIn { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
.kit-slot:not(.kit-slot--empty):hover { background: linear-gradient(180deg, #353c5a, #2a2f4a); box-shadow: inset 0 0 0 2px rgba(34,211,238,.55); }
.kit-slot__icon { width: 44%; max-width: 48px; aspect-ratio: 1; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.45)); }
.kit-slot__icon svg { width: 100%; height: 100%; }
.kit-slot__count { position: absolute; top: 6px; right: 7px; font: 10px/1 var(--font-pixel); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.kit-slot__name { font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; color: #e6ecff; overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .kit-modal { padding: var(--s3); }
  .kit-modal__panel { padding: var(--s5) var(--s4) var(--s4); }
  .kit-modal__title { font-size: 22px; }
  .kit-slot__name { font-size: 11px; }
  .kit-slot__count { font-size: 9px; top: 5px; right: 5px; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 14px 22px; border-radius: 14px; max-width: calc(100% - 32px);
  background: linear-gradient(180deg, #9be27a, var(--grass)); color: #0a1a04; font-weight: 800; box-shadow: 0 16px 40px rgba(0,0,0,.4);
  transition: opacity .25s, transform .3s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__ip { display: none; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__ip { display: inline-flex; }
  .faq__layout { grid-template-columns: 1fr; gap: var(--s6); }
  .faq__layout .section-head { position: static; text-align: center; }
  .pixel-divider--left { justify-content: center; }
  .cta__box { grid-template-columns: 1fr; padding: var(--s7) var(--s6); text-align: center; }
  .cta__text p { margin-inline: auto; }
  .cta__art { height: 200px; order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  /* product rows become swipeable carousels */
  .grid, .grid--3, .grid--2, .grid--6, .grid--8 { display: flex; max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s4);
    margin-inline: -24px; padding: 6px 24px 28px; scroll-padding-inline: 24px; scrollbar-width: none; perspective: none; }
  .grid::-webkit-scrollbar { display: none; }
  .card-wrap { flex: 0 0 min(84%, 320px); scroll-snap-align: start; }
  .swipe-hint { display: block; margin: calc(-1 * var(--s4)) 0 var(--s2); font-size: 13px; color: var(--text-dim); }
  .category { margin-bottom: var(--s7); }
  .dots { display: flex; justify-content: center; gap: 6px; margin-top: calc(-1 * var(--s3)); }
  .dots i { width: 8px; height: 8px; background: rgba(255,255,255,.18); transition: width .25s var(--ease), background .25s; }
  .dots i.is-on { width: 22px; background: var(--gold); }
}
@media (max-width: 560px) {
  :root { --nav-h: 64px; }
  .container { width: calc(100% - 32px); }
  .grid, .grid--3, .grid--2, .grid--6, .grid--8 { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .nav__brand img { width: 38px; height: 38px; }
  .nav__name { display: none; }
  .nav__ip { height: 40px; padding: 0 12px; font-size: 12.5px; }
  .hero { padding-top: calc(var(--nav-h) + var(--s5)); padding-bottom: var(--s9); }
  .hero__tagline { font-size: 16px; padding-inline: var(--s2); }
  .hero__moon { width: 36px; height: 36px; top: 11%; right: 7%; }
  .play { width: 100%; max-width: 380px; flex-wrap: wrap; border-radius: 22px; }
  .play__status { width: 100%; justify-content: center; padding: 8px 12px; border-radius: 16px; }
  .play__main { flex: 1; padding: 10px 12px 8px 14px; }
  .play__copy { width: 56px; margin-top: 6px; border-radius: 16px; }
  .play__ip { font-size: 16px; }
  .hero__cta { width: 100%; max-width: 380px; flex-direction: column; gap: var(--s3); }
  .hero__cta .btn { width: 100%; }
  .scroll-cue { display: none; }
  .features { margin-top: calc(-1 * var(--s7)); padding-bottom: var(--s6); }
  .features__grid { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .feature { flex-direction: column; align-items: flex-start; gap: var(--s3); padding: var(--s4); }
  .feature__icon { width: 44px; height: 44px; padding: 8px; }
  .feature h3 { font-size: 15px; }
  .feature p { font-size: 13px; }
  .section-head { margin-bottom: var(--s6); }
  .section-sub { font-size: 16px; }
  .chips { top: calc(var(--nav-h) + 8px); margin-bottom: var(--s6); }
  .chip { padding: 0 14px; font-size: 13.5px; }
  .chip span { display: none; }
  .category__title { font-size: 16px; }
  .category__head { margin-bottom: var(--s5); }
  .faq { padding: var(--s8) 0; }
  .faq__item summary { font-size: 16px; padding: 18px 60px 18px 18px; }
  .faq__body { padding: 0 18px 18px; }
  .cta { padding: 0 0 var(--s8); }
  .cta__box { padding: var(--s6) var(--s5); border-radius: 24px; }
  .cta__box .btn { width: 100%; }
  .footer__grid { gap: var(--s6); }
  .footer__legal { flex-direction: column; gap: var(--s2); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .cloud { display: none; }
}
