/* Fonts are self-hosted (SIL OFL, see /fonts) so no visitor data goes to Google. */
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
/* Oddshelf - one stylesheet. Brand: ink navy var(--avatar-ink) + tangerine var(--accent), rounded Nunito headings. */
/* ==========================================================================
   COLOUR TOKENS - the one place every colour on the site comes from (pages.css, the JS pages and the legal pages
   use only these). Scheme: "Deep Sea" (owner, 2026-11-03). To re-colour the site, change the values in these two
   blocks; everything else is derived with color-mix().
   ========================================================================== */
:root {
  /* base */
  --bg: #03111a;
  --bg-2: color-mix(in srgb, var(--bg) 55%, transparent);
  --surface: rgba(255, 255, 255, .045);
  --surface-solid: #0a2230;
  --surface-2: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .09);
  --line-hi: rgba(255, 255, 255, .16);
  --text: #f6f1ea;
  --muted: #93b8c8;
  --faint: #5f8496;
  /* brand */
  --accent: #00e0c6;
  --accent-2: #00a6ff;
  --accent-ink: #002a26;               /* text on accent buttons */
  --accent-hi: color-mix(in srgb, var(--accent) 72%, #fff);
  --accent-lo: color-mix(in srgb, var(--accent) 85%, #000);
  --accent-edge: color-mix(in srgb, var(--accent) 52%, #000);   /* the 3D button's bottom edge */
  --accent-pale: color-mix(in srgb, var(--accent) 35%, #fff);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  /* aurora (a game page swaps these for the game's own palette) */
  --tint-1: #0090ff;
  --tint-2: #00e0c6;
  --tint-3: #3a3bff;
  /* status and badges */
  --good: #3fe0a4;  --good-hi: #5ff0b8;  --good-lo: #13805a;  --good-ink: #0b2a1d;
  --bad: #ff5d73;   --bad-hi: #ff8094;   --bad-lo: #c4334b;     /* sale tags stay warm on purpose */
  --star: #ffc23d;  --star-hi: #ffd76a;  --aimade: #ffcf5c;   --gold-ink: #8a5d00;
  --heart: #ff6b8b; --heart-hi: color-mix(in srgb, var(--heart) 75%, #fff); --heart-lo: color-mix(in srgb, var(--heart) 60%, #000);
  --hand: #6cc7ff;  --info-hi: #8fd6ff;  --info-lo: #1f6fa6;
  --assist: #b48cff; --assist-hi: #c9adff; --assist-lo: #6a43c9;
  --ai-1: var(--tint-3); --ai-2: var(--accent-2); --ai-3: var(--accent);   /* the optional "Made with AI" badge */
  /* fixed inks */
  --white: #fff;
  --shade: #000;
  --ink: #02101a;                      /* dark overlays on artwork, in both themes */
  --on-art: #d6e9f0;                   /* text on artwork */
  --on-art-2: #bcd3dc;
  --avatar-ink: #062230;
  --github: #24292f;
  --dust: #c4f4ff;                     /* the drifting dust (js/dust.js) */
  --shelf: rgba(255, 255, 255, .06);
  --shelf-edge: rgba(255, 255, 255, .16);
  --shadow: 0 18px 50px rgba(0, 0, 4, .55);
  --radius: 16px;
  --display: 'Nunito', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eef6f8;
  --bg-2: rgba(255, 255, 255, .7);
  --surface: rgba(255, 255, 255, .62);
  --surface-solid: #ffffff;
  --surface-2: rgba(11, 37, 51, .06);
  --line: rgba(11, 37, 51, .1);
  --line-hi: rgba(11, 37, 51, .18);
  --text: #0b2533;
  --muted: #3f6273;
  --faint: #557482;
  --accent: #007a6c;
  --accent-2: #0067b3;
  --accent-ink: #ffffff;
  --accent-pale: color-mix(in srgb, var(--accent) 22%, #fff);
  --shelf: rgba(11, 37, 51, .08);
  --shelf-edge: rgba(11, 37, 51, .16);
  --hand: #1f7fc0;
  --assist: #7b4fd6;
  --aimade: #a86f00;
  --heart: #d6345f;
  --dust: #0090ff;
  --tint-1: #9fd2ff; --tint-2: #8fe6da; --tint-3: #b3b4ff;
  --shadow: 0 14px 40px rgba(11, 37, 51, .14);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
/* Living sky: three aurora clouds in the current tint, slowly drifting, with film grain over everything. */
.sky { position: fixed; inset: -20vmax; z-index: -2; pointer-events: none; filter: blur(60px) saturate(130%); opacity: .55; }
.sky i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.sky i:nth-child(1) { width: 60vmax; height: 46vmax; left: 8%; top: -4%; background: radial-gradient(closest-side, var(--tint-1), transparent); animation: drift1 38s ease-in-out infinite alternate; }
.sky i:nth-child(2) { width: 52vmax; height: 52vmax; right: 0; top: 18%; background: radial-gradient(closest-side, var(--tint-2), transparent); opacity: .7; animation: drift2 46s ease-in-out infinite alternate; }
.sky i:nth-child(3) { width: 48vmax; height: 40vmax; left: 30%; bottom: 0; background: radial-gradient(closest-side, var(--tint-3), transparent); opacity: .55; animation: drift3 54s ease-in-out infinite alternate; }
:root[data-theme="light"] .sky { opacity: .5; }
:root[data-theme="light"] .sky i { mix-blend-mode: multiply; }
@keyframes drift1 { to { transform: translate(18vmax, 10vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vmax, -6vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vmax, -16vmax) scale(1.2); } }
.grain { position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
#dust { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
main { flex: 1; outline: none; }
html, body { overflow-x: clip; }
.hero-grid > *, .game-top > *, .dash > *, .editor > *, .browse > * { min-width: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 900; letter-spacing: -.01em; margin: 0; line-height: 1.15; }
.page-head h1, .shelf-head h2, .auth-card h1, .plan .amount, .profile-head h1 {
  background: linear-gradient(180deg, var(--text) 35%, color-mix(in srgb, var(--text) 62%, var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1240px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid var(--line); }
.topbar-in { width: min(1240px, 100% - 32px); margin: 0 auto; height: 66px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.brand svg { width: 40px; height: 34px; }
.wordmark { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: -.04em; line-height: 1; }
.wordmark .d1 { display: inline-block; transform: rotate(-4deg) translateY(-1px); }
.wordmark .d2 { display: inline-block; transform: rotate(4deg) translateY(1px); }
.mainnav { display: flex; gap: 4px; }
.mainnav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.mainnav a:hover, .mainnav a.on { color: var(--text); background: var(--surface); }
.search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%);
  fill: none; stroke: var(--faint); stroke-width: 2.2; stroke-linecap: round; }
.search input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 14px 0 38px; outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.account { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.menu-btn { display: none; }

/* ---------- buttons & bits ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { border-color: var(--faint); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-lo)); border-color: transparent; color: var(--accent-ink);
  box-shadow: 0 6px 0 var(--accent-edge), 0 12px 30px color-mix(in srgb, var(--accent) 38%, transparent), inset 0 1px 0 color-mix(in srgb, var(--white) 45%, transparent); }
.btn.primary:hover { box-shadow: 0 7px 0 var(--accent-edge), 0 18px 40px color-mix(in srgb, var(--accent) 50%, transparent), inset 0 1px 0 color-mix(in srgb, var(--white) 50%, transparent); }
.btn.primary:active { box-shadow: 0 3px 0 var(--accent-edge); transform: translateY(3px); }
.btn.ghost { background: transparent; }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.big { height: 54px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-align: left; }
.linkish:hover { color: var(--text); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display);
  font-weight: 900; color: var(--avatar-ink); overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 96px; height: 96px; font-size: 40px; border: 4px solid var(--surface); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px;
  font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.made { font-family: var(--display); letter-spacing: .01em; }
.made::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.made.handmade { color: var(--hand); background: color-mix(in srgb, var(--hand) 14%, transparent); }
.made.ai-assisted { color: var(--assist); background: color-mix(in srgb, var(--assist) 14%, transparent); }
.made.ai-made { color: var(--aimade); background: color-mix(in srgb, var(--aimade) 16%, transparent); }
.tag { display: inline-block; padding: 5px 11px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--muted); transition: all .15s; }
.tag:hover { color: var(--text); border-color: var(--accent); }
.price { font-family: var(--display); font-weight: 900; font-size: 13px; padding: 3px 9px; border-radius: 8px;
  background: var(--text); color: var(--bg); white-space: nowrap; }
.price.free { background: var(--good); color: var(--good-ink); }
.stars { color: var(--star); letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.stars small { color: var(--faint); letter-spacing: 0; margin-left: 4px; }

/* ---------- home hero ---------- */
.hero { padding: 34px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; }
.feature { position: relative; border-radius: 24px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end;
  box-shadow: var(--shadow); isolation: isolate; }
.feature .art { position: absolute; inset: 0; z-index: -2; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.feature .art svg, .feature .art img { width: 100%; height: 100%; object-fit: cover; }
.feature:hover .art { transform: scale(1.03); }
.feature::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--ink) 92%, transparent)); }
.feature-body { padding: 30px; color: var(--white); max-width: 620px; }
.feature-kicker { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; font-size: 12px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent-pale); margin-bottom: 10px; }
.feature h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.03em; }
.feature p { color: var(--on-art); font-size: 17px; margin: 10px 0 18px; }
.feature .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-side { display: grid; gap: 22px; grid-template-rows: auto 1fr; }
.pitch { border-radius: 24px; padding: 26px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(140%); position: relative; overflow: hidden; }
.pitch h2 { font-size: 27px; letter-spacing: -.02em; }
.pitch h2 em { font-style: normal; color: var(--accent); }
.pitch p { color: var(--muted); margin: 10px 0 18px; }
.pitch .row { display: flex; gap: 10px; flex-wrap: wrap; }
.pitch-mark { position: absolute; right: -18px; bottom: -22px; width: 150px; opacity: .08; color: var(--text); }
.made-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.made-card { border-radius: 18px; padding: 16px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(18px) saturate(140%); transition: transform .15s, border-color .15s; }
.made-card:hover { transform: translateY(-3px); }
.made-card b { display: block; font-family: var(--display); font-size: 17px; margin-top: 8px; }
.made-card span { font-size: 12.5px; color: var(--muted); }
.made-card.handmade:hover { border-color: var(--hand); }
.made-card.ai-assisted:hover { border-color: var(--assist); }
.made-card.ai-made:hover { border-color: var(--aimade); }
.made-card i { display: block; width: 34px; height: 34px; border-radius: 10px; }
.made-card.handmade i { background: color-mix(in srgb, var(--hand) 25%, transparent); }
.made-card.ai-assisted i { background: color-mix(in srgb, var(--assist) 25%, transparent); }
.made-card.ai-made i { background: color-mix(in srgb, var(--aimade) 28%, transparent); }
.made-card i svg { width: 34px; height: 34px; padding: 7px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.made-card.handmade i svg { stroke: var(--hand); }
.made-card.ai-assisted i svg { stroke: var(--assist); }
.made-card.ai-made i svg { stroke: var(--aimade); }

/* ---------- shelves ---------- */
.shelf { margin: 44px 0 0; }
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.shelf-head h2 { font-size: 28px; }
.shelf-head p { margin: 4px 0 0; color: var(--muted); }
.shelf-head a { font-weight: 700; color: var(--accent); white-space: nowrap; }
.shelf-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-flow: row; gap: 22px 18px;
  position: relative; padding-bottom: 26px; }
.shelf-row.one-line { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shelf-plank { height: 14px; border-radius: 7px; background: linear-gradient(180deg, var(--shelf-edge), var(--shelf) 60%); backdrop-filter: blur(8px);
  box-shadow: 0 18px 30px -8px color-mix(in srgb, var(--shade) 55%, transparent), inset 0 1px 0 color-mix(in srgb, var(--white) 22%, transparent); margin-top: -18px; position: relative; }
.shelf-plank::before, .shelf-plank::after { content: ''; position: absolute; top: 14px; width: 14px; height: 14px;
  background: var(--shelf); border-radius: 0 0 5px 5px; }
.shelf-plank::before { left: 28px; } .shelf-plank::after { right: 28px; }

/* ---------- game card ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 9px; }
.card .cover { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2);
  box-shadow: 0 16px 34px -14px var(--glow, color-mix(in srgb, var(--shade) 50%, transparent)), 0 6px 14px color-mix(in srgb, var(--shade) 30%, transparent); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.card:hover .cover { box-shadow: 0 34px 64px -14px var(--glow, color-mix(in srgb, var(--shade) 60%, transparent)), 0 10px 20px color-mix(in srgb, var(--shade) 35%, transparent); }
.card .cover svg, .card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .cover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 18px 30px color-mix(in srgb, var(--shade) 35%, transparent); }
.card:nth-child(3n):hover .cover { transform: translateY(-6px) rotate(.6deg); }
.card .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.card .badges .pill { background: color-mix(in srgb, var(--ink) 72%, transparent); color: var(--white); backdrop-filter: blur(6px); height: 24px; }
.card .play-chip { position: absolute; right: 10px; bottom: 10px; display: inline-flex; gap: 5px; align-items: center; height: 26px; padding: 0 10px;
  border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 12px; opacity: 0; transform: translateY(6px);
  transition: all .2s; }
.card:hover .play-chip { opacity: 1; transform: none; }
.card .meta { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.card h3 { font-size: 17px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .by { font-size: 13px; color: var(--muted); }
.card .by:hover { color: var(--text); }
.card .tagline { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.card .foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- browse ---------- */
.page-head { padding: 34px 0 20px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.browse { display: grid; grid-template-columns: 240px 1fr; gap: 30px; padding-bottom: 60px; }
.filters { position: sticky; top: 86px; align-self: start; display: grid; gap: 22px; }
.filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 8px; font-family: var(--body); font-weight: 700; }
.opt { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--muted); }
.opt:hover { background: var(--surface); color: var(--text); }
.opt.on { background: var(--surface); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.opt .dot { width: 9px; height: 9px; border-radius: 50%; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; cursor: pointer; font-weight: 700; color: var(--muted); font-size: 13.5px; }
.seg button.on { background: var(--surface-2); color: var(--text); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--accent-soft);
  color: var(--accent); font-weight: 700; font-size: 13px; border: 0; cursor: pointer; }
.empty { text-align: center; padding: 70px 20px; border: 2px dashed var(--line); border-radius: 22px; color: var(--muted); }
.empty h3 { color: var(--text); font-size: 22px; margin-bottom: 6px; }

/* ---------- game page ---------- */
.game-hero { position: relative; height: 380px; overflow: hidden; isolation: isolate; }
.game-hero .art { position: absolute; inset: -20px; z-index: -2; filter: blur(2px) saturate(1.1); }
.game-hero .art svg, .game-hero .art img { width: 100%; height: 100%; object-fit: cover; }
.game-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 10%, transparent), var(--bg)); }
.game-top { display: grid; grid-template-columns: 1fr 360px; gap: 30px; margin-top: -250px; position: relative; padding-bottom: 60px; }
.game-title h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -.035em; color: var(--white); text-shadow: 0 4px 30px color-mix(in srgb, var(--shade) 50%, transparent); }
:root[data-theme="light"] .game-title h1 { color: var(--text); text-shadow: none; }
.game-title .tagline { font-size: 19px; color: var(--on-art); margin: 8px 0 14px; max-width: 640px; }
:root[data-theme="light"] .game-title .tagline { color: var(--muted); }
.game-title .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.creator-chip { display: inline-flex; align-items: center; gap: 9px; padding: 4px 14px 4px 4px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(8px); color: var(--white); font-weight: 700; }
.creator-chip .avatar { width: 30px; height: 30px; font-size: 14px; }
.shot { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; margin: 26px 0; box-shadow: var(--shadow); background: var(--shade); }
.shot svg, .shot img, .shot iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.prose { font-size: 16.5px; line-height: 1.7; }
.prose p { margin: 0 0 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--white) 6%, transparent); }
.panel + .panel { margin-top: 18px; }
.panel h3 { font-size: 19px; margin-bottom: 12px; }
.buybox { position: sticky; top: 86px; }
.buybox .big-price { font-family: var(--display); font-weight: 900; font-size: 44px; letter-spacing: -.03em; line-height: 1; }
.buybox .big-price small { font-size: 16px; color: var(--muted); font-weight: 800; margin-left: 6px; letter-spacing: 0; }
.buybox .note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.dl { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); margin-top: 10px; }
.dl .host { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 11px; flex-shrink: 0;
  font-family: var(--display); color: var(--white); }
