/* screens.css — title screen, new-game form, how to play, ending, Hall of Fame. */

/* ── Title ─────────────────────────────────────────────────────────────── */
.screen--title {
  padding-top: clamp(16px, 6vh, 64px);
}
.title-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
}
.title-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 2px solid var(--rule);
  background: rgba(255, 255, 255, 0.35);
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.paper-form,
.howto,
.hall {
  max-width: 860px;
  margin: 0 auto;
}
.newgame-form {
  display: grid;
  gap: 22px;
  margin-top: 16px;
}
.field {
  display: grid;
  gap: 8px;
}
.field-label {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.15rem;
}
.field-hint {
  font-family: var(--font-type);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.field input[type="text"] {
  max-width: 360px;
  padding: 10px 12px;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
}
.field input[type="text"]:focus {
  outline: none;
  background: rgba(244, 211, 107, 0.25);
}
.radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--paper-edge);
  border-radius: var(--radius);
  cursor: pointer;
}
.radio:has(input:checked) {
  border-color: var(--ink);
  background: rgba(244, 211, 107, 0.25);
}
.radio input {
  margin-top: 5px;
  accent-color: var(--stamp-red);
  width: 18px;
  height: 18px;
}

/* ── How to play ───────────────────────────────────────────────────────── */
.howto-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
}
.howto-steps {
  display: grid;
  gap: 10px;
  padding-left: 1.4em;
}
.howto-steps li::marker {
  font-family: var(--font-headline);
  font-weight: 900;
}
.howto-cast .section-title {
  margin-top: 0;
}
.cast-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}
.cast-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 6px;
}
.cast-icon {
  grid-row: span 2;
  font-size: 1.3rem;
}
.signoff {
  margin-top: 20px;
  font-family: var(--font-hand);
  font-size: 1.4rem;
}

/* ── Ending ────────────────────────────────────────────────────────────── */
.ending-body {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.ending-body .lede {
  text-align: left;
  font-size: 1.1rem;
}
.ending-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin: 14px 0 22px;
}
.ending-icon {
  font-size: 3rem;
  line-height: 1;
}
.ending-title {
  font-family: var(--font-type);
  font-size: 1.1rem;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  background: var(--highlight);
}
.stamp--new {
  font-size: 0.9rem;
  color: var(--stamp-red);
  transform: rotate(-6deg);
}
.final-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0 6px;
}
.final-stat {
  display: grid;
  gap: 2px;
  padding: 12px 8px;
  border: 2px solid var(--rule);
  background: rgba(255, 255, 255, 0.35);
}
.final-stat-icon {
  font-size: 1.4rem;
}
.final-stat-value {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
}
.final-stat-label {
  font-family: var(--font-type);
  font-size: 0.8rem;
}
.ending-highlights ul {
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: left;
}
.ending-highlights li {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--ink-faint);
}
.moment-day {
  display: inline-block;
  margin-right: 6px;
  font-family: var(--font-type);
  font-weight: normal;
  font-size: 0.78rem;
  color: var(--stamp-red);
}
.ending .form-actions {
  justify-content: center;
}

/* ── Hall of Fame ──────────────────────────────────────────────────────── */
.hof-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 18px;
}
.hof-card {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: 18px 14px;
  background: #fbf5e4 var(--paper-texture);
  border: 6px solid #6b4a2f; /* picture frame */
  outline: 2px solid #3b2a1e;
  box-shadow: var(--shadow-paper);
  transform: rotate(var(--tilt, 0deg));
}
.hof-icon {
  font-size: 2.4rem;
  line-height: 1;
}
.hof-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1.15;
}
.hof-meta,
.hof-hint {
  font-family: var(--font-type);
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.hof-card.is-locked {
  background: var(--paper-2);
  border-color: #8b7a63;
  filter: grayscale(0.6);
}
.hof-card.is-locked .hof-title {
  color: var(--ink-faint);
}

@media (max-width: 760px) {
  .title-body,
  .howto-columns {
    grid-template-columns: 1fr;
  }
  .final-stats {
    gap: 8px;
  }
  .final-stat-value {
    font-size: 1.6rem;
  }
}
