:root {
  --brown: #5c3a2e;
  --brown-deep: #3f261e;
  --tan: #c9a27a;
  --cream: #f7f1e8;
  --blush: #e8b7ad;
  --heart: #d9897a;
  --wood: #e2c39a;
  --wood-deep: #b08962;
  --glass: rgba(255, 250, 244, 0.42);
  --glass-strong: rgba(255, 250, 244, 0.84);
  --line: rgba(92, 58, 46, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--brown-deep);
  background: #ead9c6;
  overflow: hidden;
  cursor: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor,
.trails,
.bursts {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid;
    place-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: 46px;
    height: 46px;
    pointer-events: none;
    transform: translate(-50%, -50%);
  }

  .cursor:not(.is-on) {
    opacity: 0;
  }

  .cursor__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed var(--brown);
    opacity: 0.45;
    animation: spin 8s linear infinite;
  }

  .cursor__paw {
    font-size: 14px;
    transform: rotate(-18deg);
  }

  .cursor.is-hover .cursor__ring {
    transform: scale(1.4);
    animation-play-state: paused;
    border-style: solid;
    border-color: var(--heart);
  }

  .trails,
  .bursts {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 35;
    overflow: hidden;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.paw {
  position: absolute;
  font-size: 12px;
  opacity: 0.55;
  animation: pawFade 0.7s ease forwards;
  transform: rotate(var(--r, -20deg));
}

@keyframes pawFade {
  to {
    opacity: 0;
    transform: translateY(-10px) rotate(var(--r, -20deg)) scale(0.6);
  }
}

.bubble {
  position: fixed;
  z-index: 36;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brown);
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid rgba(92, 58, 46, 0.1);
  padding: 8px 14px;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 10px 24px rgba(63, 38, 30, 0.14);
  animation: popSay 1.15s var(--ease) forwards;
  white-space: nowrap;
}

@keyframes popSay {
  0% {
    transform: translate(-50%, -40%) scale(0.4) rotate(-6deg);
    opacity: 0;
  }
  22% {
    transform: translate(-50%, -110%) scale(1.06) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -170%) scale(0.9) rotate(-2deg);
    opacity: 0;
  }
}

.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--heart));
  animation: confetti 1.1s ease-out forwards;
}

.confetti.is-heart {
  background: none;
  width: auto;
  height: auto;
  color: var(--heart);
  font-size: 14px;
}

.confetti.is-heart::before {
  content: "♡";
}

@keyframes confetti {
  to {
    transform: translate(var(--dx), var(--dy)) rotate(140deg);
    opacity: 0;
  }
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.intro__blanket {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 40% at 50% 100%, transparent 42%, #e8d4bf 43%),
    linear-gradient(180deg, #f4e7d8 0%, #ead3bc 100%);
  transform-origin: top;
  animation: liftBlanket 1.25s var(--ease) 1.35s forwards;
}

.intro.is-open .intro__blanket {
  transform: translateY(-108%);
}

@keyframes liftBlanket {
  to {
    transform: translateY(-108%);
  }
}

.intro__say {
  position: relative;
  z-index: 2;
  display: flex;
  gap: clamp(8px, 2vw, 18px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  color: var(--brown);
  letter-spacing: -0.04em;
}

.intro__say span {
  display: block;
  animation: syllable 0.7s var(--ease) both;
}

.intro__say span:nth-child(1) { animation-delay: 0.05s; }
.intro__say span:nth-child(2) { animation-delay: 0.18s; }
.intro__say span:nth-child(3) { animation-delay: 0.32s; }
.intro__say span:nth-child(4) { animation-delay: 0.46s; }
.intro__say span:nth-child(5) { animation-delay: 0.6s; color: var(--heart); }

.intro.is-open .intro__say {
  animation: fadeUp 0.55s ease forwards;
}

@keyframes syllable {
  0% {
    transform: translateY(28px) rotate(-8deg) scale(0.7);
    opacity: 0;
  }
  70% {
    transform: translateY(-8px) rotate(3deg) scale(1.06);
  }
  100% {
    transform: translateY(0) rotate(0) scale(1);
    opacity: 1;
  }
}

@keyframes fadeUp {
  to {
    opacity: 0;
    transform: translateY(-28px);
  }
}

.scene {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.photo {
  position: absolute;
  inset: -5%;
  z-index: 0;
  will-change: transform;
  transition: transform 0.55s var(--ease);
}

.photo.is-tracking {
  transition: none;
}

.photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 42%;
  transform: scale(1.08);
  animation: ken 28s ease-in-out infinite alternate;
}

.photo__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 241, 232, 0.62) 0%, rgba(247, 241, 232, 0.12) 40%, transparent 58%),
    linear-gradient(180deg, rgba(247, 241, 232, 0.12) 0%, transparent 30%, rgba(63, 38, 30, 0.22) 100%);
}

