:root {
  --bg: #09080f;
  --bg-elev: #141222;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f3ff;
  --muted: #aaa3c2;
  --pink: #fe2c55;
  --cyan: #25f4ee;
  --gold: #ffd60a;
  --lime: #d6ff6a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --header: 72px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(254, 44, 85, 0.2), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(37, 244, 238, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.045em;
  line-height: 1.3;
  overflow: visible;
  padding-bottom: 0.06em;
}
::selection { background: var(--pink); color: white; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: white;
  color: black;
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}
main {
  animation: rise 0.45s ease;
  overflow: visible;
}
@keyframes rise {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  backdrop-filter: blur(16px);
  background: rgba(9, 8, 15, 0.92);
  border-bottom: 1px solid transparent;
  color: var(--text);
  direction: ltr;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner, .bottom-nav, .footer-grid {
  display: flex;
  align-items: center;
}
.header-inner { height: var(--header); gap: 20px; justify-content: flex-start; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  margin-left: 0;
  color: var(--text);
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
.logo-mark img,
.logo-mark svg {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 9px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; color: var(--text); }
.logo-text strong { font-family: var(--display); font-size: 18px; color: var(--text); }
.logo-text small { color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; font-size: 10px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a, .bottom-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 14.5px;
}
.nav a.is-active { color: white; background: rgba(255, 255, 255, 0.06); }
.nav-badge, .cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--pink);
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  color: white;
}
.cart-count { position: absolute; top: -4px; right: -4px; }
.auth-slot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.auth-login-short { display: none; }
.auth-user {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 650;
}
.auth-banner { padding-top: 14px; }
.auth-note {
  margin: 0;
  border: 1px solid rgba(254, 44, 85, 0.45);
  background: rgba(254, 44, 85, 0.1);
  color: #ffd5df;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 14px;
}

.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  background: rgba(12, 10, 18, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  padding-bottom: env(safe-area-inset-bottom);
  justify-content: space-around;
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 12px 2px 14px;
}
.bottom-nav a.is-active { color: white; }
.bottom-nav a.is-active::before {
  content: "";
  display: block;
  width: 18px;
  height: 3px;
  border-radius: 99px;
  margin: 0 auto 6px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}
.footer-grid {
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  display: grid;
  grid-template-columns: 1.3fr auto;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: white; }
.legal {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  max-width: 78ch;
}

