:root {
  --stage: #332f2d;
  --stage-deep: #272421;
  --cream: #f4eee3;
  --paper: rgba(250, 245, 235, 0.86);
  --paper-solid: #f9f4ea;
  --ink: #2b2926;
  --brown: #5b5148;
  --muted: #8a8175;
  --line: rgba(43, 41, 38, 0.13);
  --wine: #6e3f3d;
  --rose: #d8b8ad;
  --champagne: #b99a63;
  --gold-soft: #d6c39b;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.22);
  --serif-en: Georgia, "Times New Roman", serif;
  --serif-cn: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--stage);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -8%, rgba(214, 195, 155, 0.18), transparent 320px),
    radial-gradient(circle at 12% 18%, rgba(216, 184, 173, 0.14), transparent 260px),
    linear-gradient(180deg, var(--stage) 0%, var(--stage-deep) 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(185, 154, 99, 0.12), transparent 330px);
}

a {
  color: inherit;
}

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

.site-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
}

body.intro-lock {
  overflow: hidden;
}

.intro-envelope {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 244, 224, 0.18), transparent 300px),
    linear-gradient(180deg, #3c3835 0%, #282522 100%);
  transition: opacity 700ms ease, visibility 700ms ease;
}

.intro-envelope.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-open {
  position: relative;
  width: min(100%, 430px);
  height: 352px;
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 28px;
  color: var(--paper-solid);
  border: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.envelope {
  position: relative;
  width: min(90vw, 420px);
  height: 352px;
  display: block;
  margin: 0 auto;
  perspective: 900px;
  transform: translateX(0);
}

.envelope-back,
.envelope-front,
.envelope-flap,
.envelope-letter,
.envelope-seal {
  position: absolute;
  left: 0;
  right: 0;
}

.envelope-back {
  inset: 72px 0 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #efe3d2, #cdb59a);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
  z-index: 1;
}

.envelope-letter {
  top: 20px;
  left: 34px;
  right: 34px;
  height: 224px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--ink);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 38%),
    var(--paper-solid);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.15);
  transform: translateY(118px);
  transition: transform 900ms cubic-bezier(.2, .8, .2, 1) 260ms;
  z-index: 2;
}

.envelope-letter small {
  display: block;
  color: var(--wine);
  font-family: var(--serif-en);
  font-size: 1rem;
  font-style: italic;
}

.envelope-letter strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif-cn);
  font-size: 1.7rem;
  font-weight: 500;
}

.envelope-letter::after {
  width: 92px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(122, 63, 66, 0.32), transparent);
}

.envelope-flap {
  top: 72px;
  height: 166px;
  transform-origin: top center;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #ead8c2, #c3a487);
  border-radius: 14px 14px 0 0;
  transition: transform 900ms cubic-bezier(.2, .8, .2, 1);
  z-index: 5;
}

.envelope-front {
  bottom: 0;
  height: 224px;
  border-radius: 0 0 14px 14px;
  background:
    linear-gradient(32deg, #c7a98c 0 49%, transparent 50%),
    linear-gradient(-32deg, #e3ceb7 0 49%, transparent 50%),
    linear-gradient(180deg, #ead8c4, #c7a98c);
  z-index: 4;
}

.envelope-seal {
  top: 196px;
  left: 50%;
  right: auto;
  z-index: 6;
  width: 66px;
  height: 66px;
  display: grid;
  color: #fffaf2;
  font-family: var(--serif-en);
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #5d3b36, #a77d67);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
  transition: opacity 520ms ease, transform 520ms ease;
}

.intro-copy {
  position: absolute;
  top: calc(100% + 24px);
  left: 50%;
  width: max-content;
  color: rgba(249, 244, 234, 0.76);
  font-size: 0.98rem;
  transform: translateX(-50%);
}

.intro-envelope.is-opening .envelope-flap {
  transform: rotateX(176deg);
  z-index: 2;
}

.intro-envelope.is-opening .envelope-letter {
  z-index: 7;
  transform: translateY(-82px);
}

.intro-envelope.is-opening .envelope-seal {
  opacity: 0;
  transform: translateX(-50%) scale(0.82);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 760ms ease, transform 760ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ambient-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: var(--left);
  top: calc(100% + 28px);
  border-radius: 50%;
  background: rgba(255, 246, 226, 0.72);
  box-shadow: 0 0 18px rgba(255, 238, 208, 0.56);
  opacity: 0;
  animation: floatParticle var(--duration) linear var(--delay) infinite;
}

.section {
  position: relative;
  z-index: 1;
  padding: 82px 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(249, 244, 234, 0.94), rgba(244, 238, 227, 0.92)),
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.72), transparent 240px);
}

