body.history-images {
  color-scheme: light;
  --gt-page: #f8f4ed;
  --gt-surface: #ffffff;
  --gt-raised: #efe8dd;
  --gt-text: #17212b;
  --gt-muted: #65717c;
  --gt-border: #d7cec1;
  --gt-accent: #2563eb;
  --gt-success: #198754;
  --gt-danger: #b42318;
}

.history-images,
.history-images * { box-sizing: border-box; }

body.history-images {
  min-height: 100vh;
  margin: 0;
  background: var(--gt-page);
  color: var(--gt-text);
  font-family: "Nunito", sans-serif;
}

body.history-images {
  min-height: 100vh;
  padding: 28px 16px 80px;
}

body.history-images.history-images-dark {
  --gt-page: #15202b;
  --gt-surface: #1e2d3d;
  --gt-raised: #27394a;
  --gt-text: #f8fafc;
  --gt-muted: #b6c2cd;
  --gt-border: #3b4e60;
  --gt-accent: #72a6ff;
  --gt-success: #54d18b;
  --gt-danger: #ff8c82;
}

.history-images .history-images__board {
  width: min(100%, 560px);
  margin: 0 auto;
}

.history-images .history-images__header,
.history-images .settings-header,
.history-images .setting-row {
  display: flex;
  align-items: center;
}

.history-images .history-images__header { justify-content: center; text-align: center; }
.history-images .history-images__header h1 { margin: 0; font-size: 30px; }
.history-images .history-images__title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.history-images .interactive-logo {
  height: 29px;
  width: auto;
  flex-shrink: 0;
}

.history-images .settings-toggle,
.history-images .close-button {
  border: 0;
  background: var(--gt-surface);
  color: var(--gt-text);
  cursor: pointer;
}

.history-images .history-images__challenge {
  padding: 20px;
  border: 1px solid var(--gt-border);
  border-radius: 8px;
  background: var(--gt-surface);
  text-align: center;
}

.history-images .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 4px;
  color: var(--gt-text);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  transition: opacity .2s ease;
}

.history-images .history-images__photo-frame {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--gt-border);
  border-radius: 8px;
  background: var(--gt-raised);
  aspect-ratio: 4 / 3;
}
.history-images .history-images__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  transition: transform .15s ease;
  -webkit-user-drag: none;
  user-select: none;
}
.history-images .history-images__photo.is-portrait {
  object-position: top;
}
.history-images .history-images__photo.is-zoomed { cursor: grab; }
.history-images .history-images__photo.is-panning { cursor: grabbing; transition: none; }
.history-images .history-images__timer,
.history-images .history-images__meta {
  position: absolute;
  top: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgb(0 0 0 / 55%);
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.history-images .history-images__timer { right: 8px; }
.history-images .history-images__meta { left: 8px; }
.history-images .history-images__meta strong { font-weight: 900; }

.history-images .history-images__zoom-controls {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgb(0 0 0 / 55%);
}
.history-images .history-images__zoom-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.history-images .history-images__zoom-controls button:hover { background: rgb(255 255 255 / 22%); }

.history-images .settings-action {
  height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--gt-accent);
  color: #fff;
  font: 800 .8rem "Nunito", sans-serif;
  cursor: pointer;
}

/* Guess timeline — speech-bubble flag callouts over a pill track. */
.history-images .history-images__timeline-section {
  width: 100%;
  margin-top: 0;
  padding: 0;
}

/* Latest guess banner: [avatar + name pill] [year box].
   Always reserves the same box (even when [hidden]) so its appearance
   never changes the timeline section's height. */
.history-images .history-images__latest-guess {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 5px; margin: 0 0 6px; min-height: 31px;
}
.history-images .history-images__latest-guess[hidden] {
  display: flex; visibility: hidden;
}
.history-images .latest-guess-user {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  padding: 2px 8px 2px 3px;
  border: 1px solid var(--gt-border); border-radius: 8px;
  background: var(--gt-raised);
}
.history-images .latest-guess-photo {
  width: 23px; height: 23px; border-radius: 6px; object-fit: cover;
  background: var(--gt-surface); flex-shrink: 0;
}
.history-images .latest-guess-name {
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .9rem; font-weight: 700; line-height: 1.25; color: var(--gt-text);
}
.history-images .latest-guess-year {
  padding: 2px 10px; border: 1.5px solid var(--gt-border); border-radius: 8px;
  font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.3;
  color: var(--gt-text);
}