.dl .info { flex: 1; min-width: 0; }
.dl .info b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl .info span { font-size: 12px; color: var(--muted); }
.ok { color: var(--good); } .bad { color: var(--bad); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 14px; margin: 0; }
.facts dt { color: var(--faint); font-weight: 600; } .facts dd { margin: 0; font-weight: 600; }
.ai-box { border-radius: 16px; padding: 16px; margin-top: 12px; font-size: 14px; }
.ai-box.ai-assisted { background: color-mix(in srgb, var(--assist) 12%, transparent); }
.ai-box.ai-made { background: color-mix(in srgb, var(--aimade) 13%, transparent); }
.ai-box.handmade { background: color-mix(in srgb, var(--hand) 12%, transparent); }
.release { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin-top: 10px; font-size: 14px; }
.comment { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.comment:first-of-type { border-top: 0; }
.comment .avatar { width: 34px; height: 34px; font-size: 15px; }
.comment p { margin: 4px 0 0; white-space: pre-wrap; }
.rate { display: inline-flex; gap: 2px; }
.rate button { background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--faint); padding: 0 2px; line-height: 1; }
.rate button.on { color: var(--star); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: 14px; }
.field > small { color: var(--faint); font-size: 12.5px; }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-hi);
  background: var(--bg-2); padding: 10px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { display: flex; gap: 8px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--bg-2); cursor: pointer; font-weight: 600; font-size: 14px; user-select: none; }
