:root {
  color-scheme: only light;
  --ink: #1b1411;
  --velvet: #2b1a1c;
  --wine: #7d2b2d;
  --cream: #f4efe7;
  --gold: #c9a264;
  --fog: rgba(244, 239, 231, 0.45);
  --shadow: 0 24px 60px rgba(27, 20, 17, 0.35);
  --glow: 0 0 40px rgba(201, 162, 100, 0.35);
  font-size: 16px;
}

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

body {
  font-family: "Newsreader", "Times New Roman", serif;
  background: radial-gradient(circle at top, #2b1a1c 0%, #1b1411 60%);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.25'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.4;
  z-index: 1;
}

.spotlight {
  position: fixed;
  inset: -20% 0 auto 0;
  height: 70vh;
  background: radial-gradient(circle at 50% 20%, rgba(201, 162, 100, 0.25), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.marquee {
  background: var(--ink);
  border-bottom: 1px solid rgba(244, 239, 231, 0.15);
  overflow: hidden;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  padding: 0.6rem 0;
  position: relative;
  z-index: 2;
}

.marquee p {
  display: inline-block;
  animation: scroll 18s linear infinite;
  padding-left: 100%;
}

.page {
  position: relative;
  z-index: 2;
  padding: 4rem 6vw 6rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(244, 239, 231, 0.04) 0,
    rgba(244, 239, 231, 0.04) 1px,
    transparent 1px,
    transparent 18px
  );
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-card {
  background: rgba(27, 20, 17, 0.86);
  border: 1px solid rgba(201, 162, 100, 0.35);
  padding: 2.8rem 2.4rem;
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -22px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e1a2a2, #8b1f23 65%, #551012 100%);
  box-shadow: 0 8px 18px rgba(139, 31, 35, 0.4);
}

.hero-card::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 42px;
  width: 2px;
  height: 62px;
  background: rgba(201, 162, 100, 0.6);
  transform: rotate(-12deg);
}

.badge {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.68rem;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 100, 0.4);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-card h1 {
  font-family: "Cinzel Decorative", "Times New Roman", serif;
  font-size: clamp(2.2rem, 2.8vw, 3.6rem);
  line-height: 1.1;
  color: var(--cream);
  text-shadow: var(--glow);
}

.hero-card h1 span {
  display: block;
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  margin-top: 0.8rem;
  color: rgba(244, 239, 231, 0.7);
}

.lead {
  margin: 1.7rem 0 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(244, 239, 231, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

button {
  border: none;
  font-family: "Newsreader", "Times New Roman", serif;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.primary {
  background: var(--gold);
  color: var(--ink);
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(201, 162, 100, 0.4);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.primary:hover {
  transform: translateY(-2px) scale(1.01);
}

.ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244, 239, 231, 0.35);
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
}

.ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(244, 239, 231, 0.12);
}

.status {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, 0.7);
}

.poster {
  display: grid;
  justify-items: center;
  position: relative;
}

.poster-frame {
  width: min(320px, 80vw);
  aspect-ratio: 3 / 4.2;
  background: linear-gradient(160deg, #2f1c1f, #15100e);
  border: 2px solid rgba(201, 162, 100, 0.6);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2.2rem 1.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.poster-title {
  font-family: "Cinzel Decorative", "Times New Roman", serif;
  font-size: 1.7rem;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  color: var(--gold);
}

.poster-tag {
  font-size: 1rem;
  color: rgba(244, 239, 231, 0.75);
  margin-bottom: 2.8rem;
}

.poster-ornament {
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(201, 162, 100, 0.4), transparent 70%),
    radial-gradient(circle at 70% 70%, rgba(139, 31, 35, 0.4), transparent 65%);
  border: 1px dashed rgba(201, 162, 100, 0.45);
  margin: 0 1.6rem 2rem;
}

.poster-stamp {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(201, 162, 100, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
}

.filmstrip {
  position: absolute;
  inset: auto 20% -18px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 231, 0.3);
  background: repeating-linear-gradient(
    90deg,
    rgba(244, 239, 231, 0.15) 0,
    rgba(244, 239, 231, 0.15) 12px,
    transparent 12px,
    transparent 24px
  );
}

.section-title h2 {
  font-family: "Cinzel Decorative", "Times New Roman", serif;
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.section-title p {
  color: rgba(244, 239, 231, 0.7);
}

.cards {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(244, 239, 231, 0.08);
  border: 1px solid rgba(244, 239, 231, 0.12);
  border-radius: 20px;
  padding: 1.6rem;
  text-align: left;
  color: var(--cream);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(27, 20, 17, 0.35);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(27, 20, 17, 0.4);
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.card.active {
  border-color: rgba(201, 162, 100, 0.7);
  background: rgba(201, 162, 100, 0.22);
}

.card.active .card-tag::before {
  content: "✔";
}

.missing {
  border-style: dashed;
  opacity: 0.7;
}

.strikethrough {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: rgba(244, 239, 231, 0.65);
}

.muted {
  color: rgba(244, 239, 231, 0.55);
}

.feelings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: start;
}

.feelings-note {
  background: rgba(244, 239, 231, 0.08);
  border-radius: 24px;
  padding: 2.2rem;
  border: 1px solid rgba(244, 239, 231, 0.14);
  box-shadow: var(--shadow);
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.note-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.note-seal {
  font-size: 1.4rem;
  color: var(--gold);
}

.feelings-note h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feelings-note p {
  line-height: 1.7;
  color: rgba(244, 239, 231, 0.85);
  margin-bottom: 1.6rem;
}

.note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.signals {
  display: grid;
  gap: 1rem;
}

.signal {
  background: rgba(27, 20, 17, 0.8);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(201, 162, 100, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.signal-title {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  color: var(--gold);
}

.signal-value {
  font-size: 1rem;
}

.footer {
  text-align: center;
  padding: 2.5rem 2rem 3.5rem;
  color: rgba(244, 239, 231, 0.6);
  font-size: 0.95rem;
}

.love-mode .hero-card {
  box-shadow: 0 0 40px rgba(201, 162, 100, 0.6);
}

.love-mode .poster-frame {
  border-color: rgba(201, 162, 100, 0.9);
}

.love-mode .signal-value {
  color: var(--gold);
}

.floating-heart {
  position: absolute;
  font-size: 1.6rem;
  animation: floatUp 2.6s ease forwards;
  pointer-events: none;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.2);
  }
}

@media (max-width: 720px) {
  .page {
    padding: 3.5rem 6vw 4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .poster-frame {
    width: min(280px, 80vw);
  }
}
