:root {
  color-scheme: dark;
  --ink: #111713;
  --ink-2: #1b241c;
  --paper: #f3eee2;
  --paper-soft: #e6dfcd;
  --citron: #d7ff48;
  --mint: #72e8b4;
  --red: #ff625c;
  --blue: #56c7ff;
  --violet: #b99cff;
  --muted: #aab7a7;
  --line: rgba(243, 238, 226, 0.17);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(215, 255, 72, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(215, 255, 72, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: 32px 32px;
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.has-cursor-fx {
  cursor: none;
}

body.has-cursor-fx.space-game-open {
  cursor: none;
}

body.has-cursor-fx a,
body.has-cursor-fx button,
body.has-cursor-fx input,
body.has-cursor-fx select,
body.has-cursor-fx textarea {
  cursor: none;
}

body.has-cursor-fx.space-game-open .space-game-card,
body.has-cursor-fx.space-game-open .space-game-card button,
body.has-cursor-fx.space-game-open .space-game-card input,
body.has-cursor-fx.space-game-open .space-game-card textarea {
  cursor: auto;
}

body.space-game-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 23, 19, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--citron);
  border-radius: 8px;
  color: var(--citron);
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--red);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--paper-soft);
  font-size: 0.92rem;
}

.nav-links a:hover {
  border-color: var(--line);
  color: var(--citron);
}

main {
  overflow: hidden;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  min-height: calc(100vh - 72px);
  padding: clamp(24px, 4vw, 54px) clamp(18px, 4vw, 56px) 28px;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 0.95;
}

h1 {
  max-width: 10ch;
  color: var(--paper);
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  font-weight: 950;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 950;
}

.hero-text {
  max-width: 58ch;
  margin: 18px 0 22px;
  color: var(--paper-soft);
  font-size: clamp(1rem, 1.55vw, 1.3rem);
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.segmented {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(243, 238, 226, 0.06);
  color: var(--paper);
  min-height: 40px;
  padding: 8px 14px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.chip:hover,
.segmented:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 255, 72, 0.55);
}

.chip.is-active,
.segmented.is-active {
  border-color: var(--citron);
  background: var(--citron);
  color: var(--ink);
  font-weight: 900;
}

.cover-stage {
  position: relative;
  min-height: 64vh;
  overflow: hidden;
}

.cover-stage::before,
.cover-stage::after {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  height: 96px;
  content: "";
  pointer-events: none;
}

.cover-stage::before {
  top: 0;
  background: linear-gradient(var(--ink), transparent);
}

.cover-stage::after {
  bottom: 0;
  background: linear-gradient(transparent, var(--ink));
}

.cover-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
  transform: rotate(-3deg);
  animation: floatShelf 10s ease-in-out infinite alternate;
}

.cover-tile {
  position: relative;
  aspect-ratio: 0.68;
  overflow: hidden;
  border: 1px solid rgba(243, 238, 226, 0.22);
  border-radius: 8px;
  background: var(--ink-2);
  box-shadow: var(--shadow);
}

.cover-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-tile:nth-child(3n) {
  transform: translateY(34px) rotate(4deg);
}

.cover-tile:nth-child(4n) {
  transform: translateY(-18px) rotate(-2deg);
}

@keyframes floatShelf {
  from {
    translate: 0 -10px;
  }
  to {
    translate: 0 18px;
  }
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.stats-band div {
  padding: clamp(18px, 3vw, 34px) clamp(16px, 3vw, 42px);
  border-right: 1px solid rgba(17, 23, 19, 0.13);
}

.stats-band strong,
.stats-band span {
  display: block;
}

.stats-band strong {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.stats-band span {
  margin-top: 8px;
  color: rgba(17, 23, 19, 0.68);
  font-weight: 800;
  text-transform: uppercase;
}

.controls {
  position: sticky;
  top: 72px;
  z-index: 9;
  display: grid;
  grid-template-columns: minmax(240px, 1.7fr) auto minmax(130px, 0.6fr) minmax(150px, 0.7fr) minmax(160px, 0.7fr);
  gap: 12px;
  align-items: end;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(27, 36, 28, 0.92);
  backdrop-filter: blur(18px);
}

.search-box,
.select-box,
.range-box {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box {
  position: relative;
}

.search-box::after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(114, 232, 180, 0.7);
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7);
}

.search-box:focus-within::after,
.search-box.is-scanning::after {
  opacity: 1;
  animation: radarPing 860ms ease-out infinite;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 23, 19, 0.86);
  color: var(--paper);
  padding: 10px 12px;
  outline: none;
}

.search-box input:focus,
.select-box select:focus {
  border-color: var(--citron);
}

.control-group {
  display: flex;
  min-height: 44px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 23, 19, 0.52);
}

.segmented {
  min-height: 36px;
  border-color: transparent;
  padding-inline: 13px;
}

.range-box input {
  accent-color: var(--citron);
}

