/* Pencil & Poison arcade — shared design tokens (bible §11: one system, every
   surface inherits it). Fonts are Google-hosted free faces (Playfair Display,
   Jost), NOT Didot/Futura — those are the print-side system fonts used
   locally on B's machine for the KDP PDF, but embedding them on a public
   website would need an actual web-font license we don't have. Playfair
   Display carries the same "elegant deco display serif" spirit; Jost is a
   geometric sans in the same family as Futura. */

:root {
  --color-bg: #111827;
  --color-frame: #c49a44;
  --color-text: #f0ead6;
  --color-text-muted: #a8a08c;
  --color-accent: #a31d29;
  --color-success: #3f8a5c;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 640px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 60px;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
}

.deco-frame {
  border: 2px solid var(--color-frame);
  padding: 28px 20px;
  position: relative;
}

.deco-frame::before,
.deco-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  background: var(--color-bg);
  border: 2px solid var(--color-frame);
  transform: translateX(-50%) rotate(45deg);
}

.deco-frame::before { top: -10px; }
.deco-frame::after { bottom: -10px; }

.kicker {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin: 0 0 8px;
}

h1.case-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  font-size: 2.2rem;
  margin: 0 0 4px;
}

.tier-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 20px 0 8px;
}

.blurb {
  font-size: 1.05rem;
  text-align: center;
  margin: 0 0 8px;
}

.claims-list, .clues-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.claims-list li, .clues-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
}

.clues-list li {
  counter-increment: clue;
}

.clues-list {
  counter-reset: clue;
}

.clues-list li::before {
  content: counter(clue) ". ";
  color: var(--color-frame);
  font-weight: 600;
}

.grid-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.timeline-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.timeline-grid {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
}

.timeline-grid th, .timeline-grid td {
  border: 1px solid rgba(196, 154, 68, 0.35);
  padding: 6px;
  text-align: center;
  font-size: 0.8rem;
}

.timeline-grid th {
  color: var(--color-frame);
  font-weight: 600;
  white-space: nowrap;
}

.timeline-grid td.row-header {
  text-align: left;
  white-space: nowrap;
  font-weight: 500;
}

.timeline-grid select {
  width: 100%;
  min-width: 90px;
  background: rgba(255,255,255,0.03);
  color: var(--color-text);
  border: 1px solid rgba(196, 154, 68, 0.35);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 4px 2px;
}

.suspect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

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

.suspect-button {
  background: transparent;
  border: 1.5px solid var(--color-frame);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.suspect-button:hover:not(:disabled) {
  background: rgba(196, 154, 68, 0.15);
}

.suspect-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.suspect-button.wrong {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.suspect-button.correct {
  border-color: var(--color-success);
  color: var(--color-success);
  background: rgba(63, 138, 92, 0.15);
}

.feedback {
  margin-top: 16px;
  min-height: 1.4em;
  text-align: center;
  font-size: 0.95rem;
}

.feedback.wrong { color: var(--color-accent); }
.feedback.correct { color: var(--color-success); }

.reveal {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--color-success);
  border-radius: 3px;
  font-size: 0.95rem;
  display: none;
}

.reveal.show { display: block; }

.actions {
  margin-top: 16px;
  display: none;
  gap: 10px;
}

.actions.show { display: flex; }

.btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 3px;
  border: 1.5px solid var(--color-frame);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.btn:hover { background: rgba(196, 154, 68, 0.15); }

.streak-badge {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 10px;
}

.dev-reset {
  text-align: center;
  margin-top: 18px;
}

.dev-reset a {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}

.email-capture {
  margin-top: 32px;
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.email-capture h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.email-capture p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.email-form {
  display: flex;
  gap: 8px;
  max-width: 380px;
  margin: 0 auto;
}

.email-form input[type="email"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: 3px;
  border: 1.5px solid var(--color-frame);
  background: rgba(255,255,255,0.03);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.email-form input[type="email"]::placeholder {
  color: var(--color-text-muted);
}

footer.site-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

footer.site-footer a {
  color: var(--color-frame);
  text-decoration: none;
}

.game-directory-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.game-card {
  display: block;
  border: 1.5px solid var(--color-frame);
  padding: 18px;
  border-radius: 3px;
  text-decoration: none;
  color: var(--color-text);
}

.game-card:hover {
  background: rgba(196, 154, 68, 0.1);
}

.game-card .game-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 4px;
}

.game-card .game-tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* --- statement_logic arcade (DEAD GIVEAWAY) ----------------------------- */
.statement-block { margin: 0 0 14px; }
.statement-speaker { font-weight: 600; margin: 0 0 2px; }
.statement-line { margin: 0 0 2px; opacity: .92; }
.note-input { width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,.18); color: inherit; font: inherit; padding: 2px 0; }
.note-input:focus { outline: none; border-bottom-color: rgba(255,255,255,.5); }
