:root {
  --bg: #0b1020;
  --bg-soft: #121a30;
  --card: rgba(18, 26, 48, 0.78);
  --card-strong: #151e37;
  --text: #f5f7ff;
  --muted: #aeb6d6;
  --line: rgba(255,255,255,0.08);
  --accent: #7c5cff;
  --accent-2: #27d7c6;
  --danger: #ff677d;
  --shadow: 0 18px 50px rgba(0,0,0,0.28);
  --radius: 22px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, system-ui, sans-serif; background: radial-gradient(circle at top, #15224a 0%, var(--bg) 45%); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 72px; }
.site-header, .site-footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header { padding: 18px 0 10px; }
.site-footer { padding: 18px 0 42px; color: var(--muted); border-top: 1px solid var(--line); }
.site-header nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.site-header nav a.active { color: var(--accent-2); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand img { width: 36px; height: 36px; }
.hero { padding: 42px 0 24px; align-items: center; }
.grid-two { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; }
.card-grid { display: grid; gap: 20px; }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.card.soft { background: rgba(20, 28, 54, 0.92); }
.card.featured { outline: 2px solid rgba(39, 215, 198, 0.6); transform: translateY(-4px); }
.pill { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: rgba(124, 92, 255, 0.18); color: #d7d0ff; font-size: 0.85rem; margin-bottom: 12px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.02; margin-bottom: 16px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
h3 { font-size: 1.15rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 68ch; }
.button, .ghost-button, button, input, select, textarea { font: inherit; }
.button, .ghost-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; padding: 13px 18px; border: 1px solid transparent; cursor: pointer; }
.button { background: linear-gradient(120deg, var(--accent), #9c7bff); color: white; }
.ghost-button { border-color: var(--line); background: rgba(255,255,255,0.02); color: var(--text); }
.full { width: 100%; }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.actions.wrap { flex-wrap: wrap; }
.inline-form { display: inline; }
.feature-list { padding-left: 18px; color: var(--muted); }
.feature-list li + li { margin-top: 10px; }
.compact li + li { margin-top: 6px; }
.section-gap { margin-top: 34px; }
.section-head { margin-bottom: 22px; }
.inline-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.hero-illustration { width: 100%; max-width: 480px; margin-left: auto; }
.hero-illustration.small { max-width: 320px; margin: 0 auto 12px; }
.icon-asset { width: 58px; height: 58px; margin-bottom: 12px; }
.editor-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
.editor-main label, .editor-side label, .stack-form { display: grid; gap: 8px; margin-bottom: 16px; }
input, select, textarea { width: 100%; background: rgba(255,255,255,0.03); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
textarea { resize: vertical; }
.checklist { display: grid; gap: 10px; margin: 18px 0; }
.check-item { display: flex; gap: 10px; align-items: start; }
.check-item input { width: auto; margin-top: 3px; }
.notice { border: 1px dashed var(--line); padding: 14px; border-radius: 16px; color: var(--muted); }
.notice.success { border-color: rgba(39, 215, 198, 0.5); color: #cbfffa; }
.price { font-size: 2rem; font-weight: 700; }
.prose ul { color: var(--muted); }
.stat-card h2 { font-size: 3rem; margin: 0; }
.empty-state { text-align: center; }
.public-shell { padding-top: 10px; }
.public-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.public-main h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.public-side { display: grid; gap: 20px; }
.cover-image { border-radius: 18px; border: 1px solid var(--line); margin-bottom: 16px; max-height: 250px; width: 100%; object-fit: cover; }
.challenge-intro { border-left: 4px solid var(--accent-2); padding-left: 14px; color: var(--muted); margin-bottom: 18px; }
.chat-box { border-radius: 18px; background: rgba(0,0,0,0.18); border: 1px solid var(--line); min-height: 320px; max-height: 420px; overflow: auto; padding: 14px; display: grid; gap: 10px; }
.message { padding: 12px 14px; border-radius: 16px; max-width: 92%; }
.message.ai { background: rgba(124, 92, 255, 0.15); }
.message.user { background: rgba(39, 215, 198, 0.12); margin-left: auto; }
.play-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 16px; }
.share-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ad-box img { border-radius: 14px; margin: 12px 0; }
.ad-label { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.subtle-cta { position: sticky; top: 16px; }
.tiny { font-size: 0.88rem; color: var(--muted); }
.card-topline { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); margin-bottom: 10px; }
.theme-neon { --accent: #7c5cff; --accent-2: #27d7c6; }
.theme-midnight { --accent: #4c73ff; --accent-2: #98b5ff; }
.theme-retro { --accent: #ff7a18; --accent-2: #ffe56e; }
.theme-clean { --accent: #5688ff; --accent-2: #6de1d2; }
@media (max-width: 980px) {
  .grid-two, .editor-grid, .public-layout, .three-up, .two-up { grid-template-columns: 1fr; }
  .inline-head { align-items: start; flex-direction: column; }
}
@media (max-width: 640px) {
  .site-header, .site-footer { flex-direction: column; align-items: start; }
  .play-form { grid-template-columns: 1fr; }
  h1 { font-size: 2.3rem; }
}