.timeline-band,
.library-area,
.social-band {
  padding: clamp(42px, 6vw, 88px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 9px;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.age-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.age-lane {
  min-height: 190px;
  padding: 20px;
  background: var(--ink-2);
}

.age-lane button {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.age-lane strong {
  display: block;
  color: var(--citron);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.age-lane span {
  display: block;
  margin-top: 10px;
  color: var(--paper-soft);
  font-size: 1.15rem;
  font-weight: 850;
}

.age-lane small {
  display: block;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.age-lane:hover {
  background: #233021;
}

.tag-row {
  margin-bottom: 22px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.book-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1a2119;
  color: var(--paper);
  text-align: left;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 255, 72, 0.55);
  background: #202a1f;
}

.book-cover {
  position: relative;
  aspect-ratio: 0.74;
  overflow: hidden;
  background: #283324;
}

.book-cover::after {
  position: absolute;
  inset: auto 10px 10px auto;
  color: var(--citron);
  content: "★ ✦ ★";
  font-size: 1.15rem;
  font-weight: 950;
  opacity: 0;
  text-shadow: 0 0 12px rgba(215, 255, 72, 0.8);
  transform: translateY(16px) rotate(-8deg);
  transition: opacity 180ms ease, transform 180ms ease;
}

.book-card.is-legendary:hover .book-cover::after {
  opacity: 1;
  transform: translateY(0) rotate(-8deg);
  animation: starWiggle 720ms ease-in-out infinite alternate;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 220ms ease;
}

.book-card:hover .book-cover img {
  scale: 1.04;
}

.rating-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 8px;
  background: var(--citron);
  color: var(--ink);
  padding: 6px 9px;
  font-weight: 950;
  box-shadow: 4px 4px 0 rgba(255, 98, 92, 0.9);
}

.book-info {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.book-title {
  margin: 0;
  color: var(--paper);
  font-size: 1.08rem;
  line-height: 1.18;
}

.book-excerpt {
  display: -webkit-box;
  min-height: 4.4em;
  margin: 0;
  overflow: hidden;
  color: var(--paper-soft);
  font-size: 0.92rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--muted);
  font-size: 0.72rem;
}

.social-band {
  background:
    linear-gradient(135deg, rgba(86, 199, 255, 0.11), transparent 36%),
    linear-gradient(315deg, rgba(255, 98, 92, 0.1), transparent 42%),
    #161c17;
}

.social-note {
  max-width: 32ch;
  margin: 0;
  color: var(--paper-soft);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.45;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.social-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(243, 238, 226, 0.1), rgba(243, 238, 226, 0.03)),
    rgba(17, 23, 19, 0.7);
  color: var(--paper);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social-link:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(135deg, rgba(243, 238, 226, 0.14), rgba(243, 238, 226, 0.04)),
    rgba(17, 23, 19, 0.84);
}

.social-icon {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 5px 5px 0 rgba(17, 23, 19, 0.72);
}

.social-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.social-link:hover.bilibili-link {
  border-color: rgba(86, 199, 255, 0.78);
}

.social-link:hover.youtube-link {
  border-color: rgba(255, 98, 92, 0.78);
}

.social-link strong {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1;
}

.social-link small {
  display: block;
  margin-top: 10px;
  color: var(--paper-soft);
  font-size: 0.96rem;
  font-weight: 720;
  line-height: 1.45;
}

.legendary-stamp {
  width: fit-content;
  border: 2px solid var(--citron);
  border-radius: 8px;
  background: rgba(215, 255, 72, 0.1);
  color: var(--citron);
  padding: 8px 10px;
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--red);
  animation: stampDrop 520ms cubic-bezier(0.2, 1.4, 0.3, 1) both;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.review-article {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 56px) clamp(20px, 5vw, 72px) 96px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--citron);
}

.review-article-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.review-article-cover {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #283324;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
}

.review-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-article-body {
  display: grid;
  align-content: start;
  gap: 18px;
}

.review-article-body h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  font-weight: 950;
}

.review-article-body .rating-badge.static-badge {
  position: static;
  width: fit-content;
}

.review-article-text {
  color: var(--paper-soft);
  font-size: 1.05rem;
  line-height: 1.72;
  white-space: pre-wrap;
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid rgba(215, 255, 72, 0.35);
  border-radius: 999px;
  background: rgba(215, 255, 72, 0.07);
  color: var(--citron);
  font: 700 0.82rem/1 inherit;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, transform 0.12s;
  text-decoration: none;
  white-space: nowrap;
}

.share-btn:hover {
  background: rgba(215, 255, 72, 0.15);
  border-color: var(--citron);
  transform: translateY(-2px);
}

.share-btn.is-copied {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(114, 232, 180, 0.1);
}

.share-hint {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-modal[hidden] {
  display: none;
}

.qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.qr-box {
  position: relative;
  z-index: 1;
  padding: 32px 36px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink-2);
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 320px;
  width: calc(100vw - 48px);
}

.qr-box canvas {
  display: block;
  margin: 0 auto 16px;
  border-radius: 6px;
}

.qr-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--paper);
}

.qr-scan-hint {
  font-size: 0.84rem;
  color: var(--paper-soft);
  margin: 0 0 10px;
}

.qr-url-text {
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
  margin: 0;
}

.qr-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}

