:root {
  --bg: #07060d;
  --bg-2: #0d0b18;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f3ff;
  --muted: #a5a3c2;
  --purple: #8b5cf6;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --pink: #f472b6;
  --gold: #facc15;
  --red: #fb7185;
  --radius: 20px;
  --grad: linear-gradient(120deg, var(--purple), var(--pink) 50%, var(--cyan));
  --font: 'Space Grotesk', system-ui, sans-serif;
  --pixel: 'Press Start 2P', monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
body::before {
  /* neon blobs + voxel grid */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 10% -5%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(500px 400px at 100% 10%, rgba(34, 211, 238, 0.16), transparent 70%),
    radial-gradient(600px 500px at 50% 110%, rgba(244, 114, 182, 0.14), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 40px 40px;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: 64px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pixel { font-family: var(--pixel); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 6, 13, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.35rem; }
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); padding: 8px 12px; border-radius: 12px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-links a.btn-primary { color: #fff; background: var(--grad); }
.nav-me { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 12px; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px;
    background: rgba(7, 6, 13, 0.97); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: 600 1rem var(--font);
  cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; text-decoration: none !important;
  min-height: 46px;
}
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.12); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 30px -8px rgba(139, 92, 246, 0.8); }
.btn-primary:hover { background: var(--grad); box-shadow: 0 10px 40px -6px rgba(244, 114, 182, 0.8); }
.btn-lime { background: var(--lime); color: #1a2e05; border: 0; }
.btn-lime:hover { background: #bef264; }
.btn-danger { background: rgba(251, 113, 133, 0.15); border-color: rgba(251, 113, 133, 0.4); color: #fecdd3; }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: 0.875rem; border-radius: 10px; }
.btn-big { padding: 16px 30px; font-size: 1.1rem; border-radius: 18px; }
.btn-google { background: #fff; color: #1f1f1f; border: 0; }

label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35); color: var(--text); font: 1rem var(--font);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3); }
textarea { min-height: 110px; resize: vertical; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; min-height: 220px; }
input[type=color] { width: 56px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: none; padding: 4px; cursor: pointer; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; backdrop-filter: blur(8px);
}
.card-glow { position: relative; }
.card-glow::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.7; pointer-events: none;
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 0.82rem; font-weight: 600; white-space: nowrap;
}
.chip-pending { background: rgba(250, 204, 21, 0.12); border-color: rgba(250, 204, 21, 0.4); color: #fde68a; }
.chip-approved { background: rgba(163, 230, 53, 0.12); border-color: rgba(163, 230, 53, 0.4); color: #d9f99d; }
.chip-revoked { background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.4); color: #fecdd3; }

.coin { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.25em; }
.coins { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gold); }

.avatar {
  border-radius: 30%; object-fit: cover; background: var(--grad); flex-shrink: 0;
  display: inline-grid; place-items: center; color: #fff; font-weight: 700; overflow: hidden;
}

.insignia { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.rank-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; }

.progress { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--cyan)); border-radius: inherit; box-shadow: 0 0 20px rgba(34, 211, 238, 0.6); transition: width 0.8s; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-art { filter: drop-shadow(0 30px 60px rgba(139, 92, 246, 0.35)); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 18px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 0 auto; }
}

