/* ============ Tokens ============ */
:root {
  --bg: #f8f7f7;
  --surface: #ffffff;
  --ink: #0f1222;
  --ink-2: #4a5068;
  --ink-3: #8a90a6;
  --line: #ebe6e6;
  --brand: #e61428;
  --brand-2: #ff6a3d;
  --online: #22c55e;
  --brand-3: #ffb020;
  --discord: #5865f2;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 18, 34, .06), 0 2px 8px rgba(15, 18, 34, .04);
  --shadow: 0 10px 30px -10px rgba(15, 18, 34, .18), 0 4px 10px -4px rgba(15, 18, 34, .06);
  --shadow-lg: 0 30px 60px -20px rgba(230, 20, 40, .35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Silkscreen", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: hidden; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ============ Utilities ============ */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); display: inline-block; flex: none; }
.dot--green { background: #23a55a; }
.dot--pulse { position: relative; }
.dot--pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

.eyebrow {
  font-family: var(--pixel); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand); display: inline-block; margin-bottom: 12px;
}
.eyebrow--light { color: #ffd5d9; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 700;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { padding: 9px 14px; font-size: .9rem; border-radius: 12px; }
.btn--dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--dark:hover { box-shadow: 0 8px 20px -6px rgba(15, 18, 34, .5); }
.btn--discord { background: var(--discord); color: #fff; box-shadow: 0 10px 24px -10px var(--discord); }
.btn--discord:hover { box-shadow: 0 16px 30px -10px var(--discord); }
.btn--light { background: #fff; color: var(--discord); }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 14px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 8px 0;
}
.nav__inner { display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a {
  position: relative; padding: 8px 14px; border-radius: 10px;
  font-weight: 600; color: var(--ink-2); transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: rgba(230, 20, 40, .07); }
.nav__store {
  background: linear-gradient(135deg, var(--brand), #ff4d3d);
  color: #fff !important;
  box-shadow: 0 8px 18px -8px var(--brand);
}
.nav__store:hover { background: linear-gradient(135deg, #c40f20, var(--brand)) !important; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.logo { display: inline-flex; align-items: center; }
.logo__img { height: 48px; width: auto; transition: transform .4s var(--ease); filter: drop-shadow(0 4px 8px rgba(15, 18, 34, .12)); }
.logo:hover .logo__img { transform: scale(1.05) rotate(-2deg); }
.nav.is-scrolled .logo__img { height: 40px; }
.footer .logo__img { height: 50px; }

.nav__burger { display: none; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav__burger span:nth-child(3) { top: 26px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob--1 { width: 520px; height: 520px; background: #ffc2c7; top: -120px; right: -80px; }
.blob--2 { width: 420px; height: 420px; background: #ffd9c2; bottom: -120px; left: -100px; animation-delay: -6s; }
.blob--3 { width: 300px; height: 300px; background: #ffe4ec; top: 40%; left: 45%; animation-delay: -12s; opacity: .4; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 30px) scale(.95); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 18, 34, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 18, 34, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  font-size: .9rem; color: var(--ink-2);
}
.pill b { color: var(--ink); }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; margin: 22px 0 20px; }
.hero__accent { color: var(--brand); white-space: nowrap; }
/* Rotating word: words stacked in one grid cell (constant width), clipped so they
   never spill onto the lines above/below; each word carries its own static gradient. */
.rotator {
  display: inline-grid; overflow: hidden;
  /* clip-path also clips the composited, transformed text that overflow misses in Chrome */
  clip-path: inset(0); contain: paint;
  padding: 0 .06em .14em; margin: 0 -.06em -.14em;
}
.rotator__w {
  grid-area: 1 / 1; white-space: nowrap;
  background: linear-gradient(90deg, var(--brand), #ff3d6e 60%, var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(110%);
  transition: transform .6s var(--ease);
}
.rotator__w.is-active { transform: none; }
.rotator__w.is-leaving { transform: translateY(-110%); }

.hero__sub { font-size: 1.15rem; color: var(--ink-2); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; margin-top: 34px; }

.ip-card {
  position: relative; text-align: left;
  display: grid; padding: 12px 22px; border-radius: 16px;
  background: var(--surface); border: 1.5px dashed #f5b5bb;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.ip-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-lg); }
.ip-card__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; }
.ip-card__ip { font-family: var(--pixel); font-size: 1.2rem; color: var(--brand); }
.ip-card__hint { font-size: .78rem; color: var(--ink-3); }
.ip-card.is-copied { border-color: var(--online); border-style: solid; }

/* Hero art */
.hero__art { position: relative; height: 540px; perspective: 1200px; }
.iso {
  position: absolute; inset: 0; display: grid; place-items: center;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s var(--ease);
}
.hero__img {
  position: relative; width: min(100%, 560px); height: auto;
  filter: drop-shadow(0 40px 40px rgba(230, 20, 40, .18)) drop-shadow(0 12px 18px rgba(15, 18, 34, .12));
  animation: island 7s ease-in-out infinite;
}
@keyframes island { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -18px; rotate: -1deg; } }
.hero__glow {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 61, 110, .35), rgba(230, 20, 40, .08) 50%, transparent 70%);
  filter: blur(20px); animation: glow 5s ease-in-out infinite;
}
@keyframes glow { 50% { transform: scale(1.12); opacity: .7; } }
.spark { position: absolute; width: 14px; height: 14px; background: var(--brand); box-shadow: inset -3px -3px 0 rgba(0,0,0,.2); animation: spark 6s ease-in-out infinite; }
.s1 { top: 14%; left: 12%; }
.s2 { top: 24%; right: 8%; width: 10px; height: 10px; background: #ff3d6e; animation-delay: -1.5s; }
.s3 { bottom: 18%; left: 6%; width: 18px; height: 18px; background: #22c55e; animation-delay: -3s; }
.s4 { bottom: 10%; right: 16%; width: 12px; height: 12px; background: #3b82f6; animation-delay: -4.5s; }
@keyframes spark { 0%, 100% { transform: translateY(0) rotate(0); opacity: .9; } 50% { transform: translateY(-26px) rotate(90deg); opacity: .5; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }

.float-card {
  position: absolute; display: flex; gap: 12px; align-items: center;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  font-size: .88rem; line-height: 1.35;
  animation: bob 7s ease-in-out infinite;
}
.float-card small { color: var(--ink-3); }
.float-card__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--bg); font-size: 1.2rem; }
.float-card--a { left: -10px; top: 6%; }
.float-card--b { right: 0; bottom: 4%; animation-delay: -3s; }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--ink-3); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink-3); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============ Marquee ============ */
.marquee-wrap { overflow: hidden; padding: 24px 0; margin-top: -34px; }
.marquee { background: var(--ink); color: #fff; padding: 18px 0; overflow: hidden; transform: rotate(-1.5deg); margin: -10px -20px 0; width: calc(100% + 40px); box-shadow: var(--shadow); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; font-family: var(--pixel); font-size: 1.1rem; text-transform: uppercase; }
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "✦"; color: var(--brand-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 90px 0 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.stat__num { display: block; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.stat__num--text { font-size: clamp(1.25rem, 2.2vw, 1.75rem); padding-block: .25em; }
.stat__label { color: var(--ink-3); font-weight: 600; font-size: .95rem; }

/* ============ Sections ============ */
.section { padding: 100px 0; }
.section--tint { background: linear-gradient(180deg, transparent, #f6eeee 20%, #f6eeee 80%, transparent); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
.section__head p { color: var(--ink-2); font-size: 1.1rem; margin-top: 14px; }

/* ============ Modes ============ */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 980px; margin-inline: auto; }
.mode {
  display: block; color: inherit;
  --c: var(--brand);
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px; box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.mode::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 16%, transparent), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.mode:hover { box-shadow: 0 30px 50px -24px color-mix(in srgb, var(--c) 55%, transparent); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.mode:hover::before { opacity: 1; }
.mode > * { position: relative; z-index: 1; }
.mode__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.mode__icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c);
  transition: transform .45s var(--ease);
}
.mode:hover .mode__icon { transform: rotate(-10deg) scale(1.1); }
.mode__icon svg { width: 30px; height: 30px; }
.mode__tag { font-size: .75rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.mode h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.mode p { color: var(--ink-2); }
.mode__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: .9rem; }
.mode__players { color: var(--ink-3); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.mode__players .dot { background: var(--c); }
.mode__play { font-weight: 700; color: var(--c); display: inline-flex; gap: 6px; align-items: center; }
.mode__play svg { transition: transform .25s var(--ease); }
.mode:hover .mode__play svg { transform: translateX(4px); }

/* ============ Steps ============ */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--surface); border-radius: 24px; padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step__n { font-family: var(--pixel); font-size: 2rem; color: var(--brand); opacity: .9; }
.step h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.step p { color: var(--ink-2); }
.inline-ip { font-family: var(--pixel); color: var(--brand); background: rgba(230, 20, 40, .07); padding: 2px 8px; border-radius: 6px; }
.inline-ip:hover { background: rgba(230, 20, 40, .14); }

/* ============ Discord ============ */
.discord {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: 56px; border-radius: 32px; color: #fff;
  background: linear-gradient(135deg, #5865f2, #3b2fc9);
  box-shadow: 0 40px 80px -30px rgba(88, 101, 242, .6);
}
.discord__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.25), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(230, 20, 40, .45), transparent 45%);
}
.discord > :not(.discord__bg) { position: relative; }
.discord h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.discord p { opacity: .9; margin: 14px 0 22px; font-size: 1.08rem; }
.discord__list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-weight: 600; }

.dw { background: #fff; color: var(--ink); border-radius: 22px; padding: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); transform: rotate(2deg); transition: transform .5s var(--ease); }
.discord:hover .dw { transform: rotate(0) translateY(-6px); }
.dw__head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dw__head small { display: flex; gap: 6px; align-items: center; color: var(--ink-3); }
.dw__avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #1b1b22; overflow: hidden; }
.dw__avatar img { width: 34px; height: 34px; }
.dw__channels { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0; }
.dw__channels span { font-size: .8rem; font-weight: 600; color: var(--ink-2); background: var(--bg); padding: 5px 10px; border-radius: 8px; }
.dw__chat { display: grid; gap: 10px; height: 210px; overflow: hidden; align-content: end; mask-image: linear-gradient(transparent, #000 30%); -webkit-mask-image: linear-gradient(transparent, #000 30%); }
.msg { display: flex; gap: 10px; align-items: flex-start; animation: msgIn .5s var(--ease); }
.msg__av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: .75rem; font-weight: 800; }
.msg__body { font-size: .88rem; line-height: 1.4; }
.msg__body b { font-size: .82rem; }
.msg__body p { color: var(--ink-2); }
@keyframes msgIn { from { opacity: 0; transform: translateY(14px); } }

/* ============ Links ============ */
.links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.link-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.link-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.link-card__icon { font-size: 1.8rem; display: inline-block; margin-bottom: 14px; transition: transform .4s var(--ease); }
.link-card:hover .link-card__icon { transform: scale(1.2) rotate(-8deg); }
.link-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.link-card p { color: var(--ink-2); font-size: .95rem; }

/* ============ Footer ============ */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand p { color: var(--ink-2); margin: 12px 0 18px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { font-size: .85rem; font-weight: 600; padding: 7px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); transition: background .2s, color .2s; }
.socials a:hover { background: var(--ink); color: #fff; }
.footer__cols { display: flex; gap: 70px; }
.footer__cols h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--ink-2); font-weight: 500; padding: 4px 0; transition: color .2s; }
.footer__cols a:hover { color: var(--brand); }
.footer__legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .85rem; }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  translate: -50% 140%; opacity: 0;
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 14px; font-weight: 600;
  box-shadow: var(--shadow); transition: translate .4s var(--ease), opacity .4s;
}
.toast.is-show { translate: -50% 0; opacity: 1; }

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

/* ============ Store page ============ */
.store-hero { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 0 60px; position: relative; overflow: hidden; }
.store-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin: 18px 0 14px; }
.store-hero p { color: var(--ink-2); font-size: 1.1rem; max-width: 520px; margin: 0 auto 30px; }
.store-hero__cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn--outline { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { height: 420px; max-width: 480px; width: 100%; margin: 0 auto; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .links-grid { grid-template-columns: repeat(2, 1fr); }
  .discord { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 860px) {
  .nav__burger { display: block; }
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; padding: 10px; border-radius: 18px;
    background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-10px);
    transition: opacity .25s, transform .25s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; transform: none; }
  .nav__links a { padding: 12px 14px; }
  .nav__actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .modes, .steps, .links-grid { grid-template-columns: 1fr; }
  .stats { gap: 12px; padding-top: 70px; }
  .stat { padding: 18px; }
  .section { padding: 72px 0; }
  .discord__list { grid-template-columns: 1fr; }
  .nav__actions .btn--dark { display: none; }
  .float-card { display: none; }
  .footer__cols { gap: 40px; }
}

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

/* ============ Dropdown "Link utili" ============ */
.dd { position: relative; }
.dd__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.dd__btn svg { transition: transform .25s var(--ease); }
.dd:hover .dd__btn, .dd.is-open .dd__btn { color: var(--ink); background: rgba(230, 20, 40, .07); }
.dd.is-open .dd__btn svg { transform: rotate(180deg); }
.dd__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 280px;
  translate: -50% 0; padding: 8px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease);
}
.dd__menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.dd.is-open .dd__menu { opacity: 1; pointer-events: auto; transform: none; }
@media (hover: hover) and (min-width: 861px) {
  .dd:hover .dd__menu { opacity: 1; pointer-events: auto; transform: none; }
  .dd:hover .dd__btn svg { transform: rotate(180deg); }
}
.nav__links .dd__menu a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: none; }
.nav__links .dd__menu a:hover { background: var(--bg); }
.dd__menu span { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--bg); font-size: 1.1rem; }
.dd__menu b { display: block; color: var(--ink); font-size: .95rem; line-height: 1.2; }
.dd__menu small { color: var(--ink-3); font-weight: 500; }

/* ============ Mode extras ============ */
.mode__ver {
  display: inline-block; margin: 0 0 10px; padding: 3px 8px; border-radius: 6px;
  font-family: var(--pixel); font-size: .72rem;
  color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff);
}
.mode__feats { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.mode__feats li { display: flex; gap: 8px; align-items: center; font-size: .92rem; font-weight: 600; color: var(--ink); }
.mode__feats li::before {
  content: ""; width: 8px; height: 8px; flex: none; background: var(--c);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ============ Discord waves ============ */
.section--discord { position: relative; padding: 140px 0; background: linear-gradient(180deg, #f1f1ff, #fbeef0); overflow: hidden; }
.wave { position: absolute; left: 0; width: 100%; height: 70px; color: var(--bg); pointer-events: none; }
.wave--top { top: -1px; }
.wave--bottom { bottom: -1px; transform: scaleY(-1); }
.wave svg { width: 100%; height: 100%; }

/* ============ Footer support CTA ============ */
.footer__support { max-width: 280px; }
.footer__support p { color: var(--ink-2); font-size: .92rem; margin-bottom: 14px; }
.footer__cols .footer__store {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 13px 16px; border-radius: 14px;
  font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), #ff4d3d);
  box-shadow: 0 14px 26px -14px var(--brand), inset 0 -3px 0 rgba(0, 0, 0, .15);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.footer__cols .footer__store:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 30px -14px var(--brand), inset 0 -3px 0 rgba(0, 0, 0, .15); }
.footer__store span { flex: 1; }
.footer__store-arrow { transition: transform .25s var(--ease); }
.footer__store:hover .footer__store-arrow { transform: translateX(4px); }

@media (max-width: 860px) {
  .dd__btn { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .dd__menu { position: static; translate: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 0 8px; display: none; opacity: 1; transform: none; pointer-events: auto; }
  .dd.is-open .dd__menu { display: block; }
  .section--discord { padding: 100px 0; }
}

/* ============ Mode pages ============ */
.page-mode { --c: var(--brand); --c2: #ff3d6e; }
.dd__btn.is-active { color: var(--ink); background: rgba(230, 20, 40, .07); }
.btn--mode { background: var(--c); color: #fff; box-shadow: 0 12px 26px -12px var(--c); }
.btn--mode:hover { box-shadow: 0 18px 32px -12px var(--c); }
.btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .24); }

.mhero { position: relative; overflow: hidden; padding: 130px 0 70px; min-height: 92vh; display: flex; align-items: center; }
.mhero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.mhero__blob { background: color-mix(in srgb, var(--c) 35%, #fff) !important; }
.crumb { display: inline-block; font-weight: 600; color: var(--ink-3); font-size: .92rem; margin-bottom: 18px; transition: color .2s, transform .2s; }
.crumb:hover { color: var(--c); transform: translateX(-3px); }
.mhero__tag {
  display: table; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 25%, #fff);
}
.mhero__title { font-size: clamp(3rem, 7.5vw, 5.6rem); font-weight: 800; letter-spacing: -.035em; margin: 18px 0; line-height: 1; }
.mhero__accent {
  background: linear-gradient(90deg, var(--c, var(--brand)), var(--c2, #ff3d6e));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mhero__sub { font-size: 1.15rem; color: var(--ink-2); max-width: 540px; }
.mhero__facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.mhero__facts li { display: grid; padding: 12px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mhero__facts b { font-family: var(--pixel); color: var(--c); font-size: 1.05rem; }
.mhero__facts span { font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.mhero__art { position: relative; height: 600px; perspective: 1200px; }
.mhero__img { width: auto; max-height: 100%; max-width: 100%; }
.mhero__glow { background: radial-gradient(circle, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%) !important; }
.page-mode .ip-card { border-color: color-mix(in srgb, var(--c) 35%, #fff); }
.page-mode .ip-card__ip { color: var(--c); }

/* Season: podium + countdown */
.season__grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 28px; align-items: end; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.podium__p {
  --m: #c0c4cc; position: relative; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.podium__p--first { --m: #f5b301; }
.podium__p--second { --m: #a3aab8; }
.podium__p--third { --m: #cd7f32; }
.podium__medal {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--pixel); font-size: 1.1rem; color: #fff;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--m) 70%, #fff), var(--m));
  box-shadow: 0 10px 20px -8px var(--m), inset 0 -4px 0 rgba(0,0,0,.15);
  margin-bottom: 8px; animation: bob 4s ease-in-out infinite;
}
.podium__p--first .podium__medal { width: 72px; height: 72px; font-size: 1.35rem; }
.podium__amount { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.podium__p--first .podium__amount { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--c); }
.podium__kind { font-weight: 700; color: var(--ink-3); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; margin-bottom: 14px; }
.podium__step {
  width: 100%; border-radius: 18px 18px 8px 8px; display: grid; place-items: start center; padding-top: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--m) 30%, #fff), color-mix(in srgb, var(--m) 12%, #fff));
  border: 1px solid color-mix(in srgb, var(--m) 40%, #fff); box-shadow: var(--shadow-sm);
}
.podium__step span { font-family: var(--pixel); font-size: 2.6rem; color: color-mix(in srgb, var(--m) 80%, #000); opacity: .5; }
.podium__p--first .podium__step { height: 190px; }
.podium__p--second .podium__step { height: 140px; }
.podium__p--third .podium__step { height: 104px; }

.season__side { display: grid; gap: 16px; }
.season__lb { justify-content: center; }
.cd { background: var(--ink); color: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cd::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 260px; height: 260px; border-radius: 50%; background: var(--c, var(--brand)); filter: blur(70px); opacity: .55; }
.cd > * { position: relative; }
.cd__label { font-family: var(--pixel); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.65); }
.cd__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.cd__cell { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 6px; text-align: center; }
.cd__cell b { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.cd__cell small { color: rgba(255,255,255,.6); font-size: .75rem; font-weight: 600; }
.cd__end { font-size: .9rem; color: rgba(255,255,255,.75); }
.cd__over { display: none; font-weight: 700; }
.cd.is-over .cd__grid, .cd.is-over .cd__end { display: none; }
.cd.is-over .cd__over { display: block; }

/* Features */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.feat:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px color-mix(in srgb, var(--c) 60%, transparent); border-color: color-mix(in srgb, var(--c) 30%, var(--line)); }
.feat__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 1.5rem; background: color-mix(in srgb, var(--c) 10%, #fff); margin-bottom: 16px; transition: transform .4s var(--ease); }
.feat:hover .feat__icon { transform: rotate(-8deg) scale(1.1); }
.feat h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feat p { color: var(--ink-2); font-size: .96rem; }

/* KitPvP pacts */
.pacts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pacts__col { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-sm); }
.pacts__col h3 { font-size: 1.25rem; margin-bottom: 14px; }
.pacts__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pacts__col li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); transition: background .2s, transform .2s; }
.pacts__col li:hover { background: color-mix(in srgb, var(--c) 8%, #fff); transform: translateX(4px); }
.pacts__col li b { font-weight: 800; }
.pacts__col li span { font-family: var(--pixel); font-size: .8rem; color: var(--c); }

/* SMP crates */
.crates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.crate { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.crate:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 26px 40px -24px var(--k); }
.crate__gem {
  display: block; width: 64px; height: 64px; margin: 4px auto 16px; border-radius: 12px; transform: rotate(45deg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--k) 55%, #fff), var(--k));
  box-shadow: 0 14px 26px -10px var(--k), inset -6px -6px 0 rgba(0,0,0,.18), inset 6px 6px 0 rgba(255,255,255,.25);
  animation: gem 5s ease-in-out infinite;
}
@keyframes gem { 50% { transform: rotate(45deg) translateY(-8px) scale(1.04); } }
.crate small { font-family: var(--pixel); font-size: .7rem; color: var(--ink-3); text-transform: uppercase; }
.crate h3 { font-size: 1.3rem; margin: 4px 0 6px; }
.crate p { color: var(--ink-2); font-size: .92rem; }

/* VIP ranks */
.ranks-box {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  padding: 44px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ranks-box h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.ranks-box p { color: var(--ink-2); margin: 12px 0 24px; }
.ranks { display: grid; gap: 10px; }
.rank {
  font-family: var(--pixel); font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 20px; border-radius: 14px; color: #fff;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) calc(55% + var(--i) * 10%), #fff), color-mix(in srgb, var(--c) calc(75% + var(--i) * 5%), #000 10%));
  margin-left: calc(var(--i) * 14px); box-shadow: 0 10px 20px -14px var(--c);
  transition: transform .3s var(--ease);
}
.rank:hover { transform: translateX(8px); }

/* CTA band */
.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 44px; border-radius: 30px; color: #fff;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #000));
  box-shadow: 0 40px 70px -34px var(--c);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.cta-band p { opacity: .9; max-width: 560px; margin-top: 8px; }
.cta-band .btn--light { color: var(--c); }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ Leaderboards ============ */
.lbhero { position: relative; overflow: hidden; padding: 140px 0 40px; text-align: center; }
.lbhero__inner { display: grid; justify-items: center; }
.lbhero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; margin: 18px 0 14px; }
.lbhero p { color: var(--ink-2); font-size: 1.1rem; max-width: 600px; margin-bottom: 30px; }
.lbhero .cd { max-width: 460px; text-align: left; }
.boards-sec { padding-top: 40px; }
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.board { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.board__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 26px 26px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, #fff), #fff); }
.board__head .eyebrow { color: var(--c); margin-bottom: 4px; }
.board__head h2 { font-size: 1.6rem; font-weight: 800; }
.board__more { font-size: .85rem; font-weight: 700; color: var(--c); white-space: nowrap; }
.board__list { list-style: none; margin: 0; padding: 10px; display: grid; gap: 4px; min-height: 200px; }
.board__row { display: grid; grid-template-columns: 44px 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; animation: msgIn .4s var(--ease) both; }
.board__row:nth-child(odd) { background: var(--bg); }
.board__row.is-top { background: color-mix(in srgb, var(--c) 7%, #fff); }
.board__pos { font-family: var(--pixel); text-align: center; font-size: 1rem; color: var(--ink-3); }
.board__row.is-top .board__pos { font-size: 1.4rem; }
.board__head-img { border-radius: 8px; image-rendering: pixelated; }
.board__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__val { font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; }
.board__empty { padding: 50px 20px; text-align: center; color: var(--ink-3); font-weight: 600; }
.board__foot { display: flex; align-items: center; gap: 8px; padding: 14px 26px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); }

@media (max-width: 980px) {
  .mhero__inner { grid-template-columns: 1fr; text-align: center; }
  .mhero__tag, .crumb { margin-inline: auto; }
  .mhero__sub { margin-inline: auto; }
  .mhero__facts { justify-content: center; }
  .mhero__art { height: 440px; }
  .season__grid, .boards, .pacts, .ranks-box { grid-template-columns: 1fr; }
  .feats, .crates { grid-template-columns: repeat(2, 1fr); }
  .rank { margin-left: 0; }
}
@media (max-width: 640px) {
  .mhero { padding-top: 110px; }
  .mhero__art { height: 360px; }
  .feats, .crates { grid-template-columns: 1fr; }
  .podium { gap: 8px; }
  .podium__p--first .podium__step { height: 150px; }
  .podium__p--second .podium__step { height: 110px; }
  .podium__p--third .podium__step { height: 84px; }
  .podium__medal { width: 46px; height: 46px; font-size: .9rem; }
  .podium__p--first .podium__medal { width: 56px; height: 56px; }
  .ranks-box, .cta-band { padding: 28px 22px; }
  .board__row { grid-template-columns: 34px 32px 1fr auto; gap: 8px; padding: 9px 10px; }
  .board__head-img { width: 32px; height: 32px; }
  .board__head { flex-direction: column; align-items: flex-start; }
}
.page-mode .eyebrow { color: var(--c); }
/* The mode images are halves of the hero island: fade the cut edge. */
.mhero__img[src*="kitpvp"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
.mhero__img[src*="smp"] { -webkit-mask-image: linear-gradient(270deg, transparent, #000 22%); mask-image: linear-gradient(270deg, transparent, #000 22%); }
.season__prizes { display: grid; gap: 18px; }
.season__lb { justify-content: center; width: 100%; padding-block: 16px; font-size: 1.02rem; }
.season__grid { align-items: center; }

/* Footer server IP */
.footer__ip {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  padding: 10px 12px 10px 16px; border-radius: 14px; text-align: left;
  background: var(--bg); border: 1.5px dashed #f5b5bb;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.footer__ip:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.footer__ip.is-copied { border-style: solid; border-color: var(--online); }
.footer__ip-text { display: grid; line-height: 1.25; }
.footer__ip-text small { font-size: .72rem; color: var(--ink-3); font-weight: 600; }
.footer__ip-text b { font-family: var(--pixel); color: var(--brand); font-size: 1.05rem; }
.footer__ip-copy { font-size: .8rem; font-weight: 700; color: #fff; background: var(--ink); padding: 6px 10px; border-radius: 9px; }

@media (max-width: 640px) {
  .footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; width: 100%; }
  .footer__support { grid-column: 1 / -1; max-width: none; }
}

/* Footer contact */
.footer__contact { margin-top: 18px; max-width: 320px; }
.footer__mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); transition: color .2s; }
.footer__mail:hover { color: var(--brand); }
.footer__contact p { margin: 6px 0 0; font-size: .88rem; color: var(--ink-3); }
.footer__contact p a { color: var(--discord); font-weight: 700; }
.footer__contact p a:hover { text-decoration: underline; }

/* ============ Player account ============ */
.acct { position: relative; }
.acct__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px;
  padding: 3px 14px 3px 3px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: .9rem; color: var(--ink);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.acct__btn:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-1px); box-shadow: var(--shadow); }
.acct__avatar { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; overflow: hidden; background: var(--bg); color: var(--ink-2); }
.acct__avatar img { width: 32px; height: 32px; image-rendering: pixelated; }
.acct.is-in .acct__avatar { background: none; }
.acct__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acct__menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 270px; z-index: 60;
  padding: 10px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; gap: 2px; animation: msgIn .25s var(--ease);
}
.acct__menu[hidden] { display: none; }
.acct__card { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct__card img { width: 60px; height: 60px; filter: drop-shadow(0 6px 10px rgba(15, 18, 34, .2)); }
.acct__card small { display: block; font-size: .75rem; color: var(--ink-3); font-weight: 600; }
.acct__card b { font-size: 1.1rem; word-break: break-all; }
.acct__ranks { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; }
.acct__ranks:empty { display: none; }
.acct__ranks li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: .85rem; }
.acct__ranks li span { color: var(--ink-3); font-weight: 600; }
.acct__ranks li b { color: var(--brand); }
.acct__menu a, .acct__menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.acct__menu a:hover, .acct__menu button:hover { background: var(--bg); color: var(--ink); }
.acct__menu .acct__out { color: var(--brand); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }

/* Login modal */
body.no-scroll { overflow: hidden; }
.login { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.login.is-open { visibility: visible; }
.login__backdrop { position: absolute; inset: 0; background: rgba(15, 18, 34, .45); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.login.is-open .login__backdrop { opacity: 1; }
.login__card {
  position: relative; width: min(420px, 100%); padding: 30px 28px 24px; border-radius: 26px; text-align: center;
  background: var(--surface); box-shadow: 0 40px 80px -30px rgba(15, 18, 34, .45);
  opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .3s, transform .35s var(--ease);
}
.login.is-open .login__card { opacity: 1; transform: none; }
.login__x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 10px; font-size: 1.4rem; line-height: 1; color: var(--ink-3); }
.login__x:hover { background: var(--bg); color: var(--ink); }
.login__head { width: 120px; height: 120px; margin: -76px auto 10px; border-radius: 28px; display: grid; place-items: center; background: radial-gradient(circle, rgba(230, 20, 40, .18), transparent 70%); }
.login__head img { width: 110px; height: 110px; filter: drop-shadow(0 14px 18px rgba(15, 18, 34, .3)); animation: bob 4s ease-in-out infinite; }
.login__card h2 { font-size: 1.5rem; font-weight: 800; }
.login__sub { color: var(--ink-2); font-size: .95rem; margin: 6px 0 18px; }
.login__field { display: grid; gap: 6px; text-align: left; }
.login__field span { font-size: .8rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.login__field input {
  font: inherit; font-weight: 700; font-size: 1.05rem; padding: 13px 14px; border-radius: 13px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.login__field input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(230, 20, 40, .12); background: #fff; }
.login__err { display: block; min-height: 1.2em; margin: 6px 0 4px; font-size: .82rem; font-weight: 600; color: var(--brand); text-align: left; }
.login__go { width: 100%; justify-content: center; padding-block: 14px; }
.login__note { display: block; margin-top: 14px; color: var(--ink-3); font-size: .78rem; line-height: 1.45; }

.board__row.is-me { outline: 2px solid var(--c); outline-offset: -2px; background: color-mix(in srgb, var(--c) 12%, #fff); }
.board__row.is-me .board__name::after { content: " (tu)"; color: var(--c); font-weight: 800; }

@media (max-width: 860px) {
  .acct__name { display: none; }
  .acct__btn { padding: 3px; }
}

/* ============ Store ============ */
.page-store { --c: var(--brand); --c2: #ff3d6e; }
.nav__store.is-active { box-shadow: 0 0 0 3px rgba(230, 20, 40, .2), 0 8px 18px -8px var(--brand); }
.shero { position: relative; overflow: hidden; padding: 120px 0 30px; text-align: center; }
.shero__inner { display: grid; justify-items: center; }
.shero__logo { width: min(320px, 70vw); height: auto; filter: drop-shadow(0 18px 24px rgba(230, 20, 40, .2)); animation: island 7s ease-in-out infinite; }
.shero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; margin-top: 10px; text-transform: uppercase; }
.shero__bar { display: block; width: 72px; height: 6px; border-radius: 6px; margin: 14px 0 18px; background: linear-gradient(90deg, var(--brand), #ff3d6e); }
.shero p { color: var(--ink-2); font-size: 1.1rem; max-width: 620px; }

.buyer {
  display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 12px 14px 12px 12px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  text-align: left; min-width: min(460px, 100%);
}
.buyer img { width: 48px; height: 48px; filter: drop-shadow(0 6px 10px rgba(15, 18, 34, .2)); }
.buyer__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--bg); font-size: 1.5rem; }
.buyer div { flex: 1; display: grid; }
.buyer small { color: var(--ink-3); font-weight: 600; font-size: .8rem; }
.buyer b { font-size: 1.1rem; word-break: break-all; }
.buyer__change { font-weight: 700; font-size: .85rem; color: var(--brand); padding: 8px 12px; border-radius: 10px; }
.buyer__change:hover { background: rgba(230, 20, 40, .07); }

.store-sec { padding-top: 40px; }
.store-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; }
.store-tab {
  padding: 11px 20px; border-radius: 999px; font-weight: 700; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.store-tab:hover { transform: translateY(-2px); color: var(--ink); }
.store-tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 10px 20px -10px rgba(15, 18, 34, .6); }

.store-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-top: 14px; }
.store-catdesc { grid-column: 1 / -1; text-align: center; color: var(--ink-2); max-width: 680px; margin: -14px auto 6px; }
.store-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--ink-3); font-weight: 600; background: var(--surface); border: 1px dashed var(--line); border-radius: 24px; }
.store-empty a { color: var(--brand); text-decoration: underline; }
.store-thanks { display: grid; gap: 4px; text-align: center; padding: 20px; margin-bottom: 24px; border-radius: 20px; background: color-mix(in srgb, var(--online) 12%, #fff); border: 1px solid color-mix(in srgb, var(--online) 35%, #fff); }
.store-thanks > b { font-size: 1.2rem; }

.pkg {
  --k: var(--line); position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 18px 16px; border-radius: 24px; background: var(--surface);
  border: 1.5px solid var(--k); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.pkg:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(230, 20, 40, .45); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.pkg--red { --k: color-mix(in srgb, var(--brand) 55%, #fff); }
.pkg--gold { --k: #f5b301; }
.pkg--green { --k: color-mix(in srgb, var(--online) 60%, #fff); }
.pkg__badge {
  position: absolute; top: -13px; right: 14px; z-index: 2; padding: 5px 12px; border-radius: 9px;
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff;
  background: var(--brand); box-shadow: 0 8px 16px -8px var(--brand);
}
.pkg--gold .pkg__badge { background: linear-gradient(135deg, #f5b301, #ff8a00); box-shadow: 0 8px 16px -8px #ff8a00; }
.pkg--green .pkg__badge { background: var(--online); box-shadow: 0 8px 16px -8px var(--online); }
.pkg__media {
  width: 100%; aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; overflow: hidden; margin-bottom: 14px;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--brand) 10%, #fff), var(--bg) 70%);
}
.pkg__media img { width: 86%; height: 86%; object-fit: contain; transition: transform .45s var(--ease); filter: drop-shadow(0 14px 18px rgba(15, 18, 34, .25)); }
.pkg:hover .pkg__media img { transform: scale(1.08) rotate(-3deg); }
.pkg__ph { font-size: 3rem; }
.pkg h3 { font-size: 1.1rem; font-weight: 800; min-height: 2.6em; display: grid; place-items: center; }
.pkg__price { display: flex; align-items: baseline; justify-content: center; gap: 8px; width: 100%; margin: 10px 0 12px; padding: 10px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.pkg__price b { font-size: 1.35rem; font-weight: 800; }
.pkg__price s { color: var(--ink-3); font-weight: 600; }
.pkg__buy { width: 100%; justify-content: center; text-transform: uppercase; letter-spacing: .04em; font-size: .92rem; }
.pkg__more { margin-top: 8px; width: 100%; padding: 8px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.pkg__more:hover { background: var(--bg); color: var(--ink); }

.trust { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust li { display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.trust b { font-size: .98rem; }
.trust span { color: var(--ink-3); font-size: .86rem; }

/* Package modal */
.pkg-modal__card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; text-align: left; }
.pkg-modal__img { display: block; width: 160px; height: 160px; object-fit: contain; margin: 0 auto 10px; filter: drop-shadow(0 14px 18px rgba(15, 18, 34, .25)); }
.pkg-modal__card h2 { text-align: center; }
.pkg-modal__price { max-width: 220px; margin-inline: auto; }
.pkg-modal__desc { color: var(--ink-2); font-size: .96rem; margin-bottom: 18px; }
.pkg-modal__desc p { margin: 0 0 .6em; }
.pkg-modal__desc ul { padding-left: 1.2em; }

/* Cart */
.cart-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 18px;
  background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 18px 34px -14px rgba(15, 18, 34, .6);
  transition: transform .25s var(--ease), background .25s;
}
.cart-fab:hover { transform: translateY(-3px); }
.cart-fab b { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: .8rem; background: rgba(255,255,255,.18); }
.cart-fab.has-items { background: var(--brand); }
.cart-fab.has-items b { background: #fff; color: var(--brand); }
.cart-fab.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12) rotate(-3deg); } }
.page-store .toast { bottom: 96px; }

.cart { position: fixed; inset: 0; z-index: 110; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(15, 18, 34, .4); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; background: var(--surface); box-shadow: -20px 0 60px -20px rgba(15, 18, 34, .4);
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.cart.is-open .cart__backdrop { opacity: 1; }
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 22px 12px; }
.cart__head h2 { font-size: 1.4rem; font-weight: 800; }
.cart__head .login__x { position: static; }
.cart__for { display: flex; align-items: center; gap: 8px; margin: 0 22px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: .9rem; color: var(--ink-2); }
.cart__for img { border-radius: 6px; image-rendering: pixelated; }
.cart__for button { color: var(--brand); font-weight: 700; text-decoration: underline; }
.cart__list { list-style: none; margin: 0; padding: 14px 22px; flex: 1; overflow: auto; display: grid; align-content: start; gap: 10px; }
.cart__item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid var(--line); }
.cart__item img, .cart__item .pkg__ph { width: 52px; height: 52px; object-fit: contain; font-size: 1.6rem; display: grid; place-items: center; }
.cart__info { display: grid; min-width: 0; }
.cart__info b { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart__info span { color: var(--ink-3); font-size: .88rem; font-weight: 600; }
.cart__qty { display: flex; align-items: center; gap: 4px; }
.cart__qty button { width: 28px; height: 28px; border-radius: 8px; background: var(--bg); font-weight: 800; }
.cart__qty button:hover { background: var(--line); }
.cart__qty span { min-width: 20px; text-align: center; font-weight: 700; }
.cart__qty .cart__rm { background: none; font-size: .95rem; }
.cart__empty { text-align: center; color: var(--ink-3); padding: 50px 10px; font-weight: 600; }
.cart__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; }
.cart__total span { color: var(--ink-2); font-weight: 600; }
.cart__total b { font-size: 1.6rem; font-weight: 800; }
.cart__pay { justify-content: center; padding-block: 15px; font-size: 1rem; }
.cart__pay:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.cart__foot small { color: var(--ink-3); font-size: .78rem; text-align: center; }

@media (max-width: 1100px) { .store-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .store-grid, .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .store-grid { gap: 14px; }
  .pkg { padding: 12px 12px 12px; border-radius: 20px; }
  .pkg h3 { font-size: .98rem; }
  .pkg__price b { font-size: 1.1rem; }
  .pkg__buy { font-size: .8rem; padding: 12px 8px; }
  .trust { grid-template-columns: 1fr; }
  .cart-fab span { display: none; }
  .buyer { flex-wrap: wrap; }
}
.nav__links a.nav__store.is-active { background: linear-gradient(135deg, var(--brand), #ff4d3d); color: #fff; }
.cart__for { display: block; line-height: 1.5; }
.cart__for img { display: inline-block; vertical-align: -6px; margin-right: 4px; }
.pkg__media img { border-radius: 14px; }

/* Store: mode switcher (KitPvP / SMP) */
.store-modes {
  display: flex; justify-content: center; gap: 6px; width: fit-content; margin: 0 auto 22px; padding: 6px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.store-modes[hidden], .store-tabs[hidden] { display: none; }
.store-mode {
  --m: var(--brand); display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 15px; font-weight: 800; font-size: 1.05rem; color: var(--ink-2);
  transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--ease);
}
.store-mode--smp { --m: #16a34a; }
.store-mode span { font-size: 1.2rem; }
.store-mode:hover { color: var(--ink); transform: translateY(-1px); }
.store-mode.is-active { color: #fff; background: linear-gradient(135deg, var(--m), color-mix(in srgb, var(--m) 70%, #000)); box-shadow: 0 12px 24px -12px var(--m); }
.store-tab.is-active { background: var(--ink); }
body[data-store-mode="smp"] .pkg__buy { background: #16a34a; box-shadow: 0 12px 26px -12px #16a34a; }
body[data-store-mode="smp"] .pkg:hover { box-shadow: 0 30px 50px -28px rgba(22, 163, 74, .45); border-color: color-mix(in srgb, #16a34a 35%, var(--line)); }
body[data-store-mode="smp"] .pkg__media { background: radial-gradient(circle at 50% 60%, color-mix(in srgb, #16a34a 10%, #fff), var(--bg) 70%); }
@media (max-width: 520px) { .store-mode { padding: 12px 16px; font-size: .95rem; } }