@media (max-width: 720px) {
  .review-article-grid {
    grid-template-columns: 1fr;
  }
  .review-article-cover {
    max-width: 260px;
    aspect-ratio: 3 / 4;
  }
}

.review-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 22px);
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.review-nav-link {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 238, 226, 0.04);
  color: var(--paper);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  min-height: 92px;
}

.review-nav-link:hover {
  transform: translateY(-2px);
  border-color: var(--citron);
  background: rgba(215, 255, 72, 0.08);
}

.review-nav-link.next {
  flex-direction: row-reverse;
  text-align: right;
}

.review-nav-link.is-empty {
  border: 1px dashed rgba(243, 238, 226, 0.16);
  background: transparent;
  pointer-events: none;
}

.review-nav-cover {
  flex: 0 0 60px;
  display: block;
  height: 84px;
  border-radius: 4px;
  overflow: hidden;
  background: #283324;
}

.review-nav-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-nav-meta {
  display: grid;
  align-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.review-nav-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review-nav-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.review-nav-rating {
  color: var(--citron);
  font-size: 0.84rem;
  font-weight: 800;
}

@media (max-width: 600px) {
  .review-nav {
    grid-template-columns: 1fr;
  }
  .review-nav-link.is-empty {
    display: none;
  }
}

.cursor-blaster {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 72px;
  height: 36px;
  pointer-events: none;
  transform: translate3d(-120px, -120px, 0);
  filter:
    drop-shadow(0 7px 12px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 10px rgba(86, 199, 255, 0.24));
  transition: opacity 160ms ease;
}

.cursor-blaster::before,
.cursor-blaster::after {
  position: absolute;
  content: "";
}

.cursor-blaster::before {
  right: 8px;
  bottom: 12px;
  width: 50px;
  height: 14px;
  border: 2px solid var(--citron);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(114, 232, 180, 0.2), transparent 24%),
    linear-gradient(90deg, #202a1f 0 28%, var(--violet) 28% 42%, #202a1f 42% 66%, var(--blue) 66% 80%, #202a1f 80%);
  box-shadow:
    -5px 5px 0 var(--red),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 0 16px rgba(215, 255, 72, 0.16);
}

.cursor-blaster::after {
  right: -1px;
  bottom: 15px;
  width: 18px;
  height: 8px;
  border-radius: 999px 2px 2px 999px;
  background:
    radial-gradient(circle at 92% 50%, var(--paper) 0 18%, transparent 19%),
    linear-gradient(90deg, var(--mint), var(--citron));
  box-shadow:
    7px 0 0 -3px var(--paper),
    0 0 13px rgba(215, 255, 72, 0.72);
}

.cursor-grip {
  position: absolute;
  left: 15px;
  bottom: 1px;
  width: 14px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--red), #9f3838);
  transform: rotate(-14deg);
  box-shadow:
    inset -3px 0 0 rgba(0, 0, 0, 0.22),
    5px -4px 0 -2px rgba(114, 232, 180, 0.72);
}

.cursor-sight {
  position: absolute;
  right: 25px;
  bottom: 25px;
  width: 15px;
  height: 9px;
  border: 2px solid var(--mint);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 0 -2px var(--blue);
}

.cursor-flash {
  position: fixed;
  z-index: 9998;
  width: 22px;
  height: 22px;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--citron);
  clip-path: polygon(50% 0, 64% 33%, 100% 50%, 64% 67%, 50% 100%, 36% 67%, 0 50%, 36% 33%);
  animation: flashPop 120ms ease-out forwards;
}

.spark-shot {
  position: fixed;
  z-index: 9997;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(215, 255, 72, 0), var(--citron), var(--paper));
  box-shadow: 0 0 14px var(--citron);
  transform-origin: left center;
  animation: shotFly 220ms linear forwards;
}

.impact-mark {
  position: fixed;
  z-index: 9996;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(17, 23, 19, 0.78);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 48% 50%, rgba(0, 0, 0, 0.72) 0 15%, transparent 16%),
    radial-gradient(circle, rgba(243, 238, 226, 0.12) 0 38%, transparent 39%);
  box-shadow:
    inset 0 0 0 2px rgba(215, 255, 72, 0.16),
    0 0 16px rgba(215, 255, 72, 0.22);
  transform: translate(-50%, -50%) rotate(var(--spin));
  animation: impactFade 2400ms ease-out forwards;
}

.impact-mark::before,
.impact-mark::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 42px;
  height: 2px;
  background: rgba(215, 255, 72, 0.42);
  content: "";
  transform: translate(-50%, -50%) rotate(23deg);
}

.impact-mark::after {
  width: 32px;
  transform: translate(-50%, -50%) rotate(112deg);
}

