/* ============================================================
   THE HIDEOUT — hideout-site-v2
   Bespoke aqua-on-near-black showcase. Carryover brand: logo + #22d3ee.
   Fonts: Sora (display) · Manrope (body) · Space Mono (data).
   ============================================================ */

:root {
  /* --- brand carryover --- */
  --aqua: #22d3ee;
  --aqua-bright: #6ef2ff;
  --aqua-deep: #0e7490;
  --aqua-ghost: rgba(34, 211, 238, 0.12);
  --aqua-line: rgba(34, 211, 238, 0.28);

  /* --- surfaces (cool near-black) --- */
  --bg: #04070a;
  --bg-1: #070c11;
  --surface: #0b131a;
  --surface-2: #0f1a22;
  --surface-3: #13222c;

  /* --- ink --- */
  --fg: #eaf7fa;
  --fg-muted: #9db1b9;
  --fg-dim: #6f828b; /* ≥4.5:1 on --bg for small text (a11y) */
  --on-aqua: #012028;

  /* --- lines --- */
  --line: rgba(142, 222, 240, 0.09);
  --line-strong: rgba(142, 222, 240, 0.18);

  /* --- type --- */
  --display: "Sora", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  /* --- layout --- */
  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 0.68, 0.18, 1);

  --nav-h: 72px;
  color-scheme: dark;
}

/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

/* ambient page glow */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60vw 50vh at 78% -8%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(50vw 40vh at 12% 108%, rgba(14, 116, 144, 0.14), transparent 60%);
  pointer-events: none; z-index: 0;
}

/* ---------------- layout helpers ---------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; z-index: 1; padding-block: clamp(72px, 11vw, 140px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--aqua); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--aqua-line); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; }
.sec-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { font-size: clamp(30px, 5vw, 50px); margin: 18px 0 16px; }
.sec-head p { color: var(--fg-muted); font-size: clamp(16px, 1.4vw, 18px); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-family: var(--display);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  min-height: 48px; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(180deg, var(--aqua-bright), var(--aqua));
  color: var(--on-aqua);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4), 0 8px 30px -8px rgba(34, 211, 238, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(110, 242, 255, 0.6), 0 14px 40px -8px rgba(34, 211, 238, 0.8); }
.btn--ghost { color: var(--fg); border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--aqua-line); color: var(--aqua); transform: translateY(-2px); }
.btn--lg { padding: 17px 32px; font-size: 16px; min-height: 56px; }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5, 9, 12, 0.72); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__brand img { height: 44px; width: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5)); }
.nav__brand b { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 14px; border-radius: 999px; font-size: 14.5px; color: var(--fg-muted);
  font-weight: 500; transition: color 0.2s, background 0.2s; position: relative;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a.is-active { color: var(--aqua); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line-strong); }
.nav__toggle svg { width: 22px; height: 22px; }

/* ---------------- nav auth / account ---------------- */
.nav__auth { display: flex; align-items: center; }
.btn--discord { background: var(--aqua-ghost); border: 1px solid var(--aqua-line); color: var(--fg); gap: 9px; }
.btn--discord:hover { border-color: var(--aqua); color: var(--aqua); transform: translateY(-2px); }
.btn--discord svg { width: 18px; height: 18px; }

.account { position: relative; }
.account__btn { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02); transition: border-color .2s, background .2s; min-height: 44px; }
.account__btn:hover { border-color: var(--aqua-line); }
.account__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.account__name { font-family: var(--display); font-weight: 600; font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__btn .chev { width: 16px; height: 16px; color: var(--fg-dim); transition: transform .2s; }
.account.is-open .account__btn .chev { transform: rotate(180deg); }
.account__menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 214px; background: rgba(8,13,18,0.97); backdrop-filter: blur(16px); border: 1px solid var(--line-strong); border-radius: 14px; padding: 8px; display: none; flex-direction: column; gap: 2px; box-shadow: 0 20px 50px -12px rgba(0,0,0,.6); }
.account.is-open .account__menu { display: flex; }
.account__menu a, .account__menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--fg-muted); text-align: left; width: 100%; transition: background .15s, color .15s; font-family: var(--body); }
.account__menu a:hover, .account__menu button:hover { background: var(--aqua-ghost); color: var(--aqua); }
.account__menu svg { width: 16px; height: 16px; flex: none; }
.account__menu .divider { height: 1px; background: var(--line); margin: 6px 4px; }
.account__menu .signout:hover { background: rgba(239,68,68,0.12); color: #fca5a5; }

/* ---------------- login page ---------------- */
.auth-page { min-height: 100svh; display: grid; place-items: center; position: relative; padding: calc(var(--nav-h) + 48px) var(--gutter) 64px; overflow: hidden; }
.auth-page__bg { position: absolute; inset: 0; z-index: 0; }
.auth-page__bg video, .auth-page__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.auth-page__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(72% 64% at 50% 42%, rgba(4,7,10,.45), var(--bg) 86%); }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 440px; background: rgba(11,19,26,.82); backdrop-filter: blur(18px); border: 1px solid var(--line-strong); border-radius: 22px; padding: 44px 36px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.auth-card .mark { height: 92px; margin: 0 auto 22px; filter: drop-shadow(0 6px 20px rgba(0,0,0,.5)); }
.auth-card h1 { font-size: 28px; margin-bottom: 10px; }
.auth-card > p { color: var(--fg-muted); font-size: 15px; margin-bottom: 26px; }
.auth-card .btn { width: 100%; }
.auth-perks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; text-align: left; }
.auth-perks li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--fg); }
.auth-perks svg { width: 18px; height: 18px; color: var(--aqua); flex: none; margin-top: 2px; }
.auth-card .fineprint { margin-top: 20px; font-size: 12px; color: var(--fg-dim); font-family: var(--mono); line-height: 1.7; }
.auth-card .fineprint a { color: var(--aqua); }
.auth-back { position: absolute; top: calc(var(--nav-h) + 16px); left: var(--gutter); z-index: 3; color: var(--fg-muted); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.auth-back svg { width: 16px; height: 16px; }
.auth-back:hover { color: var(--aqua); }

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: var(--nav-h); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,7,10,0.55) 0%, rgba(4,7,10,0.35) 35%, rgba(4,7,10,0.85) 82%, var(--bg) 100%),
    linear-gradient(90deg, rgba(4,7,10,0.9) 0%, rgba(4,7,10,0.35) 55%, transparent 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(70% 60% at 30% 40%, #000 0%, transparent 75%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { font-size: clamp(42px, 8vw, 92px); margin: 22px 0; }
.hero h1 .glow { color: var(--aqua); text-shadow: 0 0 40px rgba(34, 211, 238, 0.45); }
.hero__sub { font-size: clamp(17px, 1.8vw, 21px); color: var(--fg-muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: 999px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); font-size: 13.5px; color: var(--fg-muted);
  font-family: var(--mono); letter-spacing: 0.02em;
}
.pill b { color: var(--fg); font-family: var(--body); font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.dot--live { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity: 0.4; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--fg-dim);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--aqua), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%{ transform: scaleY(0); transform-origin: top; } 50%{ transform: scaleY(1); transform-origin: top; } 51%{ transform-origin: bottom; } 100%{ transform: scaleY(0); transform-origin: bottom; } }

/* ---------------- stat band ---------------- */
.stats { border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-1), var(--bg)); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-1); padding: 32px clamp(16px, 2.4vw, 32px); text-align: center; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.5vw, 52px); color: var(--fg); letter-spacing: -0.03em; line-height: 1; }
.stat__num .suffix { color: var(--aqua); }
.stat__label { margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); }

/* ---------------- bento features ---------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feat {
  position: relative; grid-column: span 2; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
  min-height: 230px; display: flex; flex-direction: column;
}
.feat::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 90% at 100% 0%, var(--aqua-ghost), transparent 55%); transition: opacity 0.3s var(--ease);
}
.feat:hover { transform: translateY(-5px); border-color: var(--aqua-line); background: var(--surface-2); }
.feat:hover::after { opacity: 1; }
.feat__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--aqua-ghost); border: 1px solid var(--aqua-line); color: var(--aqua); margin-bottom: 20px; }
.feat__icon svg { width: 24px; height: 24px; }
.feat h3 { font-size: 21px; margin-bottom: 10px; }
.feat p { color: var(--fg-muted); font-size: 15px; flex: 1; }
.feat__tag { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--aqua); letter-spacing: 0.04em; }
.feat--wide { grid-column: span 4; }
.feat--wide h3 { font-size: clamp(24px, 3vw, 34px); }
.feat--wide p { font-size: 16px; max-width: 460px; }
.feat--wide .feat__big { font-family: var(--display); font-weight: 800; font-size: clamp(52px, 8vw, 92px); color: var(--aqua); line-height: 1; letter-spacing: -0.04em; text-shadow: 0 0 50px rgba(34,211,238,0.3); position: absolute; right: 26px; bottom: 14px; opacity: 0.16; pointer-events: none; }

/* ---------------- living city split ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 16/10; }
.split__media video, .split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 90px rgba(4,7,10,0.8); border-radius: inherit; }
.split h2 { font-size: clamp(28px, 4vw, 44px); margin: 16px 0; }
.split p { color: var(--fg-muted); margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--fg); }
.ticks svg { width: 20px; height: 20px; color: var(--aqua); flex: none; margin-top: 2px; }

/* ---------------- content depth bars ---------------- */
.depth { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 18px; }
.bar__label { font-family: var(--mono); font-size: 13px; color: var(--fg-muted); letter-spacing: 0.04em; }
.bar__track { height: 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--aqua-deep), var(--aqua)); box-shadow: 0 0 20px rgba(34,211,238,0.4); transition: width 1.2s var(--ease); }
.bar__val { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--fg); min-width: 54px; text-align: right; }

