/* Sloppit landing page — zero-dependency styles. */

:root {
  --bg:        #08090c;
  --bg-2:      #0e1014;
  --surface:   #14161c99;
  --surface-solid: #14161c;
  --border:    rgba(255, 255, 255, 0.09);
  --text:      #edf2e8;
  --muted:     #8b93a3;
  --accent:    #a3e635;   /* acid lime — primary */
  --accent-2:  #22d3ee;   /* bright cyan — secondary / "gem" */
  --mint:      #22d3ee;   /* links / highlights */
  --pop:       #ff4d8d;   /* hot magenta — rare accents */
  --radius:    16px;
  --maxw:      1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 15% -5%, rgba(163, 230, 53, 0.13), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(34, 211, 238, 0.11), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: 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: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-weight: 650; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  /* horizontal gradient => uniform rounded caps, no diagonal wrong-colour sliver */
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  color: #08090c; box-shadow: 0 8px 26px rgba(163, 230, 53, 0.26);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(34, 211, 238, 0.3); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { padding: 9px 16px; font-size: .92rem; background: rgba(255,255,255,.06); border: 1px solid var(--border); }
.btn-small:hover { border-color: var(--accent); }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 11, 18, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-mark { width: 28px; height: 28px; display: inline-block; vertical-align: middle; }
.founder-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 14px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .96rem; }
.nav-links a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero { max-width: 900px; margin: 0 auto; padding: 96px 24px 72px; text-align: center; }
.eyebrow {
  display: inline-block; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--mint); background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.25);
}
.hero-title {
  font-size: clamp(2.3rem, 6vw, 4.1rem); line-height: 1.06; letter-spacing: -.03em;
  font-weight: 820; margin: 0 0 22px;
}
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 2.3vw, 1.3rem); color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
.hero-sub strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tool-strip { margin-top: 46px; color: var(--muted); font-size: .92rem; }
.tool-strip span {
  display: inline-block; margin: 4px 5px; padding: 4px 11px; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .85rem;
}

/* ---- Sections ---- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.hero + .section, .section + .section { border-top: 1px solid var(--border); }
.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 780; letter-spacing: -.02em; margin: 0 0 14px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.lead.center { margin-left: auto; margin-right: auto; text-align: center; }
#how .section-title, .section-jam .section-title { text-align: center; }
.section-jam { text-align: center; }

/* ---- Cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .15s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(163, 230, 53, 0.5); }
.card-num { font-weight: 800; font-size: .9rem; color: var(--accent-2); letter-spacing: .1em; }
.card h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.card p { color: var(--muted); margin: 0; }
.card em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---- For creators ---- */
.section-creators { border-top: 1px solid var(--border); }
.creators-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 16px; }
.feature-list li { padding-left: 30px; position: relative; color: var(--muted); }
.feature-list li strong { color: var(--text); }
.feature-list li::before {
  content: "✦"; position: absolute; left: 0; top: 0; color: var(--mint); font-size: 1rem;
}
.split-card {
  background: linear-gradient(160deg, rgba(124,92,255,.14), rgba(255,92,168,.08)), var(--surface-solid);
  border: 1px solid var(--border); border-radius: 20px; padding: 30px;
}
.split-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.split-row span:first-child { color: var(--muted); }
.split-row em { color: var(--text); font-style: normal; font-weight: 700; }
.split-val { font-weight: 700; font-size: .95rem; }
.split-100 { color: var(--mint); }
.split-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 22px; }
.split-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.split-note { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.split-note em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---- Jam ---- */
.section-jam { border-top: 1px solid var(--border); }

/* ---- Game cards (gallery + landing rail) ---- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.game-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .15s ease, border-color .2s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(163, 230, 53, 0.5); }
.game-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #14181f, #0e1416); display: grid; place-items: center; color: var(--accent-2); font-size: 2rem; }
.game-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game-title { font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em; }
.game-tag { color: var(--muted); font-size: .9rem; line-height: 1.5; flex: 1; }
.game-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.game-author { color: #6f7a86; font-size: .8rem; }
.game-play { font-weight: 700; color: var(--mint); font-size: .9rem; white-space: nowrap; }
.games-empty { color: var(--muted); text-align: center; padding: 60px; }
.rating { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.rating .star { color: var(--accent); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border); text-align: center; padding: 40px 24px;
  color: var(--muted);
}
.site-footer p { margin: 4px 0; }
.site-footer .brand-mark { display: inline-grid; vertical-align: middle; margin-right: 4px; }
.footer-note { font-size: .85rem; opacity: .7; }
.footer-tagline { font-size: .9rem; }
.footer-links { margin-top: 10px; }
.footer-links a { color: var(--muted); font-size: .85rem; text-decoration: underline; }
.footer-links a:hover { color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .creators-inner { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
}
/* ---- Landing extras ---- */
.trust-band { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 26px; }
.trust-band span { color: var(--text); }
.rail-cta { text-align: center; margin-top: 32px; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.faq-item h3 { margin: 0 0 6px; font-size: 1.02rem; }
.faq-item p { margin: 0; color: var(--muted); }
.spec-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; font-size: .9em; color: var(--text); }

@media (max-width: 520px) {
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---- Auth (sign-in / account) ---- */
.auth-slot { display: inline-flex; align-items: center; }
.auth-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 650;
  color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--border);
  transition: border-color .2s ease, transform .12s ease;
}
.auth-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.auth-btn .gh-icon { width: 16px; height: 16px; }
.auth-user { position: relative; }
.auth-user-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px; border-radius: 999px; cursor: pointer;
  color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--border);
  font: inherit; font-size: .9rem; font-weight: 600;
}
.auth-user-btn:hover { border-color: var(--accent); }
.auth-avatar { width: 24px; height: 24px; border-radius: 50%; display: block; background: var(--surface-solid); object-fit: cover; }
.auth-handle { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.4); z-index: 60;
}
.auth-menu[hidden] { display: none; }
.auth-menu-item {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  background: transparent; border: 0; color: var(--text); font: inherit; font-size: .92rem; cursor: pointer;
}
.auth-menu-item:hover { background: rgba(255,255,255,.06); }