.bonus-ufo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10060;
  display: block;
  width: 100px;
  height: 49px;
  overflow: visible;
  pointer-events: none;
  transform: translate3d(-120px, -120px, 0);
  opacity: 1;
  isolation: isolate;
  will-change: transform;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(243, 238, 226, 0.96) 0 12%, transparent 13%),
    radial-gradient(ellipse at 50% 62%, rgba(215, 255, 72, 0.78) 0 20%, rgba(86, 199, 255, 0.48) 21% 42%, transparent 63%);
  box-shadow:
    0 0 0 3px rgba(17, 23, 19, 0.95),
    0 0 0 5px rgba(243, 238, 226, 0.72),
    0 0 18px rgba(215, 255, 72, 0.8),
    0 0 32px rgba(86, 199, 255, 0.52);
  filter:
    drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 20px rgba(114, 232, 180, 0.72));
  animation: ufoFloat 860ms ease-in-out infinite alternate;
}

.ufo-svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100px;
  height: 49px;
  overflow: visible;
}

.bonus-ufo::before,
.bonus-ufo::after {
  position: absolute;
  content: "";
}

.bonus-ufo::before {
  left: 11px;
  right: 11px;
  bottom: 9px;
  height: 21px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background:
    radial-gradient(circle at 21% 45%, var(--citron) 0 7%, transparent 8%),
    radial-gradient(circle at 39% 54%, var(--blue) 0 6%, transparent 7%),
    radial-gradient(circle at 58% 52%, var(--violet) 0 6%, transparent 7%),
    radial-gradient(circle at 78% 45%, var(--red) 0 7%, transparent 8%),
    linear-gradient(180deg, #98ffe0, #2a7880 70%, #16393f 100%);
  box-shadow:
    0 0 14px rgba(215, 255, 72, 0.4),
    inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.bonus-ufo::after {
  left: 33px;
  top: 2px;
  width: 36px;
  height: 23px;
  border: 2px solid var(--mint);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(243, 238, 226, 0.92), rgba(86, 199, 255, 0.32));
  box-shadow:
    inset 0 0 8px rgba(86, 199, 255, 0.65),
    0 0 11px rgba(86, 199, 255, 0.5);
}

.ufo-trail {
  position: absolute;
  top: 18px;
  width: 54px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(215, 255, 72, 0), rgba(215, 255, 72, 0.64), rgba(243, 238, 226, 0.88));
  filter: blur(1px);
  opacity: 0.9;
}

.bonus-ufo.from-left .ufo-trail {
  left: -40px;
}

.bonus-ufo.from-right .ufo-trail {
  right: -40px;
  rotate: 180deg;
}

.ufo-beam {
  position: absolute;
  left: 33px;
  top: 30px;
  width: 37px;
  height: 62px;
  background: linear-gradient(180deg, rgba(215, 255, 72, 0.34), rgba(86, 199, 255, 0));
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  opacity: 0.78;
  mix-blend-mode: screen;
  animation: ufoBeam 720ms ease-in-out infinite alternate;
}

.bonus-ufo.is-hit {
  animation: ufoBurst 420ms ease-out forwards;
}

.space-game {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  background:
    radial-gradient(circle at 50% 72%, rgba(86, 199, 255, 0.14), transparent 28%),
    radial-gradient(circle at 18% 16%, rgba(215, 255, 72, 0.11), transparent 24%),
    #07110d;
  color: var(--paper);
  overflow: hidden;
}

.space-game canvas {
  width: 100%;
  height: 100%;
}