/* ---------------- join steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.step__n { counter-increment: step; font-family: var(--display); font-weight: 800; font-size: 15px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--aqua-ghost); color: var(--aqua); border: 1px solid var(--aqua-line); }
.step__n::before { content: "0" counter(step); }
.step h3 { font-size: 19px; margin: 18px 0 10px; }
.step p { color: var(--fg-muted); font-size: 15px; }
.connect { margin-top: 18px; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px dashed var(--aqua-line); border-radius: var(--radius-sm); padding: 10px 14px; font-family: var(--mono); font-size: 13px; }
.connect code { color: var(--aqua); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connect button { margin-left: auto; color: var(--fg-muted); display: inline-flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 12px; transition: color 0.2s; }
.connect button:hover { color: var(--aqua); }
.connect button svg { width: 15px; height: 15px; }

/* ---------------- store teaser ---------------- */
.store { background: linear-gradient(180deg, var(--bg), var(--bg-1)); border-block: 1px solid var(--line); }
.tiers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tier { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 13px; color: var(--fg-muted); transition: all 0.2s; }
.tier:hover { border-color: var(--aqua-line); color: var(--aqua); }
.tier b { color: var(--fg); font-family: var(--body); }

/* ---------------- final CTA ---------------- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 100%, rgba(34,211,238,0.14), transparent 60%); pointer-events: none; }
.cta-band h2 { font-size: clamp(34px, 6vw, 68px); margin-bottom: 18px; }
.cta-band h2 .glow { color: var(--aqua); text-shadow: 0 0 40px rgba(34,211,238,0.45); }
.cta-band p { color: var(--fg-muted); max-width: 500px; margin: 0 auto 30px; font-size: 18px; }
.cta-band .hero__cta { justify-content: center; }

/* ---------------- footer ---------------- */
.footer { border-top: 1px solid var(--line); padding-block: 56px 32px; background: var(--bg-1); position: relative; z-index: 1; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer__brand img { height: 88px; margin-bottom: 16px; filter: drop-shadow(0 4px 18px rgba(0,0,0,0.5)); }
.footer__brand p { color: var(--fg-dim); font-size: 14px; max-width: 280px; }
.footer__col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 14px; }
.footer__col a { display: block; color: var(--fg-muted); font-size: 14.5px; padding: 5px 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--aqua); }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--fg-dim); font-size: 13px; font-family: var(--mono); }

/* ---------------- fleet marquee ---------------- */
.marquee { overflow: hidden; width: 100%; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee + .marquee { margin-top: 16px; }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 64s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 78s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { overflow-x: auto; } }

.vcard { flex: none; width: 282px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: block; transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.vcard:hover { transform: translateY(-4px); border-color: var(--aqua-line); background: var(--surface-2); }
.vcard__img { height: 128px; display: grid; place-items: center; position: relative; }
.vcard__img::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 6px; height: 20px; background: radial-gradient(50% 100% at 50% 0, rgba(34,211,238,.28), transparent 70%); filter: blur(6px); }
.vcard__img img { max-height: 128px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,.55)); position: relative; z-index: 1; }
.vcard__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 10px; }
.vcard__name { font-family: var(--display); font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard__price { font-family: var(--mono); font-size: 13px; color: var(--aqua); display: inline-flex; align-items: center; gap: 6px; flex: none; }
.vcard__price .coin { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--aqua-bright), var(--aqua-deep)); box-shadow: 0 0 8px rgba(34,211,238,.5); }
.vcard__cat { display: inline-block; margin-top: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); }

/* ---------------- gallery ---------------- */
.gallery { columns: 3; column-gap: 14px; }
.gcard { display: block; width: 100%; padding: 0; margin: 0 0 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); break-inside: avoid; cursor: pointer; position: relative; background: var(--surface); }
.gcard img { width: 100%; height: auto; display: block; transition: transform .45s var(--ease); }
.gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(34,211,238,.14)); opacity: 0; transition: opacity .3s; }
.gcard:hover img { transform: scale(1.05); }
.gcard:hover::after { opacity: 1; }

/* ---------------- lightbox ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(2,4,6,.94); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 6vh 7vw; }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 88vh; border-radius: 12px; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--fg); display: grid; place-items: center; background: rgba(255,255,255,.04); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--fg); display: grid; place-items: center; background: rgba(255,255,255,.04); }
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--aqua-line); color: var(--aqua); }
.lightbox__close svg { width: 22px; height: 22px; } .lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__prev { left: 18px; } .lightbox__next { right: 18px; }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } .lightbox__nav { width: 44px; height: 44px; } .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; } }

/* ---------------- reveal animations ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ---------------- mobile menu ---------------- */
.mobile-menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: rgba(4,7,10,0.97); backdrop-filter: blur(20px); display: flex; flex-direction: column; padding: 28px var(--gutter); gap: 6px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-family: var(--display); font-weight: 600; font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
.mobile-menu .btn { margin-top: 20px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .feat { grid-column: span 3; }
  .feat--wide { grid-column: span 6; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__right .btn:not(.nav__toggle) { display: none; }
  .nav__toggle { display: inline-flex; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .feat, .feat--wide { grid-column: span 1; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 110px 1fr auto; gap: 12px; }
  .bar__label { font-size: 11.5px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 420px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}

/* ================= STORE PAGE ================= */
.store-hero { padding: calc(var(--nav-h) + 56px) 0 8px; }
.store-hero .eyebrow { margin-bottom: 16px; }
.store-hero h1 { font-size: clamp(34px, 6vw, 60px); }
.store-hero p { color: var(--fg-muted); max-width: 640px; margin-top: 14px; font-size: 17px; }

.store-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.store-section-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.store-section-head p { color: var(--fg-muted); font-size: 14.5px; margin-top: 6px; max-width: 520px; }

/* supporter / tebex */
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sub { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px 24px; display: flex; flex-direction: column; text-align: center; }
.sub__head { position: relative; margin: 0 -24px; padding: 32px 24px 20px; background: radial-gradient(120% 92% at 50% -8%, color-mix(in srgb, var(--tier, var(--aqua)) 17%, transparent), transparent 70%); border-bottom: 1px solid var(--line); }
.sub__rank { position: absolute; top: 14px; left: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--fg-dim); }
.sub__rank i { font-style: normal; opacity: .5; }
.sub__medallion { width: 108px; height: 108px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--tier, var(--aqua)) 44%, transparent), transparent 68%), var(--surface-2); border: 1px solid color-mix(in srgb, var(--tier, var(--aqua)) 50%, var(--line)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 12px 30px -14px color-mix(in srgb, var(--tier, var(--aqua)) 75%, transparent); }
.sub__ribbon { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-aqua); background: var(--aqua); padding: 4px 9px; border-radius: 999px; z-index: 2; }
.sub__name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.sub__price { font-family: var(--display); font-weight: 800; font-size: 42px; margin: 20px 0 8px; letter-spacing: -0.03em; line-height: 1; }
.sub__price .per { font-size: 14px; color: var(--fg-dim); font-weight: 400; font-family: var(--body); letter-spacing: 0; }
.sub__coin { align-self: center; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; color: var(--fg-muted); padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--tier, var(--aqua)) 9%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--tier, var(--aqua)) 22%, var(--line)); }
.sub__perks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 11px; flex: 1; text-align: left; }
.sub__perks li { display: flex; gap: 10px; font-size: 14px; color: var(--fg-muted); line-height: 1.4; }
.sub__perks svg { width: 16px; height: 16px; color: var(--tier, var(--aqua)); flex: none; margin-top: 2px; }
.sub__actions { display: grid; gap: 8px; }

.minirow { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; text-align: center; transition: border-color .2s, transform .2s; display: block; }
.mini:hover { border-color: var(--aqua-line); transform: translateY(-3px); }
.mini__big { font-family: var(--display); font-weight: 800; font-size: 22px; }
.mini__sub { font-family: var(--mono); font-size: 11.5px; color: var(--fg-dim); margin-top: 4px; }
.mini__price { color: var(--aqua); font-family: var(--mono); font-size: 14px; margin-top: 10px; }

