/* Botched Bots — site styles */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Clash Display'; src: url('/fonts/clash-display-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('/fonts/clash-display-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #06080c;
  --bg-2: #0a0e14;
  --surface: #0e131b;
  --surface-2: #141a24;
  --surface-3: #1b2230;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f7;
  --muted: #aab4c3;
  --faint: #6f7a8b;
  --accent: #3dd6f5;
  --accent-ink: #04121a;
  --violet: #8b5cf6;
  --ember: #ff7a1a;
  --pink: #ff4fa8;
  --success: #34d399;
  --danger: #f87171;

  --font-display: 'Clash Display', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .muted a, .consent a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(61, 214, 245, 0.35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
p a:hover, .prose a:hover, .consent a:hover { text-decoration-color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(61, 214, 245, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.icon { flex: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Type ---------- */
.display-xl { font-size: clamp(44px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.015em; }
.display-md { font-size: clamp(28px, 3.4vw, 42px); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 46ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow-ember { color: var(--ember); }
.eyebrow-pink { color: var(--pink); }
.eyebrow-violet { color: var(--violet); }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; background: none; cursor: pointer;
  font-weight: 700; font-size: 15px; letter-spacing: 0.005em; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .25s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(61, 214, 245, 0); }
.btn-primary:hover { background: #6be2fa; box-shadow: 0 10px 40px -10px rgba(61, 214, 245, 0.6); transform: translateY(-1px); }
.btn-ember { background: var(--ember); color: #1a0a00; }
.btn-ember:hover { background: #ff9445; box-shadow: 0 10px 40px -10px rgba(255, 122, 26, 0.6); transform: translateY(-1px); }
.btn-secondary { background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); color: var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost { color: var(--muted); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.btn-danger { color: var(--danger); border-color: rgba(248, 113, 113, 0.35); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.1); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 15px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s, border-color .3s;
}
.site-header.is-overlay { position: fixed; inset: 0 0 auto 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-overlay.is-scrolled, .site-header.is-open { background: rgba(6, 8, 12, 0.82); border-color: var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: 0; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.main-nav a { position: relative; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; }
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.main-nav a[aria-current='page'] { color: var(--text); }
.main-nav a[aria-current='page']::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-link { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); transition: color .2s, border-color .2s; }
.icon-link:hover { color: var(--text); border-color: var(--line-strong); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); cursor: pointer; place-items: center; }
.menu-toggle .i-close { display: none; }
.is-open .menu-toggle .i-open { display: none; }
.is-open .menu-toggle .i-close { display: block; }
.nav-mobile-only { display: none; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-grid; }
  .header-actions .btn, .header-actions .icon-link { display: none; }
  .header-inner { justify-content: space-between; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); overflow-y: auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 20px var(--gutter) 40px; background: #06080c;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .is-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .main-nav a { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--text); padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .main-nav a:hover { background: none; color: var(--accent); }
  .main-nav a[aria-current='page'] { color: var(--accent); }
  .main-nav a[aria-current='page']::after { display: none; }
  .nav-mobile-only { display: block; font-size: 18px !important; color: var(--muted) !important; border-bottom: 0 !important; margin-top: 12px; }
  .nav-mobile-sub { margin-top: 0; }
  body.nav-locked { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 64px) 0 clamp(56px, 7vw, 96px); }
.hero-media { position: absolute; inset: -2% 0 16% 0; z-index: -2; background: #05080e; }
.hero-media { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -3; background: #05080e; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; animation: heroIn 2.4s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.06); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 12, 0.6) 22%, rgba(6, 8, 12, 0) 44%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.7) 0%, rgba(6, 8, 12, 0) 20%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-title { font-weight: 500; font-size: clamp(60px, 9.6vw, 148px); line-height: 0.9; letter-spacing: -0.035em; margin: 0; }
.hero-title span { display: block; }
.hero-title .accent-line { color: var(--accent); }
.hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-bottom: 6px; }
.hero-lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: #c3ccd8; max-width: 34ch; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-lg { --h: 50px; padding: 0 24px; font-size: 15px; }
.hero-ticker {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(14, 19, 27, 0.6); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 13px; transition: border-color .2s, background-color .2s;
}
.hero-ticker:hover { border-color: rgba(255, 122, 26, 0.5); background: rgba(14, 19, 27, 0.85); }
.ticker-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); white-space: nowrap; }
.ticker-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.hero-ticker .icon { color: var(--faint); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(255, 122, 26, .7); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, .6); } 70% { box-shadow: 0 0 0 10px rgba(255, 122, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .hero { min-height: 94svh; padding-bottom: 48px; }
  .hero-media { inset: 0 0 30% 0; }
  .hero-media img { object-position: 50% 40%; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 12%, rgba(6, 8, 12, 0.8) 42%, rgba(6, 8, 12, 0.1) 70%, rgba(6, 8, 12, 0.5) 100%); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-tight { padding-top: clamp(40px, 6vw, 72px); }
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 19px; max-width: 38ch; justify-self: end; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 16px; } .section-head p { justify-self: start; } }

/* ---------- Featured game ---------- */
.feature { position: relative; padding: clamp(90px, 12vw, 160px) 0 clamp(80px, 10vw, 130px); overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.feature-art { position: absolute; inset: 0 0 auto 0; height: min(900px, 100%); z-index: -1; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; object-position: right 30%; opacity: .5; }
.feature-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(6, 8, 12, 0.55) 30%, rgba(6, 8, 12, 0.85) 70%, var(--bg) 100%), radial-gradient(50% 40% at 80% 20%, rgba(255, 122, 26, 0.06), transparent 70%); }
.feature-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.feature-head h2 { text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5); }
.feature-intro p { font-size: 19px; color: #cfd6e1; margin-bottom: 28px; max-width: 44ch; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .feature-head { grid-template-columns: 1fr; gap: 24px; } }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 56px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(14, 19, 27, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stat-row > div { padding: 26px 28px; display: flex; flex-direction: column-reverse; gap: 4px; }
.stat-row > div + div { border-left: 1px solid var(--line); }
.stat-row dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.stat-row dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 4vw, 52px); line-height: 1; color: var(--text); }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } .stat-row > div:nth-child(3) { border-left: 0; } .stat-row > div:nth-child(n+3) { border-top: 1px solid var(--line); } .stat-row > div { padding: 20px; } }

.showcase { margin-bottom: 64px; }
.showcase-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.showcase-tabs button, .seg-tabs button { border: 0; background: none; cursor: pointer; padding: 9px 18px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; transition: color .2s, background-color .2s; }
.showcase-tabs button:hover, .seg-tabs button:hover { color: var(--text); }
.showcase-tabs button[aria-selected='true'] { background: var(--ember); color: #1a0a00; }
.device { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 122, 26, 0.06), 0 30px 80px -50px rgba(255, 122, 26, 0.45); }
.device-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.device-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-screen { aspect-ratio: 16 / 10; background: #000; }
.device-screen img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn .5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.showcase-note { margin-top: 14px; font-size: 14px; color: var(--faint); }

.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-grid li { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .35s var(--ease); }
.feature-grid li:hover { border-color: rgba(255, 122, 26, 0.35); transform: translateY(-3px); }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 22px; color: var(--ember); background: rgba(255, 122, 26, 0.1); border: 1px solid rgba(255, 122, 26, 0.22); }
.feature-grid h3 { font-size: 20px; margin-bottom: 10px; }
.feature-grid p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 1080px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Workshop cards ---------- */
.workshop { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); border-top: 1px solid var(--line); }
.workshop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.world-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease); }
.world-card:hover { transform: translateY(-4px); border-color: rgba(61, 214, 245, 0.28); box-shadow: 0 30px 80px -50px rgba(61, 214, 245, 0.3); }
.world-media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.world-media { background: #04070d; }
.world-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 0%, rgba(14, 19, 27, 0) 38%); }
.world-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.world-card:hover .world-media img { transform: scale(1.035); }
.world-body { padding: 0 28px 28px; margin-top: -28px; position: relative; display: flex; flex-direction: column; flex: 1; }
.world-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.world-tag b { color: var(--accent); font-weight: 500; margin-right: 6px; }
.world-body h3 { font-size: 30px; margin-bottom: 12px; }
.world-body p { color: var(--muted); margin-bottom: 24px; flex: 1; }
.world-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--text); }
.world-link .icon { transition: transform .3s var(--ease); color: var(--accent); }
.world-card:hover .world-link .icon { transform: translateX(4px); }
@media (max-width: 980px) { .workshop-grid { grid-template-columns: 1fr; max-width: 620px; } .world-media { aspect-ratio: 16 / 9; } }

