:root {
  --bg: #0c0a14;
  --bg2: #141021;
  --card: #1b1530;
  --card-hover: #241a40;
  --ink: #ece8ff;
  --muted: #a99fce;
  --accent: #c08bff;
  --accent2: #6ff0d4;
  --warn: #ffd166;
  --good: #6ff0a8;
  --line: #2c2348;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 700px at 50% -10%, #221842 0%, var(--bg) 60%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

.hidden { display: none !important; }

.site-header {
  text-align: center;
  padding: 3rem 1.25rem 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.site-header h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin: 0;
  letter-spacing: -0.02em;
}
.v2 {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--accent2);
  -webkit-text-fill-color: var(--accent2);
}
.site-header h1 {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subtitle {
  font-size: 1.3rem;
  color: var(--accent2);
  margin: 0.25rem 0 1rem;
  font-weight: 600;
}
.blurb { color: var(--muted); font-size: 1rem; margin: 0 auto; max-width: 620px; }

main { max-width: 980px; margin: 0 auto; padding: 0 1.25rem 4rem; }

/* Grift selector grid */
.grift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}
.grift-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.grift-card:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.grift-card .ge { font-size: 1.7rem; }
.grift-card .gn { font-weight: 700; font-size: 1.02rem; }
.grift-card .gt { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }

/* Stage */
.stage { margin-top: 1rem; }
#grift-title { font-size: 1.9rem; margin: 0.5rem 0 0.2rem; }
.stage-tagline { color: var(--muted); margin: 0 0 1.25rem; font-style: italic; }

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}
button { font: inherit; }
.primary-btn, .ghost-btn, .unfuck-btn, .back, .ghost-btn {
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform 0.1s ease, background 0.1s ease, border-color 0.1s ease;
}
.primary-btn {
  background: linear-gradient(90deg, var(--accent), #9a6bff);
  color: #14091f;
  font-weight: 700;
  border: none;
}
.ghost-btn { background: transparent; color: var(--ink); }
.ghost-btn:hover, .primary-btn:hover, .unfuck-btn:hover { transform: translateY(-2px); }
.ghost-btn:hover { border-color: var(--accent); }
.unfuck-btn {
  background: transparent;
  color: var(--good);
  border-color: var(--good);
  font-weight: 700;
  margin-left: auto;
}

.post {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.97rem;
  color: #f3efff;
}

/* Cost calculator */
.cost {
  margin-top: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.cost-pitch { color: var(--warn); font-weight: 600; margin-bottom: 0.6rem; }
.cost-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
}
.cost-row span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.cost-row.total {
  border-bottom: none;
  border-top: 2px solid var(--accent);
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  font-weight: 700;
  color: var(--ink);
}
.cost-row.total span:last-child { color: var(--warn); }

/* Unfucker */
.unfucker {
  margin-top: 1.1rem;
  background: linear-gradient(180deg, #10231d, #0d1a16);
  border: 1px solid #1f5a48;
  border-left: 3px solid var(--good);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.unfucker h3 { margin: 0 0 0.3rem; color: var(--good); }
.uf-intro { color: var(--accent2); margin: 0 0 0.8rem; font-size: 0.95rem; }
.uf-line {
  margin: 0 0 0.8rem;
  padding-left: 0.9rem;
  border-left: 2px solid #1f5a48;
  color: #dff7ee;
}
.uf-line:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .sig { margin-top: 0.6rem; color: var(--accent); }
.hint { color: var(--muted); }
.hint code, .sig code {
  background: var(--card);
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  color: var(--accent2);
}

@media (max-width: 560px) {
  .unfuck-btn { margin-left: 0; }
  .controls { gap: 0.45rem; }
}