.check input { accent-color: var(--accent); }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { border: 2px solid var(--line); border-radius: 14px; padding: 13px; cursor: pointer; background: var(--bg-2); transition: border-color .15s; }
.choice input { display: none; }
.choice b { display: block; font-family: var(--display); font-size: 16px; }
.choice small { color: var(--muted); font-size: 12.5px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.error { color: var(--bad); font-weight: 600; font-size: 14px; min-height: 1em; }

.auth { display: grid; place-items: center; padding: 50px 16px 80px; }
.auth-card { width: min(440px, 100%); background: var(--surface); backdrop-filter: blur(22px) saturate(150%); border: 1px solid var(--line); border-radius: 26px; padding: 34px;
  box-shadow: var(--shadow); position: relative; overflow: hidden; }
.auth-card h1 { font-size: 32px; letter-spacing: -.03em; }
.auth-card > p { color: var(--muted); margin: 6px 0 22px; }
.auth-card .mark { width: 64px; color: var(--text); margin-bottom: 14px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 6px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.github-btn { background: var(--github); border-color: var(--github); color: var(--white); }
:root[data-theme="light"] .github-btn { background: var(--github); }

/* ---------- dashboard / editor ---------- */
.dash { display: grid; grid-template-columns: 1fr 330px; gap: 24px; padding-bottom: 60px; }
.meter { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); }
.table-games { display: grid; gap: 10px; }
.trow { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); }
.trow .thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.trow .thumb svg, .trow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.trow h3 { font-size: 17px; }
.trow .stats { display: flex; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; margin-top: 3px; }
.editor { display: grid; grid-template-columns: 1fr 340px; gap: 26px; padding-bottom: 60px; }
.editor .preview { position: sticky; top: 86px; align-self: start; }
.files-list { display: grid; gap: 8px; margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: var(--bg-2); border-radius: 10px; padding: 7px 12px; font-weight: 700; cursor: pointer; color: var(--muted); }
.tabs button.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.drop { border: 2px dashed var(--line); border-radius: 16px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: all .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 54px; height: 40px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: none; }
.swatch.on { border-color: var(--accent); }
.swatch svg { width: 100%; height: 100%; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; padding-bottom: 30px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; backdrop-filter: blur(18px) saturate(140%); padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.best { border: 2px solid var(--accent); box-shadow: 0 20px 50px color-mix(in srgb, var(--accent) 15%, transparent); transform: translateY(-8px); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink);
  font-weight: 900; font-family: var(--display); font-size: 12px; padding: 4px 12px; border-radius: 99px; letter-spacing: .05em; }