/* Rail: flags, track, ruler, axis labels — all in normal flow so the
   section's own height always contains them. */
.history-images .history-images__timeline { position: relative; width: 100%; cursor: pointer; }

.history-images .history-images__flags {
  position: relative; z-index: 1; isolation: isolate;
  min-height: 84px;
}
.history-images .timeline-flag {
  position: absolute; bottom: 0; width: 56px; transform: translateX(-50%);
}
.history-images .timeline-flag-card {
  position: relative; padding: 4px;
  border: 1px solid var(--gt-border); border-radius: 8px;
  background: var(--gt-raised);
}
.history-images .timeline-flag-card::before,
.history-images .timeline-flag-card::after {
  content: ""; position: absolute; left: 50%; width: 0; height: 0;
}
.history-images .timeline-flag-card::before {
  top: 100%; margin-left: -6px;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 6px solid var(--gt-border);
}
.history-images .timeline-flag-card::after {
  top: calc(100% - 1px); margin-left: -5px;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 5px solid var(--gt-raised);
}
.history-images .timeline-flag-name {
  margin: 0 0 3px; text-align: center;
  font-size: 10px; line-height: 12px; font-weight: 600; color: var(--gt-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history-images .timeline-flag-photo {
  display: block; width: 36px; height: 36px; border-radius: 6px;
  margin-inline: auto; object-fit: cover; background: var(--gt-surface);
}
.history-images .timeline-flag-year {
  margin: 3px 0 0; text-align: center;
  font-size: 10.5px; line-height: 13px; font-weight: 800; color: var(--gt-muted);
}

.history-images .timeline-flag.is-current .timeline-flag-card { border-color: var(--gt-accent); }
.history-images .timeline-flag.is-current .timeline-flag-card::before { border-top-color: var(--gt-accent); }
.history-images .timeline-flag.is-current .timeline-flag-name,
.history-images .timeline-flag.is-current .timeline-flag-year { color: var(--gt-text); }

.history-images .timeline-flag.is-correct .timeline-flag-card,
.history-images .timeline-flag.is-round-winner .timeline-flag-card {
  border-color: var(--gt-success); box-shadow: 0 0 0 2px var(--gt-success);
}
.history-images .timeline-flag.is-correct .timeline-flag-card::before,
.history-images .timeline-flag.is-round-winner .timeline-flag-card::before {
  border-top-color: var(--gt-success);
}
.history-images .timeline-flag.is-round-winner .timeline-flag-name,
.history-images .timeline-flag.is-round-winner .timeline-flag-year { color: var(--gt-text); }

.history-images .timeline-flag-overflow {
  position: absolute; top: -6px; right: -6px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px;
  background: var(--gt-danger); color: #fff; font-size: 9.5px; font-weight: 800;
}

.history-images .history-images__track-wrap { position: relative; z-index: 2; }
.history-images .timeline-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid var(--gt-border);
  border-radius: 8px;
  background: var(--gt-raised);
  color: var(--gt-text);
  cursor: pointer;
  box-shadow: 0 3px 9px rgb(0 0 0 / 28%);
  transition: transform .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.history-images .timeline-nav:hover,
.history-images .timeline-nav:focus-visible {
  border-color: var(--gt-accent);
  color: var(--gt-accent);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 12px rgb(0 0 0 / 35%);
}
.history-images .timeline-nav:active { transform: translateY(-50%) scale(.96); }
.history-images .timeline-nav svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.history-images .timeline-nav--back { left: -16px; }
.history-images .timeline-nav--forward { right: -16px; }
.history-images .history-images__timeline-track {
  height: 16px; border-radius: 8px;
  background: var(--gt-raised); border: 1px solid var(--gt-border);
}
.history-images .history-images__timeline:hover .history-images__timeline-track { border-color: var(--gt-accent); }
.history-images .timeline-current-pos {
  position: absolute; left: 0; top: -3px; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--gt-accent); border: 3px solid var(--gt-surface);
}
.history-images .history-images__timeline-answer {
  position: absolute; left: 0; top: -7px; transform: translateX(-50%); z-index: 3;
  width: 3px; height: 30px; border-radius: 2px; background: var(--gt-success);
}
.history-images .history-images__timeline-answer .timeline-answer-label {
  position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  padding: 1px 5px; border: 1px solid var(--gt-success); border-radius: 5px;
  background: var(--gt-surface); color: var(--gt-success);
  font-size: 10.5px; font-weight: 900; white-space: nowrap;
}

.history-images .history-images__timeline-ruler {
  height: 8px; margin-top: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--gt-border) 0 1px,
    transparent 1px var(--timeline-tick-step, 1.6%)
  );
}