/* in-game store */
.store-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--fg-muted); font-family: var(--display); font-weight: 600; transition: all .2s; }
.tab:hover { color: var(--fg); border-color: var(--aqua-line); }
.tab.is-active { background: var(--aqua); color: var(--on-aqua); border-color: var(--aqua); }
.subtabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.subtab { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--fg-muted); font-family: var(--mono); letter-spacing: .04em; transition: all .2s; }
.subtab:hover { color: var(--aqua); border-color: var(--aqua-line); }
.subtab.is-active { color: var(--aqua); border-color: var(--aqua-line); background: var(--aqua-ghost); }
.store-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; min-width: 230px; }
.store-search svg { width: 16px; height: 16px; color: var(--fg-dim); flex: none; }
.store-search input { background: none; border: none; color: var(--fg); font: inherit; font-size: 14px; width: 100%; outline: none; }
.store-count { font-family: var(--mono); font-size: 12.5px; color: var(--fg-dim); white-space: nowrap; }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.prod:hover { transform: translateY(-4px); border-color: var(--aqua-line); background: var(--surface-2); }
.prod__img { aspect-ratio: 16 / 11; display: grid; place-items: center; background: radial-gradient(70% 90% at 50% 20%, rgba(34,211,238,.08), transparent 70%), var(--bg-1); position: relative; padding: 12px; }
.prod__img img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.prod__ph svg { width: 46px; height: 46px; color: var(--fg-dim); opacity: .35; }
.prod__sale { position: absolute; top: 10px; left: 10px; background: #f43f5e; color: #fff; font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; }
.prod__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.prod__cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); }
.prod__name { font-family: var(--display); font-weight: 600; font-size: 15.5px; margin: 6px 0 4px; }
.prod__desc { font-size: 13px; color: var(--fg-muted); line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 10px; }
.prod__price { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--aqua); display: inline-flex; align-items: center; gap: 6px; }
.prod__price .coin { width: 13px; height: 13px; border-radius: 50%; background: linear-gradient(135deg, var(--aqua-bright), var(--aqua-deep)); box-shadow: 0 0 8px rgba(34,211,238,.5); flex: none; }
.prod__price .was { color: var(--fg-dim); text-decoration: line-through; font-size: 12px; font-family: var(--mono); margin-left: 4px; }
.prod__get { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--fg-muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; transition: all .2s; white-space: nowrap; }
.prod:hover .prod__get { border-color: var(--aqua-line); color: var(--aqua); }
.store-empty { text-align: center; color: var(--fg-dim); padding: 60px 0; font-family: var(--mono); }

@media (max-width: 1024px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .products { grid-template-columns: repeat(2, 1fr); } .sub-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .store-search { min-width: 0; flex: 1; } }

/* ================= CHECKOUT MODAL ================= */
.checkout { position: fixed; inset: 0; z-index: 95; display: none; align-items: center; justify-content: center; padding: 20px; }
.checkout.is-open { display: flex; }
.checkout__backdrop { position: absolute; inset: 0; background: rgba(2,4,6,.82); backdrop-filter: blur(8px); }
.checkout__box { position: relative; z-index: 1; width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; padding: 30px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); animation: coPop .25s var(--ease); }
@keyframes coPop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.checkout__x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--fg-muted); display: grid; place-items: center; }
.checkout__x:hover { border-color: var(--aqua-line); color: var(--aqua); }
.checkout__x svg { width: 20px; height: 20px; }
.checkout__title { font-size: 20px; margin-bottom: 20px; }
.checkout__item { display: flex; gap: 16px; align-items: center; background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.checkout__img { width: 92px; height: 68px; border-radius: 10px; background: radial-gradient(70% 90% at 50% 20%, rgba(34,211,238,.1), transparent 70%), var(--bg); display: grid; place-items: center; flex: none; overflow: hidden; }
.checkout__img img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.checkout__img svg { width: 34px; height: 34px; color: var(--fg-dim); opacity: .4; }
.checkout__name { font-family: var(--display); font-weight: 700; font-size: 16px; }
.checkout__cat { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); margin-top: 3px; }
.checkout__price { color: var(--aqua); font-family: var(--display); font-weight: 700; font-size: 17px; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.checkout__price .coin { width: 13px; height: 13px; border-radius: 50%; background: linear-gradient(135deg, var(--aqua-bright), var(--aqua-deep)); }
.checkout__deliver { margin: 22px 0; }
.checkout__label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 10px; }
.char-select { display: grid; gap: 8px; }
.char { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; text-align: left; width: 100%; }
.char:hover { border-color: var(--aqua-line); }
.char.is-sel { border-color: var(--aqua); background: var(--aqua-ghost); }
.char__av { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-3); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--aqua); flex: none; }
.char__name { font-weight: 600; font-size: 14.5px; }
.char__meta { font-family: var(--mono); font-size: 11.5px; color: var(--fg-dim); }
.checkout__signin { text-align: center; padding: 8px 0; }
.checkout__signin p { color: var(--fg-muted); font-size: 14px; margin-bottom: 14px; }
.checkout__pay { width: 100%; }
.checkout__pay[disabled] { opacity: .5; pointer-events: none; }
.checkout__note { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-dim); text-align: center; line-height: 1.6; }

/* global coin chip (fallback for places without a scoped rule) */
.coin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--aqua-bright), var(--aqua-deep)); box-shadow: 0 0 8px rgba(34,211,238,.5); vertical-align: -1px; }
.sub .btn { width: 100%; }

/* ================= STORE — SPARK + LAYOUT ================= */
.store-hero { position: relative; overflow: hidden; }
.store-hero__bg { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(50vw 40vh at 82% 10%, rgba(34,211,238,.16), transparent 60%),
  radial-gradient(44vw 40vh at 8% 90%, rgba(14,116,144,.20), transparent 60%);
  animation: auroraStore 14s ease-in-out infinite alternate; }
@keyframes auroraStore { from { transform: translate3d(-2%,-1%,0) scale(1); } to { transform: translate3d(3%,2%,0) scale(1.08); } }
.store-hero .wrap { position: relative; z-index: 2; }
.store-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (prefers-reduced-motion: reduce) { .store-hero__bg { animation: none; } }

/* glossy coin packs */
.coin-lg { width: 54px; height: 54px; border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle at 35% 28%, var(--aqua-bright), var(--aqua) 46%, var(--aqua-deep) 92%);
  box-shadow: 0 0 22px rgba(34,211,238,.45), inset 0 2px 6px rgba(255,255,255,.45), inset 0 -5px 10px rgba(0,40,52,.55);
  display: grid; place-items: center; }
.coin-lg::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); }
.coin-lg::after { content: ""; position: absolute; top: 8px; left: 12px; width: 15px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); filter: blur(2px); transform: rotate(-18deg); }
.coin-lg b { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--on-aqua); position: relative; z-index: 1; text-shadow: 0 1px 1px rgba(255,255,255,.3); }

.coin-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.coinpack { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; overflow: hidden; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.coinpack::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; background: radial-gradient(90% 60% at 50% 0%, var(--aqua-ghost), transparent 60%); transition: opacity .3s; }
.coinpack:hover { transform: translateY(-5px); border-color: var(--aqua-line); background: var(--surface-2); }
.coinpack:hover::after { opacity: 1; }
.coinpack.is-best { border-color: var(--aqua-line); box-shadow: 0 0 0 1px var(--aqua-line), 0 20px 50px -24px rgba(34,211,238,.5); }
.coinpack__amt { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; margin-top: 6px; }
.coinpack__label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); }
.coinpack__price { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--aqua); margin-top: 4px; }
.coinpack__ribbon { position: absolute; top: 12px; right: -30px; transform: rotate(45deg); background: var(--aqua); color: var(--on-aqua); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 34px; }

/* subscription tier flair */
.sub { overflow: hidden; }
.sub::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--aqua-line), transparent); opacity: .5; }
.sub.featured::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(130deg, var(--aqua), transparent 40%, transparent 60%, var(--aqua)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: subSheen 6s linear infinite; pointer-events: none; }
@keyframes subSheen { to { transform: rotate(360deg); } }
.sub__badge { font-family: var(--display); font-weight: 800; font-size: 36px; color: var(--tier, var(--aqua)); }

/* two-column store layout */
.store-layout { display: grid; grid-template-columns: 236px 1fr; gap: 28px; align-items: start; }
.store-side { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.store-side .store-search { width: 100%; }
.store-nav { display: flex; flex-direction: column; gap: 2px; }
.store-nav button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; color: var(--fg-muted); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.store-nav button:hover { color: var(--fg); background: rgba(255,255,255,.03); }
.store-nav button.is-active { color: var(--aqua); background: var(--aqua-ghost); }
.store-nav button .n { font-family: var(--mono); font-size: 11.5px; opacity: .7; }
.store-nav .child { padding-left: 24px; font-size: 13px; }
.store-nav .child .n { font-size: 11px; }
.store-nav .group-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); padding: 14px 12px 6px; }
.store-sort { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; }
.store-sort label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }
.store-sort select { background: var(--surface); border: 1px solid var(--line-strong); color: var(--fg); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 13.5px; outline: none; cursor: pointer; }
.store-sort select:focus { border-color: var(--aqua-line); }