.plan h2 { font-size: 24px; }
.plan .amount { font-family: var(--display); font-weight: 900; font-size: 50px; letter-spacing: -.04em; line-height: 1; }
.plan .amount small { font-size: 16px; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: start; font-size: 14.5px; }
.plan li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-soft); }
.plan li { position: relative; }
.plan li::after { content: ''; position: absolute; left: 3px; top: 5px; width: 12px; height: 12px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/contain no-repeat; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 10px 0 60px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; backdrop-filter: blur(18px) saturate(140%); }
.fcard h3 { font-size: 19px; margin: 10px 0 6px; }
.fcard p { margin: 0; color: var(--muted); font-size: 14.5px; }
.fcard .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.fcard .ico svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- profile ---------- */
.profile-head { display: flex; gap: 22px; align-items: center; padding: 40px 0 10px; flex-wrap: wrap; }
.profile-head h1 { font-size: 40px; letter-spacing: -.03em; }

/* ---------- menus, toasts, modal ---------- */
.usermenu { position: relative; }
.usermenu > button { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 3px; border-radius: 99px; }
.usermenu > button:hover { background: var(--surface); }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); width: 230px; background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: 16px; padding: 8px; box-shadow: var(--shadow); display: none; }
.usermenu.open .dropdown { display: block; animation: pop .15s ease-out; }
.dropdown a, .dropdown button { display: flex; width: 100%; padding: 9px 12px; border-radius: 10px; font-weight: 600; background: none; border: 0;
  cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); }