.history-images .history-images__timeline-axis-labels { position: relative; height: 20px; margin-top: 2px; }
.history-images .timeline-axis-label {
  position: absolute; left: 0; top: 3px; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; color: var(--gt-muted); white-space: nowrap;
}
.history-images .timeline-axis-label.is-major {
  top: 0; font-size: 14px; font-weight: 800; color: var(--gt-text);
}
.history-images .timeline-axis-label.is-current-label {
  top: 0; z-index: 2; font-size: 14px; font-weight: 900; color: var(--gt-accent);
}
.history-images .timeline-axis-label.is-suppressed { visibility: hidden; }

@media (max-width: 420px) {
  .history-images .history-images__header { padding-right: 52px; }
  .history-images .history-images__header h1 { font-size: 22px; }
  .history-images .interactive-logo { height: 25px; }
  .history-images .history-images__timeline-section { padding: 0; }
  .history-images .latest-guess-name { max-width: 100px; }
  .history-images .timeline-axis-label:not(.is-major):not(.is-current-label) { display: none; }
}

.history-images .winning-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  visibility: hidden;
  background: rgb(0 0 0 / 72%);
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}
.history-images .winning-overlay.show { visibility: visible; opacity: 1; }
.history-images .winning-modal {
  margin-top: 15vh;
  width: min(92vw, 380px);
  background: #2c2c2c;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 40px rgb(0 0 0 / 30%);
  transform: scale(.92);
  transition: transform .3s ease;
}
.history-images .winning-overlay.show .winning-modal { transform: scale(1); }
.history-images .winning-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.history-images .single-winner { display: flex; flex-direction: column; align-items: center; }
.history-images .winner-photo {
  width: 56%;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 8px 16px rgb(0 0 0 / 20%);
  object-fit: cover;
  margin-bottom: 4px;
}
.history-images .winning-answer { margin-top: 8px; color: #80e8a8; font-size: 1.15rem; font-weight: 900; }
.history-images .winning-site {
  color: #f7be57;
  background-color: #6b6562;
  font-size: 16px;
  font-weight: 600;
  opacity: .9;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 5px;
  margin: 8px auto 2px;
}
.history-images .multiple-winners {
  display: none; flex-wrap: wrap; justify-content: center; gap: 12px; max-height: 300px; overflow-y: auto;
}
.history-images .multi-winner {
  display: flex; flex-direction: column; align-items: center; min-width: 80px; padding: 12px;
  background: rgb(255 255 255 / 10%); backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 20%); border-radius: 12px;
}
.history-images .multi-winner img {
  width: 60px; height: 60px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 4px 8px rgb(0 0 0 / 20%); object-fit: cover; margin-bottom: 8px;
}
.history-images .multi-winner strong { font-size: .9rem; text-shadow: 1px 1px 2px rgb(0 0 0 / 30%); }

