/* ============================================================
   Meanwhile — Warm Gazette design system
   Generated 2026-04-17
   ============================================================ */

:root {
  /* Paper + ink */
  --paper: #F7F2E9;
  --ink: #1F1A16;
  --ink-mute: #6B6258;
  --ink-faint: #9E958A;

  /* Pop (vermilion, tuned for accessibility) */
  --pop-ink: #C82E0E;
  --pop-display: #FF5A2E;
  --pop-display-soft: #FFE8DF;
  --pop-ink-pressed: #8B1D07;

  /* Secondary */
  --sage: #7A8C6A;
  --gold: #C89B4B;

  /* Structure */
  --rule: rgba(31, 26, 22, 0.10);
  --rule-strong: rgba(31, 26, 22, 0.22);
  --card: #FFFBF2;
  --inset: #EDE6D8;
  --shadow-edge: rgba(31, 26, 22, 0.14);

  /* Result state */
  --correct-bg: #E8EDDE;
  --correct-border: #7A8C6A;
  --correct-ink: #3F4A30;
  --close-bg: #F5E9CE;
  --close-border: #C89B4B;
  --close-ink: #5A441C;
  --far-bg: #EDE6D8;
  --far-border: #9E958A;
  --far-ink: #4A443C;

  /* Elevation */
  --depth-card: 0 3px 0 var(--shadow-edge);
  --depth-chip: 0 2px 0 rgba(0, 0, 0, 0.14);
  --depth-chip-light: 0 2px 0 var(--shadow-edge);
  --depth-btn-primary: 0 3px 0 var(--pop-ink-pressed);
  --depth-float: 0 14px 48px rgba(0, 0, 0, 0.10);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: 'tnum', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
ul, ol { list-style: none; margin: 0; padding: 0; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
a { color: var(--pop-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }

/* Wrapper */
.wrap {
  position: relative;
  width: calc(100% - 40px);
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 0 40px;
}
@media (min-width: 640px) {
  .wrap {
    width: min(500px, 100vw - 48px);
    padding: 32px 0 56px;
  }
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--pop-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* ============================================================
   Shared primitives
   ============================================================ */

/* Issue line (header eyebrow) */
.issue-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}
.issue-line a { color: var(--ink-mute); }
.issue-line .streak-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pop-ink);
}
.issue-line .streak-inline .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pop-ink);
}

/* Buttons */
.btn-primary,
.btn-ghost {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease, background 100ms ease;
}
.btn-primary {
  background: var(--pop-ink);
  color: #fff;
  border: none;
  box-shadow: var(--depth-btn-primary);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--pop-ink-pressed);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule-strong);
}
.btn-ghost:hover { background: var(--inset); }
.btn-ghost:active { transform: scale(0.98); }
.btn-primary[disabled],
.btn-ghost[disabled] { opacity: 0.4; pointer-events: none; }

/* Chronology anchor */
.anchor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--pop-ink);
  letter-spacing: -0.005em;
  margin: 16px 2px 10px;
}
.anchor.bottom { margin: 12px 2px 18px; }
.anchor .arrow {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 15px;
  width: 18px;
  line-height: 1;
  display: inline-flex;
  justify-content: center;
}
.anchor .label-sub {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: 6px;
}

/* Progress bar */
.progress {
  height: 6px;
  background: var(--inset);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  margin-top: 12px;
}
.progress .fill {
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--pop-display);
  border-radius: 999px;
  transition: right 200ms ease;
}

/* Instruction card (play page hint) */
.instruction {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--pop-display-soft);
  border-radius: 10px;
  border: 1px solid rgba(200, 46, 14, 0.12);
  margin-top: 12px;
}
.instruction .icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pop-ink);
}
.instruction .icon svg { width: 20px; height: 20px; }
.instruction .msg {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.instruction .msg strong {
  font-weight: 600;
  color: var(--pop-ink);
}
/* ============================================================
   Wordmark
   ============================================================ */

.wordmark {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.wordmark em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--pop-ink);
}
.wordmark .period { color: var(--pop-ink); }
@media (min-width: 640px) {
  .wordmark { font-size: 44px; }
}

/* ============================================================
   Landing page
   ============================================================ */

