/* ==========================================================================
   FriendsSMP: "Three worlds"
   One stylesheet for the home page and the three gamemode pages.
   Motion is transform/opacity only, and switches off for prefers-reduced-motion.
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --bg: #0c0d10;
  --bg-2: #111217;
  --card: #15161c;
  --card-2: #1b1c23;
  --ink: #f4f1ea;
  --mute: #a3a097;
  --dim: #75736c;
  --line: #24252c;
  --line-2: #34353e;
  --ls: #ff3d55;
  --sv: #62d26f;
  --pvp: #ff9a1f;
  --good: #62d26f;
  --gold: #ffcc33;
  --silver: #d8dee9;
  --bronze: #e08a4a;
  --discord: #5865f2;
  --accent: var(--ink);
  --on-accent: #0c0d10;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 72px;
  --r: 6px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
body[data-mode] { --on-accent: #0c0d10; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 56px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); overflow-x: clip; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 300; padding: 12px 16px; background: var(--ink); color: var(--bg); font-weight: 700; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.disp { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.fine { margin: 0; font-size: 13px; color: var(--dim); }
.empty { margin: 0; padding: 18px; color: var(--mute); text-align: center; }

/* ---------- Buttons, chips, fields ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 4px; font-weight: 700; font-size: 15px; white-space: nowrap; background: var(--card-2); color: var(--ink); border: 1px solid var(--line-2); transition: transform .2s var(--ease), background .2s, border-color .2s, opacity .2s; }
.btn:hover { border-color: var(--mute); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn-primary:hover { border-color: transparent; filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-discord { background: var(--discord); border-color: transparent; color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 4px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 20px; }
.icon-btn:hover { border-color: var(--mute); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 4px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--mute); transition: color .2s, background .2s, border-color .2s; }
.chip:hover { color: var(--ink); border-color: var(--line-2); }
.chip[aria-selected='true'], .chip[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.chip-n { padding: 0 7px; border-radius: 99px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .1); }
.chip[aria-selected='true'] .chip-n { background: rgba(0, 0, 0, .18); }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--mute); }
.field input, .field textarea, .input { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Nav ---------- */