.section-eyebrow {
  margin: 0 0 14px;
  color: var(--wine);
  font-family: var(--serif-en);
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 500;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  max-width: 9.5em;
  margin: 0 auto 18px;
  color: var(--ink);
  font-family: var(--serif-en);
  font-size: 2.42rem;
  font-weight: 500;
  line-height: 1.06;
}

.hero {
  min-height: 100svh;
  display: grid;
  padding: 24px 18px;
  color: var(--ink);
  place-items: stretch;
  background:
    radial-gradient(circle at 50% 30%, rgba(214, 195, 155, 0.16), transparent 260px),
    linear-gradient(180deg, var(--stage), var(--stage-deep));
}

.hero-frame {
  position: relative;
  min-height: calc(100svh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: max(22px, env(safe-area-inset-top)) 22px max(32px, env(safe-area-inset-bottom));
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 32%),
    var(--paper-solid);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-frame::before,
.hero-frame::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero-frame::before {
  inset: 0;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent, rgba(43, 41, 38, 0.08), transparent) 22px calc(100% - 22px) / calc(100% - 44px) 1px no-repeat;
  opacity: 0.7;
}

.hero-frame::after {
  inset: 0;
  width: auto;
  height: auto;
  background-image:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 82%, rgba(43, 41, 38, 0.035) 0 1px, transparent 1px);
  background-size: 18px 18px, 24px 24px;
  opacity: 0.22;
}

.paper-topline,
.hero-photo-slot,
.hero-copy,
.hero h1,
.hero-date-block,
.hero-address {
  position: relative;
  z-index: 1;
}

.paper-topline {
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: rgba(43, 41, 38, 0.62);
  font-family: var(--serif-en);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-photo-slot {
  width: 100%;
  margin: 18px 0 0;
}

.hero-photo-slot img,
.photo-placeholder {
  width: 100%;
  height: clamp(310px, 48svh, 460px);
  display: grid;
  place-items: center;
  object-fit: cover;
  background:
    linear-gradient(180deg, rgba(32, 30, 28, 0.08), rgba(32, 30, 28, 0.28)),
    linear-gradient(135deg, #7f756b 0%, #4e4944 46%, #272522 100%);
  color: rgba(249, 244, 234, 0.88);
  filter: none;
  transform: translateZ(0);
}

.photo-placeholder span,
.photo-placeholder strong {
  display: block;
  text-align: center;
}

.photo-placeholder span {
  font-family: var(--serif-en);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.photo-placeholder strong {
  margin-top: 12px;
  font-family: var(--serif-en);
  font-size: 1.52rem;
  font-style: italic;
  font-weight: 400;
}

.hero-photo-slot figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: rgba(43, 41, 38, 0.68);
  font-family: var(--serif-en);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.hero-copy {
  flex: 1;
  width: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 46px 0 22px;
}

.script-title {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--serif-en);
  font-size: 2.4rem;
  font-style: italic;
  line-height: 1;
}

.welcome-line {
  margin: 0 0 42px;
  color: var(--brown);
  font-family: var(--serif-cn);
  font-size: 1.02rem;
  letter-spacing: 0.08em;
}

.hero h1 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin: 0 0 34px;
  color: var(--ink);
  font-family: var(--serif-cn);
  font-size: 1.92rem;
  font-weight: 500;
  line-height: 1.2;
}

.ampersand {
  color: var(--ink);
  font-family: var(--serif-en);
  font-size: 0.74em;
  font-style: italic;
}

.hero-date-block {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.hero-date-block span {
  color: var(--muted);
  font-family: var(--serif-en);
  font-size: 0.98rem;
}

.hero-date-block strong {
  color: var(--ink);
  font-family: var(--serif-en);
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1;
}

.hero-date-block small {
  color: var(--brown);
  font-size: 0.96rem;
  line-height: 1.6;
}

.hero-address {
  max-width: 19em;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(30px + env(safe-area-inset-bottom));
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  text-decoration: none;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 8px;
  height: 8px;
  display: block;
  border-right: 1.5px solid var(--wine);
  border-bottom: 1.5px solid var(--wine);
  transform: translateY(-2px) rotate(45deg);
  animation: cueMove 2.2s ease-in-out infinite;
}

.opening {
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.opening,
.countdown,
.couple,
.details,
.schedule,
.location,
.blessing-form {
  margin: 0;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.42);
}

.opening p:not(.section-eyebrow),
.soft-copy,
.location p {
  max-width: 24em;
  margin-inline: auto;
  margin-bottom: 0;
  color: var(--brown);
  font-size: 1.05rem;
  line-height: 1.9;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.countdown-grid div {
  min-width: 0;
  padding: 20px 5px 17px;
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.56);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px);
}

.countdown-grid strong {
  display: block;
  color: var(--wine);
  font-family: var(--serif-en);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.countdown-grid span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.couple-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 330px;
  margin: 32px auto 0;
}

.person-card {
  min-width: 0;
  padding: 28px 18px;
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.58);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(18px);
}