/* ---- Onboarding overlay ---- */
.onboard-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 24px; background: rgba(6, 6, 12, 0.72); backdrop-filter: blur(6px);
}
.onboard-card {
  width: 100%; max-width: 440px; background: var(--surface-solid);
  border: 1px solid var(--border); border-radius: 20px; padding: 30px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.onboard-card h2 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -.02em; }
.onboard-card > p { color: var(--muted); margin: 0 0 20px; }
.onboard-label {
  display: block; font-size: .82rem; font-weight: 650; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.onboard-handle-row {
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.04);
}
.onboard-handle-row:focus-within { border-color: var(--accent); }
.onboard-handle-row span { color: var(--muted); font-weight: 600; }
.onboard-handle-row input {
  flex: 1; padding: 12px 0; border: 0; background: transparent; color: var(--text);
  font-size: 1rem; min-width: 0; outline: none;
}
.onboard-terms {
  display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 6px;
  color: var(--muted); font-size: .92rem; line-height: 1.5;
}
.onboard-terms input { margin-top: 3px; accent-color: var(--accent); }
.onboard-terms a { color: var(--mint); text-decoration: underline; }
.onboard-error { min-height: 1.2em; margin: 8px 0 0; color: #ff8ca8; font-size: .9rem; }
.onboard-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.onboard-actions .btn { padding: 10px 18px; font-size: .95rem; }

/* ---- Creator dashboard (/account) ---- */
.dash-wrap { max-width: 820px; margin: 0 auto; padding: 44px 24px 90px; }
.dash-gate { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px; text-align: center; }
.dash-gate p { color: var(--muted); margin: 0 0 18px; }
.dash-account { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.dash-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-solid); object-fit: cover; }
.dash-handle { font-weight: 700; font-size: 1.1rem; }
.dash-sub { color: var(--muted); font-size: .85rem; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dash-head h1 { font-size: 1.5rem; margin: 0; }
.dash-game { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.dash-game-top { display: flex; align-items: center; gap: 10px; }
.dash-game-title { font-weight: 700; font-size: 1.05rem; flex: 1; }
.dash-game-meta { color: var(--muted); font-size: .82rem; margin-top: 4px; word-break: break-all; }
.dash-badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.dash-badge.ok { color: var(--accent); border-color: rgba(163,230,53,.4); }
.dash-badge.muted { color: var(--muted); }
.dash-badge.bad { color: var(--pop); border-color: rgba(255,77,141,.4); }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dash-btn { font: inherit; font-size: .85rem; font-weight: 600; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 8px; padding: 7px 13px; cursor: pointer; text-decoration: none; display: inline-block; }
.dash-btn:hover { border-color: var(--accent); }
.dash-btn.danger:hover { border-color: var(--pop); color: #ff9ec0; }
.dash-edit { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.dash-label { display: block; font-size: .8rem; font-weight: 650; color: var(--muted); margin: 10px 0 5px; }
.dash-input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text); font: inherit; font-size: .95rem; }
.dash-input:focus { border-color: var(--accent); outline: none; }
textarea.dash-input { min-height: 70px; resize: vertical; }
.dash-err { color: var(--pop); font-size: .85rem; min-height: 1em; margin: 8px 0 0; }