.nav { position: sticky; top: 0; z-index: 60; height: var(--nav-h); background: rgba(12, 13, 16, .9); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-bottom-color: var(--line); background: var(--bg); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.brand img { width: 62px; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-weight: 600; font-size: 15px; }
.nav-links a { position: relative; padding: 8px 0; color: #d9d6ce; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ink); }
.nav-links a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c, var(--accent)); }
.nav-links .mode-link::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 1px; background: var(--c); vertical-align: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--accent); color: var(--on-accent); transform: scale(0); transition: transform .3s var(--ease); }
.cart-count.has { transform: scale(1); }
.cart-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }
.menu-toggle { display: none; }
.mobile-menu { position: absolute; top: var(--nav-h); left: 0; right: 0; padding: 12px var(--gutter) 22px; background: var(--bg-2); border-bottom: 1px solid var(--line); display: grid; }
.mobile-menu a { padding: 13px 0; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section.alt { background: var(--bg-2); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(26px, 4vw, 44px); }
.sec-head h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(46px, 7vw, 96px); line-height: .88; }
.sec-head p { max-width: 400px; color: var(--mute); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Home hero ---------- */

.hero { padding: clamp(36px, 6vw, 64px) 0 clamp(26px, 3vw, 36px); }
.hero .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero h1 { font-size: clamp(72px, 10.4vw, 156px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .02em; }
.hero h1 .line > span { display: inline-block; animation: rise-in 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes rise-in { from { transform: translateY(105%); } }
.hero-aside { width: min(380px, 100%); display: grid; gap: 12px; animation: fade-up .9s .35s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
.live-line { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--mute); }
.live-line b { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.on { background: var(--good); box-shadow: 0 0 0 0 rgba(98, 210, 111, .5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(98, 210, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(98, 210, 111, 0); } }
.ip-copy { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 16px 18px; text-align: left; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); transition: border-color .2s, transform .2s var(--ease); }
.ip-copy:hover { border-color: var(--ink); }
.ip-copy:active { transform: scale(.98); }
.ip-copy small { display: block; font-size: 12px; color: var(--mute); }
.ip-copy b { font-size: clamp(19px, 1.8vw, 23px); font-weight: 700; letter-spacing: -.01em; }
.ip-copy svg { width: 22px; height: 22px; flex: none; }

/* ---------- Poster cards (home) ---------- */

.posters { display: flex; gap: 10px; height: clamp(500px, 41vw, 600px); perspective: 1400px; }
.poster { --c: var(--ink); container-type: inline-size; position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 2.2vw, 30px); border-radius: var(--r); overflow: hidden; isolation: isolate; color: var(--ink); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: flex-grow .7s var(--ease), transform .5s var(--ease), box-shadow .5s; animation: poster-in 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 250ms); }
.poster.tilting { transition: flex-grow .7s var(--ease), transform .1s linear, box-shadow .5s; }
@keyframes poster-in { from { opacity: 0; transform: translateY(60px) rotateX(10deg); } }
.poster:first-child { flex-grow: 1.35; }
.poster-img { position: absolute; inset: -4%; z-index: -3; width: 108%; max-width: none; height: 108%; object-fit: cover; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.02); transition: transform .6s var(--ease), filter .6s; filter: saturate(.85); }
.poster.tilting .poster-img { transition: transform .1s linear, filter .6s; }
.poster::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--c); mix-blend-mode: color; opacity: .55; transition: opacity .5s; }
.poster::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 13, 16, 0) 18%, rgba(12, 13, 16, .55) 55%, rgba(12, 13, 16, .95) 92%); }
.poster .glare { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .14), transparent 45%); opacity: 0; transition: opacity .4s; }
.poster:hover .glare { opacity: 1; }
.poster:hover::before { opacity: .38; }
.poster:hover .poster-img { filter: saturate(1.05); }
.poster > :not(img):not(.glare):not(.particles) { position: relative; z-index: 1; transform: translateZ(40px); }
.poster .tag { align-self: flex-start; margin-bottom: auto; }
.poster h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .84; font-size: clamp(44px, 20cqi, 112px); white-space: nowrap; }
.poster p { max-width: 360px; margin: 10px 0 0; color: #ddd9d0; }
.poster .go { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .2); font-weight: 700; }
.poster .go span:last-child { transition: transform .4s var(--ease); }
.poster:hover .go span:last-child { transform: translateX(6px); }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 3px; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: color-mix(in srgb, var(--c) 20%, rgba(12, 13, 16, .6)); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.tag.live { background: var(--c); color: #fff; border-color: transparent; }
.tag.live .dot { background: #fff; animation: none; }
@media (hover: hover) and (min-width: 1000px) {
  .posters:hover .poster { flex-grow: .9; }
  .posters .poster:hover { flex-grow: 1.6; }
}

/* Countdown */
.cd { display: flex; gap: 6px; margin-top: 12px; }
.cd-u { display: grid; justify-items: center; min-width: 52px; padding: 6px 8px 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); }
.cd-u b { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-u small { font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
.cd-u b.flip { animation: flip .5s var(--ease); }
@keyframes flip { 0% { transform: rotateX(-90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cd.big { gap: 10px; }
.cd.big .cd-u { min-width: clamp(70px, 8vw, 104px); padding: 14px 10px 10px; background: color-mix(in srgb, var(--accent) 9%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.cd.big .cd-u b { font-size: clamp(42px, 5vw, 64px); font-weight: 900; color: var(--accent); }
.cd.big .cd-u small { font-size: 11px; margin-top: 4px; }

/* Ambient pixel particles (hearts, leaves, embers) */
.particles { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.particles i { position: absolute; bottom: -24px; left: var(--x); width: var(--s, 8px); height: var(--s, 8px); opacity: 0; animation: drift var(--t, 9s) linear var(--dl, 0s) infinite; will-change: transform, opacity; }
.paused .particles i, .particles.paused i { animation-play-state: paused; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  12% { opacity: var(--o, .8); }
  85% { opacity: var(--o, .8); }
  100% { transform: translate3d(var(--dx, 30px), calc(var(--h, 520px) * -1), 0) rotate(var(--rot, 180deg)); opacity: 0; }
}
.p-hearts i { background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23ff3d55' d='M1 0h2v1h1V0h2v1h1v2H6v1H5v1H4v1H3V5H2V4H1V3H0V1h1z'/%3E%3C/svg%3E"); --rot: 0deg; }
.p-leaves i { background: #62d26f; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25); --dx: 60px; }
.p-embers i { background: #ffb347; box-shadow: 0 0 10px 2px rgba(255, 154, 31, .6); --rot: 90deg; }

/* ---------- Marquee ---------- */

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.marquee-item b { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; }
.marquee-item small { color: var(--mute); font-size: 14px; }
.marquee-item::after { content: '✦'; margin-left: 44px; color: var(--dim); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Live now (home) ---------- */

.live-panel { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.live-big { padding: clamp(22px, 3vw, 34px); display: grid; align-content: space-between; gap: 22px; min-height: 260px; }
.live-big .num { font-family: var(--display); font-weight: 900; font-size: clamp(90px, 11vw, 150px); line-height: .8; font-variant-numeric: tabular-nums; }
.live-big .num small { font-size: .3em; color: var(--mute); margin-left: 8px; }
.live-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.live-stats > div { background: var(--card); padding: 14px 16px; }
.live-stats dt { font-size: 12px; color: var(--mute); }
.live-stats dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; }
.live-graph { padding: clamp(18px, 2.4vw, 26px); display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.live-graph canvas { width: 100%; height: 140px; display: block; }
.live-graph .row { display: flex; justify-content: space-between; color: var(--mute); font-size: 13px; }
.online-faces { display: flex; flex-wrap: wrap; gap: 6px; min-height: 36px; }
.online-faces .face, .online-faces img { transition: transform .2s var(--ease); }
.online-faces button:hover .face, .online-faces button:hover img { transform: translateY(-3px) scale(1.08); }

/* ---------- Join + vote (home) ---------- */

.join-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 10px; }
.join-card { padding: clamp(22px, 2.6vw, 30px); display: grid; align-content: start; gap: 14px; }
.join-card h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: .9; }
.join-card ol { margin: 0; padding-left: 20px; color: var(--mute); display: grid; gap: 4px; }
.join-card ol b { color: var(--ink); }
.pill-copy { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line-2); text-align: left; transition: border-color .2s; }
.pill-copy:hover { border-color: var(--ink); }
.pill-copy code { font: 600 15px/1.3 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.pill-copy span { font-weight: 700; font-size: 13px; color: var(--mute); }
.lobby { display: flex; gap: 8px; flex-wrap: wrap; }
.lobby span { --c: var(--ink); padding: 6px 10px; border-radius: 3px; font-weight: 700; font-size: 13px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.vote-card { background: var(--card-2); }
.vote-links { display: grid; gap: 8px; }
.vote-links a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line-2); font-weight: 700; transition: border-color .2s, transform .3s var(--ease); }
.vote-links a:hover { border-color: var(--ink); transform: translateX(4px); }
.vote-links .n { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--dim); }

/* ---------- Community ---------- */

.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.social { --c: #fff; display: flex; align-items: center; gap: 16px; padding: 20px 22px; transition: border-color .25s, transform .4s var(--ease); }
.social:hover { border-color: var(--c); transform: translateY(-3px); }
.social .ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 4px; background: var(--c); color: #fff; flex: none; }
.social .ico svg { width: 24px; height: 24px; fill: currentColor; }
.social b { display: block; font-size: 17px; }
.social small { color: var(--mute); }
.social .arrow { margin-left: auto; color: var(--mute); transition: transform .3s var(--ease); }
.social:hover .arrow { transform: translateX(4px); color: var(--ink); }
.staff { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; perspective: 1000px; }
.staffer { --c: var(--gold); position: relative; display: grid; justify-items: center; gap: 8px; padding: 26px 18px 22px; overflow: hidden; }
.staffer::before { content: ''; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent); pointer-events: none; }
.staffer-skin { position: relative; height: 150px; display: grid; place-items: end center; }
.staffer-skin img { height: 150px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .55)); }
.staffer b { font-size: 17px; position: relative; }
.role { position: relative; padding: 3px 10px; border-radius: 3px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }

/* CSS 3D player built from a skin texture (see skins.js) */
.fig { --p: 4.4px; position: relative; display: block; width: calc(16 * var(--p)); height: calc(32 * var(--p)); transform-style: preserve-3d; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .55)); }
.fig-rot { position: absolute; left: 50%; top: calc(50% - 2 * var(--p)); transform-style: preserve-3d; transform: rotateX(-12deg) rotateY(-30deg); animation: fig-spin 7s ease-in-out infinite alternate; }
.fig-part { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.fig-f { position: absolute; left: 0; top: 0; background-image: var(--skin); background-repeat: no-repeat; background-size: calc(64 * var(--p)) auto; image-rendering: pixelated; backface-visibility: hidden; }
@keyframes fig-spin { from { transform: rotateX(-12deg) rotateY(-40deg); } to { transform: rotateX(-12deg) rotateY(30deg); } }
.paused .fig-rot { animation-play-state: paused; }
.fig.drag .fig-rot { animation: none; transform: rotateX(-12deg) rotateY(var(--spin, -30deg)); }

/* ---------- Donate ---------- */

.donate-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.donate-card, .donors-card { padding: clamp(22px, 2.6vw, 30px); }
.donate-form { display: grid; gap: 18px; }
.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.amount { min-height: 52px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line-2); font-weight: 800; font-size: 17px; transition: border-color .2s, transform .2s var(--ease), background .2s; }
.amount:hover { border-color: var(--mute); transform: translateY(-2px); }
.amount.sel { background: var(--ink); color: var(--bg); border-color: transparent; }
.method-body { padding: 16px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 14px; }
.upi { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.qr { width: 150px; height: 150px; padding: 8px; background: #fff; border-radius: 4px; display: grid; place-items: center; }
.qr svg, .qr img { display: block; width: 100%; height: 100%; }
.qr.qr-img { padding: 10px; }
.upi-info { display: grid; gap: 10px; justify-items: start; }
.upi-id { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.upi-id code { padding: 7px 10px; border-radius: 3px; background: var(--card-2); font: 600 14px ui-monospace, Menlo, monospace; }
.donors-card h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 34px; margin-bottom: 16px; }
.donor-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.donor-list li { display: grid; grid-template-columns: auto 36px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 4px; background: var(--bg); }
.donor-list .n { font-family: var(--display); font-weight: 900; font-size: 20px; color: var(--dim); width: 22px; }
.donor-list img { width: 36px; height: 36px; border-radius: 3px; image-rendering: pixelated; }
.donor-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 26px 10px; color: var(--mute); }
.donor-empty b { color: var(--ink); font-size: 18px; }
.donor-empty .heart { width: 46px; height: 40px; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }

/* ---------- FAQ ---------- */

.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 760px; color: var(--mute); }
.faq details[open] p { animation: fade-up .4s var(--ease); }

/* ---------- Footer ---------- */

.footer { position: relative; overflow: hidden; padding: 56px 0 28px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-top p { color: var(--mute); max-width: 280px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 48px; font-weight: 600; }
.footer-links a { color: #d9d6ce; }
.footer-links a:hover { color: var(--ink); }
.footer-about { display: grid; gap: 18px; align-content: start; }
.partner { display: inline-flex; align-items: center; gap: 12px; justify-self: start; padding: 10px 14px 10px 10px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); transition: border-color .25s, transform .3s var(--ease); }
.partner:hover { border-color: #e0662d; transform: translateY(-2px); }
.partner img { width: 32px; height: 32px; }
.partner small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.partner b { font-size: 16px; }
.partner-arrow { color: var(--mute); margin-left: 4px; transition: transform .3s var(--ease); }
.partner:hover .partner-arrow { transform: translate(2px, -2px); color: var(--ink); }
.partner-banner { display: block; margin-top: 10px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #0b0d0c; transition: border-color .3s; }
.partner-banner:hover { border-color: #e0662d; }
.partner-banner img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 225; object-fit: cover; transition: transform .8s var(--ease); }
.partner-banner:hover img { transform: scale(1.02); }
.partner-cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 16px; font-size: 14px; color: var(--mute); }
.partner-cap b { color: var(--ink); margin-right: 6px; }
.partner-cap > span:last-child { font-weight: 700; color: #f08a4b; white-space: nowrap; }
.pay-by a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.wordmark { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(76px, 20.5vw, 300px); line-height: .8; letter-spacing: -.01em; margin: 40px 0 26px; color: transparent; -webkit-text-stroke: 1px var(--line-2); white-space: nowrap; user-select: none; }
.wordmark span { display: inline-block; transition: color .4s, -webkit-text-stroke-color .4s; }
.wordmark span:hover { color: var(--c, var(--accent)); -webkit-text-stroke-color: transparent; }
.legal { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }

/* ==========================================================================
   Gamemode pages
   ========================================================================== */

body[data-mode] { --accent: var(--mode); }

.mhero { position: relative; isolation: isolate; min-height: min(86vh, 760px); display: flex; align-items: flex-end; padding: 120px 0 clamp(36px, 5vw, 60px); overflow: hidden; }
.mhero-img { position: absolute; inset: 0; z-index: -3; width: 100%; max-width: none; height: 115%; object-fit: cover; filter: saturate(.8) brightness(1.05); transform: translate3d(0, var(--scroll, 0), 0) scale(1.06); will-change: transform; animation: hero-zoom 1.6s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.18); filter: saturate(.2) brightness(.4); } }
.mhero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(12, 13, 16, .9) 12%, rgba(12, 13, 16, .25) 60%, rgba(12, 13, 16, 0)), linear-gradient(0deg, var(--bg) 0%, rgba(12, 13, 16, .72) 30%, rgba(12, 13, 16, 0) 62%); }
.mhero .lead, .mhero-side .eyebrow, .mhero-side .fine { text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }
.mhero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--mode); mix-blend-mode: color; opacity: .22; }
.mhero .particles { z-index: -1; }
.mhero .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; min-width: 0; }
.mhero .wrap > * { min-width: 0; max-width: 100%; }
.mhero h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(64px, 17vw, 230px); line-height: .82; color: var(--mode); overflow: hidden; }
.mhero h1 span { display: inline-block; animation: rise-in 1s .1s var(--ease) both; }
.mhero .lead { max-width: 520px; margin-top: 16px; font-size: clamp(17px, 1.6vw, 20px); color: #e4e0d7; animation: fade-up .9s .3s var(--ease) both; }
.mhero-side { display: grid; gap: 12px; justify-items: end; animation: fade-up .9s .45s var(--ease) both; }
.mhero-side .eyebrow { color: #d9d6ce; }
.mhero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.subnav { position: sticky; top: var(--nav-h); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: clamp(18px, 3vw, 34px); overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 15px 0; color: var(--mute); font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { color: var(--ink); border-bottom-color: var(--mode); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; perspective: 1200px; }
.feature { position: relative; padding: 26px 24px 28px; overflow: hidden; transition: border-color .3s, transform .5s var(--ease); }
.feature:hover { border-color: color-mix(in srgb, var(--mode) 55%, transparent); }
.feature .n { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .8; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--mode) 70%, transparent); display: block; margin-bottom: 26px; }
.feature h3 { font-size: 21px; margin-bottom: 6px; }
.feature p { color: var(--mute); }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 620px); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.shot { position: relative; scroll-snap-align: start; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); font-weight: 600; text-align: left; }
.gallery-nav { display: flex; gap: 8px; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 8, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-width: min(1400px, 92vw); max-height: 80vh; border-radius: var(--r); }
.lightbox figcaption { font-weight: 600; }
.lightbox .lb-close { position: absolute; top: 16px; right: 16px; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }

