:root {
  --bg: #0e141b;
  --panel: #18212c;
  --panel-strong: #101821;
  --text: #edf3fb;
  --muted: #99a9bb;
  --accent: #4b8eff;
  --accent-warm: #ffb347;
  --line: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(75, 142, 255, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 179, 71, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 420px);
  gap: 24px;
  padding: 24px;
}

.hero,
.card {
  background: rgba(16, 24, 33, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.hero {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

h1,
h2,
p {
  margin-top: 0;
}

.lede,
.helper,
#phase-text,
#prompt-source,
#prompt-round,
#preview-text {
  color: var(--muted);
}

.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}

.hero-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.stage,
.preview,
.reveal,
.summary {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 20px;
}

.stage {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 24px;
}

.stage svg,
.preview svg,
.reveal-thumb svg {
  width: 100%;
  height: 100%;
  max-width: 360px;
  max-height: 220px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  padding: 18px;
}

.form-card,
.controls-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label,
.slider-row span {
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 12px 14px;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 600;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.status-card h2,
.prompt h2 {
  margin-bottom: 6px;
}

.presence {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.presence-row,
.scoreband,
.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.scoreband {
  margin-top: 16px;
}

.scoreband div {
  flex: 1;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.scoreband span,
.scoreband strong {
  display: block;
}

.scoreband strong {
  font-size: 1.6rem;
  margin-top: 6px;
}

.slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.slider-row input {
  grid-column: 1 / -1;
  padding: 0;
}

.preview-wrap {
  margin-top: 8px;
}

.preview {
  height: 140px;
  display: grid;
  place-items: center;
  padding: 18px;
}

.actions {
  margin-top: 8px;
}

.actions button {
  flex: 1;
}

.reveal,
.summary {
  margin-top: 18px;
  padding: 18px;
}

.reveal-grid,
.summary-list {
  display: grid;
  gap: 14px;
}

.reveal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reveal-card,
.summary-row {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.reveal-thumb {
  height: 120px;
  display: grid;
  place-items: center;
  margin: 10px 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .reveal-grid {
    grid-template-columns: 1fr;
  }
}