/* ---------- Creator ---------- */
.creator { overflow: hidden; border-top: 1px solid var(--line); }
.creator::before { content: ''; position: absolute; inset: 0; background: radial-gradient(36% 50% at 24% 50%, rgba(61, 214, 245, 0.05), transparent 70%); pointer-events: none; }
.creator-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; position: relative; }
.creator-art { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; justify-self: center; }
.creator-art { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 45%, #0f1622 0%, var(--bg-2) 100%); }
.creator-art img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); }
.creator-glow { position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 79, 168, 0.16), rgba(61, 214, 245, 0.08) 60%, transparent 75%); filter: blur(40px); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.creator-copy h2 { margin-bottom: 18px; }
.creator-byline { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--pink); margin-bottom: 24px !important; }
.creator-copy p { color: var(--muted); margin-bottom: 18px; max-width: 56ch; }
.creator-copy .btn { margin-top: 12px; }
@media (max-width: 860px) { .creator-inner { grid-template-columns: 1fr; } .creator-art { max-width: 320px; } }

/* ---------- CTA band ---------- */
.cta-band { padding-top: 0; }
.cta-panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(36px, 5vw, 64px); border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(120deg, rgba(61, 214, 245, 0.07) 0%, rgba(14, 19, 27, 0.9) 60%), var(--surface); }
.cta-panel::after { content: ''; position: absolute; right: -10%; top: -60%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(61, 214, 245, 0.18), transparent 65%); pointer-events: none; }
.cta-panel h2 { margin-bottom: 12px; }
.cta-panel p { color: var(--muted); max-width: 52ch; }
.cta-actions { position: relative; z-index: 1; flex: none; }
@media (max-width: 760px) { .cta-panel { flex-direction: column; align-items: flex-start; } .cta-actions, .cta-actions .btn { width: 100%; } }