.dropdown .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown .who b { display: block; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; }
.toast { background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow); animation: pop .2s ease-out; }
.toast.bad { background: var(--bad); color: var(--white); }
.modal-bg { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 60%, transparent); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 90; padding: 16px;
  animation: fade .15s; }
.modal { width: min(460px, 100%); background: var(--surface-solid); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); animation: pop .18s ease-out; }
.modal h2 { font-size: 26px; margin-bottom: 6px; }
.demo-banner { background: repeating-linear-gradient(45deg, var(--accent-soft) 0 12px, transparent 12px 24px); border: 1px dashed var(--accent);
  border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin: 14px 0; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }

.skeleton { border-radius: 14px; aspect-ratio: 4/3; background: linear-gradient(90deg, var(--surface) 0, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 70px; background: color-mix(in srgb, var(--ink) 45%, transparent); backdrop-filter: blur(20px); }
.footer-in { width: min(1240px, 100% - 32px); margin: 0 auto; padding: 44px 0 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-family: var(--body); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 12px; }
.footer a, .footer .linkish { display: block; color: var(--muted); margin: 0 0 8px; font-size: 14px; }
.footer a:hover { color: var(--text); }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 300px; }
.footer-note { width: min(1240px, 100% - 32px); margin: 0 auto; padding: 0 0 30px; color: var(--faint); font-size: 13px; }