.eyebrow, .kicker {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 10px;
}
.lede { color: var(--muted); font-size: 18px; max-width: 48ch; }
.page-hero { padding: 36px 0 10px; overflow: visible; }
.page-hero h1 {
  font-family: var(--font);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  line-height: 1.35;
  overflow: visible;
  padding-bottom: 0.2em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.35;
  overflow: visible;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #ff577a, var(--pink)); color: white; box-shadow: 0 10px 28px rgba(254, 44, 85, 0.32); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: white; border: 1px solid var(--line); }
.btn-cyan { background: var(--cyan); color: #062226; }
.btn-small { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.hero-cta, .row-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 42px;
  align-items: center;
  padding: 18px 0 28px;
}
.hero-copy { position: relative; z-index: 1; color: var(--text); }
.hero h1 { font-size: clamp(46px, 6vw, 84px); margin-bottom: 14px; color: var(--text); }
.context-card, .panel, .game-card, .slot-card, .step, .patch-detail, .product-card, .faq-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.context-card { margin-top: 22px; padding: 18px; }
.context-card h2 { font-size: 28px; margin-bottom: 8px; }
.context-card p { color: var(--muted); }

.phone {
  position: relative;
  height: min(740px, calc(100svh - 110px));
  min-height: 560px;
  border-radius: 36px;
  overflow: hidden;
  background: #05040a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone-top {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 72px;
  right: 118px;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px 12px 28px;
  background: linear-gradient(#05040a, transparent);
  pointer-events: none;
}
.phone-top button { pointer-events: auto; }
.feed-tab {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
  padding: 4px;
}
.feed-tab.is-on { color: white; }
.autoplay-btn {
  position: absolute;
  top: 14px;
  right: 12px;
  z-index: 4;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: white;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
.sound-btn { right: 62px; }
.feed {
  position: relative;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }
.clip {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}
.clip-bg { position: absolute; inset: 0; }
.clip-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.78));
}
.clip-bottom {
  position: absolute;
  left: 16px;
  right: 72px;
  bottom: 28px;
  z-index: 2;
}
.clip-user { font-weight: 700; margin-bottom: 6px; }
.clip-bottom h2 { font-size: 28px; margin-bottom: 8px; }
.clip-caption { margin: 0 0 8px; color: rgba(255, 255, 255, 0.88); }
.clip-sound { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.8); display: flex; gap: 8px; align-items: center; }
.eq { display: inline-flex; gap: 2px; height: 12px; align-items: end; }
.eq i {
  display: block;
  width: 3px;
  height: 100%;
  background: white;
  transform-origin: bottom;
  animation: eq 0.8s ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.28s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
.clip-rail {
  position: absolute;
  right: 10px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rail-btn {
  background: none;
  border: 0;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}
.rail-btn svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45)); }
.rail-btn.is-liked { color: var(--pink); }
.rail-btn.is-liked svg { animation: pop 0.35s ease; }
.rail-btn.is-on { color: var(--cyan); }
@keyframes pop { 50% { transform: scale(1.28); } }
.clip-progress { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 3px; background: rgba(255, 255, 255, 0.2); border-radius: 99px; overflow: hidden; z-index: 2; }
.clip-progress span { display: block; height: 100%; width: 0; background: white; }
.clip.is-active .clip-progress span { animation: loadbar 7s linear; }
@keyframes loadbar { from { width: 0; } to { width: 100%; } }