/* ---------- Store ---------- */

.store-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.store-note { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 14px; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; perspective: 1400px; }
.item { --rc: var(--ink); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 16px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .3s; animation: pop .55s var(--ease) both; animation-delay: var(--d, 0s); }
.item.tilting { transition: transform .1s linear, border-color .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.item:hover { border-color: color-mix(in srgb, var(--rc) 45%, transparent); }
.item.rarity-legendary { border-color: rgba(255, 170, 0, .35); }
.item.rarity-epic { border-color: rgba(255, 85, 255, .25); }
.item-shot { position: relative; display: block; width: 100%; aspect-ratio: 11 / 6; border-radius: 4px; overflow: hidden; cursor: zoom-in; background: #090a0d; transform: translateZ(30px); }
.item-shot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 30%, transparent); pointer-events: none; }
.item-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.item-shot .shot-bg { object-fit: cover; filter: blur(14px) brightness(.4) saturate(1.3); transform: scale(1.25); }
.item:hover .item-shot img:not(.shot-bg) { transform: scale(1.05) translateY(-2px); }
.item-shot .zoom { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 3px; background: rgba(0, 0, 0, .6); font-size: 15px; opacity: 0; transition: opacity .2s; }
.item-shot:hover .zoom, .item-shot:focus-visible .zoom { opacity: 1; }
.item-title { display: grid; gap: 1px; padding: 0 4px; transform: translateZ(20px); }
.item h3 { font-size: 20px; font-weight: 700; color: var(--rc); }
.item .kind { font-size: 13px; color: var(--mute); }
.item > p { padding: 0 4px; color: var(--mute); font-size: 14px; }
.item-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 4px 4px 0; transform: translateZ(25px); }
.price { font-family: var(--display); font-weight: 900; font-size: 32px; line-height: 1; }
.price small { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--mute); }
.price s { font-size: 18px; color: var(--dim); font-weight: 700; margin-right: 6px; }
.qty-buy { flex-wrap: wrap; row-gap: 10px; }
.qty-buy .btn { flex: 1 0 100%; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; background: var(--bg); }
.stepper button { width: 34px; height: 34px; font-size: 18px; font-weight: 700; background: rgba(255, 255, 255, .05); }
.stepper button:hover { background: rgba(255, 255, 255, .12); }
.stepper output { min-width: 36px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 6px; padding: 0 4px; transform: translateZ(18px); }
.lvl { display: grid; justify-items: center; gap: 1px; padding: 7px 4px 6px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line-2); transition: border-color .2s, background .2s; }
.lvl b { font-family: var(--display); font-weight: 900; font-size: 20px; line-height: 1; }
.lvl small { font-size: 12px; color: var(--mute); }
.lvl:hover { border-color: var(--mute); }
.lvl[aria-pressed='true'] { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 12%, var(--bg)); }
.lvl[aria-pressed='true'] b { color: var(--rc); }
.item.relevel { animation: none; }
.levels.words .lvl b { font-family: var(--sans); font-size: 13px; font-weight: 700; line-height: 1.3; }
.item-shot.ph { display: grid; place-items: center; cursor: default; background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 22%, transparent), transparent), #090a0d; }
.item-shot.ph svg { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); animation: hover-float 4s ease-in-out infinite alternate; }
.lock { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px dashed var(--line-2); border-radius: 4px; color: var(--mute); font-weight: 600; font-size: 13px; }
.badges { position: absolute; top: 20px; left: 20px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; transform: translateZ(40px); }
.badge { padding: 4px 9px; border-radius: 3px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--gold); color: #1a1200; }
.badge.Sale { background: var(--ls); color: #fff; }
.badge.New { background: #5fe3dd; color: #031a19; }

/* Enchantments / kit contents / rank perks, drawn like an in-game tooltip */
.lore { padding: 8px 11px 9px; font-size: 14px; line-height: 1.4; color: #fff; background: rgba(16, 0, 16, .9); border: 2px solid transparent; border-image: linear-gradient(#5000ff90, #28007f90) 1; transform: translateZ(14px); }
.lore-head { display: block; color: #aaa; }
.lore ul { list-style: none; margin: 0; padding: 0 0 0 10px; }
.lore.ench li { color: #ffaa00; }
.lore.perks li { color: #fff; }
.lore.perks li::before { content: '✓ '; color: #55ff55; }
.lore.perks ul { padding-left: 0; }
.lore.plain ul { padding-left: 0; }
.lore-extra { display: block; margin-top: 3px; color: #55ff55; }

/* Rank cards */
.store-grid:has(.rank) { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } /* ranks fill the row */
.item.rank { padding: 22px 20px 20px; gap: 12px; border-top: 3px solid var(--rc); }
.item.rank .badges { position: static; transform: none; }
.item.rank .price { font-size: 38px; }
.item.rank h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: .9; }
.item.rank.featured { border-color: var(--rc); box-shadow: inset 0 0 0 1px var(--rc); }
.item.rank .badge.hot { background: var(--rc); color: #0c0d10; }

/* Nothing listed yet (before launch) */
.teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; }
.teaser-copy { padding: clamp(24px, 3vw, 36px); display: grid; align-content: center; gap: 14px; }
.teaser-copy h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 4vw, 56px); line-height: .9; }
.teaser-copy p { color: var(--mute); max-width: 420px; }
.mystery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; perspective: 900px; }
.mystery div { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: var(--r); border: 1px dashed color-mix(in srgb, var(--mode) 50%, transparent); background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--mode) 6%, transparent) 12px 24px); font-family: var(--display); font-weight: 900; font-size: 64px; color: color-mix(in srgb, var(--mode) 70%, transparent); animation: hover-float 4s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes hover-float { from { transform: translateY(0) rotateY(-8deg); } to { transform: translateY(-10px) rotateY(8deg); } }

/* Item close-up (modal) */
.item-view { display: grid; gap: 20px; }
.item-view-shot { display: grid; place-items: center; min-height: 160px; padding: 10px; border-radius: 4px; background: #090a0d; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 35%, transparent); }
.item-view-shot img { display: block; max-width: 100%; height: auto; max-height: 50vh; }
.item-view-info { display: grid; grid-template-columns: 1fr minmax(0, 1fr); grid-template-areas: 'kind lore' 'name lore' 'desc lore' 'foot lore'; column-gap: 22px; row-gap: 6px; align-content: start; }
.item-view-info .kind { grid-area: kind; color: var(--mute); font-size: 14px; }
.item-view-info h3 { grid-area: name; font-size: 28px; color: var(--rc); }
.item-view-info p { grid-area: desc; color: var(--mute); }
.item-view-info .lore { grid-area: lore; align-self: start; transform: none; }
.item-view-info .item-foot { grid-area: foot; margin-top: 10px; padding: 0; transform: none; justify-content: flex-start; gap: 18px; }

/* ---------- Custom orders + ticket chat ---------- */

.custom-order { margin-top: 10px; padding: clamp(20px, 2.6vw, 30px); display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; }
.co-intro h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: .9; margin: 10px 0 10px; }
.co-intro > p { color: var(--mute); }
.co-steps { list-style: none; counter-reset: step; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.co-steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; color: var(--mute); font-size: 14px; }
.co-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-family: var(--display); font-weight: 900; font-size: 18px; }
.co-steps b { display: block; color: var(--ink); }
.co-form { display: grid; gap: 14px; }
.co-error { padding: 10px 12px; border-radius: 4px; background: rgba(255, 85, 85, .12); border: 1px solid rgba(255, 85, 85, .35); color: #ffb8b8; font-size: 14px; }
.co-chat { display: grid; gap: 12px; }
.co-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.co-head b { margin-right: 10px; font-size: 19px; }
.co-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.co-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.co-tabs .chip { min-height: 32px; padding: 0 12px; font-size: 13px; }
.co-tabs .chip i { width: 7px; height: 7px; border-radius: 1px; background: var(--c); display: inline-block; }
.co-back { justify-self: start; color: var(--accent); font-weight: 700; }
.co-status { padding: 3px 9px; border-radius: 3px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--good); background: rgba(98, 210, 111, .12); border: 1px solid rgba(98, 210, 111, .35); }
.co-status.closed { color: var(--mute); background: rgba(255, 255, 255, .05); border-color: var(--line-2); }
.co-mode { --c: var(--ink); margin-left: 6px; padding: 3px 9px; border-radius: 3px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.co-order { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.co-order div { min-width: 0; padding: 8px 10px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); }
.co-order .wide { grid-column: 1 / -1; }
.co-order span { display: block; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.co-order b { display: block; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.co-pay { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 7%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.co-qr { width: 128px; height: 128px; }
.co-pay-info { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.co-pay-info p { font-size: 13.5px; color: var(--mute); }
.co-msgs { display: flex; flex-direction: column; gap: 10px; height: 300px; padding: 14px; overflow-y: auto; overscroll-behavior: contain; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); }
.co-note { margin: 0 0 4px; text-align: center; color: var(--dim); font-size: 13px; }
.co-msg { max-width: 82%; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); animation: pop .3s ease-out both; }
.co-msg.me { align-self: flex-end; background: color-mix(in srgb, var(--accent) 18%, transparent); border-bottom-right-radius: 3px; }
.co-msg.them { align-self: flex-start; background: rgba(88, 101, 242, .2); border-bottom-left-radius: 3px; }
.co-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 12px; color: var(--mute); }
.co-meta b { font-size: 13px; color: var(--ink); }
.co-meta time { margin-left: auto; padding-left: 10px; }
.co-tag { padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--discord); }
.co-msg p { font-size: 14.5px; overflow-wrap: anywhere; }
.co-msg a { color: #7fd6ff; }
.co-send { display: flex; align-items: flex-end; gap: 8px; }
.co-send textarea { flex: 1; min-height: 46px; max-height: 120px; padding: 11px 14px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--bg); resize: none; outline: none; }
.co-send textarea:focus { border-color: var(--accent); }
.co-closed { text-align: center; color: var(--mute); font-size: 14px; }
.co-off { display: grid; justify-items: start; gap: 12px; color: var(--mute); }

/* Checkout */
.pay { display: grid; gap: 14px; }
.pay h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 46px; line-height: .9; }
.pay > p { color: var(--mute); }
.pay-lines { display: grid; gap: 6px; max-height: 170px; margin: 0; padding: 10px 12px; overflow-y: auto; list-style: none; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.pay-lines li { display: flex; justify-content: space-between; gap: 12px; }
.pay-lines b { font-variant-numeric: tabular-nums; }
.pay-by { padding: 10px 12px; border-radius: 4px; background: rgba(98, 210, 111, .08); border: 1px solid rgba(98, 210, 111, .25); font-size: 13px; color: #cfe8d2; }
.store-note b, .pay-by b { color: var(--ink); }
.linkish { justify-self: start; color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.order-steps { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.order-steps li { position: relative; padding: 10px 8px 8px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); color: var(--dim); font-weight: 700; font-size: 13px; text-align: center; }
.order-steps li.done { color: var(--good); border-color: rgba(98, 210, 111, .45); background: rgba(98, 210, 111, .08); }
.order-steps li.done::before { content: '✓ '; }
.order-steps li.now { color: var(--ink); border-color: var(--accent); }
.order-steps li.now::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px; background: var(--accent); transform-origin: left; animation: progress 1.6s ease-in-out infinite; }
@keyframes progress { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.order-status[data-status='delivered'] h3, .order-status[data-status='paid'] h3 { color: var(--good); }
.order-status[data-status='failed'] h3, .order-status[data-status='review'] h3 { color: #ff8a8a; }

/* ---------- Leaderboards ---------- */

.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.lookup { display: flex; gap: 8px; width: min(420px, 100%); }
.lookup .input { min-height: 42px; }
.lb-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 10px; padding: 26px 18px 0; min-height: 380px; overflow: hidden; perspective: 900px; }
.pod { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; animation: pod-rise .8s var(--ease) both; }
.pod.second { animation-delay: .1s; } .pod.third { animation-delay: .2s; }
@keyframes pod-rise { from { opacity: 0; transform: translateY(60px); } }
.pod .fig { --p: 3.6px; }
.pod.first .fig { --p: 4.4px; }
.pod img.skin { height: 150px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .55)); }
.pod-name { font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-val { font-size: 13px; color: var(--mute); }
.pod-block { --c: var(--silver); width: 100%; height: 90px; display: grid; place-items: center; margin-top: 8px; font-family: var(--display); font-weight: 900; font-size: 46px; color: #0c0d10; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); border-radius: 3px 3px 0 0; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35); }
.pod.first .pod-block { --c: var(--gold); height: 130px; }
.pod.third .pod-block { --c: var(--bronze); height: 70px; }
.pod button { display: grid; justify-items: center; gap: 6px; width: 100%; }
.crown { width: 34px; height: 26px; margin-bottom: -4px; animation: crown 2.4s ease-in-out infinite alternate; }
@keyframes crown { to { transform: translateY(-5px) rotate(-6deg); } }
.lb-list-wrap { padding: 8px; }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lb-row { position: relative; display: grid; grid-template-columns: 32px 36px 1fr auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 4px; overflow: hidden; isolation: isolate; animation: slide .5s var(--ease) both; }
@keyframes slide { from { opacity: 0; transform: translateX(24px); } }
.lb-row:hover { background: rgba(255, 255, 255, .04); }
.lb-row .bar { position: absolute; inset: 0 auto 0 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent); transition: width 1s var(--ease); }
.lb-row .pos { font-family: var(--display); font-weight: 900; font-size: 20px; color: var(--dim); text-align: center; }
.lb-row.top1 .pos { color: var(--gold); } .lb-row.top2 .pos { color: var(--silver); } .lb-row.top3 .pos { color: var(--bronze); }
.lb-row .nm { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lb-row .vl { font-weight: 800; font-variant-numeric: tabular-nums; }
.lb-hit { position: absolute; inset: 0; z-index: 1; border-radius: 4px; }
.lb-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 10px 12px 4px; font-size: 12px; color: var(--dim); }

.face { --fs: 36px; display: inline-block; flex: none; width: var(--fs); height: var(--fs); border-radius: 3px; background-color: #222; background-repeat: no-repeat; background-size: calc(var(--fs) * 8) auto, calc(var(--fs) * 8) auto, 100% 100%; background-position: calc(var(--fs) * -5) calc(var(--fs) * -1), calc(var(--fs) * -1) calc(var(--fs) * -1), 0 0; image-rendering: pixelated; }
img.skin { image-rendering: pixelated; border-radius: 3px; }
.rank-tag { --rc: #9aa4c7; display: inline-flex; flex: none; padding: 1px 7px; border-radius: 3px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); }
.team-tag { display: inline-flex; padding: 1px 8px; border-radius: 3px; font-size: 11px; font-weight: 700; color: #cfe3ff; background: rgba(90, 140, 255, .14); border: 1px solid rgba(90, 140, 255, .35); }
.teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.team-card { padding: 18px; display: grid; gap: 14px; }
.team-top { display: flex; align-items: baseline; gap: 10px; }
.team-top b { font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-pos { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--gold); }
.team-count { margin-left: auto; color: var(--mute); font-size: 13px; white-space: nowrap; }
.team-faces { display: flex; gap: 6px; flex-wrap: wrap; }
.face-btn { line-height: 0; border-radius: 3px; transition: transform .2s var(--ease); }
.face-btn:hover { transform: translateY(-3px) scale(1.08); }
.team-stats, .profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.team-stats div, .profile-stats div { padding: 8px 10px; border-radius: 4px; background: var(--bg); }
.team-stats dt, .profile-stats dt { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.team-stats dd, .profile-stats dd { margin: 2px 0 0; font-weight: 800; }

/* Player profile (modal) */
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.profile-model { position: relative; height: 280px; display: grid; place-items: center; border-radius: 4px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent), var(--bg); cursor: grab; touch-action: pan-y; perspective: 800px; }
.profile-model .fig { --p: 6.4px; }
.profile-model > span { position: absolute; bottom: 10px; font-size: 12px; color: var(--dim); }
.profile-info { display: grid; gap: 12px; }
.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-head h3 { font-size: 26px; }
.profile-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.profile-stats { grid-template-columns: repeat(2, 1fr); }
.profile-stats .wide { grid-column: 1 / -1; }
.status-on { display: inline-flex; align-items: center; gap: 8px; color: var(--good); font-weight: 700; font-size: 14px; }
.status-off { color: var(--mute); font-size: 14px; }

/* ---------- Drawer, modal, toasts ---------- */

.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line-2); transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1; }
.drawer-head h3 small { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; margin-left: 6px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; gap: 8px; align-content: start; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 4px; background: var(--card); border: 1px solid var(--line); animation: pop .3s var(--ease) both; }
.cart-thumb { display: grid; place-items: center; width: 60px; height: 42px; border-radius: 3px; overflow: hidden; background: #090a0d; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item b { display: block; font-size: 15px; }
.cart-item small { color: var(--mute); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 28px; height: 28px; border-radius: 3px; background: rgba(255, 255, 255, .08); font-weight: 800; }
.qty button:hover { background: rgba(255, 255, 255, .16); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.cart-total b { font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1; }
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.scrim.show { opacity: 1; visibility: visible; }

.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 8, .78); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-card { position: relative; width: min(540px, 100%); max-height: 90vh; overflow-y: auto; padding: 28px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); transform: translateY(20px) scale(.97); transition: transform .4s var(--ease); }
.modal-card.wide { width: min(780px, 100%); }
.modal.open .modal-card { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal h3 { margin-bottom: 10px; font-size: 24px; }
.modal p { color: var(--mute); }
.modal pre { white-space: pre-wrap; padding: 14px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.modal .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* Minecraft-style advancement toasts */
.toasts { position: fixed; top: calc(var(--nav-h) + 16px); right: 16px; z-index: 120; display: grid; gap: 8px; pointer-events: none; }
.adv { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 10px; width: min(320px, calc(100vw - 32px)); padding: 8px 14px 8px 10px; background: #212121; border: 2px solid #000; border-radius: 4px; box-shadow: inset 0 0 0 2px #555, inset 0 0 0 4px #212121, 0 12px 30px rgba(0, 0, 0, .5); transform: translateX(120%); transition: transform .45s var(--ease); }
.adv.show { transform: none; }
.adv-icon { display: grid; place-items: center; }
.adv-icon img { width: 40px; height: 28px; object-fit: contain; image-rendering: pixelated; }
.adv-text { display: grid; gap: 2px; min-width: 0; }
.adv-text b { color: #ffff55; font-size: 15px; font-weight: 600; }
.adv-warn .adv-text b { color: #ff5555; }
.adv-msg .adv-text b { color: #55ffff; }
.adv-text span { font-size: 14.5px; line-height: 1.25; }
.xp-orb { position: fixed; left: -6px; top: -6px; z-index: 140; width: 12px; height: 12px; pointer-events: none; background: radial-gradient(circle at 35% 35%, #fbff8a, #a6ff2e 45%, #3fa30d 75%); box-shadow: 0 0 12px 3px rgba(166, 255, 46, .7); clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .join-grid { grid-template-columns: 1fr 1fr; }
  .vote-card { grid-column: 1 / -1; }
  .lb-body { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .hero .wrap { flex-direction: column; align-items: stretch; }
  .hero-aside { width: 100%; }
  /* fixed heights, so the space is reserved before the cards are drawn (no jump) */
  .posters { flex-direction: column; height: auto; min-height: calc(400px + 2 * 360px + 20px); perspective: none; }
  .poster, .poster:first-child { flex: none; height: 360px; }
  .poster:first-child { height: 400px; }
  .live-panel, .donate-grid, .custom-order, .teaser { grid-template-columns: 1fr; }
  .socials { grid-template-columns: 1fr; }
  .mhero .wrap { flex-direction: column; align-items: stretch; }
  .mhero-side { justify-items: start; }
  .mhero h1 { font-size: min(20vw, 160px); overflow-wrap: anywhere; }
  .mhero-actions { justify-content: flex-start; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .brand img { width: 52px; }
  .brand span { display: none; }
  .join-grid { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .upi { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .upi-info { justify-items: center; }
  .upi-id { justify-content: center; }
  .item-view-info { grid-template-columns: 1fr; grid-template-areas: 'kind' 'name' 'desc' 'lore' 'foot'; }
  .profile { grid-template-columns: 1fr; }
  .profile-model { height: 220px; }
  .co-msgs { height: 260px; }
  .co-msg { max-width: 92%; }
  .co-pay { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .co-pay-info { justify-items: center; }
  .podium { min-height: 300px; padding: 18px 6px 0; gap: 6px; }
  .pod .fig { --p: 2.8px; } .pod.first .fig { --p: 3.4px; }
  .pod-block { font-size: 34px; }
  .cd.big .cd-u { min-width: 0; flex: 1; }
  .cd.big { width: 100%; }
  .mystery div { font-size: 44px; }
  .store-grid { grid-template-columns: 1fr; }
  .partner-banner img { aspect-ratio: 16 / 5; object-position: 12% 50%; }
  .sec-head h2 { font-size: min(10.5vw, 64px); overflow-wrap: anywhere; }
  .toasts { top: auto; bottom: 16px; }
}

/* ==========================================================================
   Legal pages: Terms, Privacy, Refund policy, Contact
   ========================================================================== */

.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; font-weight: 600; }
.legal-links a { color: #d9d6ce; }
.legal-links a:hover { color: var(--ink); }

.doc-hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(30px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.doc-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--ls) 0 33.4%, var(--sv) 33.4% 66.7%, var(--pvp) 66.7%); transform-origin: left; animation: doc-bar 1.1s .1s var(--ease) both; }
@keyframes doc-bar { from { transform: scaleX(0); } }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(26px, 4vw, 44px); }
.doc-tabs a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 4px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--mute); transition: color .2s, border-color .2s; }
.doc-tabs a:hover { color: var(--ink); border-color: var(--line-2); }
.doc-tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: transparent; }
.doc-hero h1 { margin-top: 14px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(52px, 10vw, 148px); line-height: .84; letter-spacing: -.01em; overflow-wrap: anywhere; animation: fade-up .8s var(--ease) both; }
.doc-hero .lead { max-width: 640px; margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: #e4e0d7; animation: fade-up .8s .12s var(--ease) both; }

.doc { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 760px); gap: clamp(32px, 6vw, 96px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 9vw, 120px); }
.doc-toc { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; display: grid; font-size: 14px; }
.doc-toc .eyebrow { margin-bottom: 12px; }
.doc-toc a { padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--mute); transition: color .2s, border-color .2s; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.on { color: var(--ink); border-left-color: var(--ink); }

.prose { min-width: 0; counter-reset: sec; }
.prose > section { margin-bottom: clamp(36px, 5vw, 52px); scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; counter-increment: sec; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 3.2vw, 40px); line-height: 1; }
.prose h2::before { content: counter(sec, decimal-leading-zero); font-size: .55em; color: var(--dim); }
.prose h3 { margin: 22px 0 8px; font-size: 18px; font-weight: 700; }
.prose p, .prose li { color: #cfcbc2; line-height: 1.7; }
.prose * + p, .prose * + ul { margin-top: 12px; }
.prose ul { margin-bottom: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ''; position: absolute; left: 2px; top: .68em; width: 7px; height: 7px; background: var(--line-2); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; overflow-wrap: anywhere; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { color: var(--ink); }
.tldr { margin-bottom: clamp(36px, 5vw, 52px); padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.tldr li { color: var(--ink); }
.tldr li:nth-child(3n+1)::before { background: var(--ls); }
.tldr li:nth-child(3n+2)::before { background: var(--sv); }
.tldr li:nth-child(3n)::before { background: var(--pvp); }
.final { display: grid; gap: 10px; margin-bottom: clamp(36px, 5vw, 52px); padding: clamp(22px, 3vw, 32px); border-radius: var(--r); border: 1px solid rgba(255, 61, 85, .45); background: linear-gradient(135deg, rgba(255, 61, 85, .13), rgba(255, 61, 85, .02) 60%); }
.final .disp { font-size: clamp(36px, 5.4vw, 64px); }
.final p { color: #e4e0d7; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; padding-top: clamp(40px, 6vw, 72px); }
.contact-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 24px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .25s, transform .3s var(--ease); }
.contact-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c, var(--ink)); }
.contact-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.contact-card h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 36px; line-height: .9; }
.contact-card p { color: var(--mute); }
.contact-card .mail { font: 600 16px ui-monospace, Menlo, monospace; color: var(--ink); overflow-wrap: anywhere; }
.contact-card .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.contact-card p a, .agree a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.contact-more h2::before { content: none; }
.contact-more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 120px); }

@media (max-width: 960px) {
  .doc, .contact-more { grid-template-columns: 1fr; }
  .doc-toc { display: none; }
}

/* ==========================================================================
   Reduced motion: everything still works, nothing moves on its own
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .particles, .marquee .dup { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; row-gap: 12px; }
}