/* ---------- Page hero (catalog) ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(72px, 10vw, 140px)) 0 clamp(56px, 7vw, 90px); border-bottom: 1px solid var(--line); }
.page-hero-art { position: absolute; right: 0; top: 0; height: 100%; width: min(62%, 900px); object-fit: cover; z-index: -2; opacity: .75; }
.page-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 38%, rgba(6, 8, 12, 0.6) 62%, rgba(6, 8, 12, 0.2) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 12, 0) 40%); }
.page-hero h1 { margin-bottom: 20px; }
@media (max-width: 760px) { .page-hero-art { width: 100%; opacity: .35; } .page-hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 12, 0.7) 100%); } }

.page-head { padding: clamp(64px, 9vw, 110px) 0 clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 85% 0%, rgba(61, 214, 245, 0.08), transparent 60%); }
.page-head h1 { margin-bottom: 18px; }

/* ---------- Catalog ---------- */
.seg-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 32px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg-tabs button[aria-selected='true'] { background: var(--text); color: var(--bg); }
.seg-tabs-sub { display: flex; width: fit-content; max-width: 100%; overflow-x: auto; margin: -16px 0 24px; scrollbar-width: none; }
.seg-tabs-sub::-webkit-scrollbar { display: none; }
.seg-tabs-sub button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; font-size: 13px; }
.seg-tabs-sub button[aria-selected='true'] { background: rgba(61, 214, 245, 0.12); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(61, 214, 245, 0.35); }
.seg-count { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--faint); text-align: center; }
.seg-tabs-sub button[aria-selected='true'] .seg-count { background: rgba(61, 214, 245, 0.16); color: var(--accent); }
.project-list-empty { padding: 12px 14px; }
@media (max-width: 600px) { .seg-tabs-sub { flex-wrap: wrap; overflow: visible; border-radius: 20px; } }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 22px; }
.project-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.project-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.status-chip { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: rgba(6, 8, 12, 0.75); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.project-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-body h3 { font-size: 26px; }
.project-body p { color: var(--muted); flex: 1; white-space: pre-line; }
.project-body .btn { align-self: flex-start; margin-top: 8px; }
.soon { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 72px 24px; border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: rgba(14, 19, 27, 0.5); color: var(--muted); }
.empty-state .icon { color: var(--accent); margin-bottom: 6px; }
.empty-state h3, .empty-state h2 { color: var(--text); font-size: 26px; }
.inline-cta { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.inline-cta h2 { font-size: 22px; margin-bottom: 6px; }
.inline-cta p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 700px) { .inline-cta { flex-direction: column; align-items: flex-start; } }

/* ---------- Panels & forms ---------- */
.panel { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.notice { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: rgba(61, 214, 245, 0.06); border: 1px solid rgba(61, 214, 245, 0.2); margin-bottom: 24px; }
.notice .icon { color: var(--accent); margin-top: 2px; }
.notice strong { display: block; margin-bottom: 4px; }
.notice p { color: var(--muted); font-size: 15px; }
.form { display: grid; gap: 20px; }
.form h2 { font-size: 26px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 700; color: var(--text); }
.field small { font-size: 13px; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aab4c3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 214, 245, 0.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
[data-topic-fields] { display: grid; gap: 20px; }
@media (max-width: 760px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-status { min-height: 0; font-weight: 700; font-size: 15px; }
.form-status:not(:empty) { margin: 0 0 20px; padding: 14px 18px; border-radius: 12px; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.3); color: #a7f3d0; }
.form-status.is-error:not(:empty) { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.35); color: #fecaca; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }

.dialog { width: min(520px, calc(100% - 32px)); padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); }
.dialog::backdrop { background: rgba(3, 5, 8, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* ---------- Forum ---------- */
.forum-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 48px; padding-bottom: 100px; align-items: start; }
.forum-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.filters { display: flex; gap: 14px; flex-wrap: wrap; }
.filters .field { min-width: 200px; }
#post-form { margin-bottom: 28px; }
.threads { display: grid; gap: 16px; }
.thread { padding: 26px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s; }
.thread:hover { border-color: var(--line-strong); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag { padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.tag-accent { color: var(--accent); border-color: rgba(61, 214, 245, 0.3); background: rgba(61, 214, 245, 0.06); }
.tag-warn { color: #fcd34d; border-color: rgba(252, 211, 77, 0.3); background: rgba(252, 211, 77, 0.06); }
.thread h2, .thread h3 { font-size: 22px; margin-bottom: 10px; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--faint); margin-bottom: 10px; }
.post-meta strong { color: var(--text); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--violet)); flex: none; }
.stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 8px; }
.post-body { color: #d3dae5; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: var(--text); }
.replies { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.replies summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.replies summary::-webkit-details-marker { display: none; }
.reply { margin: 16px 0 0 14px; padding: 4px 0 4px 20px; border-left: 2px solid var(--line-strong); }
.replies .btn { margin-top: 18px; }
.forum-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.forum-sidebar h2 { font-size: 22px; margin-bottom: 10px; }
.forum-sidebar p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.forum-sidebar .eyebrow { margin-bottom: 14px; }
.corner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.corner-list li { display: flex; gap: 14px; }
.corner-list .icon { color: var(--accent); margin-top: 3px; }
.corner-list strong { display: block; font-size: 15.5px; }
.corner-list span { color: var(--muted); font-size: 14.5px; }
.forum-foot { margin-top: 28px; }
.skeleton { height: 150px; border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; border: 1px solid var(--line); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 1000px) { .forum-shell { grid-template-columns: 1fr; } .forum-sidebar { position: static; } }
@media (max-width: 560px) { .filters, .filters .field { width: 100%; } .forum-toolbar > .btn { width: 100%; } .thread { padding: 22px 20px; } }

/* ---------- Legal ---------- */
.legal { max-width: 860px; padding-top: clamp(56px, 8vw, 100px); padding-bottom: 100px; }
.legal-head { padding-bottom: 36px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal-head h1 { margin-bottom: 16px; }
.legal-date { margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--faint); }
.prose { color: #cfd6e1; font-size: 17px; }
.prose section { margin-bottom: 40px; }
.prose h2 { font-size: 24px; margin-bottom: 14px; color: var(--text); }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }

/* ---------- Staff ---------- */
.staff-wrap { padding-top: 48px; padding-bottom: 100px; }
.staff-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.staff-head h1 { margin-bottom: 8px; }
.staff-account { display: grid; gap: 10px; justify-items: end; }
.staff-account-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.login-panel { max-width: 520px; margin: clamp(40px, 8vw, 100px) auto; text-align: center; display: grid; justify-items: center; gap: 14px; padding: 48px 36px; }
.login-panel > .icon { color: var(--accent); }
.login-panel .eyebrow { margin: 6px 0 0; }
.login-panel .eyebrow::before { display: none; }
.login-panel p { color: var(--muted); }
.login-panel .btn { margin-top: 10px; }
.staff-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.project-list { display: grid; gap: 6px; margin-top: 14px; max-height: 70vh; overflow-y: auto; }
.project-row { display: flex; align-items: stretch; gap: 4px; border: 1px solid transparent; border-radius: 10px; transition: background-color .2s, border-color .2s; }
.project-row:hover { background: rgba(255, 255, 255, 0.04); }
.project-row.is-current { background: rgba(61, 214, 245, 0.08); border-color: rgba(61, 214, 245, 0.3); }
.project-pick { flex: 1; min-width: 0; text-align: left; border: 0; background: none; color: inherit; padding: 12px 14px; border-radius: 10px; cursor: pointer; display: grid; gap: 2px; }
.project-move { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding-right: 6px; opacity: .55; transition: opacity .2s; }
.project-row:hover .project-move, .project-row.is-current .project-move, .project-move:focus-within { opacity: 1; }
.project-move button { width: 26px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--muted); border-radius: 6px; font-size: 9px; line-height: 1; cursor: pointer; }
.project-move button:hover:not(:disabled) { color: var(--accent); border-color: rgba(61, 214, 245, 0.45); }
.project-move button:disabled { opacity: .3; cursor: default; }
.project-list strong { font-size: 15px; }
.project-list small { font-size: 12.5px; color: var(--faint); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--faint); }
.dot.on { background: var(--success); }
.upload-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.upload-preview { width: 180px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-strong); }
.file-input { font-size: 14px; color: var(--muted); }
.file-input::file-selector-button { margin-right: 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.06); color: var(--text); font-weight: 700; cursor: pointer; }
.staff-private { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: rgba(252, 211, 77, 0.05); border: 1px dashed rgba(252, 211, 77, 0.3); font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.staff-private strong { color: #fcd34d; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 16px; }
.mod-actions .field { min-width: 200px; }
.report-list { display: grid; gap: 10px; margin-bottom: 28px; }
.report-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px; background: rgba(248, 113, 113, 0.05); border: 1px solid rgba(248, 113, 113, 0.25); }
@media (max-width: 860px) { .staff-grid { grid-template-columns: 1fr; } .staff-account { justify-items: start; } }

/* ---------- Error ---------- */
.error-page { padding-top: clamp(80px, 14vw, 180px); padding-bottom: clamp(80px, 14vw, 180px); }
.error-page h1 { margin-bottom: 20px; }
.error-page .lede { margin-bottom: 36px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: 15.5px; max-width: 36ch; margin: 18px 0 22px; }
.site-footer nav { display: grid; gap: 12px; align-content: start; }
.site-footer h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.site-footer nav a { color: var(--muted); font-size: 15.5px; display: inline-flex; align-items: center; gap: 6px; width: fit-content; transition: color .2s; }
.site-footer nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-pending { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal].is-pending { opacity: 1; transform: none; }
}
.btn-block { width: 100%; }
.report-title { font-size: 22px; margin-bottom: 14px; }

/* ---------- Clickable project cards ---------- */
.project-card.is-linked { position: relative; }
.project-card .card-link { color: inherit; }
.project-card .card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.project-card .card-link:focus-visible { outline: none; }
.project-card.is-linked:has(.card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.project-card.is-linked:hover h3 { color: var(--accent); }
.project-card h3 { transition: color .2s; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.project-body .project-actions .btn { margin-top: 0; }
.project-actions .card-ext { position: relative; z-index: 2; }
.project-actions .soon { margin-top: 0; }
.card-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--accent); }
.card-more .icon { transition: transform .3s var(--ease); }
.project-card.is-linked:hover .card-more .icon { transform: translateX(4px); }

/* ---------- Project detail page ---------- */
.detail-hero { --tone: var(--accent); position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--line); }
.detail-hero.tone-ember { --tone: var(--ember); }
.detail-hero.tone-success { --tone: var(--success); }
.detail-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; opacity: .7; transform: scale(1.04); }
.detail-hero-shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 80% at 80% 40%, color-mix(in srgb, var(--tone) 14%, transparent), transparent 70%),
  linear-gradient(90deg, var(--bg) 0%, rgba(6, 8, 12, 0.92) 34%, rgba(6, 8, 12, 0.55) 70%, rgba(6, 8, 12, 0.45) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 12, 0) 45%); }
