:root {
  --bg-1: #12070b;
  --bg-2: #3a0f1b;
  --bg-3: #7f2136;
  --bg-4: #e0786f;
  --ink-strong: #1d0d13;
  --ink: #3f232c;
  --ink-soft: #6b4a54;
  --paper: #f6e7e1;
  --paper-soft: #f2ddd5;
  --line: #ddb4ab;
  --line-strong: #ba7d84;
  --accent: #ff4f81;
  --accent-2: #ff9567;
  --mint: #bde8ca;
  --danger: #ffc8d5;
  --shadow-lg: 0 38px 80px rgba(16, 4, 8, 0.42);
  --shadow-md: 0 14px 30px rgba(20, 5, 10, 0.26);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink-strong);
  background:
    radial-gradient(80rem 80rem at -10% -10%, rgba(255, 184, 170, 0.36), transparent 45%),
    radial-gradient(70rem 70rem at 110% 0%, rgba(255, 135, 148, 0.34), transparent 38%),
    radial-gradient(55rem 55rem at 50% 100%, rgba(253, 171, 130, 0.26), transparent 42%),
    linear-gradient(122deg, var(--bg-1) 0%, var(--bg-2) 35%, var(--bg-3) 70%, var(--bg-4) 100%);
  background-size: 140% 140%;
  animation: gradientShift 18s ease-in-out infinite;
  overflow: hidden;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.75px, transparent 0.75px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
  opacity: 0.3;
  z-index: 0;
}

.backdrop-glow {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 175, 136, 0.26), transparent 32%),
    radial-gradient(circle at 75% 22%, rgba(255, 103, 141, 0.24), transparent 36%),
    radial-gradient(circle at 65% 78%, rgba(255, 220, 184, 0.18), transparent 30%);
  filter: blur(28px);
}

.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.floating-hearts span {
  position: absolute;
  width: 16px;
  height: 16px;
  background: rgba(255, 215, 215, 0.38);
  transform: rotate(45deg);
  animation: floatHearts linear infinite;
  opacity: 0;
}

.floating-hearts span::before,
.floating-hearts span::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: inherit;
}

.floating-hearts span::before {
  left: -8px;
}

.floating-hearts span::after {
  top: -8px;
}

.floating-hearts span:nth-child(1) {
  left: 6%;
  animation-duration: 18s;
  animation-delay: 0s;
}

.floating-hearts span:nth-child(2) {
  left: 16%;
  animation-duration: 15s;
  animation-delay: 4.5s;
}

.floating-hearts span:nth-child(3) {
  left: 25%;
  animation-duration: 20s;
  animation-delay: 7s;
}

.floating-hearts span:nth-child(4) {
  left: 36%;
  animation-duration: 16s;
  animation-delay: 2s;
}

.floating-hearts span:nth-child(5) {
  left: 46%;
  animation-duration: 14s;
  animation-delay: 6s;
}

.floating-hearts span:nth-child(6) {
  left: 56%;
  animation-duration: 19s;
  animation-delay: 1.2s;
}

.floating-hearts span:nth-child(7) {
  left: 67%;
  animation-duration: 17s;
  animation-delay: 8s;
}

.floating-hearts span:nth-child(8) {
  left: 77%;
  animation-duration: 13s;
  animation-delay: 5s;
}

.floating-hearts span:nth-child(9) {
  left: 87%;
  animation-duration: 18s;
  animation-delay: 3.2s;
}

.floating-hearts span:nth-child(10) {
  left: 95%;
  animation-duration: 15s;
  animation-delay: 8.6s;
}

.valentine-app {
  position: relative;
  z-index: 4;
  width: min(1180px, 100vw);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 20px;
}

.app-topbar {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  margin: 2px auto;
  padding: 12px 16px;
  border-radius: 999px;
  color: #ffece7;
  background: linear-gradient(100deg, rgba(246, 208, 200, 0.34), rgba(120, 42, 59, 0.44));
  border: 1px solid rgba(255, 228, 220, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

.brand {
  margin: 0;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 240, 234, 0.95);
}

.scene-progress {
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
}

.divider {
  margin-inline: 4px;
  opacity: 0.55;
}

.scene {
  position: absolute;
  inset: 92px 18px 18px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px) scale(0.985);
  filter: blur(4px);
  transition: opacity 520ms ease, transform 520ms ease, filter 520ms ease;
}