.space-game-hud {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(243, 238, 226, 0.18);
  border-radius: 8px;
  background: rgba(17, 23, 19, 0.68);
  padding: 8px 10px;
  color: var(--citron);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.space-game-over {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(7, 17, 13, 0.72);
}

.space-game-card {
  width: min(92vw, 560px);
  max-height: min(88vh, 720px);
  overflow: auto;
  border: 2px solid var(--citron);
  border-radius: 8px;
  background: rgba(17, 23, 19, 0.92);
  box-shadow: 8px 8px 0 var(--red), var(--shadow);
  padding: clamp(18px, 4vw, 28px);
  text-align: center;
}

.space-game-card strong {
  display: block;
  color: var(--paper);
  font-size: clamp(1.9rem, 7vw, 4.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.space-score-line {
  display: block;
  margin-top: 12px;
  color: var(--citron);
  font-weight: 900;
}

.space-message-copy {
  margin: 12px auto 0;
  max-width: 46ch;
  color: var(--paper-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.space-leaderboard-row {
  margin: 14px auto 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.space-lb-spinner {
  color: var(--muted);
  font-size: 0.88rem;
}
.space-lb-result {
  color: var(--mint);
  font-size: 0.9rem;
}
.space-lb-offline {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}
.space-lb-brag {
  background: transparent;
  border: 1px solid var(--citron);
  color: var(--citron);
  border-radius: 999px;
  padding: 6px 16px;
  font: 700 0.82rem/1 inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.space-lb-brag:hover {
  background: rgba(215, 255, 72, 0.12);
}

.space-message-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  text-align: left;
}

.space-message-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.space-message-form label {
  display: grid;
  gap: 6px;
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.space-message-form label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.space-message-form em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.space-message-form input,
.space-message-form textarea {
  width: 100%;
  border: 1px solid rgba(243, 238, 226, 0.22);
  border-radius: 8px;
  background: rgba(7, 17, 13, 0.78);
  color: var(--paper);
  outline: none;
}

.space-message-form input {
  min-height: 42px;
  padding: 0 11px;
}

.space-message-form textarea {
  min-height: 112px;
  max-height: 180px;
  padding: 11px;
  line-height: 1.45;
  resize: vertical;
}

.space-message-form input:focus,
.space-message-form textarea:focus {
  border-color: var(--citron);
  box-shadow: 0 0 0 3px rgba(215, 255, 72, 0.14);
}

.space-message-form input::placeholder,
.space-message-form textarea::placeholder {
  color: rgba(230, 223, 205, 0.48);
  text-transform: none;
}

.space-honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.space-message-note,
.space-message-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-transform: none;
}

.space-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.space-message-actions.is-centered {
  justify-content: center;
  margin-top: 18px;
}

.space-message-actions button {
  min-height: 42px;
  border: 2px solid var(--citron);
  border-radius: 8px;
  background: var(--citron);
  color: var(--ink);
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.space-message-actions button:hover {
  transform: translateY(-2px);
}

.space-message-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.space-message-actions button + button {
  background: transparent;
  color: var(--paper);
}

.space-message-status {
  min-height: 1.2em;
  font-weight: 800;
}

.space-message-status.is-success {
  color: var(--mint);
}

.space-message-status.is-error {
  color: var(--red);
}

.space-message-confirm {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.space-message-confirm p {
  margin: 0;
  color: var(--paper-soft);
  font-size: 0.98rem;
  line-height: 1.48;
}

@keyframes flashPop {
  from {
    scale: 0.45;
    opacity: 1;
  }
  to {
    scale: 1.5;
    opacity: 0;
  }
}

@keyframes shotFly {
  from {
    translate: 0 0;
    opacity: 1;
  }
  to {
    translate: var(--shot-x) var(--shot-y);
    opacity: 0;
  }
}

@keyframes impactFade {
  0% {
    opacity: 0;
    scale: 0.35;
  }
  12% {
    opacity: 0.94;
    scale: 1;
  }
  70% {
    opacity: 0.64;
  }
  100% {
    opacity: 0;
    scale: 0.82;
  }
}

@keyframes ufoBurst {
  0% {
    opacity: 1;
    scale: 1;
  }
  100% {
    opacity: 0;
    scale: 1.9;
    rotate: 28deg;
  }
}

@keyframes ufoFloat {
  from {
    translate: 0 -2px;
  }
  to {
    translate: 0 3px;
  }
}

@keyframes ufoBeam {
  from {
    opacity: 0.38;
    scale: 0.86 0.88;
  }
  to {
    opacity: 0.82;
    scale: 1.08 1;
  }
}

@keyframes starWiggle {
  from {
    letter-spacing: 0;
  }
  to {
    letter-spacing: 0.08em;
  }
}

@keyframes radarPing {
  0% {
    box-shadow: 0 0 0 0 rgba(114, 232, 180, 0.4);
    transform: scale(0.72);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(114, 232, 180, 0);
    transform: scale(1);
  }
}

@keyframes stampDrop {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(1.3) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(-2deg);
  }
}

@media (max-width: 980px) {
  .hero-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  h1 {
    max-width: 11ch;
  }

  .cover-stage {
    min-height: auto;
  }

  .cover-track {
    grid-template-columns: repeat(6, minmax(90px, 1fr));
  }

  .cover-tile:nth-child(n + 13) {
    display: none;
  }

  .controls {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .search-box,
  .control-group {
    grid-column: 1 / -1;
  }

  .stats-band,
  .age-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 3.4rem;
  }

  .controls,
  .stats-band,
  .age-lanes {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .result-count {
    margin-top: 12px;
  }

  .social-note {
    margin-top: 14px;
  }

  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .book-title {
    font-size: 0.98rem;
  }

  .book-excerpt {
    font-size: 0.86rem;
  }

  .space-message-row,
  .space-message-actions {
    grid-template-columns: 1fr;
  }

  .space-message-actions {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body.has-cursor-fx {
    cursor: auto;
  }

  body.has-cursor-fx a,
  body.has-cursor-fx button,
  body.has-cursor-fx input,
  body.has-cursor-fx select {
    cursor: auto;
  }

  .cursor-blaster,
  .cursor-flash,
  .spark-shot,
  .impact-mark {
    display: none !important;
  }
}

/* ── Game engine trigger feedback ───────────────────────────────── */

.space-game-open .cursor-blaster {
  opacity: 0 !important;
}

.has-cursor-fx:not(.space-game-open) .cursor-blaster {
  opacity: 1 !important;
}

.game-trigger-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  animation: triggerEdgeFlash 230ms ease-out forwards;
}

@keyframes triggerEdgeFlash {
  0% {
    box-shadow: inset 0 0 0 0 rgba(215, 255, 72, 0);
    outline: 3px solid transparent;
  }
  20% {
    box-shadow: inset 0 0 32px 10px rgba(215, 255, 72, 0.55);
    outline: 3px solid #d7ff48;
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(215, 255, 72, 0);
    outline: 3px solid transparent;
  }
}

.game-trigger-cover {
  position: fixed;
  left: var(--tx, 50%);
  top: var(--ty, 50%);
  transform: translate(-50%, -50%);
  z-index: 10001;
  font-size: 3.2rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  animation: triggerCoverSlide 950ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes triggerCoverSlide {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.28);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 90px)) scale(0.55);
  }
}

/* ── Friend challenge banner ───────────────────────────────────────────── */
.challenge-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1b241c 0%, #111713 100%);
  border-bottom: 2px solid var(--citron);
  padding: 14px 20px;
  animation: challengeBannerSlide 0.35s ease-out;
}
@keyframes challengeBannerSlide {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.challenge-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}
.challenge-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.challenge-text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--paper-soft);
}
.challenge-text strong {
  color: var(--citron);
  display: block;
  margin-bottom: 2px;
}
.challenge-text em {
  font-style: normal;
  color: var(--mint);
}
.challenge-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.12s;
}
.challenge-dismiss:hover { color: var(--paper); }

/* ── Site footer ────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 48px 20px 32px;
}

.keyhole-link {
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.22;
  transition: opacity 0.3s;
  text-decoration: none;
}
.keyhole-link:hover { opacity: 0.55; }
.keyhole-link.is-unlocked { opacity: 0.7; }

/* ── Passport float button (shown after first discovery) ─────────────────── */
.passport-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--ink-2);
  border: 2px solid var(--mint);
  border-radius: 50px;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  animation: passportBtnAppear 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transition: box-shadow 0.2s, transform 0.15s;
}
.passport-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(114, 232, 180, 0.25);
}
@keyframes passportBtnAppear {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* ── Dragon Catcher game ─────────────────────────────────────────────────── */
.dragon-game {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #071210;
}
body.dragon-game-open { overflow: hidden; }
/* Suppress gun cursor and UFO beam effects while dragon game runs */
body.has-cursor-fx.dragon-game-open { cursor: default; }
body.dragon-game-open .cursor-blaster,
body.dragon-game-open .cursor-flash,
body.dragon-game-open .spark-shot { display: none !important; }
.dragon-canvas { display: block; }

.dragon-game-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 9010;
  background: rgba(7, 18, 16, 0.78);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.dragon-hud-score {
  color: var(--citron);
  font-weight: 700;
  font-size: 1.05rem;
}
.dragon-hud-timer {
  font-weight: 900;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.dragon-hud-lives {
  color: var(--red);
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* Andy review loading screen */
.dragon-review-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #071210;
  z-index: 9050;
  cursor: pointer;
}
.dragon-andy-card {
  max-width: 440px;
  width: 88%;
  padding: 36px 40px;
  background: var(--ink-2);
  border: 2px solid var(--citron);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--mint), var(--shadow);
  text-align: center;
}
.dragon-card-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--mint);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
  margin-bottom: 16px;
}
.dragon-card-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--paper);
  margin: 0 0 14px;
}
.dragon-card-body {
  color: var(--paper-soft);
  font-style: italic;
  line-height: 1.65;
  font-size: 1.05rem;
  margin: 0 0 12px;
}
.dragon-card-age {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 20px;
}
.dragon-card-hint {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Game over screen */
.dragon-game-over {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 18, 16, 0.84);
  backdrop-filter: blur(6px);
  z-index: 9050;
}
.dragon-game-card {
  max-width: 420px;
  width: 90%;
  padding: 36px 40px;
  background: var(--ink-2);
  border: 2px solid var(--citron);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--mint), var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dragon-over-icon { font-size: 3rem; }