.landing {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Fan teaser */
.fan {
  position: relative;
  height: 120px;
  margin: 4px 0;
}
.fan .peek {
  position: absolute;
  width: 66%;
  height: 72px;
  top: 26px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  opacity: 0.7;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.fan .peek.left { left: 0; transform: rotate(-5deg); }
.fan .peek.right { right: 0; transform: rotate(5deg); }
.fan .peek .blurcol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.fan .peek .blurline {
  width: 100%; height: 8px;
  background: var(--ink-mute);
  opacity: 0.35;
  border-radius: 2px;
  filter: blur(1.8px);
}
.fan .peek .blurline.short { width: 60%; opacity: 0.25; }
.fan .main {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 86%;
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  padding: 18px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}
.fan .main .slot {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  color: var(--pop-ink);
}
.fan .main .title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.fan .main .tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

/* Today's chapter */
.chapter-block .eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 8px;
}
.chapter-block .theme {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.chapter-block .theme .hi {
  font-style: normal;
  font-weight: 600;
  color: var(--pop-ink);
}

/* Recently played */
.recent-wrap {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.recent-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
}
.recent-head a {
  color: var(--pop-ink);
  font-weight: 700;
}
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}
.recent-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  background: var(--inset);
  border-radius: 8px;
  font-size: 12px;
}
.recent-item .rnum {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--pop-ink);
}
.recent-item .rtitle {
  color: var(--ink);
  font-weight: 500;
}
.recent-item .rscore {
  font-size: 11px;
  font-weight: 700;
  color: var(--sage);
}
.back-tomorrow {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
  margin: 4px 0 0;
  letter-spacing: -0.005em;
}
/* ============================================================
   Play page
   ============================================================ */

.play-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}

/* Card */
.cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.card {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--rule-strong);
  border-left: 4px solid var(--pop-ink);
  border-radius: 14px;
  padding: 14px 14px 15px 14px;
  display: grid;
  grid-template-columns: 48px 1fr 14px;
  gap: 14px;
  align-items: center;
  box-shadow: var(--depth-card);
  transition: transform 80ms ease, box-shadow 80ms ease;
  list-style: none;
}
.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--shadow-edge);
}
.card.dragging {
  transform: rotate(1.5deg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  cursor: grabbing;
}
.card.ghost { opacity: 0.3; }

/* Slot chip — chronology gradient via data-slot */
.slot-chip {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  box-shadow: var(--depth-chip);
}
.card[data-slot="1"] .slot-chip {
  background: #FFFFFF;
  color: var(--pop-ink);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--depth-chip-light);
}
.card[data-slot="2"] .slot-chip { background: #FCE4CF; color: var(--pop-ink); }
.card[data-slot="3"] .slot-chip { background: #F9C9AA; color: var(--pop-ink); }
.card[data-slot="4"] .slot-chip { background: #F6AE85; color: var(--pop-ink); }
.card[data-slot="5"] .slot-chip { background: #E04B1F; color: #fff; }
.card[data-slot="6"] .slot-chip { background: var(--pop-ink); color: #fff; }

/* Body */
.card .body .title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.card .body .desc {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 3px;
  line-height: 1.45;
}

/* Grip (6-dot pattern) */
.card .grip {
  display: grid;
  grid-template-columns: 4px 4px;
  grid-template-rows: 4px 4px 4px;
  gap: 3px;
  opacity: 0.35;
  align-self: center;
  cursor: grab;
}
.card .grip span {
  background: var(--ink);
  border-radius: 50%;
  width: 4px;
  height: 4px;
}

/* Lock button (extends .btn-primary) */
.lock-in {
  margin-top: 8px;
}
/* ============================================================
   Reveal page — score summary + revealed cards
   ============================================================ */

.score {
  text-align: center;
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
}
.score .headline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}
.score .headline .hi {
  color: var(--pop-ink);
}
.score .grid-emoji {
  font-size: 22px;
  letter-spacing: 0.12em;
  margin: 14px 0 12px;
  line-height: 1;
}
.score .meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.score .streak-flourish {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--pop-ink);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 6px;
}

/* Perfect-score pulse (disabled under reduced-motion) */
.score.perfect .headline {
  animation: ochre-pulse 2s ease 0s 2;
}
@keyframes ochre-pulse {
  0%, 100% { text-shadow: 0 0 0 rgba(255,90,46,0); }
  50%      { text-shadow: 0 0 24px rgba(255,90,46,0.35); }
}

/* Revealed card — extends .card */
.card.revealed {
  grid-template-columns: 44px 44px 1fr auto;
  padding: 12px 14px 13px 14px;
}
.card.revealed .slot-chip {
  width: 44px; height: 44px; border-radius: 12px;
  font-size: 24px;
}
.card.revealed .thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--inset);
  border: 1px solid var(--rule);
}
.card.revealed .body .title { font-size: 13px; }
.card.revealed .body .desc { font-size: 11px; }
.card.revealed .year {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  color: var(--year-ink, var(--ink));
  text-align: right;
  padding-left: 4px;
}
.card.revealed.correct {
  background: var(--correct-bg);
  border-left-color: var(--correct-border);
  --year-ink: var(--correct-ink);
}
.card.revealed.close {
  background: var(--close-bg);
  border-left-color: var(--close-border);
  --year-ink: var(--close-ink);
}
.card.revealed.far {
  background: var(--far-bg);
  border-left-color: var(--far-border);
  --year-ink: var(--far-ink);
}
.card.revealed .grip {
  display: none !important;
}
.card.revealed:hover {
  transform: none !important;
  box-shadow: var(--depth-card);
}
/* ============================================================
   Reveal — shock section (T1 axis with callouts)
   ============================================================ */

.shock {
  background: var(--card);
  border-radius: 16px;
  padding: 26px 22px 22px;
  margin: 8px 0 26px;
  border: 1px solid var(--rule-strong);
  box-shadow: var(--depth-card);
}
.shock .eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pop-ink);
  font-weight: 700;
  margin-bottom: 12px;
}
.shock .headline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.shock .headline em {
  font-weight: 500;
  color: var(--pop-ink);
  font-style: italic;
}