.photo__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 140px 28px rgba(63, 38, 30, 0.16);
}

.photo__spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    460px circle at var(--spot-x, 55%) var(--spot-y, 40%),
    rgba(255, 250, 244, 0.24),
    transparent 55%
  );
  mix-blend-mode: soft-light;
}

@keyframes ken {
  from {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.16) translate3d(-1.4%, -1%, 0);
  }
}

.hotspot {
  position: absolute;
  left: 54%;
  top: 38%;
  z-index: 6;
  width: 88px;
  height: 88px;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: none;
}

.hotspot__pulse {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 250, 244, 0.75);
  box-shadow: 0 0 0 0 rgba(255, 250, 244, 0.45);
  animation: hotspot 2.4s ease-out infinite;
}

.hotspot__hint {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 6px);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #fff8f2;
  text-shadow: 0 2px 8px rgba(63, 38, 30, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.hotspot:hover .hotspot__hint,
.hotspot:focus-visible .hotspot__hint {
  opacity: 1;
}

.hotspot.is-giggle .hotspot__pulse {
  animation: hotspotPop 0.7s var(--ease);
}

@keyframes hotspot {
  70% {
    box-shadow: 0 0 0 18px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes hotspotPop {
  50% {
    transform: scale(1.45);
    opacity: 0.2;
  }
}

.mobile {
  position: absolute;
  top: 0;
  right: 5%;
  z-index: 5;
  width: 180px;
  height: 210px;
  pointer-events: none;
  animation: sway 5.5s ease-in-out infinite;
}

.mobile__hook {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--brown);
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--cream);
}

.mobile__line {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 1px;
  height: 42px;
  background: rgba(92, 58, 46, 0.45);
}

.mobile__arm {
  position: absolute;
  top: 52px;
  left: 50%;
  width: 160px;
  height: 2px;
  background: rgba(92, 58, 46, 0.4);
  transform: translateX(-50%);
}

.charm {
  position: absolute;
  top: 2px;
  width: 28px;
  color: var(--brown);
  filter: drop-shadow(0 6px 8px rgba(63, 38, 30, 0.18));
  animation: charm 3.4s ease-in-out infinite;
}

.charm svg {
  width: 100%;
  display: block;
}

.charm::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 22px;
  background: rgba(92, 58, 46, 0.35);
}

.charm--moon {
  left: 4%;
  color: #d7b27a;
  animation-delay: 0s;
}

.charm--star {
  left: 30%;
  color: #e8c37a;
  width: 22px;
  animation-delay: 0.4s;
}

.charm--heart {
  left: 55%;
  color: var(--heart);
  width: 24px;
  animation-delay: 0.8s;
}

.charm--bear {
  left: 78%;
  color: #cbb196;
  width: 30px;
  animation-delay: 1.1s;
}

@keyframes sway {
  50% {
    transform: rotate(-6deg);
  }
}

@keyframes charm {
  50% {
    transform: translateY(7px) rotate(10deg);
  }
}

.top {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  padding: max(10px, env(safe-area-inset-top)) 24px 0;
}

