/* Dead Reference — Slow AI brand styles */

/* ── Reset & Base ──────────────────────────────────────────── */

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: #F5F0E8;
  color: #5C5C5C;
  line-height: 1.6;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

/* ── Screens ───────────────────────────────────────────────── */

.screen {
  display: none;
  opacity: 0;
  transition: opacity 300ms ease;
  width: 100%;
  padding: 1rem 1.5rem;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.screen.active {
  display: block;
}

.screen.visible {
  opacity: 1;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 1rem;
}

/* ── Typography ────────────────────────────────────────────── */

h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.5rem;
  color: #2A6B6B;
  margin-bottom: 0.25rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6rem;
  color: #2A6B6B;
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 0.95rem;
  color: #7A9B7A;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.intro {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  color: #3D3D3D;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.intro-emphasis {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  color: #2A6B6B;
  font-style: italic;
  margin-bottom: 2.5rem;
}

/* ── Succulent ─────────────────────────────────────────────── */

.icon {
  margin-bottom: 1.5rem;
}

.icon svg {
  display: inline-block;
}

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 200ms ease, transform 100ms ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #2A6B6B;
  color: #F5F0E8;
}

.btn-primary:hover {
  background: #235959;
}

.btn-secondary {
  background: transparent;
  color: #2A6B6B;
  border: 1.5px solid #2A6B6B;
}

.btn-secondary:hover {
  background: rgba(42, 107, 107, 0.08);
}

.btn-guess {
  background: #F5F0E8;
  color: #3D3D3D;
  border: 2px solid #2A6B6B;
  padding: 0.85rem 2.5rem;
  font-size: 1.05rem;
  min-width: 140px;
}

.btn-guess:hover {
  background: #2A6B6B;
  color: #F5F0E8;
}

.guess-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ── Progress Bar ──────────────────────────────────────────── */

.progress-bar {
  margin-bottom: 1rem;
}

#progress-text,
#reveal-progress-text {
  font-size: 0.85rem;
  color: #5C5C5C;
  display: block;
  margin-bottom: 0.4rem;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(42, 107, 107, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #2A6B6B;
  border-radius: 2px;
  transition: width 300ms ease;
  width: 0%;
}

/* ── Citation Display ──────────────────────────────────────── */

.citation-display {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #3D3D3D;
  border-left: 3px solid #C17B4A;
  padding: 0.75rem 1.25rem;
  margin: 0 auto 0.75rem;
  text-align: left;
  background: rgba(193, 123, 74, 0.04);
  max-width: 560px;
}

.citation-small {
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.5rem 1rem;
}

/* ── Reveal Screen ─────────────────────────────────────────── */

.reveal-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0.5rem 0 0.5rem;
}

.reveal-badge.correct {
  background: rgba(122, 155, 122, 0.15);
  color: #5A7A5A;
}

.reveal-badge.incorrect {
  background: rgba(193, 123, 74, 0.15);
  color: #A0623A;
}

.verdict {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  color: #2A6B6B;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.reflection-box {
  background: rgba(42, 107, 107, 0.06);
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
  margin: 0.5rem auto;
  max-width: 560px;
  text-align: left;
}

.reflection {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3D3D3D;
}

/* ── Results Screen ────────────────────────────────────────── */

.results-score {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.results-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.results-title-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  color: #C17B4A;
  font-style: italic;
}

.results-title svg {
  flex-shrink: 0;
}

.results-reflection {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3D3D3D;
  max-width: 520px;
  margin: 0 auto 0.75rem;
  text-align: left;
}

.share-box {
  background: rgba(42, 107, 107, 0.06);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  margin: 0 auto 0.5rem;
  max-width: 320px;
}

.share-label {
  font-size: 0.8rem;
  color: #5C5C5C;
  margin-bottom: 0.4rem;
}

.share-text-hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

#share-canvas {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

#screen-results .btn-primary {
  margin-bottom: 0.35rem;
}

#btn-replay {
  margin-bottom: 0;
}

/* ── Footer ────────────────────────────────────────────────── */

.brand-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(42, 107, 107, 0.12);
}

.brand-footer a {
  font-size: 0.85rem;
  color: #2A6B6B;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-footer a:hover {
  text-decoration: underline;
}

/* ── Review List ───────────────────────────────────────────── */

.review-heading {
  margin-top: 0;
  margin-bottom: 1rem;
}

.review-item {
  text-align: left;
  border: 1px solid rgba(42, 107, 107, 0.15);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.review-item-citation {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #3D3D3D;
  border-left: 3px solid #C17B4A;
  padding: 0.5rem 1rem;
  background: rgba(193, 123, 74, 0.04);
  margin-bottom: 0.5rem;
}

.review-item-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.review-item-badge.correct {
  background: rgba(122, 155, 122, 0.15);
  color: #5A7A5A;
}

.review-item-badge.incorrect {
  background: rgba(193, 123, 74, 0.15);
  color: #A0623A;
}

.review-item-verdict {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  color: #2A6B6B;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.review-item-reflection {
  background: rgba(42, 107, 107, 0.06);
  border-radius: 4px;
  padding: 0.6rem 1rem;
}

.review-item-reflection p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #3D3D3D;
}

/* ── What Next ─────────────────────────────────────────────── */

.what-next {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(42, 107, 107, 0.12);
  text-align: left;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.what-next h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  color: #2A6B6B;
  font-weight: normal;
  margin-bottom: 1rem;
  text-align: center;
}

.what-next-item {
  margin-bottom: 1.25rem;
}

.what-next-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3D3D3D;
  margin-bottom: 0.5rem;
}

.what-next-item .btn {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 480px) {
  .screen {
    padding: 0.75rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .tagline {
    margin-bottom: 1.25rem;
  }

  .icon {
    margin-bottom: 1rem;
  }

  .intro-emphasis {
    margin-bottom: 1.5rem;
  }

  .citation-display {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }

  .citation-small {
    font-size: 0.8rem;
  }

  .guess-buttons {
    flex-direction: row;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .btn-guess {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    min-width: 110px;
  }

  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
  }

  .reveal-badge {
    margin: 0.4rem 0 0.5rem;
  }

  .reflection-box {
    padding: 0.6rem 1rem;
    margin: 0.5rem auto;
  }

  .reflection {
    font-size: 0.85rem;
    line-height: 1.55;
  }

  .brand-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .results-reflection {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 auto 1rem;
  }

  #share-canvas {
    display: none;
  }

  .share-label {
    display: none;
  }

  .share-box {
    padding: 0.75rem 1rem;
    margin: 0 auto 1rem;
  }

  #screen-results .btn-primary {
    margin-bottom: 0.75rem;
  }

  #btn-replay {
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .review-item {
    padding: 0.75rem 1rem;
  }

  .review-item-citation {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }

  .review-item-reflection p {
    font-size: 0.8rem;
  }
}

/* ── Accessibility ─────────────────────────────────────────── */

.btn:focus-visible {
  outline: 2px solid #C17B4A;
  outline-offset: 2px;
}

.citation-display:focus-visible {
  outline: 2px solid #C17B4A;
  outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .screen {
    transition: none;
  }

  .progress-fill {
    transition: none;
  }

  .btn {
    transition: none;
  }
}
