html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: #fff7fb;
}

.hero-grid {
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 245, 0.86) 0%,
      rgba(255, 247, 251, 0.76) 46%,
      rgba(244, 255, 251, 0.86) 100%
    ),
    url("../img/one_year/foto8.jpeg") center 18% / cover fixed no-repeat;
}

.float-mark {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(2.6rem, 6vw, 4.2rem);
  aspect-ratio: 1;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(30, 36, 68, 0.13);
  backdrop-filter: blur(14px);
}

.milestone-card {
  min-height: 18.5rem;
  transform-style: preserve-3d;
  will-change: transform;
}

.milestone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.75rem;
  background: radial-gradient(
    circle at var(--shine-x, 50%) var(--shine-y, 28%),
    rgba(255, 255, 255, 0.48),
    transparent 38%
  );
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.milestone-card:hover::before,
.milestone-card:focus-visible::before {
  opacity: 1;
}

.locked-card {
  filter: saturate(0.82);
}

.countdown-badge {
  --countdown-bg: rgba(255, 255, 255, 0.86);
  --countdown-fg: #c44f87;
  --countdown-ring: rgba(196, 79, 135, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  max-width: 12.5rem;
  border: 1px solid var(--countdown-ring);
  border-radius: 999px;
  background: var(--countdown-bg);
  color: var(--countdown-fg);
  padding: 0.34rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(30, 36, 68, 0.08);
  white-space: normal;
  text-align: left;
  transition:
    background 260ms ease,
    border-color 260ms ease,
    color 260ms ease,
    transform 260ms ease;
}

.locked-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.75rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28),
    rgba(30, 36, 68, 0.08)
  );
  pointer-events: none;
}

.photo-tile {
  will-change: transform;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: #fff7fb;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-frame video {
  background: #1e2444;
}

.hero-visual {
  isolation: isolate;
}

.love-heart {
  --heart-primary: #c44f87;
  --heart-secondary: #ff7a8a;
  --heart-glow: rgba(255, 122, 138, 0.28);
  --heart-accent: #ffe79a;
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: visible;
  color: var(--heart-primary);
  filter: drop-shadow(0 26px 54px rgba(196, 79, 135, 0.16));
}

.love-heart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.love-heart-glow,
.love-heart-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.love-heart-glow {
  stroke: var(--heart-glow);
  stroke-width: 30;
  filter: blur(10px);
  opacity: 0.95;
}

.love-heart-path {
  stroke: var(--heart-primary);
  stroke-width: 8;
  filter: drop-shadow(0 14px 30px var(--heart-glow));
}

.heart-particles {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.heart-particle {
  position: absolute;
  display: grid;
  width: clamp(1.15rem, 3vw, 1.85rem);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--heart-secondary);
  font-size: clamp(0.78rem, 2.1vw, 1.12rem);
  box-shadow: 0 12px 28px rgba(30, 36, 68, 0.12);
  backdrop-filter: blur(10px);
  opacity: 0;
}

.heart-orbit-dot {
  position: absolute;
  z-index: 19;
  display: grid;
  width: clamp(1rem, 2.5vw, 1.55rem);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--heart-secondary);
  font-size: clamp(0.58rem, 1.55vw, 0.78rem);
  box-shadow: 0 12px 30px var(--heart-glow);
  backdrop-filter: blur(10px);
}

.love-heart.theme-purple {
  --heart-primary: #8b5cf6;
  --heart-secondary: #ec4899;
  --heart-glow: rgba(139, 92, 246, 0.26);
  --heart-accent: #ffd2f1;
}

.love-heart.theme-sky {
  --heart-primary: #2f9d8f;
  --heart-secondary: #f8fdff;
  --heart-glow: rgba(47, 157, 143, 0.24);
  --heart-accent: #bfefff;
}

.love-heart.theme-red {
  --heart-primary: #e11d48;
  --heart-secondary: #1e2444;
  --heart-glow: rgba(225, 29, 72, 0.26);
  --heart-accent: #ffe4e6;
}

.love-heart.theme-flower {
  --heart-primary: #c44f87;
  --heart-secondary: #73d8c1;
  --heart-glow: rgba(196, 79, 135, 0.24);
  --heart-accent: #ffe79a;
}

.love-heart.theme-spark {
  --heart-primary: #ff7a8a;
  --heart-secondary: #ffe79a;
  --heart-glow: rgba(255, 231, 154, 0.34);
  --heart-accent: #ffffff;
}

.choice-panel {
  transform-origin: center;
}

.choice-button {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.choice-button:hover {
  transform: translateY(-2px);
}

.reveal-content.is-locked {
  display: none !important;
}

.destroy-layer {
  position: fixed;
  inset: 0;
  z-index: 64;
  overflow: hidden;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
}

.destroy-layer.is-active {
  opacity: 1;
}

.destroy-piece {
  position: fixed !important;
  z-index: 65;
  margin: 0 !important;
  pointer-events: none !important;
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.destroy-prompt {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.destroy-prompt.is-open {
  opacity: 1;
  pointer-events: auto;
}

.destroy-card {
  width: min(100%, 32rem);
  border-radius: 2rem;
  border: 0;
  background: transparent;
  padding: clamp(1.35rem, 5vw, 2.2rem);
  text-align: center;
  box-shadow: none;
}

.destroy-title {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 0 34px rgba(255, 255, 255, 0.16);
}

.destroy-button {
  min-width: 7.5rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 38px rgba(255, 255, 255, 0.12);
}

body.is-web-destroyed {
  background: #000;
}

.year-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(30, 36, 68, 0.48);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.year-gate-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.year-gate-dialog {
  position: relative;
  width: min(100%, 31rem);
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 247, 251, 0.92)
    ),
    radial-gradient(
      circle at 12% 12%,
      rgba(255, 122, 138, 0.16),
      transparent 34%
    );
  box-shadow: 0 30px 90px rgba(30, 36, 68, 0.28);
  padding: clamp(1.35rem, 5vw, 2rem);
  transform: translateY(16px) scale(0.96);
  transition: transform 220ms ease;
}

.year-gate-modal.is-open .year-gate-dialog {
  transform: translateY(0) scale(1);
}

.year-gate-dialog::before,
.year-gate-dialog::after {
  content: "\f004";
  position: absolute;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: rgba(255, 122, 138, 0.12);
  pointer-events: none;
}

.year-gate-dialog::before {
  right: 1.4rem;
  top: 1.1rem;
  font-size: 4rem;
  transform: rotate(10deg);
}

.year-gate-dialog::after {
  left: 1.2rem;
  bottom: 0.9rem;
  font-size: 2.5rem;
  transform: rotate(-12deg);
}

.year-gate-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(30, 36, 68, 0.68);
  box-shadow: 0 10px 24px rgba(30, 36, 68, 0.12);
}

.year-gate-input {
  width: 100%;
  border-radius: 1.1rem;
  border: 1px solid rgba(196, 79, 135, 0.18);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.95rem 1rem;
  color: #1e2444;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.year-gate-input:focus {
  border-color: rgba(196, 79, 135, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 122, 138, 0.16);
}

.year-gate-status {
  min-height: 1.5rem;
  color: rgba(30, 36, 68, 0.62);
}

.year-gate-status.is-error {
  color: #c44f87;
}

.year-gate-status.is-success {
  color: #2f9d8f;
}

.year-gate-lock {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    background-attachment: scroll;
    background-position: center top;
  }

  .love-heart {
    inset: 0 !important;
  }

  .love-heart-path {
    stroke-width: 6;
  }

}