.shock-viz {
  position: relative;
  height: 150px;
  padding: 28px 0 36px;
  margin-top: 8px;
}
.shock-viz .year-caption {
  position: absolute;
  top: 0; left: 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
}
.shock-viz .year-num {
  position: absolute;
  top: 0; right: 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
}
.shock-viz .axis {
  position: absolute;
  left: 0; right: 0; top: 82px;
  height: 2px;
  background: var(--ink);
}
.shock-viz .mo-tick {
  position: absolute;
  top: 80px;
  width: 1px; height: 6px;
  background: var(--ink);
  transform: translateX(-50%);
}
.shock-viz .mo-lbl {
  position: absolute;
  top: 92px;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  font-weight: 600;
  transform: translateX(-50%);
}
.shock-viz .event-stem {
  position: absolute;
  top: 62px;
  width: 1px; height: 20px;
  background: var(--ink-mute);
  transform: translateX(-50%);
}
.shock-viz .event-dot {
  position: absolute;
  top: 76px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--pop-ink);
  box-shadow: 0 0 0 3px var(--card);
  transform: translateX(-50%);
  z-index: 2;
}
.shock-viz .event-callout {
  position: absolute;
  top: 24px;
  width: 120px;
  transform: translateX(-50%);
  text-align: center;
  font-size: 10px;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 600;
}
.shock-viz .event-callout .title {
  display: block;
  color: var(--pop-ink);
  font-weight: 700;
}
.shock-viz .event-callout .date {
  display: block;
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}
.shock-viz .gap-bracket {
  position: absolute;
  top: 110px;
  height: 12px;
  border-left: 1.5px solid var(--pop-ink);
  border-right: 1.5px solid var(--pop-ink);
  border-top: 1.5px solid var(--pop-ink);
}
.shock-viz .gap-label {
  position: absolute;
  top: 126px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 12px;
  color: var(--pop-ink);
  transform: translateX(-50%);
  white-space: nowrap;
}
/* ============================================================
   Reveal — DYK card + actions + countdown
   ============================================================ */

.dyk {
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px 14px;
  border: 1px solid var(--rule-strong);
  box-shadow: 0 2px 0 var(--shadow-edge);
  margin-bottom: 24px;
}
.dyk .head-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 10px;
}
.dyk .eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pop-ink);
  font-weight: 700;
  margin: 0;
}
.dyk .puzzle-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--ink-mute);
}
.dyk .body {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}
.dyk .body em {
  font-style: italic;
  font-weight: 500;
  color: var(--pop-ink);
}

/* Actions */
.reveal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .reveal-actions {
    flex-direction: row;
    gap: 12px;
  }
  .reveal-actions > * { flex: 1; }
}

/* Countdown */
.countdown {
  text-align: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 16px;
}
.countdown strong {
  color: var(--pop-ink);
  font-weight: 500;
}

/* Reveal staged entrance (disabled under reduced-motion) */
.reveal-stage {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal-rise 500ms ease forwards;
}
.reveal-stage.d1 { animation-delay: 900ms; }
.reveal-stage.d2 { animation-delay: 1400ms; }
.reveal-stage.d3 { animation-delay: 1800ms; }
@keyframes reveal-rise {
  to { opacity: 1; transform: translateY(0); }
}
/* ============================================================
   Archive page
   ============================================================ */