.top__lead {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  text-decoration: none;
  cursor: none;
  animation: brandPeek 1.3s var(--ease) 1.55s both;
}

.brand__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  letter-spacing: 0.08em;
  color: var(--brown-deep);
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(63, 38, 30, 0.1);
}

.brand__logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}

.top__tag {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  animation: riseIn 0.9s var(--ease) 1.7s both;
}

@keyframes brandPeek {
  0% {
    transform: translateY(-22px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.stage {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  min-height: calc(100dvh - 168px);
  padding: 12px 28px 72px;
}

.panel {
  width: min(560px, 100%);
  transform-style: preserve-3d;
  animation: riseIn 1s var(--ease) 1.6s both;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  letter-spacing: 0.14em;
  color: var(--brown);
  margin-bottom: 12px;
  background: rgba(255, 250, 244, 0.7);
  border: 1px solid rgba(92, 58, 46, 0.1);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
}

.wordmark__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 10px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dae6a;
  box-shadow: 0 0 0 0 rgba(125, 174, 106, 0.6);
  animation: live 1.8s ease-out infinite;
}

@keyframes live {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
}

.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 5.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--brown-deep);
  margin-bottom: 12px;
  text-shadow: 0 1px 0 rgba(255, 250, 244, 0.55);
}

.cycle {
  position: relative;
  display: inline-block;
  color: var(--heart);
  min-width: 3.2ch;
}

.cycle span {
  display: inline-block;
}

.cycle.is-out span {
  animation: cycleOut 0.35s var(--ease) forwards;
}

.cycle.is-in span {
  animation: cycleIn 0.45s var(--ease) both;
}

.scribble {
  position: absolute;
  left: -4%;
  right: -8%;
  bottom: -0.15em;
  width: 108%;
  height: 0.42em;
  overflow: visible;
}

.scribble path {
  fill: none;
  stroke: var(--heart);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.7;
  stroke-dasharray: 180;
  stroke-dashoffset: 0;
  animation: draw 2.4s ease infinite;
}

@keyframes cycleOut {
  to {
    transform: translateY(-12px);
    opacity: 0;
  }
}

@keyframes cycleIn {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
}

@keyframes draw {
  0% {
    stroke-dashoffset: 180;
  }
  40%,
  100% {
    stroke-dashoffset: 0;
  }
}

.lede {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(63, 38, 30, 0.8);
  max-width: 42ch;
  margin-bottom: 22px;
}

