/* Shared tokens for StoryBlocks choice-surface prototypes.
   File purpose: pulp dark theme + mock chrome shared by A–I demos.
   Not production CSS — preview-only. */

:root {
  --bg: #0c0b0a;
  --panel: #171512;
  --panel-2: #1f1c18;
  --line: #2e2a24;
  --ink: #e8e0d4;
  --ink-dim: #a89f90;
  --ink-faint: #6e675c;
  --accent: #c8a45a;
  --accent-ink: #1a150c;
  --signal: #c14a32;
  --risk: #c47a3a;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  min-height: 100dvh;
}

.shell {
  max-width: 42rem;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
}

.bar {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.bar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.scene-n {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scene-n::before {
  content: "";
  display: inline-block;
  width: 0.35em; height: 0.35em;
  border-radius: 50%;
  background: var(--signal);
  margin-right: 0.45em;
  vertical-align: 0.1em;
}

.story {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.1rem 0 0.6rem;
}
.story p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  color: var(--ink);
}
.story p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  float: left;
  line-height: 0.75;
  padding: 0.15rem 0.45rem 0 0;
  color: var(--accent);
}
.chosen {
  color: var(--accent);
  font-style: italic;
  font-size: 0.95rem;
  margin: 0.4rem 0 1rem;
}

.action {
  flex: 0 0 auto;
  padding: 0.35rem 0 0.85rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.composer {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
  margin-top: 0.45rem;
}
.composer input {
  flex: 1;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.65rem 0.8rem;
}
.composer input::placeholder { color: var(--ink-faint); }
.icon-btn {
  width: 2.6rem; min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.45rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
}
.icon-btn.send {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.icon-btn.special { color: var(--accent); border-color: rgba(200,164,90,0.55); }

.deck {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}
.deck button {
  width: 2.4rem; height: 2.4rem; min-width: 40px; min-height: 40px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-faint);
  border-radius: 0.4rem;
  cursor: pointer;
}
.deck button:hover { color: var(--accent); border-color: var(--line); }

.status {
  min-height: 1.2rem;
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--accent);
  font-style: italic;
}

.sig {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--ink-faint);
}
.sig svg { width: 0.95rem; height: 0.95rem; }
.sig[data-kind="risk"] { color: var(--signal); }
.sig[data-kind="rel"] { color: #d08a9a; }
.sig[data-kind="skill"] { color: var(--accent); }
.sig[data-kind="req"] { color: var(--risk); }

.proto-tag {
  position: fixed;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 20;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.25rem 0.5rem;
  border-radius: 0.3rem;
  text-decoration: none;
}
.proto-nav {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 20;
  display: flex;
  gap: 0.35rem;
}
.proto-nav a {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.25rem 0.45rem;
  border-radius: 0.3rem;
  text-decoration: none;
}
.proto-nav a:hover, .proto-nav a.on {
  color: var(--accent);
  border-color: var(--accent);
}

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