.history-images .instruction-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1050;
  width: min(90vw, 350px);
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94), opacity .5s, visibility .5s;
}
.history-images .instruction-popup.show {
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.history-images .instruction-popup-content {
  background: var(--gt-surface);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 22%);
  border: 1px solid var(--gt-border);
}
.history-images .instruction-popup-text {
  color: var(--gt-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.history-images .settings-panel {
  position: fixed;
  top: 0;
  right: min(-360px, -100vw);
  z-index: 1200;
  width: min(360px, 100vw);
  height: 100vh;
  overflow: auto;
  background: #18222d;
  color: #fff;
  transition: right .25s;
}
.history-images .settings-panel.open { right: 0; }
.history-images .settings-header { justify-content: space-between; padding: 18px; border-bottom: 1px solid #354352; }
.history-images .settings-header h2 { margin: 0; }
.history-images .close-button { background: transparent; color: #fff; font-size: 1.7rem; }
.history-images .settings-section { border-bottom: 1px solid #354352; }
.history-images .settings-section-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border: 0;
  padding: 16px 18px;
  background: transparent;
  color: #fff;
  font: 800 1rem "Nunito", sans-serif;
  cursor: pointer;
}
.history-images .settings-section-header:hover { background: #22303d; }
.history-images .settings-section-content { display: grid; gap: 14px; padding: 0 18px 18px; }
.history-images .settings-section-content[hidden] { display: none; }
.history-images .setting-row { justify-content: space-between; gap: 20px; }
.history-images .setting-column { display: grid; gap: 5px; }
.history-images .setting-hint {
  display: block;
  margin-top: 2px;
  color: #aeb9c4;
  font-size: .72rem;
  font-weight: 600;
}
.history-images .setting-column input,
.history-images .setting-select {
  height: 38px;
  border: 1px solid #465666;
  border-radius: 5px;
  padding: 0 10px;
  background: #22303d;
  color: #fff;
  font: 600 .9rem "Nunito", sans-serif;
}
.history-images .settings-action { width: 100%; }
.history-images .settings-action--danger { background: #b42318; }
.history-images .settings-arrow { display: inline-block; transition: transform .2s ease; }
.history-images .settings-section-header[aria-expanded="true"] .settings-arrow { transform: rotate(180deg); }
.history-images .settings-toggle {
  position: fixed; top: 20px; right: 20px; z-index: 1000;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
  transition: transform .2s ease, background-color .2s ease;
}
.history-images .settings-toggle:hover { transform: scale(1.1); }

.history-images .play-menu-toggle {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--gt-surface);
  color: var(--gt-text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
  transition: transform .2s ease, background-color .2s ease;
}
.history-images .play-menu-toggle:hover,
.history-images .play-menu-toggle[aria-expanded="true"] { transform: scale(1.1); }
.history-images .play-menu {
  position: fixed;
  top: 120px;
  right: 20px;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 4px;
  width: min(280px, calc(100vw - 40px));
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
  background: rgb(28 28 28 / 96%);
  box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
}
.history-images .play-menu.open { display: flex; }
.history-images .play-menu-header {
  margin-bottom: 4px;
  padding: 4px 8px 8px;
  border-bottom: 1px solid #3a3a3c;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.history-images .play-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.history-images .play-menu a:hover,
.history-images .play-menu a:focus {
  outline: none;
  background: #2a2a2c;
  box-shadow: inset 0 0 0 2px #538d4e;
}
.history-images .play-menu img {
  width: 54px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
}
.history-images .play-menu a span { line-height: 1.2; }
.history-images .play-menu-callout {
  position: fixed;
  top: 120px;
  right: 312px;
  z-index: 999;
  display: none;
  width: 260px;
  padding: 14px 16px;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
  background: rgb(28 28 28 / 96%);
  color: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.history-images .play-menu-callout.open { display: block; }

.history-images .floating-leaderboard {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 900;
  width: min(230px, calc(100vw - 36px));
  background: #2c2c2c;
  border: 1px solid #444;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
  overflow: hidden;
  color: #fff;
}
.history-images .floating-leaderboard.opacity-50 { opacity: .8; }
.history-images .floating-leaderboard-header {
  display: flex; justify-content: space-between; align-items: center;
  background: #333; padding: 8px 10px; font-size: .8rem; font-weight: 600;
  cursor: move; user-select: none;
}
.history-images .leaderboard-controls { display: flex; align-items: center; gap: 2px; }
.history-images .floating-leaderboard-header button { background: transparent; border: 0; color: #fff; cursor: pointer; }
.history-images .floating-leaderboard.is-dragging { opacity: .94; box-shadow: 0 10px 26px rgb(0 0 0 / 40%); }
.history-images .leaderboard-list { display: grid; gap: 4px; margin: 0; padding: 8px; list-style: none; }
.history-images .leaderboard-item {
  display: flex; align-items: center; justify-content: space-between;
  height: 36px; padding: 6px 10px; background: #3a3a3a; border-radius: 4px;
}
.history-images .leaderboard-user {
  display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1;
  overflow: hidden;
}
.history-images .leaderboard-rank {
  color: #aaa; font-size: .75rem; min-width: 16px; text-align: right; flex-shrink: 0;
}
.history-images .leaderboard-avatar { width: 30px; height: 30px; border-radius: 4px; object-fit: cover; background: #555; flex-shrink: 0; }
.history-images .leaderboard-username {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .85rem; flex: 1 1 auto; min-width: 0; max-width: 10ch;
}
.history-images .leaderboard-points {
  color: #4285f4; font-weight: 700; flex-shrink: 0;
  min-width: 2ch; margin-left: 6px; text-align: right;
}
.history-images .leaderboard-empty { color: #888; font-size: .78rem; text-align: center; padding: 12px 0; }
.history-images .floating-leaderboard.collapsed .leaderboard-list { display: none; }

.history-images .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.yearshot-tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgb(0 0 0 / 18%);
  pointer-events: auto;
}

.yearshot-tutorial-spotlight {
  position: fixed;
  z-index: 2001;
  border: 3px solid var(--gt-accent);
  border-radius: 10px;
  box-shadow: 0 0 0 3px var(--gt-surface), 0 0 22px rgb(37 99 235 / 55%);
  pointer-events: none;
  animation: yearshot-tutorial-pulse 1.8s ease-in-out infinite;
}

.yearshot-tutorial-panel {
  position: fixed;
  z-index: 2002;
  width: min(380px, calc(100vw - 28px));
  border: 1px solid var(--gt-border);
  border-radius: 10px;
  padding: 18px;
  background: var(--gt-surface);
  color: var(--gt-text);
  box-shadow: 0 14px 36px rgb(0 0 0 / 30%);
  font-family: "Nunito", sans-serif;
}

.yearshot-tutorial-panel.is-intro {
  top: 50%;
  left: 50%;
  width: min(460px, calc(100vw - 28px));
  transform: translate(-50%, -50%);
  text-align: center;
}

.yearshot-tutorial-panel h2 {
  margin: 8px 0 12px;
  color: var(--gt-text);
  font-size: 1.45rem;
  line-height: 1.2;
}

.yearshot-tutorial-panel p {
  margin: 8px 0 18px;
  color: var(--gt-text);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.45;
}

.yearshot-tutorial-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.yearshot-tutorial-button {
  min-height: 38px;
  border: 1px solid var(--gt-border);
  border-radius: 7px;
  padding: 7px 14px;
  font: 800 .82rem "Nunito", sans-serif;
  cursor: pointer;
}

.yearshot-tutorial-button.is-primary {
  border-color: var(--gt-accent);
  background: var(--gt-accent);
  color: #fff;
}

.yearshot-tutorial-button.is-secondary {
  background: var(--gt-raised);
  color: var(--gt-text);
}

.yearshot-tutorial-button:hover,
.yearshot-tutorial-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.yearshot-tutorial-languages {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 5px;
}

.yearshot-tutorial-language {
  min-width: 34px;
  height: 26px;
  border: 1px solid var(--gt-border);
  border-radius: 999px;
  background: var(--gt-raised);
  color: var(--gt-text);
  font: 900 .68rem "Nunito", sans-serif;
  cursor: pointer;
}

.yearshot-tutorial-language.active {
  border-color: var(--gt-accent);
  background: var(--gt-accent);
  color: #fff;
}

@keyframes yearshot-tutorial-pulse {
  50% { box-shadow: 0 0 0 3px var(--gt-surface), 0 0 30px rgb(37 99 235 / 80%); }
}

@media (max-width: 850px) {
  body.history-images { min-height: auto; padding-top: 18px; }
}

@media (max-width: 700px) {
  .history-images .play-menu-callout {
    top: auto;
    right: 20px;
    bottom: 20px;
    width: min(280px, calc(100vw - 40px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-images,
  .history-images *,
  .history-images *::before,
  .history-images *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .yearshot-tutorial-spotlight { animation: none; }
}