.scene-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.panel {
  position: relative;
  width: min(1030px, 100%);
  max-height: calc(100dvh - 142px);
  overflow: auto;
  border-radius: var(--radius-xl);
  padding: clamp(18px, 3vw, 34px);
  display: grid;
  gap: 16px;
  background: linear-gradient(152deg, var(--paper) 0%, var(--paper-soft) 100%);
  border: 1px solid rgba(188, 124, 132, 0.42);
  box-shadow: var(--shadow-lg);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid rgba(199, 140, 145, 0.34);
  pointer-events: none;
}

.panel::-webkit-scrollbar {
  width: 9px;
}

.panel::-webkit-scrollbar-thumb {
  background: rgba(168, 88, 104, 0.5);
  border-radius: 999px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bodoni Moda", "Times New Roman", serif;
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4.1rem);
}

h2 {
  font-size: clamp(1.8rem, 4.6vw, 3.4rem);
}

h3 {
  font-size: clamp(1.4rem, 3.1vw, 2.3rem);
}

.lead {
  margin: 0;
  max-width: 64ch;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  line-height: 1.7;
  color: var(--ink);
}

.subtle-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.mini-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.primary-btn,
.ghost-btn,
.date-card,
.yes-btn,
.no-btn,
.step-btn,
.quiz-option,
.coffee-cup,
.collage-close {
  font: inherit;
  border: 0;
  cursor: pointer;
}

.primary-btn,
.yes-btn {
  justify-self: start;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(115deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 22px rgba(255, 78, 130, 0.34);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-btn:hover,
.primary-btn:focus-visible,
.yes-btn:hover,
.yes-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(255, 78, 130, 0.44);
  filter: brightness(1.03);
}

.primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ghost-btn {
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 240, 236, 0.5);
  color: inherit;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.ghost-btn:hover,
.ghost-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.44);
  border-color: rgba(255, 245, 242, 0.74);
}

.intro-panel {
  align-items: start;
}

#introLine {
  min-height: 2.7rem;
  font-size: clamp(1.12rem, 2.8vw, 1.45rem);
  font-weight: 700;
}

#introLine::after {
  content: "";
  display: inline-block;
  width: 0.11em;
  height: 1.08em;
  background: currentColor;
  margin-left: 0.26em;
  vertical-align: text-bottom;
  animation: blink 900ms steps(1) infinite;
}

.letter-note {
  border: 1px dashed rgba(160, 94, 101, 0.46);
  background: rgba(255, 246, 240, 0.76);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.letter-note summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  text-transform: lowercase;
}

.letter-note summary::-webkit-details-marker {
  display: none;
}

.letter-body {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.letter-body p {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
}

.sparkline {
  width: min(430px, 100%);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 149, 103, 0.72), rgba(255, 83, 131, 0.8), rgba(255, 149, 103, 0.72));
  background-size: 220% 100%;
  animation: moveSpark 2.3s linear infinite;
}