.clock {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.block {
  width: 74px;
  height: 78px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, #f3ddbf 0%, #d8b184 100%);
  border: 1px solid rgba(176, 137, 98, 0.45);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    0 7px 0 var(--wood-deep),
    0 12px 18px rgba(63, 38, 30, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(var(--tilt, -2deg));
  transition: transform 0.3s var(--ease);
}

.block.is-tick {
  animation: rattle 0.45s var(--ease);
}

.block span {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1;
}

.block em {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(92, 58, 46, 0.62);
  margin-top: 4px;
}

@keyframes rattle {
  25% {
    transform: rotate(calc(var(--tilt) + 8deg)) translateY(-3px);
  }
  55% {
    transform: rotate(calc(var(--tilt) - 6deg));
  }
  100% {
    transform: rotate(var(--tilt));
  }
}

.notify {
  position: relative;
  max-width: 460px;
}

.tape {
  position: absolute;
  top: -10px;
  left: 28px;
  width: 72px;
  height: 18px;
  background: rgba(232, 183, 173, 0.55);
  transform: rotate(-8deg);
  border-radius: 1px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.notify__row {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(92, 58, 46, 0.12);
  border-radius: 999px;
  padding: 6px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(63, 38, 30, 0.12);
}

.notify input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  color: var(--brown-deep);
  outline: none;
  cursor: none;
}

.notify input::placeholder {
  color: rgba(92, 58, 46, 0.45);
}

.notify__btn {
  border: 0;
  border-radius: 999px;
  background: var(--brown);
  color: #fff8f2;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: none;
  box-shadow: 0 10px 20px rgba(92, 58, 46, 0.22);
  transition: background 0.25s ease;
  white-space: nowrap;
}

.notify__btn:hover,
.notify__btn:focus-visible {
  background: var(--brown-deep);
}

.notify__hint {
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(92, 58, 46, 0.62);
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.thanks {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 96px;
  animation: riseIn 0.6s var(--ease);
}

.thanks__heart {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(217, 137, 122, 0.18);
  color: var(--heart);
  font-size: 1.3rem;
  animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
  50% {
    transform: scale(1.08);
  }
}

.thanks-body {
  cursor: auto;
  overflow: auto;
}

.thanks-body .brand,
.thanks-body .notify__btn {
  cursor: pointer;
}

.thanks-card {
  padding: 28px 28px 24px;
  border-radius: 28px;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(63, 38, 30, 0.12);
}

.thanks-card .title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.thanks-back {
  display: inline-flex;
  margin-top: 8px;
  text-decoration: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 7;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  pointer-events: none;
}

.marquee__track {
  display: flex;
  gap: 28px;
  width: max-content;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: rgba(255, 248, 242, 0.78);
  text-shadow: 0 2px 10px rgba(63, 38, 30, 0.35);
  animation: marquee 22s linear infinite;
}

.marquee__track span::before {
  content: "♡";
  margin-right: 28px;
  color: var(--blush);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.foot {
  position: absolute;
  right: 20px;
  bottom: 10px;
  z-index: 8;
  pointer-events: none;
}

.song {
  position: absolute;
  right: 22px;
  bottom: 78px;
  z-index: 9;
  width: min(300px, calc(100vw - 40px));
  display: grid;
  gap: 10px;
  animation: riseIn 1s var(--ease) 1.8s both;
}

.song__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  color: var(--brown-deep);
  cursor: none;
  box-shadow: 0 12px 28px rgba(63, 38, 30, 0.12);
  text-align: left;
}

.song__eq {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
}

.song__play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff8f2;
  margin-left: 3px;
}

.song__eq i {
  display: none;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: #fff8f2;
  align-self: flex-end;
  margin-bottom: 9px;
}

.song.is-on .song__play {
  display: none;
}

.song.is-on .song__eq {
  align-items: flex-end;
  padding: 9px 0;
}

.song.is-on .song__eq i {
  display: block;
  animation: eq 0.7s ease-in-out infinite;
}

.song.is-on .song__eq i:nth-child(2) {
  animation-delay: 0.15s;
}

.song.is-on .song__eq i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes eq {
  50% {
    height: 16px;
  }
}

.song__meta {
  display: grid;
  min-width: 0;
}

.song__meta strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.song__meta em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(92, 58, 46, 0.62);
}

.song__lyrics {
  --row: 40px;
  --rows: 5;
  height: calc(var(--row) * var(--rows));
  padding: 0;
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(63, 38, 30, 0.12);
  overflow: hidden;
  position: relative;
  perspective: 640px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

.song__highlight {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: var(--row);
  transform: translateY(-50%);
  border-top: 1px solid rgba(92, 58, 46, 0.12);
  border-bottom: 1px solid rgba(92, 58, 46, 0.12);
  pointer-events: none;
  z-index: 2;
}

.song__wheel {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.song__line {
  height: var(--row);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--brown-deep);
  opacity: 0.18;
  transform: scale(0.82);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.song__line.is-near {
  opacity: 0.42;
  transform: scale(0.92);
}

.song__line.is-active {
  opacity: 1;
  font-weight: 600;
  font-size: 1.08rem;
  transform: scale(1);
}

.foot__copy {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 250, 244, 0.72);
  text-shadow: 0 1px 8px rgba(63, 38, 30, 0.35);
}

@media (max-width: 1024px) {
  .stage {
    align-items: flex-end;
    padding-bottom: 64px;
  }

  .panel {
    width: min(560px, 100%);
    padding: 22px 20px 18px;
    border-radius: 28px;
    background: var(--glass-strong);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(63, 38, 30, 0.12);
  }
}

@media (max-width: 900px) {
  .mobile,
  .top__tag {
    display: none;
  }

  body {
    cursor: auto;
    overflow: auto;
  }

  .scene {
    min-height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: #ead9c6;
  }

  .photo {
    position: relative;
    inset: auto;
    z-index: 1;
    width: 100%;
    height: min(58vh, 560px);
    min-height: 300px;
    transition: none;
  }

  .photo__img {
    object-position: 50% 16%;
    transform: none;
    animation: none;
  }

  .photo__wash {
    background: linear-gradient(
      180deg,
      transparent 58%,
      rgba(234, 217, 198, 0.45) 86%,
      #ead9c6 100%
    );
  }

  .photo__spotlight,
  .photo__vignette {
    display: none;
  }

  .hotspot {
    left: 50%;
    top: 48%;
    width: 72px;
    height: 72px;
    cursor: auto;
  }

  .top {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 8;
    padding-right: 64px;
  }

  .song {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: auto;
    width: auto;
    height: min(58vh, 560px);
    min-height: 300px;
    margin: 0;
    z-index: 10;
    pointer-events: none;
    display: block;
  }

  .song__toggle {
    pointer-events: auto;
    position: absolute;
    top: 10px;
    right: 12px;
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(63, 38, 30, 0.22);
  }

  .song__eq {
    width: 48px;
    height: 48px;
    background: rgba(92, 58, 46, 0.88);
  }

  .song__meta {
    display: none;
  }

  .song__lyrics {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    --row: 34px;
    --rows: 3;
    padding: 0;
    background: rgba(255, 250, 244, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.35);
  }

  .song.is-on .song__lyrics {
    display: block;
  }

  .song__line {
    font-size: 0.88rem;
  }

  .song__line.is-active {
    font-size: 0.98rem;
  }

  .stage {
    min-height: 0;
    align-items: stretch;
    padding: 4px 14px 24px;
  }

  .panel {
    width: 100%;
  }
}

@media (max-width: 720px) {
  body {
    cursor: auto;
    overflow: auto;
  }

  button,
  input,
  .hotspot,
  .brand {
    cursor: auto;
  }

  .brand__name {
    letter-spacing: 0.05em;
    padding: 5px 12px 5px 5px;
    font-size: 0.92rem;
  }

  .brand__logo {
    width: 38px;
    height: 38px;
  }

  .photo {
    height: min(52vh, 420px);
    min-height: 260px;
  }

  .song {
    height: min(52vh, 420px);
    min-height: 260px;
  }

  .photo__img {
    object-position: 50% 14%;
  }

  .top {
    padding: 8px 14px 0;
  }

  .stage {
    min-height: 0;
    align-items: stretch;
    padding: 4px 14px 20px;
  }

  .panel {
    width: 100%;
    padding: 20px 16px 16px;
  }

  .marquee {
    display: none;
  }

  .title {
    font-size: 2rem;
  }

  .clock {
    gap: 8px;
  }

  .block {
    flex: 1;
    width: auto;
    height: 70px;
  }

  .block span {
    font-size: 1.28rem;
  }

  .notify__row {
    flex-direction: column;
    border-radius: 22px;
  }

  .notify__btn {
    justify-content: center;
    width: 100%;
  }

  .foot {
    position: relative;
    right: auto;
    bottom: auto;
    padding: 0 14px 14px;
    text-align: center;
  }

  .foot__copy {
    color: rgba(92, 58, 46, 0.5);
    text-shadow: none;
  }

  .hotspot__hint {
    opacity: 0.85;
  }
}

@media (max-width: 420px) {
  .title {
    font-size: 1.78rem;
  }

  .intro__say {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .photo__img,
  .mobile {
    transform: none;
  }

  .intro {
    display: none;
  }
}