.person-badge {
  width: 74px;
  height: 74px;
  display: grid;
  margin: 0 auto 18px;
  color: var(--wine);
  font-family: var(--serif-en);
  font-size: 1.12rem;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 250, 242, 0.42));
  box-shadow: inset 0 0 0 1px rgba(95, 74, 58, 0.08);
}

.person-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.person-card h2 {
  margin: 7px 0 0;
  color: var(--ink);
  font-family: var(--serif-cn);
  font-size: 2.05rem;
  font-weight: 500;
  line-height: 1.12;
}

.couple-mark {
  width: 36px;
  height: 36px;
  display: grid;
  margin: -8px auto;
  color: var(--champagne);
  font-family: var(--serif-en);
  font-size: 1.35rem;
  font-style: italic;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.86);
  box-shadow: 0 12px 28px rgba(84, 57, 37, 0.12);
}

.detail-card,
.form-card {
  max-width: 380px;
  margin-inline: auto;
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.62);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

.detail-card {
  margin-top: 28px;
  padding: 8px 22px;
}

dl {
  margin: 0;
}

.detail-card div {
  display: grid;
  gap: 5px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.detail-card div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-family: var(--serif-en);
  font-size: 0.84rem;
  font-style: italic;
}

dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.66;
}

.timeline {
  display: grid;
  gap: 12px;
  max-width: 380px;
  margin: 30px auto 0;
}

.timeline-item {
  display: grid;
  gap: 8px;
  padding: 20px 18px;
  border-radius: 6px;
  background: rgba(255, 250, 242, 0.58);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(18px);
}

.timeline-time {
  color: var(--wine);
  font-family: var(--serif-en);
  font-size: 1.42rem;
  font-weight: 500;
}

.timeline-content h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 600;
}

.timeline-content p {
  margin: 0;
  color: var(--brown);
  font-size: 0.96rem;
  line-height: 1.65;
}

.primary-button,
.ghost-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  padding: 0 24px;
  color: #fffaf2;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a3f42, #a86b62);
  box-shadow: 0 18px 38px rgba(122, 63, 66, 0.22);
  transition: transform 180ms ease, opacity 180ms ease;
}

.primary-button:active,
.ghost-button:active {
  transform: scale(0.985);
}

.primary-button.full {
  width: 100%;
}

.ghost-button {
  color: var(--wine);
  background: rgba(255, 250, 242, 0.78);
  box-shadow: 0 12px 28px rgba(84, 57, 37, 0.10);
}

.ghost-button.muted {
  color: var(--muted);
}

.wechat-panel {
  display: flex;
  max-width: 380px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px auto 14px;
}

.wechat-hint {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
}

