:root {
  --bg: #0d1117;
  --bg-soft: #151b24;
  --panel: #111927;
  --line: #283246;
  --text: #e9eef7;
  --muted: #9db0cd;
  --accent: #79e7d3;
  --accent-2: #ff7f50;
  --danger: #ff7070;
  --ok: #7ae582;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at top, #172130, var(--bg));
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 17, 0.82); backdrop-filter: blur(5px); position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; gap: 0.8rem; align-items: center; color: var(--text); }
.brand-mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--accent-2); color: #000; font-weight: 800; }
.brand small { display: block; color: var(--muted); }
.container { max-width: 1180px; margin: 0 auto; padding: 1.5rem; }
.container.narrow { max-width: 760px; }
.panel {
  background: linear-gradient(180deg, rgba(20,29,42,.95), rgba(10,15,23,.98));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.hero, .hero-slim { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; align-items: center; }
.hero-art { width: 100%; border-radius: 16px; border: 1px solid var(--line); min-height: 260px; object-fit: cover; background: #091018; }
.hero-art.slim { max-height: 240px; }
.hero-copy h1, h1 { margin: 0.2rem 0 0.6rem; font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { margin-top: 0; }
.lede { font-size: 1.05rem; color: var(--text); max-width: 60ch; }
.small, .hint, .eyebrow { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .77rem; }
.stage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.3rem 0; }
.stage-card.locked { opacity: .55; }
.stage-card.unlocked { border-color: rgba(122,229,130,.4); }
.stage-tag { display: inline-block; margin-bottom: .5rem; color: var(--accent-2); font-weight: 700; }
.button {
  display: inline-block; border: 0; border-radius: 12px; background: var(--accent);
  color: #041017; padding: .8rem 1rem; font-weight: 700; cursor: pointer;
}
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.stacked-form, .inline-form { display: grid; gap: .8rem; }
.inline-form { grid-template-columns: 1fr auto; align-items: end; }
label { display: grid; gap: .35rem; color: var(--muted); }
input, textarea {
  width: 100%; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--line);
  background: #0a1018; color: var(--text); font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
.result-box, .terminal {
  margin-top: .9rem; border-radius: 14px; border: 1px solid var(--line);
  background: #08111a; padding: 1rem;
}
.terminal { white-space: pre-wrap; min-height: 180px; font-family: ui-monospace, SFMono-Regular, monospace; color: #bde3ff; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.full-width { grid-column: 1 / -1; }
.wall-panel { min-height: 100%; }
.wall-header { display: flex; justify-content: space-between; align-items: center; }
.badge { border-radius: 999px; background: rgba(255,127,80,.12); color: var(--accent-2); padding: .2rem .65rem; font-size: .8rem; }
.post {
  border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; margin-bottom: .8rem;
  background: rgba(255,255,255,.02);
}
.post h4 { margin: 0 0 .2rem; color: var(--accent); }
.user-post { outline: 1px dashed rgba(121,231,211,.45); }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1rem 0; }
.media-card { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; }
.media-card img, .wide-image { width: 100%; border-radius: 14px; border: 1px solid var(--line); object-fit: cover; background: #08111a; }
.media-card img { height: 100%; min-height: 180px; }
.status-table { width: 100%; border-collapse: collapse; }
.status-table th, .status-table td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.override-panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; align-items: start; }
.plain-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
code { background: #0a1018; border: 1px solid var(--line); border-radius: 8px; padding: .15rem .4rem; color: #ffd59e; }
.compact-gap { gap: .55rem; }
@media (max-width: 980px) {
  .stage-grid, .two-col, .hero, .hero-slim, .override-panel, .card-grid { grid-template-columns: 1fr; }
  .media-card { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
}

.locked-panel { display: grid; gap: 1rem; }
.gate-form { max-width: 32rem; }
.single-column { grid-template-columns: 1fr; }


.auth-panel { gap: 1.1rem; }
.auth-header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.auth-badge { align-self: start; }
.auth-strip {
  display: flex; flex-wrap: wrap; gap: .6rem; padding: .75rem .9rem;
  border-radius: 12px; border: 1px solid var(--line); background: #0a1018;
  color: var(--muted); font-size: .9rem;
}
.auth-strip span {
  padding: .2rem .55rem; border-radius: 999px; background: rgba(121,231,211,.08);
  border: 1px solid rgba(121,231,211,.15);
}