.store-main-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.store-main-head h3 { font-size: 24px; }
.store-group { margin-bottom: 36px; }
.store-group__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.store-group__head h4 { font-family: var(--display); font-weight: 700; font-size: 18px; }
.store-group__head .n { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); margin-left: 8px; }
.store-group__all { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--fg-muted); transition: color .2s; }
.store-group__all:hover { color: var(--aqua); }
.store-main .products { grid-template-columns: repeat(3, 1fr); }

/* product spark: shine + spotlight + entrance */
.prod { position: relative; }
.prod::before { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; z-index: 2; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.07), transparent); transform: skewX(-18deg); transition: left .6s var(--ease); }
.prod:hover::before { left: 130%; }
.prod__img::before { content: ""; position: absolute; left: 50%; bottom: 10px; width: 62%; height: 18px; transform: translateX(-50%); background: radial-gradient(50% 100% at 50% 0, rgba(34,211,238,.4), transparent 72%); filter: blur(7px); opacity: .5; transition: opacity .3s; }
.prod:hover .prod__img::before { opacity: 1; }
.store-main .products .prod { animation: prodIn .45s var(--ease) backwards; }
.store-main .products.searching .prod { animation: none; }
.store-main .products .prod:nth-child(1){animation-delay:.02s} .store-main .products .prod:nth-child(2){animation-delay:.05s}
.store-main .products .prod:nth-child(3){animation-delay:.08s} .store-main .products .prod:nth-child(4){animation-delay:.11s}
.store-main .products .prod:nth-child(5){animation-delay:.14s} .store-main .products .prod:nth-child(6){animation-delay:.17s}
@keyframes prodIn { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .store-main .products .prod { animation: none; } .prod::before { display: none; } }

@media (max-width: 1100px) { .coin-grid { grid-template-columns: repeat(3, 1fr); } .store-main .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .store-layout { grid-template-columns: 1fr; gap: 18px; }
  .store-side { position: static; }
  .store-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .store-nav .group-label, .store-nav .child { display: none; }
  .store-nav button { width: auto; white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; }
}
@media (max-width: 560px) { .coin-grid { grid-template-columns: repeat(2, 1fr); } }

/* ================= A11Y + PERF AUDIT FIXES ================= */
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 200; background: var(--aqua); color: var(--on-aqua); padding: 10px 16px; border-radius: 10px; font-family: var(--display); font-weight: 600; transition: top .2s var(--ease); }
.skip-link:focus { top: 14px; }

/* reduce 300ms tap delay + predictable touch behaviour */
a, button, input, select, textarea, [role="button"], .tab, .subtab, .gcard, .char, .coinpack, .mini { touch-action: manipulation; }

/* tabular figures for data/prices (no width shift) */
.stat__num, .prod__price, .vcard__price, .coinpack__amt, .coinpack__price, .sub__price, .mini__price, .bar__val, .pill b, .checkout__price { font-variant-numeric: tabular-nums; }

/* active nav: weight + indicator, not colour alone */
.nav__links a.is-active { font-weight: 700; }
.nav__links a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--aqua); }

/* pause auto-scrolling fleet on keyboard focus too */
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* touch-friendly inputs (>=44px) */
.store-search { min-height: 44px; }
.store-sort select { min-height: 44px; }

/* readable small labels (>=11px) */
.prod__cat, .store-nav .group-label, .store-sort label { font-size: 11px; }

/* reserve gallery image space to avoid layout shift (CLS) */
.gcard img { aspect-ratio: 1100 / 471; object-fit: cover; }

/* global reduced-motion safety net (covers aurora, sheen, pulse, marquee, reveals) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ================= SHOP: VIDEO HERO + PANELS ================= */
.shop-hero { position: relative; min-height: 60vh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 44px) 0 52px; }
.shop-hero__media { position: absolute; inset: 0; z-index: 0; }
.shop-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.shop-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,7,10,.6), rgba(4,7,10,.5) 40%, rgba(4,7,10,.9) 86%, var(--bg)), linear-gradient(90deg, rgba(4,7,10,.85), transparent 62%); }
.shop-hero .wrap { position: relative; z-index: 1; }
.shop-hero__inner { max-width: 680px; }
.shop-hero h1 { font-size: clamp(36px, 6vw, 66px); margin: 18px 0 16px; }
.shop-hero h1 .glow { color: var(--aqua); text-shadow: 0 0 40px rgba(34,211,238,.45); }
.shop-hero p { color: var(--fg-muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 560px; }

.panels { display: flex; flex-direction: column; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, background .25s; }
.panel.is-open { border-color: var(--aqua-line); background: var(--surface-2); }
.panel__head { display: flex; align-items: center; gap: 18px; width: 100%; padding: 22px 24px; text-align: left; }
.panel__head:hover { background: rgba(255,255,255,.02); }
.panel__icon { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--aqua-ghost); border: 1px solid var(--aqua-line); color: var(--aqua); }
.panel__icon svg { width: 24px; height: 24px; }
.panel__titles { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.panel__title { font-family: var(--display); font-weight: 700; font-size: 20px; }
.panel__sub { color: var(--fg-muted); font-size: 14px; }
.panel__count { font-family: var(--mono); font-size: 13px; color: var(--aqua); background: var(--aqua-ghost); border: 1px solid var(--aqua-line); padding: 4px 12px; border-radius: 999px; flex: none; }
.panel__chev { width: 22px; height: 22px; color: var(--fg-muted); flex: none; transition: transform .3s var(--ease); }
.panel.is-open .panel__chev { transform: rotate(180deg); color: var(--aqua); }
.panel__body { display: none; }
.panel.is-open .panel__body { display: block; animation: panelIn .35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px); } }
.panel__inner { padding: 0 24px 28px; border-top: 1px solid var(--line); }
.panel__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; margin-bottom: 18px; }
.panel__toolbar .subtabs { margin: 0; flex: 1; }
.panel__toolbar .store-sort { flex-direction: row; align-items: center; gap: 8px; }
.panel__inner > .subtabs { padding-top: 20px; }
.panel__inner .products { grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); }

.designs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 20px; }
.design-card { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 28px 24px 24px; min-height: 236px; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(160deg, var(--surface-3), var(--surface)); transition: transform .25s var(--ease), border-color .25s; }
.design-card::after { content: ""; position: absolute; inset: 0; opacity: .5; background: radial-gradient(90% 70% at 100% 0, var(--aqua-ghost), transparent 60%); pointer-events: none; transition: opacity .3s; }
.design-card:hover { transform: translateY(-5px); border-color: var(--aqua-line); }
.design-card:hover::after { opacity: 1; }
.design-card__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--aqua-ghost); border: 1px solid var(--aqua-line); color: var(--aqua); margin-bottom: 18px; position: relative; }
.design-card__icon svg { width: 28px; height: 28px; }
.design-card h3 { font-size: 20px; margin-bottom: 8px; }
.design-card p { color: var(--fg-muted); font-size: 14.5px; flex: 1; }
.design-card__cta { margin-top: 18px; font-family: var(--display); font-weight: 600; color: var(--aqua); font-size: 14px; position: relative; }
.designs__note { margin-top: 18px; color: var(--fg-dim); font-size: 13px; font-family: var(--mono); line-height: 1.6; }

@media (max-width: 760px) {
  .designs { grid-template-columns: 1fr; }
  .panel__head { padding: 18px; gap: 14px; }
  .panel__sub { display: none; }
  .panel__inner { padding: 0 16px 22px; }
}

/* ================= TILE CHARACTER ================= */
.prod { border-color: var(--line-strong); }
.prod::after { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 2px; z-index: 3; background: linear-gradient(90deg, transparent, var(--aqua-line), transparent); opacity: .4; transition: opacity .3s; pointer-events: none; }
.prod:hover::after { opacity: 1; }
.prod:hover { box-shadow: 0 20px 44px -20px rgba(34,211,238,.42); }
.prod__img { aspect-ratio: 16 / 10; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  background:
    radial-gradient(62% 82% at 50% 24%, rgba(34,211,238,.12), transparent 70%),
    radial-gradient(rgba(142,222,240,.06) 1px, transparent 1px) 0 0 / 15px 15px,
    var(--bg-1); }
.prod__img img { transition: transform .45s var(--ease); }
.prod:hover .prod__img img { transform: scale(1.06); }
.prod__cat { display: inline-flex; align-items: center; gap: 7px; }
.prod__cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 7px var(--aqua); flex: none; }
.prod__name { font-size: 16px; }
.prod__price { font-size: 17px; }
.prod__get { background: var(--aqua-ghost); border-color: var(--aqua-line); color: var(--aqua); }
.prod:hover .prod__get { background: var(--aqua); color: var(--on-aqua); border-color: var(--aqua); }

/* design tiles: matching cut corner */
.design-card { clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }

/* ===== toast ===== */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 300; background: var(--surface-2); border: 1px solid var(--aqua-line); color: var(--fg); padding: 13px 20px; border-radius: 12px; font-size: 14px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); max-width: 90vw; text-align: center; }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ================= COMPANION APP BAND ================= */
.appband { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 5vw, 64px); align-items: center; background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.appband::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0, var(--aqua-ghost), transparent 55%); pointer-events: none; }
.appband__text { position: relative; z-index: 1; }
.appband__text h2 { font-size: clamp(28px, 4vw, 44px); margin: 14px 0; }
.appband__text h2 .glow { color: var(--aqua); text-shadow: 0 0 36px rgba(34,211,238,.4); }
.appband__text > p { color: var(--fg-muted); max-width: 460px; }
.appband__text .ticks { margin: 20px 0 26px; }
.appband__qr { position: relative; z-index: 1; display: flex; justify-content: center; }
.qr-card { background: #fff; border-radius: 18px; padding: 18px; text-align: center; box-shadow: 0 20px 50px -18px rgba(0,0,0,.6); max-width: 228px; }
.qr-card .qr { width: 182px; height: 182px; margin: 0 auto 12px; }
.qr-card .qr svg { width: 100%; height: 100%; display: block; }
.qr-card span { color: #0b1016; font-family: var(--mono); font-size: 12px; }

.appstore-badge { display: inline-flex; align-items: center; gap: 12px; background: #000; border: 1px solid rgba(255,255,255,.22); color: #fff; padding: 10px 20px; border-radius: 12px; transition: transform .2s var(--ease), border-color .2s; }
.appstore-badge:hover { transform: translateY(-2px); border-color: var(--aqua); }
.appstore-badge__apple { width: 23px; height: 25px; flex: none; }
.appstore-badge__txt { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.appstore-badge__txt small { font-size: 10px; opacity: .9; }
.appstore-badge__txt b { font-family: var(--display); font-weight: 600; font-size: 19px; }

/* Coming-soon states (iOS app not released yet) */
.qr-card--soon { background: linear-gradient(160deg, rgba(16,24,32,.96), rgba(9,14,19,.98)); border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 182px; box-shadow: 0 20px 50px -18px rgba(0,0,0,.6); }
.qr-card--soon .qr-soon-badge { color: var(--aqua); font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: .01em; }
.qr-card--soon .qr-soon-note { color: rgba(255,255,255,.58); font-family: var(--mono); font-size: 12px; }
.appstore-badge--soon { opacity: .68; cursor: default; }
.appstore-badge--soon:hover { transform: none; border-color: rgba(255,255,255,.22); }

@media (max-width: 760px) {
  .appband { grid-template-columns: 1fr; text-align: center; }
  .appband__text > p { margin-inline: auto; }
  .appband__text .ticks { text-align: left; display: inline-grid; }
}

/* ================= FEATURES PAGE ================= */
.feat-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 72px) 0 32px; }
.feat-hero .hero__grid { opacity: .4; }
.feat-hero .wrap { position: relative; z-index: 1; max-width: 760px; }
.feat-hero h1 { font-size: clamp(38px, 7vw, 72px); margin: 18px 0 16px; }
.feat-hero h1 .glow { color: var(--aqua); text-shadow: 0 0 40px rgba(34,211,238,.45); }
.feat-hero p { color: var(--fg-muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 620px; }

.frow-wrap { padding-block: clamp(40px, 6vw, 72px); }
.frow-wrap + .frow-wrap { padding-top: 0; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.frow--rev .frow__text { order: 2; }
.frow__text h2 { font-size: clamp(26px, 3.6vw, 40px); margin: 14px 0; }
.frow__text > p { color: var(--fg-muted); font-size: 16px; max-width: 480px; }
.frow__text .ticks { margin: 20px 0; }
.frow__stat { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--aqua); background: var(--aqua-ghost); border: 1px solid var(--aqua-line); padding: 7px 14px; border-radius: 999px; }
.frow__stat b { font-family: var(--body); font-weight: 700; color: var(--fg); }
.frow__media { position: relative; }
.fcollage { position: relative; min-height: 320px; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(70% 80% at 50% 25%, var(--aqua-ghost), transparent 70%), var(--bg-1); padding: 24px; display: grid; place-items: center; overflow: hidden; }
.fcollage img { grid-area: 1 / 1; width: 74%; filter: drop-shadow(0 14px 22px rgba(0,0,0,.55)); }
.fcollage img:nth-child(1) { transform: translate(-30%, -10%) scale(.82); opacity: .7; }
.fcollage img:nth-child(2) { z-index: 2; }
.fcollage img:nth-child(3) { transform: translate(30%, 16%) scale(.72); opacity: .7; }
.fgrid { display: grid; gap: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(80% 80% at 50% 10%, var(--aqua-ghost), transparent 65%), var(--bg-1); padding: 20px; }
.fgrid img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.fgrid--wpn { grid-template-columns: repeat(2, 1fr); } .fgrid--wpn img { aspect-ratio: 16 / 7; }
.fgrid--prop { grid-template-columns: repeat(2, 1fr); } .fgrid--prop img { aspect-ratio: 1 / 1; }
.fgrid--badge { grid-template-columns: repeat(3, 1fr); } .fgrid--badge img { aspect-ratio: 1 / 1; }
.fgrid--item { grid-template-columns: repeat(2, 1fr); } .fgrid--item img { aspect-ratio: 4 / 3; }
@media (max-width: 820px) { .frow { grid-template-columns: 1fr; } .frow--rev .frow__text { order: 0; } }

/* tier logos on subscription cards */
.sub__logo { width: 78px; height: 78px; object-fit: contain; display: block; filter: drop-shadow(0 5px 12px rgba(0,0,0,.5)); }

/* ================= TIER CARD COLOUR + HOVER REVEAL ================= */
.sub, .sub__name, .sub__price, .sub__logo, .sub__head, .sub__medallion, .sub .btn { transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), filter .3s var(--ease); }
.sub::before { background: linear-gradient(90deg, transparent, var(--tier, var(--aqua-line)), transparent); opacity: .45; transition: opacity .3s; z-index: 1; }
.sub:hover {
  transform: translateY(-6px);
  border-color: var(--tier);
  box-shadow: 0 0 0 1px var(--tier), 0 26px 60px -26px var(--tier);
}
.sub:hover::before { opacity: 1; }
.sub:hover .sub__head { background: radial-gradient(120% 92% at 50% -8%, color-mix(in srgb, var(--tier) 30%, transparent), transparent 72%); }
.sub:hover .sub__name, .sub:hover .sub__price { color: var(--tier); }
.sub:hover .sub__medallion { border-color: var(--tier); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 34px -12px var(--tier); }
.sub:hover .sub__logo { transform: scale(1.06); }
.sub:hover .btn--ghost { border-color: var(--tier); color: var(--tier); }

/* featured card wears its tier colour permanently */
.sub.featured { border-color: var(--tier); box-shadow: 0 0 0 1px var(--tier), 0 22px 55px -26px color-mix(in srgb, var(--tier) 60%, transparent); }
.sub.featured .sub__head { background: radial-gradient(120% 92% at 50% -8%, color-mix(in srgb, var(--tier) 26%, transparent), transparent 72%); }
.sub.featured::before { opacity: 1; }
.sub.featured .sub__ribbon { background: var(--tier); color: #0b0b0b; }
.sub.featured .sub__price { color: var(--tier); }
.sub.featured .sub__medallion { border-color: var(--tier); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 34px -12px color-mix(in srgb, var(--tier) 65%, transparent); }
.sub.featured::after { background: linear-gradient(130deg, var(--tier), transparent 40%, transparent 60%, var(--tier)); }
.sub.featured .btn--primary { background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 75%, white), var(--tier)); color: #0b0b0b; box-shadow: 0 0 0 1px var(--tier), 0 8px 26px -8px var(--tier); }
.sub.featured:hover { transform: translateY(-6px); }

/* ========================= 3D DESIGN STUDIO ========================= */
.studio-top { padding-bottom: 6px; }
.studio-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--fg-dim); text-transform: uppercase; }
.studio-eyebrow a { color: var(--fg-muted); } .studio-eyebrow a:hover { color: var(--aqua); }
.studio-eyebrow span { margin: 0 6px; opacity: .5; }
.studio-h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5vw, 48px); letter-spacing: -.02em; margin: 8px 0 10px; }
.studio-lede { color: var(--fg-muted); max-width: 640px; font-size: 16px; line-height: 1.55; }

.studio-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.studio-tab { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--fg-muted); font-family: var(--display); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: all .2s var(--ease); }
.studio-tab svg { width: 18px; height: 18px; }
.studio-tab:hover { border-color: var(--aqua-line); color: var(--fg); }
.studio-tab.is-active { border-color: var(--aqua); color: var(--aqua); background: var(--aqua-ghost); }
.studio-tab__tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-aqua); background: var(--aqua); padding: 2px 7px; border-radius: 999px; }

.studio-mode { padding-top: 22px; }
.studio-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 344px; gap: 16px; align-items: start; grid-template-areas: "weapons stage camos"; }
.studio-weapons { grid-area: weapons; } .studio-stage { grid-area: stage; } .studio-camos { grid-area: camos; }