.bg-intro { background: radial-gradient(circle at 50% 40%, #3a1848, #120814 70%); }
.ring {
  position: absolute;
  inset: 18% 16%;
  border-radius: 50%;
  border: 2px solid rgba(37, 244, 238, 0.7);
  animation: spin 12s linear infinite;
}
.ring.r2 { inset: 28% 24%; border-color: rgba(236, 72, 153, 0.75); animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: center / 42% no-repeat url("../assets/nexiora-mark.svg");
}

.bg-game { background: linear-gradient(#1a1440, #123044 70%, #0e1a16); }
.hill { position: absolute; left: -10%; right: -10%; height: 120px; border-radius: 50%; }
.h1 { bottom: 80px; background: #1d2a4a; }
.h2 { bottom: 30px; background: #142033; }
.plat {
  position: absolute;
  height: 14px;
  border-radius: 8px;
  background: #25f4ee;
}
.p1 { width: 38%; left: 8%; bottom: 180px; }
.p2 { width: 28%; right: 14%; bottom: 250px; }
.runner {
  position: absolute;
  width: 48px;
  height: 62px;
  left: 22%;
  bottom: 194px;
  border-radius: 24px 24px 16px 16px;
  background: linear-gradient(#b8fbff, #35d7ee);
  animation: hop 1.05s ease-in-out infinite;
}
.runner::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 22px;
  background: var(--gold);
  border-radius: 70% 0 70% 0;
  top: -12px;
  left: 15px;
  transform: rotate(20deg);
}
.flower {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50% 0 50% 0;
  background: var(--gold);
  bottom: 268px;
  right: 24%;
  animation: hop 1.4s ease-in-out infinite;
}
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}

.bg-proto { background: radial-gradient(circle at 50% 80%, rgba(37, 244, 238, 0.2), #100818 55%); }
.big-time {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 92px;
  letter-spacing: -0.06em;
}
.bg-patch { background: #100e18; padding: 70px 22px; }
.fake-note {
  background: #1b1830;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.fake-note strong { display: block; color: var(--lime); margin-bottom: 6px; }
.bg-shop { background: radial-gradient(circle at 50% 30%, #402038, #120c18 70%); }
.float-card {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 180px;
  transform: translate(-50%, -50%);
  background: white;
  color: #1a1020;
  border-radius: 18px;
  padding: 16px;
  font-family: var(--display);
  animation: floaty 3s ease-in-out infinite;
}
.float-card span { display: block; font-family: var(--font); font-size: 13px; color: #6d6478; }
@keyframes floaty {
  50% { transform: translate(-50%, calc(-50% - 10px)); }
}
.bg-studio { background: linear-gradient(160deg, #101820, #201434); }
.poles-mini {
  position: absolute;
  inset: 22% 12%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.poles-mini span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  padding: 12px 0;
  width: max-content;
  animation: ticker 22s linear infinite;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 13px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 64px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 46px); margin: 0; }
.section-head a { color: var(--cyan); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: 28px; letter-spacing: -0.04em; }
.stat span { color: var(--muted); font-size: 14px; }

.slate-grid, .steps, .preview-grid, .poles, .faq {
  display: grid;
  gap: 14px;
}
.slate-grid { grid-template-columns: 1.45fr 0.8fr 0.8fr; }
.game-card, .slot-card { position: relative; min-height: 250px; padding: 20px; overflow: hidden; }
.game-card {
  background:
    radial-gradient(300px 160px at 90% 20%, rgba(255, 214, 10, 0.18), transparent 60%),
    linear-gradient(160deg, #241433, #101820);
  display: flex;
  flex-direction: column;
  justify-content: end;
  text-decoration: none;
}
.stamp {
  position: absolute;
  top: 18px;
  right: 16px;
  border: 2px solid var(--gold);
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
  transform: rotate(8deg);
}
.slot-card { border-style: dashed; color: var(--muted); display: grid; align-content: end; }
.steps { grid-template-columns: repeat(3, 1fr); }
.step { padding: 18px; }
.step em { color: var(--pink); font-style: normal; font-weight: 800; letter-spacing: 0.08em; font-size: 12px; }
.preview-grid { grid-template-columns: repeat(3, 1fr); }
.mini-patch, .mini-product {
  display: block;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  height: 100%;
}
.mini-patch:hover, .mini-product:hover { border-color: rgba(37, 244, 238, 0.45); }
.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}
.tag-gameplay { background: rgba(37, 244, 238, 0.14); color: #8ef8ff; }
.tag-correctif { background: rgba(254, 44, 85, 0.16); color: #ff9aaf; }
.tag-contenu { background: rgba(214, 255, 106, 0.14); color: var(--lime); }
.tag-audio { background: rgba(255, 214, 10, 0.14); color: #ffe56a; }
.tag-interface { background: rgba(124, 92, 255, 0.2); color: #cfc4ff; }
.tag-prototype { background: rgba(255, 255, 255, 0.08); color: white; }

.cta-band {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(254, 44, 85, 0.18), rgba(37, 244, 238, 0.1));
  border: 1px solid var(--line);
  overflow: visible;
}
.cta-band h2 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 4vw, 46px);
  max-width: 18ch;
  line-height: 1.35;
  padding-bottom: 0.12em;
  overflow: visible;
}

.game-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 20px;
}
.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 214, 10, 0.12);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.meters { display: grid; gap: 12px; }
.meter-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.meter { height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--pink)); border-radius: inherit; }
.wonder-flower {
  width: 160px;
  height: 180px;
  margin: 10px auto 0;
  border: 0;
  background: transparent;
  position: relative;
}
.petal-core, .petal {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 36px;
  height: 52px;
  border-radius: 50% 50% 50% 0;
  background: var(--gold);
  transform-origin: center bottom;
}
.petal-core { transform: translate(-50%, -40%) rotate(45deg); background: #fff3a0; z-index: 1; width: 28px; height: 28px; border-radius: 50%; }
.petal:nth-child(1) { --r: 0deg; }
.petal:nth-child(2) { --r: 72deg; }
.petal:nth-child(3) { --r: 144deg; }
.petal:nth-child(4) { --r: 216deg; }
.petal:nth-child(5) { --r: 288deg; }
.petal { transform: translate(-50%, -80%) rotate(var(--r)); }
.wonder-flower.is-bloom .petal { animation: bloom 3s ease; }
@keyframes bloom {
  50% { transform: translate(-50%, -112%) rotate(var(--r)) scale(1.12); filter: brightness(1.25); }
}
.flower-label { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 13px; }

.proto-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 22px;
  align-items: start;
}
.proto-stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #07060d;
}
.proto-stage canvas { width: 100%; height: auto; display: block; touch-action: none; }
.proto-end {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
  background: rgba(7, 6, 13, 0.62);
}
.proto-side h2 { font-size: 36px; }
.help-list { color: var(--muted); padding-left: 18px; }
.hud-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.hud-pills span, .issue {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 14px;
}

.roadmap { display: grid; gap: 0; }
.road {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.road b { color: var(--cyan); }

.shop-tools, .patch-tools, .form-grid { display: grid; gap: 12px; }
.shop-tools, .patch-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 220px);
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}
.shop-tools .field,
.shop-tools .sort-label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
}
.shop-tools input,
.shop-tools select {
  height: 48px;
  min-height: 48px;
  margin: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
}
.chip.is-on { background: var(--cyan); color: #062226; border-color: transparent; }
input, textarea, select {
  width: 100%;
  background: #0d0c14;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.3;
  box-sizing: border-box;
}
input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
textarea { min-height: 110px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; min-width: 0; }
.field > span:not(.sr-only), .sort-label > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}
.sort-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
  width: 100%;
}
.sort-label select {
  min-height: 46px;
  padding-right: 36px;
}

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product-card { overflow: visible; display: flex; flex-direction: column; }
.product-card.span-2 { grid-column: span 2; }
.product-art {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.product-body h3 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  padding-bottom: 0;
}
.product-art svg { display: block; width: 100%; height: 180px; }
.product-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.product-body h3 { margin: 0; font-size: 24px; }
.product-blurb { color: var(--muted); margin: 0; flex: 1; }
.product-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-family: var(--display); font-size: 22px; }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}
.waitlist-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: visible;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(255, 214, 10, 0.16), transparent 50%),
    linear-gradient(160deg, #241326, #12101c);
}
.waitlist-card h2 {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin-bottom: 8px;
  padding-bottom: 0;
}
#waitlist-form {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-bottom: 4px;
}
#waitlist-form .btn {
  width: fit-content;
  max-width: 100%;
}
#waitlist-form .waitlist-note,
.waitlist-note {
  margin: 0;
  line-height: 1.6;
  overflow: visible;
  padding-bottom: 0.2em;
}

.patch-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.patch-list { display: grid; gap: 8px; }
.patch-item {
  text-align: left;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  color: white;
}
.patch-item.is-on { border-color: rgba(37, 244, 238, 0.7); background: rgba(37, 244, 238, 0.06); }
.patch-item small { color: var(--muted); display: block; }
.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  display: inline-block;
  margin-right: 6px;
}
.patch-detail { padding: 20px; min-height: 280px; }
.patch-detail h2 { font-size: 34px; }
.patch-detail li { margin: 8px 0; }
.issues { margin-top: 16px; display: grid; gap: 8px; }
.panel { padding: 18px; }
.panel h2 { font-size: 28px; }
.bo2-lock, .bo2-access { max-width: 720px; display: grid; gap: 12px; }
.bo2-lock p, .bo2-access p { margin-bottom: 0; }
.bo2-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(254, 44, 85, 0.55);
  color: #ffd5df;
  background: rgba(254, 44, 85, 0.12);
}
.bo2-status.is-on {
  border-color: rgba(37, 244, 238, 0.65);
  color: #d9fffd;
  background: rgba(37, 244, 238, 0.12);
}
.bo2-tiktok { margin: 0; }
.bo2-tiktok code { color: var(--cyan); font-size: 16px; }
.bo2-code-box {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(37, 244, 238, 0.28);
  background: rgba(37, 244, 238, 0.06);
}
.bo2-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.bo2-code-row code {
  flex: 1 1 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--cyan);
  font-size: 15px;
  letter-spacing: 0.04em;
  word-break: break-all;
}
.bo2-mac { margin: 0; color: var(--muted); font-size: 14px; }
.bo2-mac.is-on { color: #9dffd4; }
.bo2-mac code { color: var(--cyan); }
.bo2-section, .bo2-admin { display: grid; gap: 10px; margin-top: 8px; }
.bo2-install-steps {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 16px;
}
.bo2-install-steps li { display: grid; gap: 8px; }
.bo2-install-steps .btn { justify-self: start; }
.bo2-install code {
  font-size: 0.92em;
  color: var(--cyan);
}
.bo2-section h3, .bo2-admin h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.03em;
}
.bo2-gifts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.bo2-gifts li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.bo2-gifts strong { display: block; }
.bo2-gifts small { display: block; margin-top: 2px; }
.bo2-gift-emoji {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}
.bo2-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bo2-admin-actions .bo2-fire { justify-content: flex-start; text-align: left; }
.bo2-admin-log { margin: 0; min-height: 1.4em; }
.bo2-admin-log.is-ok { color: #9dffd4; }
.bo2-admin-log.is-err { color: #ff9aa8; }
@media (max-width: 640px) {
  .bo2-gifts li { grid-template-columns: 1fr; gap: 6px; }
}

.studio-grid, .poles { grid-template-columns: 1fr 1fr; }
.studio-grid { display: grid; gap: 14px; }
.manifesto { font-size: 28px; font-family: var(--display); letter-spacing: -0.04em; line-height: 1.15; }
.pole { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.pole b { font-family: var(--display); font-size: 22px; display: block; margin-bottom: 6px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: white;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 17px;
}
.faq-a { display: none; padding: 0 18px 16px; color: var(--muted); }
.faq-item.is-open .faq-a { display: block; }
.form-grid.two { grid-template-columns: 1fr 1fr; }

.drawer, .modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.drawer.is-open, .modal.is-open { display: block; }
.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: #120f1c;
  border-left: 1px solid var(--line);
  padding: 18px;
  overflow: auto;
  box-shadow: var(--shadow);
}
.modal-card {
  position: relative;
  width: min(720px, calc(100% - 24px));
  margin: 8vh auto;
  background: #141222;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: auto;
  max-height: 84vh;
  box-shadow: var(--shadow);
}
.modal-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; }
.modal-copy { padding: 18px; }
.drawer-head, .comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cart-line, .comment {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: white;
}
.total { display: flex; justify-content: space-between; font-size: 18px; margin: 12px 0; }
.muted {
  color: var(--muted);
  line-height: 1.55;
  overflow: visible;
}
.empty { color: var(--muted); padding: 12px 0; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.toasts {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100% - 24px));
}
.toast {
  background: white;
  color: #16141f;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.heart-burst {
  position: fixed;
  z-index: 70;
  color: var(--pink);
  font-size: 42px;
  pointer-events: none;
  animation: heart 0.7s ease forwards;
}
@keyframes heart {
  to { transform: translateY(-40px) scale(1.4); opacity: 0; }
}
.error { color: #ff9aaf; font-size: 14px; margin: 6px 0; }

@media (max-width: 980px) {
  .shop-grid, .stats, .steps, .preview-grid { grid-template-columns: 1fr 1fr; }
  .slate-grid, .game-hero, .proto-layout, .patch-layout, .studio-grid, .poles, .modal-grid, .waitlist-card {
    grid-template-columns: 1fr;
  }
  .product-card.span-2 { grid-column: auto; }
}
@media (max-width: 800px) {
  .auth-login { min-height: 40px; padding: 0 10px; font-size: 13px; }
  .auth-user { max-width: 88px; }
  .nav { display: none; }
  .bottom-nav { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .phone { height: min(78svh, 720px); min-height: 420px; border-radius: 24px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .shop-tools, .patch-tools, .form-grid.two, .footer-grid, .meter-row, .road { grid-template-columns: 1fr; }
  .stats, .steps, .preview-grid, .shop-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