.wechat-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.wechat-user img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.wechat-user strong,
.wechat-user span {
  display: block;
}

.wechat-user strong {
  color: var(--ink);
  font-weight: 600;
}

.form-card {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 22px;
  text-align: left;
}

.form-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  border: 0;
  border-radius: 16px;
  outline: 0;
  background: rgba(255, 255, 255, 0.64);
  padding: 12px 14px;
}

.form-card textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.65;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  box-shadow: 0 0 0 3px rgba(122, 63, 66, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 12px;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--wine);
  line-height: 1.55;
  text-align: center;
}

.form-message.is-error {
  color: #b23b32;
}

.music-toggle,
.marquee-toggle {
  position: fixed;
  z-index: 30;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wine);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.74);
  box-shadow: 0 12px 32px rgba(84, 57, 37, 0.12);
  backdrop-filter: blur(18px);
  padding: 0 13px;
}

.music-toggle {
  top: calc(14px + env(safe-area-inset-top));
  left: max(14px, calc((100vw - 520px) / 2 + 14px));
}

.music-disc {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--wine) 0 2px, transparent 2px),
    conic-gradient(from 40deg, #7a3f42, #d7a9a3, #c3a267, #7a3f42);
}

.music-toggle.is-playing .music-disc {
  animation: spinMusic 4s linear infinite;
}

.blessing-marquee {
  position: fixed;
  top: env(safe-area-inset-top);
  left: 50%;
  z-index: 20;
  width: min(100%, 520px);
  height: min(42vh, 300px);
  pointer-events: none;
  transform: translateX(-50%);
}

.marquee-stage {
  position: absolute;
  inset: 54px 0 4px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 88%, transparent);
}

.marquee-card {
  position: absolute;
  left: 100%;
  max-width: min(78vw, 320px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  color: rgba(249, 244, 234, 0.95);
  border-radius: 999px;
  background: rgba(34, 31, 28, 0.18);
  box-shadow: none;
  backdrop-filter: blur(18px);
  animation-name: marqueeMove;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.marquee-card img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.marquee-card strong {
  color: rgba(249, 244, 234, 0.92);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.marquee-card span {
  overflow: hidden;
  color: rgba(249, 244, 234, 0.76);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marquee-toggle {
  top: calc(14px + env(safe-area-inset-top));
  right: max(14px, calc((100vw - 520px) / 2 + 14px));
  pointer-events: auto;
}

.toggle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wine);
}

.marquee-toggle[aria-pressed="false"] .toggle-dot {
  background: rgba(95, 74, 58, 0.28);
}

.blessing-marquee.is-paused .marquee-stage {
  display: none;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 58px 24px calc(58px + env(safe-area-inset-bottom));
  color: var(--muted);
  text-align: center;
}

.site-footer div {
  color: var(--ink);
  font-family: var(--serif-cn);
  font-size: 1.8rem;
  font-weight: 500;
}

.site-footer p,
.site-footer span {
  display: block;
  margin: 10px 0 0;
}

@keyframes cueMove {
  0%, 100% {
    transform: translateY(-2px) rotate(45deg);
  }
  50% {
    transform: translateY(3px) rotate(45deg);
  }
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.8);
  }
  16% {
    opacity: var(--opacity);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), -110vh, 0) scale(1.12);
  }
}

@keyframes marqueeMove {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-100vw - 380px), 0, 0);
  }
}

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

@media (max-width: 370px) {
  .section {
    padding-inline: 18px;
  }

  .hero {
    padding: 12px;
  }

  .hero-frame {
    min-height: calc(100svh - 24px);
    padding-inline: 18px;
  }

  .hero-photo-slot img,
  .photo-placeholder {
    height: clamp(270px, 44svh, 390px);
  }

  .script-title {
    font-size: 2.12rem;
  }

  .welcome-line {
    margin-bottom: 32px;
    font-size: 0.94rem;
  }

  .hero h1 {
    font-size: 1.62rem;
    gap: 10px;
  }

  .hero-date-block strong {
    font-size: 1.22rem;
  }

  h2 {
    font-size: 2.14rem;
  }

  .form-grid,
  .countdown-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@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;
  }
}
