:root {
  color-scheme: dark;
  --bg: #0b0d13;
  --panel: #151925;
  --panel-2: #1f2636;
  --text: #f4f0e8;
  --muted: #a9b0c3;
  --accent: #d9a441;
  --line: #2b3347;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #25314d, transparent 35%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

button, .admin-link {
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #18120a;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

.home-shell, .player-shell { margin: 0 auto; max-width: 980px; padding: 32px 18px; }
.hero { padding: 54px 0; }
.eyebrow { color: var(--accent); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 9vw, 5.8rem); letter-spacing: -0.07em; line-height: 0.9; margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin-top: 0; }
.lead { color: var(--muted); font-size: 1.2rem; line-height: 1.6; max-width: 680px; }
.project-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.project-card { background: rgba(21, 25, 37, 0.88); border: 1px solid var(--line); border-radius: 24px; padding: 20px; text-decoration: none; }
.project-card h3 { margin: 0 0 8px; }
.project-card p { color: var(--muted); margin: 0; }

.player-nav { align-items: center; display: flex; gap: 10px; justify-content: space-between; margin-bottom: 24px; }
.player-nav a { color: var(--accent); font-weight: 900; text-decoration: none; }
.player-nav button { background: transparent; color: var(--text); padding: 0.55rem 0.85rem; }
.stage { background: linear-gradient(145deg, rgba(31, 38, 54, 0.92), rgba(10, 12, 18, 0.94)); border: 1px solid var(--line); border-radius: 34px; min-height: 70vh; padding: clamp(18px, 4vw, 44px); }
.story-title { color: var(--muted); font-weight: 800; margin-bottom: 24px; }
.dialogue-card { background: rgba(8, 10, 15, 0.72); border: 1px solid var(--line); border-radius: 26px; padding: clamp(18px, 4vw, 34px); }
.speaker { color: var(--accent); font-size: 1rem; font-weight: 900; min-height: 1.5rem; }
.line-text { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 4vw, 2.45rem); line-height: 1.35; min-height: 8rem; white-space: pre-wrap; }
.next-btn { margin-top: 24px; min-width: 120px; }
.choices { display: grid; gap: 12px; margin-top: 20px; }
.choice-btn { background: var(--panel-2); border-color: var(--line); color: var(--text); justify-content: flex-start; text-align: left; }
.history-panel { background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line); border-radius: 22px; margin-top: 20px; max-height: 260px; overflow: auto; padding: 16px; }
.history-item { border-bottom: 1px solid var(--line); color: var(--muted); padding: 10px 0; }
.hidden { display: none !important; }

@media (max-width: 640px) {
  .player-nav { align-items: stretch; flex-wrap: wrap; }
  .player-nav a { flex-basis: 100%; }
  button { width: 100%; }
}