.dragon-game-card strong { font-size: 1.35rem; color: var(--paper); }
.dragon-score-line { font-size: 2rem; font-weight: 900; color: var(--citron); }
.dragon-andy-comment { color: var(--paper-soft); font-style: italic; font-size: 0.92rem; line-height: 1.5; }
.dragon-lb-row { min-height: 28px; }
.dragon-lb-spinner { color: var(--muted); font-size: 0.9rem; }
.dragon-lb-result { color: var(--mint); font-size: 0.95rem; }
.dragon-lb-offline { color: var(--muted); font-size: 0.85rem; }
.dragon-lb-brag {
  background: var(--citron);
  color: var(--ink);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 8px;
}
.dragon-over-actions button {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--paper);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.dragon-over-actions button:hover { border-color: var(--citron); }

/* ── Sandwich Tower game ─────────────────────────────────────────────────── */
.sandwich-game {
  position: fixed; inset: 0; z-index: 9000;
  background: #1a1008;
}
body.sandwich-game-open { overflow: hidden; }
body.has-cursor-fx.sandwich-game-open { cursor: default; }
body.sandwich-game-open .cursor-blaster,
body.sandwich-game-open .cursor-flash,
body.sandwich-game-open .spark-shot { display: none !important; }

.sandwich-canvas {
  display: block;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  touch-action: none;
}