/* ---------- small screens ---------- */
@media (max-width: 1080px) {
  .shelf-row.one-line { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .hero-grid, .game-top, .dash, .editor { grid-template-columns: 1fr; }
  .buybox, .editor .preview { position: static; }
  .plans, .feature-grid { grid-template-columns: 1fr; }
  .plan.best { transform: none; }
}
@media (max-width: 860px) {
  .mainnav, .search { display: none; }
  .topbar.open .mainnav { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; padding: 12px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); }
  .topbar.open .search { display: block; position: absolute; top: 250px; left: 16px; right: 16px; max-width: none; }
  .account { margin-left: auto; }
  .menu-btn { display: grid; gap: 4px; width: 42px; height: 42px; place-content: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
  .menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; grid-template-columns: 1fr 1fr; }
  .made-strip, .choice-cards, .row2 { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .feature { min-height: 360px; }
  .feature-body { padding: 22px; }
  .shelf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .shelf-row.one-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trow { grid-template-columns: 70px 1fr; }
  .trow > :last-child { grid-column: 1 / -1; }
  .account .btn:not(.primary) { display: none; }
  .topbar-in { gap: 10px; }
  .wordmark { font-size: 22px; }
  .brand svg { width: 34px; height: 29px; }
  .account .btn.primary { height: 38px; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- reactive layer (js/fx.js; only on mouse/trackpad, off for reduced motion) ---------- */
.aura { position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none;
  z-index: -1; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 13%, transparent), color-mix(in srgb, var(--tint-1) 6%, transparent) 40%, transparent 68%); will-change: transform; }
:root[data-theme="light"] .aura { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%); }
.fx [data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
  transform-style: preserve-3d; position: relative; }