.detail-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.detail-hero-copy .display-xl { font-size: clamp(42px, 6vw, 84px); margin: 18px 0 20px; overflow-wrap: break-word; }
.detail-hero-copy .display-xl.is-long { font-size: clamp(32px, 4.6vw, 68px); }
@media (max-width: 900px) { .detail-hero-copy .display-xl.is-long { font-size: clamp(28px, 7.6vw, 60px); } }
.detail-hero-copy .lede { max-width: 52ch; }
.detail-hero .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.detail-hero-card { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 40px 120px -40px color-mix(in srgb, var(--tone) 55%, transparent), 0 20px 60px -20px rgba(0, 0, 0, 0.8); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease); }
.detail-hero-card:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.detail-hero-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.soon-lg { font-size: 13px; padding: 0 6px; }
.detail-hero .eyebrow { color: var(--tone); }

.detail-body { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 120px); }
.detail-facts { margin-top: calc(-1 * clamp(80px, 9vw, 120px)); position: relative; z-index: 2; }
.detail-facts dd { font-size: clamp(20px, 2vw, 27px); line-height: 1.2; }
.detail-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.detail-toc { position: sticky; top: calc(var(--header-h) + 28px); }
.toc-label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.detail-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.detail-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); font-size: 14.5px; transition: color .2s, border-color .2s; }
.detail-toc a:hover { color: var(--text); border-left-color: var(--line-strong); }
.detail-main { min-width: 0; max-width: 860px; }
.detail-layout > .detail-main:only-child { grid-column: 1 / -1; margin: 0 auto; }
.detail-section { padding: clamp(36px, 4.5vw, 56px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.detail-section:first-child { padding-top: 0; }
.detail-section-head { margin-bottom: 26px; }
.detail-section-head .display-md { margin-top: 12px; }
.detail-intro { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 68ch; }
.detail-prose { display: grid; gap: 16px; color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 68ch; }
.detail-prose p { margin: 0; }
.detail-prose h3 { color: var(--text); font-size: 21px; margin-top: 10px; }
.detail-prose ul, .detail-prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.detail-prose li::marker { color: var(--accent); }
.detail-main code, .denied-id code { font-family: var(--font-mono); font-size: .88em; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text); white-space: nowrap; }

.highlight-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.highlight-grid li { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .35s var(--ease); }
.highlight-grid li:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.highlight-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px; color: var(--accent); background: rgba(61, 214, 245, 0.08); border: 1px solid rgba(61, 214, 245, 0.2); }
.highlight-grid h3 { font-size: 19px; margin-bottom: 8px; }
.highlight-grid p { color: var(--muted); font-size: 15.5px; }