.feature img { width: 96px; height: 96px; margin-bottom: 12px; }
.feature:hover { transform: translateY(-4px); }
.feature { transition: transform 0.2s; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 76px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 22px; width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center; font: 700 1.2rem var(--font); background: var(--grad); color: #fff;
}

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- games ---------- */
.game-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: var(--text); transition: transform 0.2s; }
.game-card:hover { transform: translateY(-4px); text-decoration: none; }
.game-thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 3.4rem; position: relative; }
.game-thumb .chip { position: absolute; top: 10px; left: 10px; z-index: 1; }
.game-thumb img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.game-body h3 { margin: 0; }
.game-meta { margin-top: auto; display: flex; gap: 14px; color: var(--muted); font-size: 0.875rem; align-items: center; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.player { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--border); }
.player iframe { display: block; width: 100%; height: min(78vh, 760px); border: 0; background: #000; }
.player:fullscreen iframe { height: 100vh; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { padding: 8px 16px; border-radius: 12px; border: 1px solid var(--border); background: none; color: var(--muted); font: 600 0.95rem var(--font); cursor: pointer; }
.tab.active { background: var(--surface-2); color: var(--text); border-color: var(--purple); }

/* ---------- lists & tables ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

.leader { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text); }
.leader:hover { text-decoration: none; }
.leader .pos { width: 28px; font-weight: 700; color: var(--muted); text-align: center; }
.leader:nth-child(1) .pos { color: var(--gold); }
.leader:nth-child(2) .pos { color: #e2e8f0; }
.leader:nth-child(3) .pos { color: #fb923c; }

.ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ladder-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 0.88rem; }
.ladder-item.current { border-color: var(--lime); box-shadow: 0 0 24px -6px var(--lime); }
.ladder-item.locked { opacity: 0.45; }

/* ---------- misc ---------- */
.callout { border-radius: 16px; padding: 16px 18px; background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.3); }
.callout.warn { background: rgba(250, 204, 21, 0.08); border-color: rgba(250, 204, 21, 0.35); }
.callout.danger { background: rgba(251, 113, 133, 0.08); border-color: rgba(251, 113, 133, 0.35); }
.copybox { display: flex; gap: 8px; align-items: stretch; }
.copybox input, .copybox textarea { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }
@media (max-width: 560px) { .copybox { flex-direction: column; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px);
  padding: 14px 22px; border-radius: 16px; background: #1b1830; border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); z-index: 100; transition: transform 0.3s; max-width: calc(100% - 32px); font-weight: 600;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--red); }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .big { font-size: 3rem; }

.doc h1 { font-size: 2rem; }
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; }
.doc h3 { font-size: 1.1rem; margin-top: 1.4em; }
.doc pre { background: rgba(0, 0, 0, 0.45); border: 1px solid var(--border); border-radius: 14px; padding: 16px; overflow-x: auto; font-size: 0.85rem; }
.doc code { background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 6px; font-size: 0.88em; }
.doc pre code { background: none; padding: 0; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.doc ul, .doc ol { padding-left: 1.4em; }

.footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; margin-top: 40px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

.profile-banner {
  border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #8b5cf6) 45%, transparent), rgba(255, 255, 255, 0.03));
  border: 1px solid color-mix(in srgb, var(--accent, #8b5cf6) 60%, transparent);
}
.profile-banner .avatar { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15), 0 0 40px var(--accent, #8b5cf6); }
.big-num { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat { padding: 16px 18px; }
.stat .muted { font-size: 0.85rem; }

.idea-chip { cursor: pointer; }
.idea-chip:hover { border-color: var(--pink); }

/* ---------- shop cosmetics ---------- */
@keyframes gz-spin { to { transform: rotate(360deg); } }
@keyframes gz-slide { to { background-position: 200% center; } }
@keyframes gz-glitch { 0%, 100% { text-shadow: 2px 0 #f472b6, -2px 0 #22d3ee; } 50% { text-shadow: -2px 0 #f472b6, 2px 0 #22d3ee; } }
@keyframes gz-rain { to { background-position: 0 200px; } }

.av-wrap { position: relative; display: inline-grid; place-items: center; padding: 3px; border-radius: 32%; overflow: hidden; flex-shrink: 0; vertical-align: middle; }
.av-wrap > .avatar { position: relative; z-index: 1; }
.av-wrap::before { content: ''; position: absolute; inset: -50%; z-index: 0; }
.frame-neon { box-shadow: 0 0 14px rgba(139, 92, 246, 0.8); }
.frame-neon::before { background: linear-gradient(135deg, #8b5cf6, #22d3ee); }
.frame-gold { box-shadow: 0 0 12px rgba(250, 204, 21, 0.6); }
.frame-gold::before { background: linear-gradient(135deg, #fef9c3, #facc15, #ca8a04, #fde047); }
.frame-rainbow::before { background: conic-gradient(#ef4444, #f97316, #facc15, #22c55e, #22d3ee, #6366f1, #d946ef, #ef4444); animation: gz-spin 3s linear infinite; }
.frame-fire { box-shadow: 0 0 18px rgba(249, 115, 22, 0.8); }
.frame-fire::before { background: conic-gradient(#ef4444, #f97316, #facc15, #f97316, #ef4444); animation: gz-spin 1.6s linear infinite; }
.frame-galaxy { box-shadow: 0 0 18px rgba(139, 92, 246, 0.7); }
.frame-galaxy::before { background: conic-gradient(#1e1b4b, #8b5cf6, #22d3ee, #f472b6, #1e1b4b); animation: gz-spin 6s linear infinite; }
.frame-diamond { box-shadow: 0 0 22px rgba(224, 242, 254, 0.9); }
.frame-diamond::before { background: conic-gradient(#e0f2fe, #7dd3fc, #ffffff, #a5b4fc, #e0f2fe); animation: gz-spin 4s linear infinite; }

.name-ice { color: #7dd3fc; text-shadow: 0 0 10px rgba(56, 189, 248, 0.7); }
.name-gold, .name-neon, .name-rainbow { -webkit-background-clip: text; background-clip: text; color: transparent; }
.name-gold { background-image: linear-gradient(90deg, #fef08a, #f59e0b, #fef9c3); }
.name-neon { background-image: linear-gradient(90deg, #a78bfa, #f472b6, #22d3ee); }
.name-rainbow { background-image: linear-gradient(90deg, #ef4444, #f97316, #facc15, #22c55e, #22d3ee, #a855f7, #ef4444); background-size: 200% auto; animation: gz-slide 3s linear infinite; }
.name-glitch { color: #a3e635; animation: gz-glitch 1.2s steps(2) infinite; }
.u-title { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border); color: var(--muted); vertical-align: middle; white-space: nowrap; }

.banner-sunset { background: linear-gradient(135deg, #f97316, #db2777, #7c3aed) !important; }
.banner-ocean { background: linear-gradient(160deg, #0ea5e9, #1d4ed8, #172554) !important; }
.banner-candy { background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #67e8f9) !important; }
.banner-matrix { background: repeating-linear-gradient(180deg, rgba(34, 197, 94, 0.25) 0 2px, transparent 2px 14px), #022c22 !important; animation: gz-rain 6s linear infinite; }
.banner-space { background: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(2px 2px at 70% 60%, #fff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 20%, #fff, transparent), radial-gradient(600px 300px at 80% 0%, rgba(139, 92, 246, 0.5), transparent), #0b0a1f !important; }
@media (prefers-reduced-motion: reduce) { .av-wrap::before, .name-rainbow, .name-glitch, .banner-matrix { animation: none; } }

/* ---------- shop, studio, misc ---------- */
.shop-item { display: flex; flex-direction: column; gap: 10px; }
.shop-item .preview { height: 110px; border-radius: 14px; display: grid; place-items: center; background: rgba(0, 0, 0, 0.3); font-size: 1.3rem; font-weight: 700; overflow: hidden; }
.shop-item.locked { opacity: 0.55; }
.deal-badge { background: var(--pink); color: #fff; border: 0; }
.spotlight-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.spotlight-strip > * { scroll-snap-align: start; }
.game-thumb .spot-badge, .spot-badge { position: absolute; top: 10px; right: 10px; left: auto; z-index: 1; background: var(--gold); color: #422006; border: 0; }
.creator-card { display: flex; align-items: center; gap: 14px; color: var(--text); }
.creator-card:hover { text-decoration: none; border-color: var(--purple); }
.creator-stats { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }
.studio-log { max-height: 260px; overflow: auto; font: 0.8rem/1.4 ui-monospace, Consolas, monospace; color: var(--muted); white-space: pre-wrap; word-break: break-all; background: rgba(0, 0, 0, 0.35); border-radius: 12px; padding: 12px; }
.model-card { cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.model-card.active { border-color: var(--lime); box-shadow: 0 0 24px -8px var(--lime); }
.versions { display: flex; gap: 6px; flex-wrap: wrap; }
.dialog-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: grid; place-items: center; z-index: 90; padding: 16px; }
.dialog { width: min(440px, 100%); }
.streak { color: #fb923c; font-weight: 700; }

/* ---------- full screen player ---------- */
.fs-exit { display: none; position: absolute; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 5; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(0, 0, 0, 0.55); color: #fff; font: 600 0.9rem var(--font); cursor: pointer; backdrop-filter: blur(6px); }
.player:fullscreen .fs-exit, .player.pseudo-fs .fs-exit { display: inline-flex; align-items: center; gap: 6px; }
.player.pseudo-fs { position: fixed; inset: 0; z-index: 300; border-radius: 0; border: 0; }
.player.pseudo-fs iframe, .player:fullscreen iframe { height: 100vh; height: 100dvh; }
body.no-scroll { overflow: hidden; }

/* ---------- comments ---------- */
.c-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.c-item:last-child { border-bottom: 0; }
.c-item .c-text { margin: 4px 0 6px; white-space: pre-wrap; word-break: break-word; }
.c-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.c-actions .btn { min-height: 30px; padding: 4px 10px; font-size: 0.8rem; }

/* ---------- pets ---------- */
.av-pet { position: relative; display: inline-block; flex-shrink: 0; vertical-align: middle; line-height: 0; }
.av-pet-img { position: absolute; right: -14%; bottom: -14%; width: 52%; height: 52%; border-radius: 50%; object-fit: cover; border: 2px solid; background: var(--bg); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); z-index: 2; }
.pet-show { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--tier); box-shadow: 0 0 24px -8px var(--tier); }
.pet-show img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.pet-show b { font-size: 1.15rem; }
.tier-head { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; grid-column: 1 / -1; }
.tier-head h3 { margin: 0; }
.pet-card .preview { height: auto; aspect-ratio: 1; padding: 0; background: none; position: relative; }
.pet-card .preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.pet-card .tier-chip { position: absolute; top: 8px; left: 8px; border: 0; color: #111; font-weight: 700; }
.pet-card.tier-legendary { box-shadow: 0 0 30px -10px #facc15; border-color: rgba(250, 204, 21, 0.5); }
.pet-card.tier-epic { box-shadow: 0 0 26px -12px #c084fc; border-color: rgba(192, 132, 252, 0.45); }
.pet-card.locked .preview img { filter: grayscale(0.7) brightness(0.6); }

/* =====================================================================
   GenZ design system v2: navigation, game cards, shelves, pages
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.spacer { flex: 1; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* ---------- navigation ---------- */
.nav .wrap { gap: 18px; }
.nav-links { margin-left: auto; }
.nav-links a.nav-create { background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 6px 24px -8px rgba(244, 114, 182, 0.8); }
.nav-links a.nav-create:hover { filter: brightness(1.1); background: var(--grad); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-right .coins { font-size: 0.95rem; }
.bottom-nav { display: none; }
@media (max-width: 860px) {
  .nav .nav-links, .nav .menu-btn { display: none !important; }
  .nav .nav-right { margin-left: auto; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(13, 11, 24, 0.96); backdrop-filter: blur(14px); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--muted); font-size: 0.72rem; font-weight: 600; border-radius: 14px; text-decoration: none; min-height: 52px; justify-content: center; }
  .bottom-nav a span { font-size: 1.35rem; line-height: 1; }
  .bottom-nav a.active { color: var(--text); background: var(--surface-2); }
  .bottom-nav a.bn-create { color: #fff; }
  .bottom-nav a.bn-create span { width: 50px; height: 50px; margin-top: -24px; border-radius: 18px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(244, 114, 182, 0.9); border: 3px solid var(--bg); }
}

/* ---------- game cards ---------- */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gcard { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.gcard:hover { transform: translateY(-5px) rotate(-0.4deg); border-color: rgba(244, 114, 182, 0.6); box-shadow: 0 18px 40px -16px rgba(139, 92, 246, 0.7); }
.gcard-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1730; }
.gcard-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.gcard:hover .gcard-cover img { transform: scale(1.06); }
.gcard-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3.4rem; }
.gcard-labels { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.lbl { font: 800 0.68rem/1 var(--font); letter-spacing: 0.04em; padding: 5px 8px; border-radius: 8px; color: #111; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.lbl-new { background: var(--lime); }
.lbl-trending { background: var(--cyan); }
.lbl-hot { background: #fb923c; }
.lbl-challenge { background: var(--gold); }
.lbl-2p { background: #f9a8d4; }
.lbl-mobile { background: #c4b5fd; }
.gcard-play { position: absolute; right: 12px; bottom: 12px; padding: 10px 18px; border-radius: 999px; background: var(--lime); color: #1a2e05; font-weight: 800; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); transform: translateY(4px); opacity: 0.92; transition: transform 0.2s, opacity 0.2s; }
.gcard:hover .gcard-play, .gcard-cover:focus-visible .gcard-play { transform: translateY(0) scale(1.06); opacity: 1; }
.gcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gcard-title { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.gcard-title a { color: var(--text); }
.gcard-creator { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.85rem; }
.gcard-creator .avatar { border-radius: 50%; }
.gcard-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 0.82rem; }
.gcard-cat { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 0.78rem; }

/* ---------- shelves & pages ---------- */
.shelf { margin: 34px 0; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.shelf-head h2, .shelf-head h3 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.6rem); }
.shelf-more { font-weight: 700; white-space: nowrap; }
.page-head { margin: 10px 0 26px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 18px 0 8px; font-size: 0.88rem; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--muted); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { padding: 9px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; transition: transform 0.15s, border-color 0.15s; }
.cat-chip:hover { transform: translateY(-2px); border-color: var(--purple); text-decoration: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 24px; }
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 18px 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(244, 114, 182, 0.12)); border: 1px solid rgba(250, 204, 21, 0.35); font-weight: 600; font-size: 0.9rem; }
.badge-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.35); font-size: 1.1rem; }
.badge.locked { opacity: 0.45; filter: grayscale(1); }
.creator-counts { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 0; color: var(--muted); }
.creator-counts b { color: var(--text); }

/* ---------- game page ---------- */
.game-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 14px; }
.game-head h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: 0; }
.game-by { margin: 6px 0 0; color: var(--muted); }
.game-by a { display: inline-flex; align-items: center; gap: 6px; }
.game-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.player-start { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 78vh; padding: 0; border: 0; cursor: pointer; background: #000; overflow: hidden; }
.player-start img, .player-start .gcard-fallback { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.75); transition: filter 0.2s, transform 0.3s; }
.player-start:hover img { filter: brightness(0.9); transform: scale(1.02); }
.player-start-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 18px 36px; border-radius: 999px; background: var(--lime); color: #1a2e05; font: 800 clamp(1.2rem, 3vw, 1.7rem) var(--font); box-shadow: 0 10px 40px rgba(163, 230, 53, 0.55); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: translate(-50%, -50%) scale(1.06); } }
.player-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.game-info { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); margin-top: 22px; align-items: start; }
@media (max-width: 860px) { .game-info { grid-template-columns: 1fr; } }
.game-info h2 { font-size: 1.3rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; margin: 16px 0; }
.facts div { background: rgba(255, 255, 255, 0.04); border-radius: 12px; padding: 10px 12px; }
.facts dt { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- footer ---------- */
.footer-grid { display: grid !important; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-h { font-size: 0.95rem; margin-bottom: 10px; color: var(--text); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- celebrations ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; }
.celebrate { position: fixed; left: 50%; top: 22%; transform: translate(-50%, -50%) scale(0.6); z-index: 401; padding: 22px 34px; border-radius: 26px; background: var(--grad); color: #fff; font: 800 clamp(1.4rem, 5vw, 2.4rem) var(--font); text-align: center; box-shadow: 0 20px 60px rgba(139, 92, 246, 0.6); opacity: 0; transition: transform 0.35s cubic-bezier(.2, 1.6, .4, 1), opacity 0.25s; pointer-events: none; }
.celebrate.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.celebrate small { display: block; font-size: 0.5em; font-weight: 600; opacity: 0.9; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .gcard, .gcard-cover img, .player-start img, .cat-chip { transition: none; }
  .gcard:hover { transform: none; }
  .player-start-btn { animation: none; }
}

/* ---------- homepage v2 ---------- */
.btn-huge { padding: 20px 38px; font-size: 1.3rem; border-radius: 22px; min-height: 64px; }
.hero2 { padding: 40px 0 10px; overflow: hidden; }
.hero2-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; }
.hero2 h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.02; margin-bottom: 16px; }
.hero2-cta { margin: 24px 0 18px; }
.idea-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.idea-row .chip { font-size: 0.85rem; padding: 7px 12px; color: var(--text); }
.hero2-art { position: relative; }
.hero2-art img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(139, 92, 246, 0.35)); animation: bob 6s ease-in-out infinite; }
.sticker { position: absolute; font-size: clamp(1.8rem, 4vw, 2.6rem); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)); animation: floaty 5s ease-in-out infinite; }
.s1 { top: 4%; left: 6%; } .s2 { top: 0; right: 12%; animation-delay: -1s; } .s3 { bottom: 14%; right: 0; animation-delay: -2s; }
.s4 { bottom: 4%; left: 14%; animation-delay: -3s; } .s5 { top: 42%; left: -2%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@media (max-width: 860px) { .hero2-grid { grid-template-columns: 1fr; } .hero2-art { max-width: 420px; margin: 0 auto; order: -1; } .btn-huge { width: 100%; } }
.cta-band { text-align: center; padding: 44px 22px; margin: 40px 0; }

.live-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.live-feed li { padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); animation: slidein 0.4s ease both; }
@keyframes slidein { from { opacity: 0; transform: translateY(6px); } }

.creator-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.creator-mini { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-align: center; transition: transform 0.2s, border-color 0.2s; }
.creator-mini:hover { transform: translateY(-4px); border-color: var(--pink); text-decoration: none; }
.creator-mini .avatar { border-radius: 30%; }

/* ---------- discover ---------- */
.search-bar { display: flex; gap: 10px; max-width: 720px; }
.search-bar input { font-size: 1.05rem; padding: 14px 18px; border-radius: 16px; }
.sort-tabs { margin-top: 6px; }
.sort-tabs .tab { text-decoration: none; }
.filter-chips { margin-bottom: 8px; }
.cat-chip.active { border-color: var(--lime); background: rgba(163, 230, 53, 0.12); }

/* ---------- challenges ---------- */
.ccard-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ccard { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 22px; border: 1px solid var(--border); background: linear-gradient(160deg, rgba(139, 92, 246, 0.18), rgba(255, 255, 255, 0.03)); transition: transform 0.2s; }
.ccard:hover { transform: translateY(-4px); }
.ccard h3 { margin: 0; font-size: 1.25rem; }
.ccard h3 a { color: var(--text); }
.ccard p { margin: 0; flex: 1; }
.ccard-daily { background: linear-gradient(160deg, rgba(163, 230, 53, 0.18), rgba(255, 255, 255, 0.03)); }
.ccard-jam { background: linear-gradient(160deg, rgba(251, 146, 60, 0.2), rgba(255, 255, 255, 0.03)); }
.ccard-mystery { background: linear-gradient(160deg, rgba(244, 114, 182, 0.2), rgba(255, 255, 255, 0.03)); }
.ccard-remix { background: linear-gradient(160deg, rgba(34, 211, 238, 0.2), rgba(255, 255, 255, 0.03)); }
.ccard-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ccard-emoji { font-size: 2rem; }
.big-emoji { font-size: 3.4rem; }
.big-chip { font-size: 1rem; padding: 8px 16px; }
.challenge-hero { padding: 30px; margin-bottom: 22px; }
.challenge-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 10px 0; }
.rules { padding-left: 1.3em; display: grid; gap: 8px; }

/* ---------- studio v2: guided questions ---------- */
.wizard-grid { display: grid; gap: 18px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 18px; }
.wizard-grid label { margin-bottom: 8px; }
.chip.picked { border-color: var(--lime); color: var(--lime); background: rgba(163, 230, 53, 0.12); }
.more-opts { margin-top: 16px; padding: 12px 16px; border-radius: 16px; border: 1px dashed var(--border); }
.more-opts summary { cursor: pointer; font-weight: 600; }
.live-dialog { width: min(480px, 100%); max-height: 92vh; overflow: auto; }
.badge-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.badge-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.badge-tile .badge-emoji { font-size: 2.2rem; }
.badge-tile.locked { opacity: 0.45; filter: grayscale(1); }