.studio-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.studio-panel__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.studio-panel__head h2 { font-family: var(--display); font-size: 16px; font-weight: 700; }
.studio-panel__sub { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); }

.chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-family: var(--mono); color: var(--fg-muted); cursor: pointer; transition: all .18s; }
.chip:hover { border-color: var(--aqua-line); color: var(--aqua); }
.chip.is-on { border-color: var(--aqua); background: var(--aqua-ghost); color: var(--aqua); }
.chip--tier::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rar); margin-right: 6px; vertical-align: 0; }
.chip--tier:hover { border-color: var(--rar); color: var(--rar); }
.chip--tier.is-on { border-color: var(--rar); color: var(--rar); background: color-mix(in srgb, var(--rar) 14%, transparent); }

.weapon-list { display: grid; gap: 7px; max-height: 50vh; overflow-y: auto; margin: -2px -4px -2px -2px; padding: 2px 4px 2px 2px; }
.wchip { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-align: left; cursor: pointer; transition: all .18s; }
.wchip__name { font-weight: 600; font-size: 14px; }
.wchip__cls { font-family: var(--mono); font-size: 10.5px; color: var(--fg-dim); flex: none; }
.wchip:hover { border-color: var(--aqua-line); transform: translateX(2px); }
.wchip.is-on { border-color: var(--aqua); background: var(--aqua-ghost); color: var(--aqua); }
.wchip.is-on .wchip__cls { color: var(--aqua); }

.stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.stage-bar__name { font-family: var(--display); font-weight: 700; font-size: 18px; }
.stage-bar__reset { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; color: var(--fg-muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: all .18s; }
.stage-bar__reset svg { width: 14px; height: 14px; }
.stage-bar__reset:hover { border-color: var(--aqua-line); color: var(--aqua); }

.viewport-wrap { position: relative; height: clamp(360px, 56vh, 560px); background: radial-gradient(ellipse at 50% 38%, #141d2c, #05080c 72%); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
#viewport { position: absolute; inset: 0; }
#viewport canvas { width: 100% !important; height: 100% !important; display: block; }
.viewport-loading { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; background: rgba(5,8,12,.62); color: var(--fg-muted); font-family: var(--mono); font-size: 13px; z-index: 3; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--aqua); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewport-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--fg-dim); background: rgba(5,8,12,.5); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; pointer-events: none; z-index: 2; }

.stage-select { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.stage-select__label { font-family: var(--display); font-weight: 700; font-size: 18px; }
.stage-select__meta { font-size: 13px; color: var(--fg-muted); margin-top: 3px; display: flex; align-items: center; }
.stage-select__buy { display: flex; align-items: center; gap: 14px; flex: none; }
.stage-select__price { font-family: var(--display); font-weight: 800; font-size: 22px; display: flex; align-items: center; gap: 7px; }
.stage-select__price:empty { display: none; }
.tierdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--rar); margin-right: 7px; flex: none; }

.camo-search { position: relative; margin-bottom: 12px; }
.camo-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--fg-dim); pointer-events: none; }
.camo-search input { width: 100%; padding: 10px 12px 10px 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 14px; }
.camo-search input:focus { outline: none; border-color: var(--aqua-line); }

.camo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; max-height: 48vh; overflow-y: auto; padding: 2px 4px 2px 2px; }
.swatch { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); padding: 0; cursor: pointer; transition: transform .16s var(--ease), border-color .16s, box-shadow .16s; }
.swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swatch__ring { position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rar) 50%, transparent); pointer-events: none; }
.swatch:hover { transform: translateY(-2px); border-color: var(--rar); }
.swatch.is-sel { border-color: var(--rar); box-shadow: 0 0 0 2px var(--rar), 0 8px 20px -8px var(--rar); }
.swatch.is-sel .swatch__ring { box-shadow: none; }
.swatch--none { display: grid; place-items: center; color: var(--fg-dim); }
.swatch--none__x svg { width: 20px; height: 20px; }
.swatch--none.is-sel { color: var(--aqua); }

.studio-soon { max-width: 640px; margin: 8px auto 0; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 46px 32px; }
.studio-soon__icon { width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; background: var(--aqua-ghost); border: 1px solid var(--aqua-line); color: var(--aqua); }
.studio-soon__icon svg { width: 38px; height: 38px; }
.studio-soon__chip { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); border: 1px solid var(--aqua-line); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.studio-soon h2 { font-family: var(--display); font-weight: 800; font-size: 26px; margin-bottom: 12px; }
.studio-soon p { color: var(--fg-muted); line-height: 1.6; max-width: 520px; margin: 0 auto 20px; }
.studio-soon__list { list-style: none; padding: 0; margin: 0 auto 24px; max-width: 450px; text-align: left; display: grid; gap: 9px; }
.studio-soon__list li { position: relative; padding-left: 26px; color: var(--fg-muted); font-size: 14.5px; }
.studio-soon__list li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 8px var(--aqua); }

@media (max-width: 1100px) {
  .studio-grid { grid-template-columns: 1fr; grid-template-areas: "stage" "weapons" "camos"; }
  .weapon-list { max-height: 260px; }
  .camo-grid { max-height: 320px; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
}
@media (max-width: 560px) {
  .stage-select { flex-direction: column; align-items: stretch; }
  .stage-select__buy { justify-content: space-between; }
  .studio-tab { flex: 1 1 auto; justify-content: center; }
}

/* ===================== CAMO DESIGNER CONTROLS ===================== */
.studio-design { grid-area: camos; }
.camo-name { background: transparent; border: none; border-bottom: 1px dashed var(--line-strong); color: var(--fg); font-family: var(--display); font-weight: 700; font-size: 18px; padding: 2px 0; width: 100%; max-width: 280px; }
.camo-name:focus { outline: none; border-bottom-color: var(--aqua); }

.dsec { margin-bottom: 18px; }
.dsec__label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 9px; }
.dsec__labelrow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.dsec__labelrow .dsec__label { margin-bottom: 0; }
.dsec__note { display: flex; gap: 7px; align-items: flex-start; margin: 10px 0 0; font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--fg-dim); }
.dsec__note svg { flex: none; margin-top: 1px; opacity: .8; }
.dsec__note--top { margin: 0 0 18px; padding: 10px 12px; border: 1px solid var(--border, rgba(255,255,255,.1)); border-radius: 8px; background: rgba(255,255,255,.03); }
.dminibtn { font-family: var(--mono); font-size: 11px; color: var(--aqua); border: 1px solid var(--aqua-line); border-radius: 999px; padding: 4px 11px; cursor: pointer; transition: all .18s; }
.dminibtn:hover { background: var(--aqua-ghost); }

.swatchrow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 10px; }
.cswatch { aspect-ratio: 1 / 1; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.cswatch:hover { transform: translateY(-1px); }
.cswatch.is-on { box-shadow: 0 0 0 2px var(--aqua); border-color: var(--aqua); }
.colorpick { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--fg-muted); }

.studio-design input[type="color"], .layer input[type="color"] { -webkit-appearance: none; appearance: none; width: 34px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; padding: 0; flex: none; }
.studio-design input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.studio-design input[type="color"]::-webkit-color-swatch { border: none; border-radius: 6px; }

.layer { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 9px; background: var(--surface-2); }
.layer__top { display: flex; gap: 8px; margin-bottom: 9px; }
.layer select, .studio-design select { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font: inherit; font-size: 12.5px; cursor: pointer; }
.layer__top select { flex: 1; }
.layer__del { width: 30px; height: 30px; flex: none; border: 1px solid var(--line); border-radius: 8px; color: var(--fg-muted); font-size: 18px; line-height: 1; cursor: pointer; transition: all .15s; }
.layer__del:hover { border-color: #e2574d; color: #e2574d; }
.layer__row { display: flex; gap: 8px; align-items: center; margin-bottom: 11px; }
.layer__cols { display: flex; gap: 6px; }
.layer__blend { flex: 1; max-width: 120px; margin-left: auto; text-transform: capitalize; }
.layer__upload { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 8px; font-size: 12px; color: var(--fg-muted); cursor: pointer; position: relative; overflow: hidden; text-align: center; }
.layer__upload:hover { border-color: var(--aqua-line); color: var(--aqua); }
.layer__file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.layer__sliders { display: grid; gap: 8px; }
.srow { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; font-size: 11px; color: var(--fg-dim); font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.layer__empty { color: var(--fg-dim); font-size: 13px; padding: 8px 0; }

.studio-design input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px; background: var(--line-strong); outline: none; }
.studio-design input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--aqua); cursor: pointer; border: 2px solid var(--surface); box-shadow: 0 0 6px rgba(34,211,238,.5); }
.studio-design input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--aqua); cursor: pointer; border: 2px solid var(--surface); }

.dactions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.dactions .btn { width: 100%; }