.step-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; }
.step-list li { counter-increment: step; position: relative; padding: 16px 20px 16px 64px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); min-height: 56px; display: block; line-height: 1.5; }
.step-list li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.check-list li { position: relative; padding-left: 28px; color: var(--muted); }
.check-list li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.info-card h3 { font-size: 18px; margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 15.5px; }

.table-stack { display: grid; gap: 28px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table caption { text-align: left; padding: 16px 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.data-table th, .data-table td { text-align: left; padding: 13px 20px; vertical-align: top; }
.data-table thead th { font-size: 12px; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 500; background: rgba(255, 255, 255, 0.02); }
.data-table tbody tr + tr { border-top: 1px solid var(--line); }
.data-table tbody th { font-weight: 600; color: var(--text); white-space: nowrap; width: 42%; }
.data-table td { color: var(--muted); }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.detail-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: rgba(61, 214, 245, 0.05); border: 1px solid rgba(61, 214, 245, 0.18); color: var(--muted); font-size: 15px; }
.detail-note .icon { flex: none; margin-top: 3px; color: var(--accent); }

/* Screenshot carousel */
.carousel { --car-accent: var(--accent); }
.carousel-stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; outline: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { box-shadow: inset 0 0 0 2px var(--car-accent); }
.carousel-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 2 / 1; display: grid; place-items: center; background: #05070a; }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.carousel-btn { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(6, 8, 12, 0.72); color: var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease); }
.carousel-btn:hover { background: rgba(6, 8, 12, 0.92); border-color: var(--car-accent); color: var(--car-accent); }
.carousel-btn:focus-visible { outline: 2px solid var(--car-accent); outline-offset: 2px; }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-count { position: absolute; right: 54px; bottom: 14px; line-height: 20px; padding: 5px 10px; border-radius: 999px; background: rgba(6, 8, 12, 0.72); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); pointer-events: none; }
.carousel-caption { margin: 14px 2px 0; min-height: 1.4em; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.carousel-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 3px 2px 6px; scrollbar-width: thin; }
.carousel-thumb { flex: 0 0 auto; width: 112px; aspect-ratio: 2 / 1; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #05070a; cursor: pointer; opacity: .55; transition: opacity .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.carousel-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel-thumb:hover { opacity: .85; }
.carousel-thumb[aria-current='true'] { opacity: 1; border-color: var(--car-accent); box-shadow: 0 0 0 1px var(--car-accent); }
.carousel-thumb:focus-visible { outline: 2px solid var(--car-accent); outline-offset: 2px; }
.carousel-toggle { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: rgba(6, 8, 12, 0.72); color: var(--muted); cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease); }
.carousel-toggle:hover { color: var(--car-accent); border-color: var(--car-accent); }
.carousel-toggle:focus-visible { outline: 2px solid var(--car-accent); outline-offset: 2px; }
.carousel-toggle > span { display: grid; place-items: center; }
.carousel-icon-play { display: none !important; }
.carousel.is-paused .carousel-icon-pause { display: none !important; }
.carousel.is-paused .carousel-icon-play { display: grid !important; }
.carousel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.06); pointer-events: none; }
.carousel-progress > span { display: block; height: 100%; width: 100%; background: var(--car-accent); transform-origin: left center; transform: scaleX(0); }
.carousel-progress > span.is-running { animation: carousel-progress var(--car-delay, 5000ms) linear forwards; }
.carousel.is-held .carousel-progress > span.is-running { animation-play-state: paused; }
.carousel.is-paused .carousel-progress { opacity: 0; }
@keyframes carousel-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }

.detail-support { display: flex; gap: 18px; align-items: flex-start; margin-top: clamp(36px, 4.5vw, 56px); }
.detail-support > .icon { flex: none; color: var(--accent); margin-top: 4px; }
.detail-support h2 { font-size: 22px; margin-bottom: 8px; }
.detail-support p { color: var(--muted); }
.detail-support-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.detail-related { margin-top: clamp(64px, 8vw, 112px); }
.detail-related-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.icon.flip { transform: scaleX(-1); }

/* Tone accents */
body:has(.detail-hero.tone-ember) .highlight-icon { color: var(--ember); background: rgba(255, 122, 26, 0.08); border-color: rgba(255, 122, 26, 0.22); }
body:has(.detail-hero.tone-ember) .step-list li::before,
body:has(.detail-hero.tone-ember) .detail-toc a:hover { color: var(--ember); }
body:has(.detail-hero.tone-ember) .detail-note { background: rgba(255, 122, 26, 0.05); border-color: rgba(255, 122, 26, 0.2); }
body:has(.detail-hero.tone-ember) .detail-note .icon,
body:has(.detail-hero.tone-ember) .detail-support > .icon { color: var(--ember); }
body:has(.detail-hero.tone-ember) .carousel { --car-accent: var(--ember); }
body:has(.detail-hero.tone-success) .carousel { --car-accent: var(--success); }
body:has(.detail-hero.tone-success) .highlight-icon { color: var(--success); background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.22); }
body:has(.detail-hero.tone-success) .step-list li::before { color: var(--success); }

@media (max-width: 1080px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-toc { display: none; }
  .detail-main { max-width: none; }
}
@media (max-width: 900px) {
  .detail-hero-inner { grid-template-columns: 1fr; }
  .detail-hero-card { transform: none; max-width: 560px; }
  .detail-facts { margin-top: 0; }
}
@media (max-width: 640px) {
  .highlight-grid, .info-cards, .check-list { grid-template-columns: 1fr; }
  .carousel-btn { width: 34px; height: 34px; background: rgba(6, 8, 12, 0.55); }
  .carousel-btn .icon { width: 16px; height: 16px; }
  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }
  .carousel-count { right: 40px; bottom: 6px; padding: 3px 8px; font-size: 11px; line-height: 20px; }
  .carousel-toggle { right: 6px; bottom: 6px; width: 28px; height: 28px; }
  .carousel-thumb { width: 84px; }
  .data-table th, .data-table td { padding: 12px 14px; }
  .data-table tbody th { white-space: normal; width: auto; }
  .detail-support { flex-direction: column; }
}