.counter-card {
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid rgba(182, 110, 117, 0.4);
  background: rgba(255, 248, 245, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.counter-value {
  margin: 0;
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
}

.counter-label {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
}

.counter-grid article {
  border-radius: 12px;
  background: rgba(255, 247, 243, 0.82);
  border: 1px solid rgba(200, 141, 146, 0.35);
  padding: 10px 12px;
}

.counter-grid p {
  margin: 0;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.timeline-track::-webkit-scrollbar {
  height: 9px;
}

.timeline-track::-webkit-scrollbar-thumb {
  background: rgba(155, 79, 97, 0.5);
  border-radius: 999px;
}

.memory-card {
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 250, 247, 0.92);
  border: 1px solid rgba(190, 126, 132, 0.35);
  box-shadow: var(--shadow-md);
  display: grid;
  align-content: start;
  transform: translateY(22px) scale(0.96);
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}

.memory-card.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.memory-card:nth-child(odd) {
  transform: translateY(26px) scale(0.96) rotate(-0.8deg);
}

.memory-card:nth-child(even) {
  transform: translateY(24px) scale(0.96) rotate(0.8deg);
}

.memory-card.is-visible:nth-child(odd),
.memory-card.is-visible:nth-child(even) {
  transform: translateY(0) scale(1) rotate(0);
}

.memory-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.memory-card div {
  padding: 12px;
  display: grid;
  gap: 5px;
}

.memory-date,
.memory-location,
.memory-caption {
  margin: 0;
}

.memory-date {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

.memory-location {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: 1.16rem;
}

.memory-caption {
  color: var(--ink);
  font-size: 1rem;
}

.relationship-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
}

.collage-card {
  grid-column: span 6;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(192, 126, 133, 0.42);
  background: rgba(255, 250, 246, 0.94);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.collage-card:hover,
.collage-card:focus-within {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 16px 34px rgba(18, 4, 8, 0.34);
}

.collage-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.collage-card p {
  margin: 0;
  padding: 10px 10px 12px;
  font-weight: 700;
  color: var(--ink);
}

.collage-card-wide {
  grid-column: span 12;
}

.collage-card-wide img {
  aspect-ratio: 16 / 9;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  text-align: left;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(191, 129, 137, 0.34);
  background: rgba(255, 249, 247, 0.92);
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  transform: translateX(5px);
  background: rgba(255, 245, 240, 0.98);
}

.quiz-option.correct {
  background: rgba(189, 232, 204, 0.9);
}

.quiz-option.wrong {
  background: rgba(255, 200, 214, 0.9);
}

.quiz-feedback {
  margin: 0;
  min-height: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}

.quiz-progress-wrap {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(72, 27, 39, 0.16);
  overflow: hidden;
}

.quiz-progress {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  transition: width 280ms ease;
}

.coffee-board {
  width: min(720px, 100%);
  min-height: 240px;
  border-radius: 20px;
  border: 2px dashed rgba(156, 82, 96, 0.38);
  background:
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 245, 239, 0.92), rgba(255, 224, 211, 0.86));
  background-size: 24px 24px, 24px 24px, auto;
  position: relative;
  overflow: hidden;
}

.coffee-cup {
  position: absolute;
  left: 12%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 999px;
  font-size: 1.95rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(180, 111, 123, 0.4);
  box-shadow: 0 10px 24px rgba(22, 6, 12, 0.3);
  touch-action: none;
}

.gift-target {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 96px;
  height: 96px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  background: rgba(255, 250, 246, 0.95);
  border: 1px solid rgba(172, 97, 114, 0.45);
  box-shadow: 0 10px 22px rgba(22, 6, 12, 0.2);
  animation: giftPulse 1.8s ease-in-out infinite;
}

.gift-target.unlocked {
  background: rgba(189, 232, 204, 0.95);
}

.gift-reveal {
  display: grid;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(193, 128, 135, 0.34);
  background: rgba(255, 250, 247, 0.92);
  padding: 14px;
}

.gift-reveal[hidden] {
  display: none;
}

.code-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.code-wrap code {
  font-size: 1.06rem;
  letter-spacing: 0.07em;
  font-weight: 800;
  background: #2b111a;
  color: #ffece6;
  padding: 9px 12px;
  border-radius: 10px;
}

.step-list {
  display: grid;
  gap: 8px;
}

.step-btn {
  text-align: left;
  border-radius: 10px;
  border: 1px solid rgba(188, 124, 130, 0.32);
  background: rgba(255, 252, 250, 0.94);
  padding: 11px 12px;
  font-weight: 700;
}

.step-btn.done {
  background: rgba(189, 232, 204, 0.88);
}

.step-btn.done::after {
  content: " done";
  margin-left: 7px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.67rem;
  opacity: 0.7;
}

.answer-zone {
  position: relative;
  min-height: 180px;
  border-radius: 18px;
  border: 1px dashed rgba(168, 92, 103, 0.42);
  background: rgba(255, 250, 246, 0.78);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.yes-btn {
  position: relative;
  z-index: 2;
}

.no-btn {
  position: absolute;
  left: 72%;
  top: 56%;
  transform: translate(-50%, -50%);
  z-index: 3;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(154, 86, 99, 0.32);
  transition: top 180ms ease, left 180ms ease;
}

.answer-zone.accepted {
  border-color: rgba(255, 98, 136, 0.5);
  background: linear-gradient(120deg, rgba(255, 249, 246, 0.92), rgba(255, 228, 217, 0.8));
}

.yes-result {
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(188, 124, 130, 0.34);
  background: rgba(255, 252, 249, 0.94);
  display: grid;
  gap: 10px;
}

.yes-result p {
  margin: 0;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.date-card {
  border-radius: 12px;
  border: 1px solid rgba(167, 96, 107, 0.28);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px;
  text-align: center;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.date-card:hover,
.date-card:focus-visible {
  background: rgba(255, 233, 224, 0.96);
  transform: translateY(-1px);
}

.note-box {
  border-radius: 12px;
  border: 1px solid rgba(188, 124, 130, 0.28);
  background: rgba(255, 247, 241, 0.72);
  padding: 10px;
  display: grid;
  gap: 8px;
}

#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.music-player {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: min(360px, calc(100vw - 16px));
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 6px;
  background: linear-gradient(145deg, rgba(246, 231, 225, 0.96), rgba(243, 216, 208, 0.92));
  border: 1px solid rgba(193, 125, 135, 0.4);
  box-shadow: 0 20px 35px rgba(19, 4, 8, 0.3);
  pointer-events: none;
}

.music-player button,
.music-player input,
.music-player a {
  pointer-events: auto;
}

.music-title {
  margin: 0;
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: 1.08rem;
}

.music-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.music-player input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.collage-modal {
  width: min(620px, calc(100vw - 20px));
  border: 1px solid rgba(193, 125, 135, 0.42);
  border-radius: 16px;
  padding: 10px;
  background: rgba(248, 236, 230, 0.98);
  color: var(--ink-strong);
  box-shadow: var(--shadow-lg);
}

.collage-modal::backdrop {
  background: rgba(16, 5, 9, 0.65);
}

.collage-close {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(164, 95, 104, 0.32);
  font-weight: 700;
  justify-self: start;
  margin-bottom: 8px;
}

.collage-modal img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.collage-modal p {
  margin: 8px 0 0;
  font-weight: 700;
}

.micro-heart {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  color: rgba(255, 91, 130, 0.9);
  font-size: 1.12rem;
  animation: microRise ease-out forwards;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes floatHearts {
  0% {
    bottom: -40px;
    transform: translateX(0) rotate(45deg) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.65;
  }
  100% {
    bottom: 108%;
    transform: translateX(30px) rotate(45deg) scale(1.04);
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes moveSpark {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes giftPulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.05);
  }
}

@keyframes microRise {
  0% {
    transform: translateY(0) scale(0.7);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateY(-80px) scale(1.08);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .app-topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand progress"
      "jump jump";
    border-radius: 22px;
  }

  .brand {
    grid-area: brand;
  }

  .scene-progress {
    grid-area: progress;
    justify-self: end;
  }

  #jumpToQuestion {
    grid-area: jump;
    justify-self: center;
  }

  .scene {
    inset: 122px 8px 10px;
  }

  .panel {
    max-height: calc(100dvh - 150px);
  }

  .timeline-track {
    grid-template-columns: repeat(5, minmax(200px, 1fr));
  }

  .counter-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }

  .relationship-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collage-card,
  .collage-card-wide {
    grid-column: span 1;
  }

  .date-grid {
    grid-template-columns: 1fr;
  }

  .music-player {
    top: auto;
    right: 10px;
    bottom: 12px;
    width: min(190px, calc(100vw - 18px));
    padding: 9px;
    gap: 5px;
  }

  .no-btn {
    left: 66%;
    top: 60%;
  }
}

@media (max-width: 680px) {
  .valentine-app {
    padding: 8px;
  }

  .scene {
    inset: 132px 2px 8px;
  }

  .panel {
    border-radius: 20px;
    padding: 14px;
    gap: 12px;
  }

  .panel::before {
    inset: 8px;
    border-radius: 14px;
  }

  .timeline-track {
    grid-template-columns: repeat(5, minmax(180px, 76vw));
  }

  .memory-card img {
    aspect-ratio: 3 / 4;
  }

  .coffee-board {
    min-height: 200px;
  }

  .coffee-cup {
    width: 62px;
    height: 62px;
    font-size: 1.8rem;
  }

  .gift-target {
    width: 82px;
    height: 82px;
    font-size: 2rem;
  }

  .music-player {
    top: auto;
    right: 8px;
    left: auto;
    bottom: 10px;
    width: min(190px, calc(100vw - 16px));
    padding: 8px;
    gap: 4px;
  }

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

  .music-player .mini-label,
  .music-player a {
    display: none;
  }

  .music-title {
    font-size: 0.94rem;
  }

  .no-btn {
    left: 72%;
    top: 64%;
  }
}