/* ===================== LOGOS / DECALS + GLOW TOGGLE ===================== */
.dupload { position: relative; overflow: hidden; }
.dupload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dhint { font-size: 12px; color: var(--fg-dim); line-height: 1.45; margin: 2px 0 0; }

.decal { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 9px; background: var(--surface-2); cursor: pointer; transition: border-color .15s; }
.decal.is-sel { border-color: var(--aqua); box-shadow: 0 0 0 1px var(--aqua-line); }
.decal__top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.decal__thumb { width: 34px; height: 34px; flex: none; border-radius: 7px; object-fit: contain; background: repeating-conic-gradient(#2a2f38 0% 25%, #202530 0% 50%) 50% / 12px 12px; border: 1px solid var(--line); }
.decal__name { flex: 1; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.glowtog { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 13px; color: var(--fg-muted); cursor: pointer; user-select: none; }
.glowtog input { position: absolute; opacity: 0; width: 0; height: 0; }
.glowtog__sw { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--line-strong); border: 1px solid var(--line); flex: none; transition: background .18s; }
.glowtog__sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg-muted); transition: transform .18s, background .18s; }
.glowtog input:checked + .glowtog__sw { background: color-mix(in srgb, var(--aqua) 55%, transparent); border-color: var(--aqua); }
.glowtog input:checked + .glowtog__sw::after { transform: translateX(16px); background: var(--aqua); box-shadow: 0 0 8px var(--aqua); }
.glowtog input:focus-visible + .glowtog__sw { outline: 2px solid var(--aqua); outline-offset: 2px; }
.glowtog em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--fg-dim); margin-left: auto; }

/* ===================== EMBLEM EDITOR (2D canvas + layers) ===================== */
.stage-view { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; margin-right: auto; }
.stage-view__btn { padding: 6px 14px; min-height: 34px; border-radius: 8px; font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--fg-muted); cursor: pointer; transition: all .15s; }
.stage-view__btn:hover { color: var(--fg); }
.stage-view__btn.is-on { background: var(--aqua); color: var(--on-aqua); }

.editwrap { position: relative; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #11161f, #080a0e 75%); display: flex; align-items: center; justify-content: center; padding: 12px; min-height: clamp(320px, 52vh, 560px); }
#editCanvas { max-width: 100%; border-radius: 10px; touch-action: none; cursor: crosshair; display: block; box-shadow: 0 16px 50px -24px #000; }
.editwrap__hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--fg-dim); background: rgba(5,8,12,.62); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; pointer-events: none; text-align: center; max-width: 92%; }

.emb { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 9px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.emb.is-sel { border-color: var(--aqua); box-shadow: 0 0 0 1px var(--aqua-line); }
.emb__top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.emb__thumb { width: 36px; height: 36px; flex: none; border-radius: 7px; object-fit: contain; background: repeating-conic-gradient(#2a2f38 0% 25%, #202530 0% 50%) 50% / 12px 12px; border: 1px solid var(--line); }
.emb__name { flex: 1; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emb__bar { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.emb__ic { width: 32px; height: 32px; min-width: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--fg-muted); cursor: pointer; font-size: 12px; font-weight: 800; transition: all .14s; }
.emb__ic svg { width: 15px; height: 15px; }
.emb__ic:hover:not(:disabled) { border-color: var(--aqua-line); color: var(--aqua); }
.emb__ic.is-on { border-color: var(--aqua); color: var(--aqua); background: var(--aqua-ghost); }
.emb__ic:disabled { opacity: .35; cursor: default; }
.emb__del:hover:not(:disabled) { border-color: #e2574d; color: #e2574d; }

/* ===================== CAMO TEMPLATES ===================== */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 7px; max-height: 232px; overflow-y: auto; padding: 2px 4px 2px 2px; }
.tpl { position: relative; aspect-ratio: 1 / 1; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); padding: 0; cursor: pointer; transition: transform .15s var(--ease), border-color .15s, box-shadow .15s; }
.tpl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpl:hover { transform: translateY(-2px); border-color: var(--aqua-line); }
.tpl.is-sel { border-color: var(--aqua); box-shadow: 0 0 0 2px var(--aqua); }
.tpl--none { display: grid; place-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--fg-dim); }
.tpl--none.is-sel { color: var(--aqua); }

/* ===================== SHAPE KIT + DRAFTS ===================== */
.shape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 7px; max-height: 210px; overflow-y: auto; padding: 2px 4px 2px 2px; }
.shape { aspect-ratio: 1 / 1; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); padding: 7px; cursor: pointer; display: grid; place-items: center; transition: transform .15s var(--ease), border-color .15s; }
.shape img { width: 100%; height: 100%; object-fit: contain; opacity: .9; }
.shape:hover { transform: translateY(-2px); border-color: var(--aqua-line); }
.shape:hover img { opacity: 1; }

.emb__colorrow { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; font-size: 12.5px; color: var(--fg-muted); }

.draft { display: flex; align-items: stretch; gap: 7px; margin-bottom: 7px; }
.draft__load { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); padding: 9px 12px; cursor: pointer; transition: border-color .15s; }
.draft__load:hover { border-color: var(--aqua-line); }
.draft__name { font-weight: 600; font-size: 13px; }
.draft__meta { font-family: var(--mono); font-size: 10.5px; color: var(--fg-dim); }
.draft .emb__del { align-self: stretch; height: auto; }

/* shape fill (type + colours) */
.emb__fill { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.emb__fill select { flex: 1; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font: inherit; font-size: 12.5px; cursor: pointer; }

/* ===================== ACCESS SLOTS (checkout) ===================== */
.checkout__access { margin-bottom: 18px; }
.checkout__hint { font-weight: 400; font-family: var(--mono); font-size: 10.5px; color: var(--fg-dim); margin-left: 6px; text-transform: none; letter-spacing: 0; }
.aslot { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.aslot__name { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; color: var(--fg); font: inherit; font-size: 13px; }
.aslot__name:focus { outline: none; border-color: var(--aqua-line); }
.aslot__tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--aqua); border: 1px solid var(--aqua-line); border-radius: 999px; padding: 4px 9px; flex: none; }
.aslot__rm { width: 34px; height: 34px; flex: none; border: 1px solid var(--line); border-radius: 8px; color: var(--fg-muted); font-size: 17px; cursor: pointer; transition: all .15s; }
.aslot__rm:hover { border-color: #e2574d; color: #e2574d; }
.checkout__accessnote { font-size: 11.5px; color: var(--fg-dim); line-height: 1.45; margin: 6px 0 0; }
#coAccess .dminibtn { margin-top: 4px; }

/* access-slot player autocomplete */
.aslot__field { position: relative; flex: 1; display: flex; align-items: center; gap: 8px; }
.aslot__cid { font-family: var(--mono); font-size: 10px; color: var(--aqua); border: 1px solid var(--aqua-line); border-radius: 6px; padding: 3px 7px; flex: none; }
.aslot__drop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 10; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.7); overflow-y: auto; max-height: 230px; }
.aslot__opt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; text-align: left; cursor: pointer; transition: background .12s; }
.aslot__opt:hover { background: var(--aqua-ghost); }
.aslot__optname { font-size: 13px; }
.aslot__optcid { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); flex: none; }
.aslot__none { padding: 10px 12px; font-size: 12.5px; color: var(--fg-dim); }

.cswatch--none { display: grid; place-items: center; background: var(--surface-2); border-style: dashed; color: var(--fg-muted); }
.cswatch--none svg { width: 60%; height: 60%; }
.cswatch--none:hover { color: var(--fg); border-color: var(--aqua-line); }
.cswatch--none.is-on { color: var(--aqua); border-color: var(--aqua); box-shadow: 0 0 0 2px var(--aqua); }

/* ============================================================
   INTERACTIVE ARSENAL (features page)
   ============================================================ */
.arsenal__head { max-width: 640px; margin-bottom: clamp(22px, 4vw, 40px); }
.arsenal__head h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin: 12px 0 10px; }
.arsenal__head p { color: var(--fg-muted); font-size: 16px; max-width: 64ch; }
.arsenal__head .ticks--row { display: flex; flex-wrap: wrap; gap: 9px 24px; margin-top: 18px; }
.arsenal__head .ticks--row li { font-size: 14px; color: var(--fg-muted); }
.arsenal__head .ticks--row svg { width: 17px; height: 17px; margin-top: 1px; }
.arsenal__head .frow__stat { margin-top: 16px; }

.arsenal__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }

/* --- 3D stage --- */
.ar-stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong); min-height: 460px;
  background:
    radial-gradient(120% 90% at 50% 18%, rgba(34,211,238,0.12), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--bg-1));
  isolation: isolate;
}
.ar-viewport { position: absolute; inset: 0; width: 100%; height: 100%; }
.ar-viewport canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: none; }
.ar-viewport canvas:active { cursor: grabbing; }
.ar-stage__meta { position: absolute; top: 14px; left: 16px; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 3px; }
.ar-stage__name { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.ar-stage__class { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aqua); }
.ar-stage__hint { position: absolute; right: 14px; bottom: 12px; z-index: 2; pointer-events: none; display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--fg-dim); opacity: 0.85; }
.ar-stage__hint svg { opacity: 0.8; }
.ar-stage__status { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; padding: 20px; font-family: var(--mono); font-size: 12px; color: var(--fg-muted); background: rgba(4,7,10,0.55); backdrop-filter: blur(2px); }
.ar-stage__status.is-hidden { display: none; }
.ar-stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.2s var(--ease);
  background: rgba(4,7,10,0.35) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 50 50'><circle cx='25' cy='25' r='20' fill='none' stroke='%2322d3ee' stroke-width='4' stroke-linecap='round' stroke-dasharray='80 40'><animateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.9s' repeatCount='indefinite'/></circle></svg>") center / 34px no-repeat; }
.ar-stage.is-busy::after { opacity: 1; }

/* --- controls panel --- */
.ar-panel { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ar-field { min-width: 0; }
.ar-field__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 10px; }
.ar-field__hint { color: var(--fg-dim); text-transform: none; letter-spacing: 0; opacity: 0.7; margin-left: 6px; }

/* class tabs */
.ar-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.ar-tab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--fg-muted); transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease); }
.ar-tab:hover { color: var(--fg); border-color: var(--aqua-line); }
.ar-tab.is-on { color: var(--on-aqua); background: var(--aqua); border-color: var(--aqua); font-weight: 700; }

/* weapon list */
.ar-weapons { display: flex; flex-wrap: wrap; gap: 7px; max-height: 148px; overflow-y: auto; padding: 2px 4px 2px 0; scrollbar-width: thin; scrollbar-color: var(--aqua-line) transparent; }
.ar-weapons::-webkit-scrollbar { width: 6px; }
.ar-weapons::-webkit-scrollbar-thumb { background: var(--aqua-line); border-radius: 999px; }
.ar-wpn { font-size: 13px; padding: 7px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--fg-muted); transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease); }
.ar-wpn:hover { color: var(--fg); border-color: var(--aqua-line); background: var(--surface-2); }
.ar-wpn.is-on { color: var(--fg); border-color: var(--aqua); background: var(--aqua-ghost); box-shadow: inset 0 0 0 1px var(--aqua-line); }

/* camo swatches */
.ar-camos { display: flex; gap: 8px; overflow-x: auto; padding: 3px 2px 10px; scrollbar-width: thin; scrollbar-color: var(--aqua-line) transparent; }
.ar-camos::-webkit-scrollbar { height: 6px; }
.ar-camos::-webkit-scrollbar-thumb { background: var(--aqua-line); border-radius: 999px; }
.ar-camo { flex: none; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); padding: 0; position: relative; transition: transform 0.16s var(--ease), border-color 0.16s var(--ease); background: var(--surface-2); }
.ar-camo img { width: 100%; height: 100%; object-fit: cover; }
.ar-camo:hover { transform: translateY(-2px); border-color: var(--aqua-line); }
.ar-camo.is-on { border-color: var(--aqua); box-shadow: 0 0 0 2px var(--aqua), 0 6px 16px rgba(34,211,238,0.25); }

/* attachments (engine-built selects) */
.ar-attachments { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ar-attachments.is-empty { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--fg-dim); line-height: 1.5; }
.attachment-choice { display: flex; flex-direction: column; min-width: 0; }
.attachment-choice > label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 5px; }
.attachment-choice select {
  width: 100%; appearance: none; -webkit-appearance: none; font: inherit; font-size: 13px;
  padding: 9px 30px 9px 11px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239db1b9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 10px center;
  color: var(--fg); cursor: pointer; transition: border-color 0.18s var(--ease); text-overflow: ellipsis;
}
.attachment-choice select:hover { border-color: var(--aqua-line); }
.attachment-choice select:disabled { opacity: 0.55; cursor: default; }
.attachment-choice select option { background: var(--surface); color: var(--fg); }

.ar-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ar-cta .btn { flex: 1 1 auto; justify-content: center; }

/* responsive */
@media (max-width: 880px) {
  .arsenal__grid { grid-template-columns: 1fr; }
  .ar-stage { aspect-ratio: 1 / 1; min-height: 340px; }
}
@media (max-width: 440px) {
  .ar-attachments { grid-template-columns: 1fr; }
  .ar-stage { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  .ar-camo, .ar-wpn, .ar-tab { transition: none; }
  .ar-camo:hover { transform: none; }
}

/* --- Arsenal: weapon marquee cards + reveal --- */
.vcard--wpn { width: 300px; text-align: left; }
.vcard--wpn .vcard__img { height: 138px; }
.vcard--wpn .vcard__img img { max-height: 138px; }
.vcard--wpn .vcard__meta { margin-top: 12px; }
.arsenal__more { text-align: center; margin-top: 36px; }
.arsenal__more-hint { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
.arsenal__deep { margin-top: 44px; }
.arsenal__deep.is-open { animation: arDeepIn .42s var(--ease) both; }
@keyframes arDeepIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .arsenal__deep.is-open { animation: none; } }

/* --- Store: Custom Designs photo tiles --- */
.dtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.dtile { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: transform .25s var(--ease), border-color .25s var(--ease); }
.dtile:hover { transform: translateY(-5px); border-color: var(--aqua-line); }
.dtile__media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 8%, var(--aqua-ghost), transparent 55%), linear-gradient(160deg, var(--surface-3), var(--surface)); }
.dtile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dtile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(4,7,10,.72)); pointer-events: none; }
.dtile__icon { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: rgba(4,7,10,.45); border: 1px solid var(--aqua-line); color: var(--aqua); }
.dtile__icon svg { width: 30px; height: 30px; }
.dtile__tag { position: absolute; z-index: 2; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); background: rgba(4,7,10,.55); border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.dtile__body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.dtile__body h3 { font-size: 19px; margin-bottom: 7px; }
.dtile__body p { color: var(--fg-muted); font-size: 14px; flex: 1; }
.dtile__cta { margin-top: 16px; font-family: var(--display); font-weight: 600; color: var(--aqua); font-size: 14px; }
.dtile:hover .dtile__cta { text-decoration: underline; }
@media (max-width: 760px) { .dtiles { grid-template-columns: 1fr; } }

/* Workshop controls in the Features arsenal. */
#arReset { pointer-events:auto; align-self:flex-start; margin-top:6px; padding:5px 10px; border:1px solid var(--line-strong); border-radius:6px; background:var(--surface-2); color:inherit; cursor:pointer; }
#arCamoSearch { width:100%; margin-bottom:10px; padding:9px 12px; border:1px solid var(--line-strong); border-radius:8px; background:var(--surface-2); color:var(--text); }
.ar-camo[hidden] { display:none; }
.ar-camo:disabled,.ar-wpn:disabled { cursor:wait; opacity:.6; }

/* Compact, searchable finish library. */
.ar-camo-current { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; min-height:32px; }
#arCamoSelected { font-size:13px; font-weight:600; color:var(--fg); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ar-original { flex-shrink:0; padding:6px 10px; border:1px solid var(--line-strong); border-radius:7px; color:var(--fg-muted); background:transparent; font-size:12px; cursor:pointer; }
.ar-original[aria-pressed="true"] { color:var(--aqua); border-color:var(--aqua-line); background:rgba(34,211,238,.08); }
#arCamoSearch { font-size:13px; color:var(--fg); padding:10px 12px; }
#arCamoSearch:focus-visible { outline:2px solid var(--aqua); outline-offset:2px; }
.ar-camos { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; max-height:184px; overflow-y:auto; overflow-x:hidden; padding:4px 8px 4px 3px; scrollbar-gutter:stable; }
.ar-camo { width:100%; height:auto; aspect-ratio:1; border-radius:8px; }
.ar-camo.is-on { border-color:var(--aqua); box-shadow:0 0 0 2px var(--aqua); }
.ar-camo.is-on::after { content:'✓'; position:absolute; right:3px; bottom:3px; width:17px; height:17px; display:grid; place-items:center; background:var(--aqua); color:#071317; border-radius:50%; font-size:12px; font-weight:700; }
.ar-camo:focus-visible,.ar-original:focus-visible { outline:2px solid var(--aqua); outline-offset:2px; }
.ar-camo-empty { margin:8px 0; font-size:13px; color:var(--fg-muted); }

/* --- Clothing studio (#mode-clothing) --- */
.cl-picker { display: flex; flex-direction: column; gap: 16px; }
.cl-group__label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 8px; }
.cl-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.cl-opt { font-size: 13px; padding: 8px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--fg-muted); transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease); }
.cl-opt:hover { color: var(--fg); border-color: var(--aqua-line); background: var(--surface-2); }
.cl-opt.is-on { color: var(--fg); border-color: var(--aqua); background: var(--aqua-ghost); box-shadow: inset 0 0 0 1px var(--aqua-line); }
.cl-stage-slot { position: relative; min-height: clamp(360px, 56vh, 560px); }
.cl-stage__status { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--fg-muted); background: rgba(4,7,10,.45); pointer-events: none; border-radius: 18px; }