/* ---------- Discord sign-in ---------- */
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6d78f5; box-shadow: 0 10px 40px -10px rgba(88, 101, 242, 0.7); transform: translateY(-1px); }
.inline-form { display: inline; margin: 0; }
.denied-id { display: grid; gap: 10px; margin: 6px 0 8px; padding: 16px 20px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); text-align: left; width: 100%; max-width: 360px; }
.denied-id div { display: flex; justify-content: space-between; gap: 16px; }
.denied-id dt { color: var(--faint); font-size: 14px; }
.denied-id dd { margin: 0; font-weight: 700; }

/* ---------- Staff: project page editor ---------- */
.pe-wrap { margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.pe-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pe-head h3 { font-size: 22px; margin: 8px 0 6px; }
.pe-head p { margin: 0; max-width: 56ch; }
.pe-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pe { display: grid; gap: 12px; }
.pe-group { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.015); }
.pe-group[open] { border-color: var(--line-strong); }
.pe-group > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-radius: inherit; }
.pe-group > summary::-webkit-details-marker { display: none; }
.pe-group > summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .2s; flex: none; align-self: center; }
.pe-group[open] > summary::before { transform: rotate(45deg); }
.pe-group > summary strong { font-size: 16px; }
.pe-group > summary small { color: var(--faint); font-size: 13.5px; }
.pe-group > summary:hover { background: rgba(255, 255, 255, 0.02); }
.pe-group > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pe-body { padding: 4px 20px 20px; display: grid; gap: 18px; }
.pe-list { display: grid; gap: 12px; }
.pe-item { display: grid; gap: 14px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.pe-item .pe-item { background: var(--surface); }
.pe-tools { display: flex; align-items: center; gap: 6px; }
.pe-index { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.pe-icon-btn:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.pe-icon-btn.is-danger:hover:not(:disabled) { color: #fecaca; border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.08); }
.pe-icon-btn:disabled { opacity: .35; cursor: default; }
.pe-add { justify-self: start; }
.pe-noimg { font-size: 14px; color: var(--faint); padding: 10px 0; }
textarea.mono { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; }


/* ---- Checkout pages ---- */
.buy-form { display: contents; }
.btn-buy { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.co-wrap { min-height: 70vh; display: grid; place-items: center; padding: 4rem 1.25rem; }
.co-card { max-width: 560px; width: 100%; padding: 2.25rem; border-radius: 18px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); }
.co-card h1 { margin: 0 0 .5rem; font-size: 1.75rem; }
.co-card p { color: var(--muted, #b7c3cc); line-height: 1.6; }
.co-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---- Plugin updates ---- */
.release-card { display: grid; gap: 14px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.release-card.is-latest { border-color: rgba(61, 214, 245, 0.35); background: linear-gradient(180deg, rgba(61, 214, 245, 0.06), rgba(61, 214, 245, 0) 60%), var(--surface); }
.release-card h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.release-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release-tag { font-family: var(--font-mono); font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong); color: var(--text); }
.release-badge { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(61, 214, 245, 0.14); color: var(--accent); }
.release-head time { margin-left: auto; font-size: 14px; color: var(--faint); }
.release-mc { margin: 0; font-size: 14.5px; color: var(--muted); }
.release-notes { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); line-height: 1.55; }
.release-notes code, .release-files code { font-family: var(--font-mono); font-size: .9em; }
.release-files { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.release-files li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); flex-wrap: wrap; }
.release-file-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(61, 214, 245, 0.1); color: var(--accent); }
.release-file-meta { flex: 1; min-width: 180px; display: grid; gap: 2px; }
.release-file-meta code { color: var(--text); word-break: break-all; }
.release-file-meta small { font-size: 13px; color: var(--faint); }
.release-file-note { font-size: 13.5px; color: var(--faint); }
.release-history { margin-top: 16px; display: grid; gap: 12px; }
.release-history > summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.release-history[open] > summary { margin-bottom: 4px; }
.release-history .release-card + .release-card { margin-top: 12px; }
.rel-upload { position: relative; overflow: hidden; cursor: pointer; }
.rel-upload input[type='file'] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 560px) { .release-head time { margin-left: 0; width: 100%; } .release-files .btn { width: 100%; justify-content: center; } }
.release-card { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.release-notes li, .release-notes code { overflow-wrap: anywhere; }
@media (max-width: 560px) { .release-card { padding: 18px; } }
.release-notes code { white-space: normal; word-break: break-word; }

/* Download counts (plugin pages and cards) */
.dl-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.dl-stats > div { display: flex; flex-direction: column-reverse; gap: 2px; min-width: 150px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 19, 27, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dl-stats dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.dl-stats dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.1; color: var(--text); }
.card-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.card-downloads .icon { flex: none; }
.card-downloads b { color: var(--text); font-weight: 600; }
.card-downloads .sep { margin: 0 8px 0 0; }
@media (max-width: 760px) { .dl-stats > div { flex: 1 1 0; min-width: 0; } }

/* Shopping cart */
.cart-link { position: relative; }
.cart-count { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.cart-count[hidden] { display: none; }
.cart-link.is-bumped { animation: cart-bump .45s var(--ease); }
@keyframes cart-bump { 30% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cart-link.is-bumped { animation: none; } }
@media (max-width: 980px) { .header-actions .icon-link.cart-link { display: inline-grid; } }
.btn-cart { font: inherit; font-weight: 700; }
.cart-add.is-in-cart .btn-cart { border-color: rgba(61, 214, 245, 0.45); color: var(--accent); }
.project-actions .cart-add { position: relative; z-index: 2; }
.cart-page { padding-top: 150px; padding-bottom: 110px; min-height: 70vh; }
.cart-page h1 { margin: 14px 0 34px; }
.cart-empty .lede { margin-bottom: 26px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14, 19, 27, 0.6); }
.cart-thumb img { display: block; width: 128px; height: 80px; object-fit: cover; border-radius: 10px; }
.cart-item-info { display: grid; gap: 4px; min-width: 0; }
.cart-item-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--text); }
.cart-item-name:hover { color: var(--accent); }
.cart-item-meta { color: var(--muted); font-size: 14px; }
.cart-item-price { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.cart-remove button { background: none; cursor: pointer; }
.cart-remove button:hover { color: #ff8a8a; border-color: rgba(255, 138, 138, 0.4); }
.cart-summary { position: sticky; top: 100px; padding: 26px; border: 1px solid var(--line-strong); border-radius: 20px; background: rgba(14, 19, 27, 0.75); display: grid; gap: 16px; }
.cart-summary h2 { font-size: 20px; margin: 0; }
.cart-summary dl { margin: 0; display: grid; gap: 10px; }
.cart-summary dl div { display: flex; justify-content: space-between; color: var(--muted); }
.cart-summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.cart-summary .cart-total { padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 18px; }
.cart-note { color: var(--muted); font-size: 14px; margin: 0; }
.cart-checkout { width: 100%; }
.cart-summary .text-link { justify-self: center; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .cart-summary { position: static; } }
@media (max-width: 560px) {
  .cart-page { padding-top: 120px; }
  .cart-item { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px 14px; }
  .cart-thumb img { width: 84px; height: 54px; }
  .cart-item-price { grid-column: 2; }
  .cart-remove { grid-column: 3; grid-row: 1 / span 2; }
}
.co-downloads { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 12px; }
.co-downloads li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.co-dl-head { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.co-dl-head span { color: var(--muted); font-size: 14px; }
.co-downloads .co-actions { margin-top: 10px; }
.co-downloads p { margin: 8px 0 0; }

/* ---- Account / My purchases ---- */
.account-page { padding-top: 150px; padding-bottom: 110px; min-height: 70vh; }
.account-page h1 { margin: 14px 0 24px; }
.account-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.account-top h1 { margin-bottom: 8px; }
.account-who { color: var(--muted); }
.account-who strong { color: var(--text); }
.account-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 32px); }
.account-signin { max-width: 620px; }
.account-signin .lede { margin-bottom: 22px; }
.account-card .btn { margin-top: 6px; }
.account-fine { color: var(--muted); font-size: 14px; margin-top: 18px; }
.account-alert { border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; font-size: 15px; }
.account-alert.is-ok { background: rgba(61, 214, 245, 0.08); border: 1px solid rgba(61, 214, 245, 0.35); color: var(--text); }
.account-alert.is-error { background: rgba(244, 90, 90, 0.08); border: 1px solid rgba(244, 90, 90, 0.4); color: var(--text); }
.account-block { margin-top: 44px; }
.account-block h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 16px; }
.account-block code, .orders-table code { font-size: 13px; background: rgba(255, 255, 255, 0.05); padding: 2px 6px; border-radius: 6px; margin: 0 2px; }
.owned-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.owned-item { display: grid; grid-template-columns: 160px 1fr auto; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.owned-thumb img { display: block; width: 160px; height: 100px; object-fit: cover; border-radius: 10px; }
.owned-info { display: grid; gap: 4px; min-width: 0; }
.owned-name { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.owned-name:hover { color: var(--accent); }
.owned-meta { color: var(--muted); font-size: 14px; }
.owned-older { margin-top: 6px; font-size: 14px; }
.owned-older summary { cursor: pointer; color: var(--accent); }
.owned-older ul { list-style: none; padding: 8px 0 0; margin: 0; display: grid; gap: 6px; }
.owned-actions { display: grid; gap: 8px; justify-items: end; }
.owned-actions .btn { white-space: nowrap; }
@media (max-width: 760px) {
  .owned-item { grid-template-columns: 1fr; }
  .owned-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .owned-actions { justify-items: stretch; }
  .owned-actions .btn { white-space: normal; }
}
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.orders-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.orders-table th, .orders-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.orders-table th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; background: rgba(255, 255, 255, 0.02); }
.orders-table tr:last-child td { border-bottom: 0; }
.order-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(61, 214, 245, 0.12); color: var(--accent); }
.order-status.is-refunded, .order-status.is-chargeback, .order-status.is-disputed { background: rgba(244, 90, 90, 0.12); color: #ff8c8c; }
.claim-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; margin-top: 16px; }
.claim-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.claim-form input { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.claim-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 760px) { .claim-form { grid-template-columns: 1fr; } }
.account-card > p + .account-alert { margin-top: 14px; }
.orders-table td:first-child, .orders-table td:nth-child(3) { white-space: nowrap; }
