* , *::before, *::after { box-sizing: border-box; }

:root {
  --bg:            #faf8f4;
  --surface-1:     #ffffff;
  --surface-2:     #f2efe8;
  --border:        #e4ded0;
  --border-strong: #cabf9f;
  --text-primary:  #1c1a16;
  --text-secondary:#5c584d;
  --text-muted:    #948d7c;
  --accent:        #9c7a2e;

  --bg-success:     #edf3e6;
  --border-success: #a7c68c;
  --text-success:   #3e6b28;

  --bg-danger:     #fbeae7;
  --border-danger: #e2a89d;
  --text-danger:   #a3392b;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--text-primary);
  min-height: 100vh;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.brand-logo {
  display: block;
  height: 28px;
  width: auto;
  margin: 0 auto 2rem;
}

.game-wrap {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
}

.game-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.streak-reset-note { display: block; font-size: 12px; color: var(--text-muted); margin-top: -0.75rem; margin-bottom: 1.25rem; }

.progress {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.question-block { margin-bottom: 1.75rem; }
.question-block:last-child { margin-bottom: 0; }

.game-question {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}
.game-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 1.5rem; }

.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: var(--font-sans);
}
.option-btn:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-1); }
.option-btn.correct,
.option-btn.reveal-correct { background: var(--bg-success); border-color: var(--border-success); color: var(--text-success); }
.option-btn.wrong { background: var(--bg-danger); border-color: var(--border-danger); color: var(--text-danger); }
.option-btn:disabled { cursor: default; }
.option-label { font-size: 11px; font-weight: 600; color: var(--text-muted); display: inline-block; min-width: 18px; margin-right: 8px; }

.reveal-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
  margin-top: 1rem;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.reveal-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 0.375rem; }

.btn-read-story {
  display: inline-block;
  margin-top: 0.875rem;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.btn-read-story:hover { opacity: 0.75; }

.summary-card {
  display: none;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.summary-card.show { display: block; }

.summary-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.summary-score { font-size: 14px; color: var(--text-secondary); margin-bottom: 0.75rem; }
.summary-emoji { font-size: 22px; letter-spacing: 6px; margin-bottom: 1rem; }

.share-actions { display: flex; gap: 0.625rem; justify-content: center; flex-wrap: wrap; }

.btn-share, .btn-copy {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 0.8125rem 1.125rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border-strong);
  transition: opacity 0.15s;
}
.btn-share { background: var(--text-primary); color: var(--surface-1); border-color: var(--text-primary); }
.btn-copy { background: var(--surface-2); color: var(--text-primary); }
.btn-share:hover, .btn-copy:hover { opacity: 0.85; }

.copy-toast {
  margin-top: 0.75rem;
  font-size: 12px;
  color: var(--text-muted);
  visibility: hidden;
}
.copy-toast.show { visibility: visible; }

.status-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