.fx [data-tilt].tilting { transition: box-shadow .3s; }
.fx .card .cover.tilting { transform: perspective(700px) translateY(-8px) scale(1.03) rotateX(var(--rx)) rotateY(var(--ry)); box-shadow: 0 26px 40px color-mix(in srgb, var(--shade) 40%, transparent); }
.fx .card:hover .cover:not(.tilting) { transform: none; }
.fx [data-tilt]::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--white) 28%, transparent), transparent 55%);
  mix-blend-mode: overlay; transition: opacity .35s; }
.fx [data-tilt].tilting::before { opacity: 1; }
.fx [data-tilt] .px { transform: translate(calc(var(--px, 0) * var(--d) * -12px), calc(var(--py, 0) * var(--d) * -7px)); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.fx [data-tilt].tilting .px { transition: none; }
.fx .feature .art { transition: none; }
.fx .feature:hover .art { transform: none; }
.spot { background-image: radial-gradient(420px circle at var(--sx, -999px) var(--sy, -999px), color-mix(in srgb, var(--accent) 10%, transparent), transparent 45%); }
.fx .btn.primary { transition: transform .12s, background .15s, box-shadow .15s, translate .25s cubic-bezier(.2, .8, .2, 1); }
.bit { position: fixed; width: 7px; height: 7px; margin: -3px 0 0 -3px; pointer-events: none; z-index: 200; border-radius: 1px;
  animation: bit .7s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes bit { 70% { opacity: 1; } to { transform: translate(var(--dx), calc(var(--dy) + 70px)) rotate(var(--r)); opacity: 0; } }
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2, .8, .2, 1); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .shelf.reveal .card, .motion .shelf.reveal .shelf-plank { opacity: 0; transform: translateY(26px); transition: opacity .6s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.motion .shelf.reveal.in .card, .motion .shelf.reveal.in .shelf-plank { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 70ms); }
.motion .shelf.reveal.in .shelf-plank { transition-delay: 0ms; }
.motion #app.enter { animation: pageIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
.brand:hover .wordmark .d1 { transform: rotate(-12deg) translateY(-3px); }
.brand:hover .wordmark .d2 { transform: rotate(10deg) translateY(2px); }
.wordmark .d1, .wordmark .d2 { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
@property --tint-1 { syntax: '<color>'; inherits: true; initial-value: #0090ff; }
@property --tint-2 { syntax: '<color>'; inherits: true; initial-value: #00e0c6; }
@property --tint-3 { syntax: '<color>'; inherits: true; initial-value: #3a3bff; }
:root { transition: --tint-1 1.4s ease, --tint-2 1.4s ease, --tint-3 1.4s ease; }