.sandwich-hud {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  pointer-events: none;
  font-family: 'Press Start 2P', monospace, system-ui;
  font-size: 0.72rem;
  color: #f5d985;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  z-index: 2;
}
.sandwich-hud-score { color: #f5d985; }
.sandwich-hud-best  { color: #80c855; }

/* Review (loading) screen */
.sandwich-review-screen {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #1a1008;
  z-index: 3;
  padding: 24px;
}
.sandwich-andy-card {
  background: var(--card-bg, #111);
  border: 2px solid #f5d985;
  border-radius: 14px;
  padding: 28px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  cursor: pointer;
}
.sandwich-card-tag {
  display: inline-block;
  background: #f5d985;
  color: #1a1008;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.sandwich-card-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--paper, #f3eee2);
  margin: 0 0 12px;
}
.sandwich-card-body {
  font-size: 1rem;
  color: var(--muted, #b0a898);
  font-style: italic;
  line-height: 1.55;
  margin: 0 0 12px;
}
.sandwich-card-age {
  font-size: 0.78rem;
  color: var(--muted, #b0a898);
  margin: 0 0 16px;
}
.sandwich-card-hint {
  font-size: 0.72rem;
  color: var(--muted, #b0a898);
  margin: 0;
}

/* Game over screen */
.sandwich-game-over {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,6,2,0.78);
  z-index: 10;
  padding: 24px;
}
.sandwich-game-card {
  background: #1a1008;
  border: 2px solid #f5d985;
  border-radius: 16px;
  padding: 32px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}
.sandwich-over-icon { font-size: 3rem; margin-bottom: 8px; }
.sandwich-game-card strong {
  display: block; font-size: 2rem; color: #f5d985; margin-bottom: 8px;
}
.sandwich-andy-comment {
  font-size: 0.95rem; color: var(--muted, #b0a898); font-style: italic;
  line-height: 1.55; margin: 0 0 12px;
}
.sandwich-new-best { color: #d7ff48; font-size: 0.9rem; font-weight: 700; margin: 0 0 8px; }
.sandwich-badges   { color: #80c855; font-size: 0.82rem; margin: 0 0 16px; }
.sandwich-over-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px;
}
.sandwich-over-actions button {
  background: transparent;
  border: 2px solid var(--muted, #b0a898);
  color: var(--paper, #f3eee2);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.sandwich-over-actions button:first-child { border-color: #f5d985; color: #f5d985; }
.sandwich-over-actions button:hover { border-color: var(--citron, #d7ff48); }

/* ── Typo Hunter game ────────────────────────────────────────────────────── */
.typo-game {
  position: fixed; inset: 0; z-index: 9000;
  background: #0d1520;
}
body.typo-game-open { overflow: hidden; }
body.has-cursor-fx.typo-game-open { cursor: default; }
body.typo-game-open .cursor-blaster,
body.typo-game-open .cursor-flash,
body.typo-game-open .spark-shot { display: none !important; }

.typo-hud {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px; z-index: 9010;
  background: rgba(13, 21, 32, 0.9);
  backdrop-filter: blur(4px);
}
.typo-hud-round { color: var(--muted); font-size: 0.88rem; }
.typo-hud-score { color: var(--citron); font-weight: 700; font-size: 1.05rem; }
.typo-hud-close {
  background: transparent; border: none; color: var(--muted);
  font-size: 1.1rem; cursor: pointer; padding: 4px 8px;
  border-radius: 4px; transition: color 0.15s; line-height: 1;
}
.typo-hud-close:hover { color: var(--paper); }
.typo-timer-bar {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--citron); width: 100%;
  transition: background 0.3s;
}

/* Andy review loading screen */
.typo-review-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #0d1520; z-index: 9050; cursor: pointer;
}
.typo-andy-card {
  max-width: 440px; width: 88%;
  padding: 36px 40px;
  background: var(--ink-2);
  border: 2px solid var(--citron);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--mint), var(--shadow);
  text-align: center;
}
.typo-card-tag {
  display: inline-block; padding: 4px 10px;
  background: var(--mint); color: var(--ink);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: 3px; margin-bottom: 16px;
}
.typo-card-title { font-size: 1.5rem; font-weight: 900; color: var(--paper); margin: 0 0 14px; }
.typo-card-body { color: var(--paper-soft); font-style: italic; line-height: 1.65; font-size: 1.05rem; margin: 0 0 12px; }
.typo-card-age { color: var(--muted); font-size: 0.82rem; margin: 0 0 20px; }
.typo-card-hint { color: var(--muted); font-size: 0.78rem; margin: 0; }

/* Game arena */
.typo-arena {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 72px 24px 24px;
  overflow-y: auto;
}
.typo-round-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 6px;
}
.typo-book-title {
  font-size: 1rem; font-weight: 800;
  color: var(--citron); margin-bottom: 10px;
  text-align: center; max-width: 640px;
}
.typo-instruction {
  font-size: 0.82rem; color: var(--muted);
  margin-bottom: 22px; text-align: center;
}
.typo-text {
  max-width: 680px; width: 100%;
  line-height: 2.2; font-size: clamp(0.98rem, 2.5vw, 1.12rem);
  color: var(--paper); text-align: left;
}
.typo-word {
  display: inline; cursor: pointer;
  border-radius: 3px; padding: 3px 3px;
  transition: background 0.1s, color 0.1s;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.typo-word:hover { background: rgba(255,255,255,0.08); }
.typo-word.is-correct {
  background: rgba(100, 230, 130, 0.25); color: #7df09e; font-weight: 700;
}
.typo-word.is-wrong {
  background: rgba(255, 80, 80, 0.25); color: #ff8888; text-decoration: line-through;
}
.typo-word.is-revealed {
  background: rgba(100, 230, 130, 0.15); color: #7df09e;
  text-decoration: underline dotted; font-weight: 700;
}
.typo-result-banner {
  padding: 10px 28px; border-radius: 8px;
  font-weight: 800; font-size: 1.2rem;
  margin-bottom: 18px; text-align: center;
  max-width: 680px; width: 100%;
}
.typo-result-banner.is-correct { background: rgba(100, 230, 130, 0.18); color: #7df09e; }
.typo-result-banner.is-wrong   { background: rgba(255, 80, 80, 0.15);  color: #ff8888; }

/* Game over */
.typo-game-over {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13, 21, 32, 0.88);
  backdrop-filter: blur(6px); z-index: 9050;
}
.typo-over-card {
  max-width: 420px; width: 90%;
  padding: 36px 40px;
  background: var(--ink-2);
  border: 2px solid var(--citron);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--mint), var(--shadow);
  text-align: center;
  display: flex; flex-direction: column; gap: 12px;
}
.typo-over-icon { font-size: 3rem; }
.typo-over-card strong { font-size: 1.35rem; color: var(--paper); }
.typo-score-line { font-size: 2rem; font-weight: 900; color: var(--citron); }
.typo-andy-comment { color: var(--paper-soft); font-style: italic; font-size: 0.92rem; line-height: 1.5; margin: 0; }
.typo-lb-row { min-height: 28px; }
.typo-lb-spinner  { color: var(--muted); font-size: 0.9rem; }
.typo-lb-result   { color: var(--mint); font-size: 0.95rem; }
.typo-lb-offline  { color: var(--muted); font-size: 0.85rem; }
.typo-lb-brag {
  background: var(--citron); color: var(--ink);
  border: none; padding: 6px 14px; border-radius: 6px;
  font-weight: 700; cursor: pointer; margin-left: 8px;
}
.typo-over-actions button {
  background: transparent; border: 2px solid var(--line);
  color: var(--paper); padding: 10px 24px; border-radius: 8px;
  font-size: 0.95rem; cursor: pointer; transition: border-color 0.15s;
}
.typo-over-actions button:hover { border-color: var(--citron); }

/* ── Passport page ───────────────────────────────────────────────────────── */
.passport-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
.passport-hero {
  margin-bottom: 32px;
}
.passport-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--paper);
  margin: 0 0 6px;
}
.passport-hero p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.passport-riddle {
  background: var(--ink-2);
  border: 2px solid var(--citron);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 36px;
}
.passport-riddle--all-found { border-color: var(--mint); }
.passport-riddle-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--citron);
  margin: 0 0 10px;
}
.passport-riddle--all-found .passport-riddle-label { color: var(--mint); }
.passport-riddle-text {
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 1.02rem;
  color: var(--paper);
  line-height: 1.55;
  margin: 0;
}

.passport-grid-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}
.passport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  padding: 0;
  list-style: none;
}
.passport-game-card {
  background: var(--ink-2);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.15s, transform 0.15s;
}
.passport-game-card:hover {
  border-color: var(--mint);
  transform: translateY(-2px);
}
.passport-game-icon { font-size: 2.8rem; margin-bottom: 10px; }
.passport-game-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--paper);
  margin-bottom: 5px;
}
.passport-game-date { font-size: 0.72rem; color: var(--muted); }
.passport-game-review {
  font-size: 0.76rem;
  font-style: italic;
  color: var(--paper-soft);
  margin-top: 8px;
  line-height: 1.4;
}
.passport-game-score {
  font-size: 0.78rem;
  color: var(--citron);
  margin-top: 6px;
}
.passport-empty {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 32px;
  text-align: center;
  background: var(--ink-2);
  border-radius: 10px;
  border: 2px dashed var(--line);
  margin-bottom: 40px;
}
.passport-empty p { margin: 0 0 6px; }

.passport-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
}
.passport-tab {
  padding: 10px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}
.passport-tab.is-active { color: var(--citron); border-bottom-color: var(--citron); }
.passport-tab:hover:not(.is-active) { color: var(--paper); }

.passport-tab-panel { padding-bottom: 16px; }
.passport-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.passport-badge {
  background: var(--ink-2);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.passport-badge-icon { font-size: 1.8rem; }
.passport-badge-name { font-weight: 700; font-size: 0.9rem; color: var(--paper); }
.passport-badge-desc { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.passport-no-badges { color: var(--muted); font-size: 0.9rem; }

.passport-records { display: flex; flex-direction: column; gap: 12px; }
.passport-record {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--ink-2);
  border: 2px solid var(--line);
  border-radius: 8px;
}
.passport-record-game { font-weight: 700; color: var(--paper); font-size: 0.95rem; }
.passport-record-score { font-size: 1.2rem; font-weight: 900; color: var(--citron); }