.arc-head {
  margin-bottom: 18px;
}
.arc-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.arc-title .hi { color: var(--pop-ink); }
.arc-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-top: 8px;
}
.arc-sub strong {
  color: var(--pop-ink);
  font-weight: 700;
}

.arc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 22px;
}
.arc-stats .stat {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
}
.arc-stats .stat .val {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--pop-ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.arc-stats .stat .lbl {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
  margin-top: 6px;
}

.arc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.arc-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
  text-decoration: none;
  color: inherit;
}
.arc-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 0 var(--shadow-edge);
}
.arc-row .num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  background: var(--inset);
  color: var(--pop-ink);
}
.arc-row .body .theme {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.arc-row .body .date {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-top: 3px;
}
.arc-row .score {
  padding: 4px 9px;
  border-radius: 999px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.arc-row .score.s-perfect {
  background: var(--correct-bg);
  color: var(--correct-ink);
}
.arc-row .score.s-close {
  background: var(--close-bg);
  color: var(--close-ink);
}
.arc-row .score.s-new {
  background: var(--pop-ink);
  color: #fff;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  padding: 4px 10px;
}
.arc-row.today {
  border: 1.5px solid var(--pop-ink);
  box-shadow: 0 2px 0 var(--shadow-edge);
}
.arc-row.today .num {
  background: var(--pop-ink);
  color: #fff;
}
/* ============================================================
   Share card (used for html2canvas rasterization + preview)
   ============================================================ */

.share-card {
  background: var(--paper);
  border: 1.5px solid var(--rule-strong);
  border-radius: 16px;
  padding: 28px 26px 24px;
  box-shadow: var(--depth-float);
  color: var(--ink);
  width: 360px;
}
.share-card .wm {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 2px;
}
.share-card .wm em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--pop-ink);
  letter-spacing: -0.02em;
}
.share-card .wm .period { color: var(--pop-ink); }
.share-card .subwm {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 22px;
}
.share-card .big-score {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 46px;
  line-height: 1;
  color: var(--pop-ink);
  letter-spacing: -0.02em;
}
.share-card .big-score .slash {
  color: var(--ink-faint);
  font-weight: 400;
}
.share-card .score-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-top: 8px;
}
.share-card .grid-emoji {
  font-size: 28px;
  letter-spacing: 0.14em;
  margin: 18px 0 4px;
  line-height: 1;
}
.share-card .cta {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}
.share-card .cta strong {
  color: var(--pop-ink);
  font-weight: 700;
}

/* Offscreen render host (shown to html2canvas but not the user) */
.share-host {
  position: fixed;
  left: -10000px;
  top: 0;
  pointer-events: none;
}
/* ============================================================
   Responsive overrides
   ============================================================ */

@media (max-width: 480px) {
  .card { padding: 12px 12px 13px 12px; gap: 12px; grid-template-columns: 44px 1fr 14px; }
  .slot-chip { width: 44px; height: 44px; font-size: 24px; border-radius: 12px; }
  .card.revealed { grid-template-columns: 40px 40px 1fr auto; }
  .card.revealed .slot-chip { width: 40px; height: 40px; font-size: 22px; border-radius: 10px; }
  .card.revealed .thumb { width: 40px; height: 40px; border-radius: 7px; }
  .card.revealed .year { font-size: 20px; }
  .wordmark { font-size: 36px; }
  .score .headline { font-size: 30px; }
  .shock { padding: 22px 18px 20px; }
  .shock .headline { font-size: 20px; }
  .shock-viz { height: 140px; }
}

@media (min-width: 1024px) {
  .wrap { max-width: 520px; }
  .wrap.landing-wrap::before {
    content: '∽';
    position: absolute;
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--pop-ink);
    opacity: 0.35;
    font-size: 24px;
    left: calc(50% - 360px);
    top: 120px;
  }
  .wrap.landing-wrap::after {
    content: '∽';
    position: absolute;
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--pop-ink);
    opacity: 0.35;
    font-size: 24px;
    right: calc(50% - 360px);
    top: 180px;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-stage {
    opacity: 1 !important;
    transform: none !important;
  }
  .score.perfect .headline { animation: none !important; }
}

/* Print (light cleanup for accidental print) */
@media print {
  .btn-primary, .btn-ghost, .grip, .progress { display: none !important; }
  body { background: #fff; color: #000; }
}
