@font-face {
  font-family: "Uni Mahan Saria";
  src: url("assets/fonts/UniMahanSaria.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #726351;
  --gold: #b28a5d;
  --gold-deep: #8d6840;
  --cream: #efeae3;
  --shell: #d9cec5;
  --display: "Uni Mahan Saria", "Noto Naskh Arabic", serif;
  --serif: "Uni Mahan Saria", "Noto Naskh Arabic", serif;
  --text: "Uni Mahan Saria", "Noto Naskh Arabic", serif;
  --script: "Uni Mahan Saria", "Noto Naskh Arabic", serif;
  --quran: "Amiri Quran", "Amiri", "Noto Naskh Arabic", serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
  width: 100%;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--text);
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  height: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
}

.phone {
  --u: calc(100cqi / 1080);
  container-type: inline-size;
  position: relative;
  width: min(100vw, 480px);
  height: 100%;
  max-height: 100dvh;
  max-height: 100svh;
  overflow: hidden;
  background: var(--shell);
}

@media (min-width: 520px) {
  .phone {
    box-shadow: 0 28px 80px rgba(72, 52, 36, 0.18);
  }
}

.deluxe-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.deluxe-bg-fill {
  position: absolute;
  inset: 0;
  background: #efeae3;
}

.deluxe-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deluxe-scroll {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-y;
}

.deluxe-scroll::-webkit-scrollbar {
  display: none;
}

.page {
  box-sizing: border-box;
  flex: none;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  padding:
    calc(env(safe-area-inset-top, 0px) + min(5svh, 44px))
    11%
    calc(env(safe-area-inset-bottom, 0px) + min(16svh, 132px));
}

.page-inner {
  width: 100%;
  max-width: 420px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: calc(14 * var(--u));
  padding: clamp(20px, 4.5svh, 38px) 20px;
  overflow: visible;
}

.arch {
  padding: calc(20 * var(--u)) 0 calc(16 * var(--u));
}

.brooch {
  position: relative;
  width: 150px;
  height: 24px;
  margin: 0 auto;
}

.brooch-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.3px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
}

.brooch-gem {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 35%, #fff 0%, #f6efe6 45%, #d9c2a8 100%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.brooch-pearl {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff 0%, #fffaf2 18%, #f6e8d8 48%, #e4cfba 78%, #c9ab8c 100%);
  box-shadow: 0 1.5px 3px rgba(120, 96, 70, 0.3), inset 0 -2px 3px rgba(160, 130, 100, 0.26);
}

.name {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 14vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.name-md {
  font-size: clamp(44px, 12vw, 52px);
}

.amp {
  margin: -4px 0;
  font-family: var(--script);
  font-size: clamp(50px, 13vw, 58px);
  line-height: 0.7;
  color: var(--gold);
}

.amp-md {
  font-size: clamp(42px, 11vw, 50px);
}

.page-opening {
  padding-inline: 6%;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + min(14svh, 112px));
}

.page-opening .page-inner {
  overflow: visible;
  max-width: 100%;
  gap: 0;
  padding: clamp(28px, 6svh, 52px) 12px;
}

.page-opening .name {
  font-size: clamp(72px, 20vw, 96px);
  line-height: 1.22;
  padding: 0.04em 0.1em;
  overflow: visible;
}

.page-opening .amp {
  margin: -0.2em 0;
  font-size: clamp(60px, 16vw, 76px);
  line-height: 1.12;
  padding: 0.06em 0.15em;
  overflow: visible;
}

.page-opening .reveal {
  overflow: visible;
}

.page-opening .brooch {
  margin-bottom: 0.15em;
}

.page-opening .rule {
  margin-top: 0.5em;
}

.rule {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 150px;
  margin-top: 12px;
}

.rule-line {
  flex: 1;
  height: 1.2px;
  opacity: 0.85;
}

.rule-line.left {
  background: linear-gradient(90deg, transparent, var(--gold));
}

.rule-line.right {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.rule-gem {
  width: 15px;
  height: 15px;
  flex: none;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.quran-block {
  width: 100%;
  max-width: 360px;
}

.quran-verse {
  margin: 0;
  font-family: var(--quran);
  font-size: clamp(19px, 4.8vw, 24px);
  line-height: 1.85;
  color: var(--ink);
  font-feature-settings: "liga" 1, "calt" 1;
}

.page-invite .invite-msg {
  margin: 1.35em 0 0;
  padding-top: 1.1em;
  border-top: 1px solid rgba(176, 148, 116, 0.35);
}

.invite-msg {
  margin: 8px 0 0;
  font-size: clamp(18px, 4.8vw, 22px);
  line-height: 1.55;
  max-width: 340px;
}

.section-kicker {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.1em 0;
  overflow: visible;
}

.section-kicker-gold {
  color: var(--gold-deep);
  font-size: 14px;
}

.page-date .section-kicker.section-kicker-gold,
.page-location .section-kicker.section-kicker-gold {
  font-family: var(--display);
  font-size: clamp(24px, 6.2vw, 32px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  margin: 0 0 0.35em;
  flex: none;
}

.page-date,
.page-location {
  align-items: center;
  padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
}

.page-date .page-inner.arch,
.page-location .page-inner.arch {
  padding-top: clamp(8px, 2svh, 16px);
  padding-bottom: clamp(8px, 2svh, 16px);
  gap: clamp(8px, 2.2svh, 14px);
  max-width: min(100%, 380px);
}

.page-date .date-stack {
  gap: clamp(8px, 2svh, 12px);
}

.page-date .medal-date {
  width: min(64%, 210px);
}

.page-date .medal-day {
  font-size: clamp(44px, 12vw, 56px);
}

.page-date .date-row {
  gap: 10px;
}

.page-date .medal-small {
  width: min(42%, 150px);
}

.page-date .calendar-btn {
  margin-top: 4px;
}

.page-location .location-card {
  width: min(100%, 300px);
}

.page-location .map-btn {
  margin-top: 6px;
  min-height: 40px;
  font-size: clamp(14px, 3.6vw, 16px);
}

.page-invite .section-kicker {
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 700;
  margin-top: 1.1em;
}

.page-countdown .section-kicker.section-kicker-gold {
  font-family: var(--display);
  font-size: clamp(20px, 5.2vw, 26px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  margin: 0 0 0.2em;
  padding: 0.12em 0.15em;
  color: var(--ink);
  opacity: 0.88;
}

.page-countdown .page-inner.arch {
  gap: clamp(10px, 2.5svh, 16px);
  overflow: visible;
  padding-bottom: 12px;
}

@media (max-height: 780px) {
  .page-date .section-kicker.section-kicker-gold,
  .page-location .section-kicker.section-kicker-gold {
    font-size: clamp(22px, 5.8vw, 28px);
  }

  .page-date .medal-date {
    width: min(58%, 188px);
  }

  .page-date .medal-day {
    font-size: clamp(38px, 10.5vw, 48px);
  }

  .page-date .date-row .medal-caption {
    font-size: clamp(15px, 4vw, 18px);
  }

  .page-location .location-card {
    width: min(100%, 268px);
  }

  .page-location .venue {
    font-size: clamp(16px, 4.2vw, 19px);
  }

  .page-location .address {
    font-size: clamp(13px, 3.4vw, 15px);
  }
}

.families {
  display: flex;
  gap: 48px;
  margin-top: 8px;
}

.family-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.family-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
}

.family-label {
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.date-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.medal {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.medal img {
  display: block;
  width: 100%;
  height: auto;
}

.medal-date {
  width: min(72%, 250px);
}

.medal-day,
.medal-month,
.medal-year,
.medal-caption {
  position: absolute;
  inset-inline: 0;
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  transform: none;
}

.medal-day {
  top: 33%;
  font-family: var(--display);
  font-size: clamp(52px, 14vw, 64px);
  line-height: 1;
  white-space: nowrap;
}

.medal-meta {
  position: absolute;
  inset-inline: 0;
  top: 52%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
  padding-inline: 6%;
  text-align: center;
}

.medal-month {
  position: static;
  width: 100%;
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}

.medal-year {
  position: static;
  width: 100%;
  font-size: clamp(16px, 4.2vw, 19px);
  line-height: 1.2;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.date-row {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.medal-small {
  width: min(44%, 170px);
}

.medal-caption {
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.date-row .medal-caption {
  font-family: var(--display);
  font-size: clamp(18px, 4.8vw, 23px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.medal-date .medal-day.reveal.is-visible,
.medal-date .medal-meta.reveal.is-visible,
.medal-date .medal-month.reveal.is-visible,
.medal-date .medal-year.reveal.is-visible {
  transform: none;
}

.medal-small .medal-caption.reveal.is-visible {
  transform: translateY(-50%);
}

.calendar-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: auto;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(176, 148, 116, 0.7);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  max-width: min(100%, 320px);
  background: rgba(255, 252, 248, 0.72);
  overflow: visible;
}

.location-card {
  position: relative;
  width: 100%;
}

.location-card img {
  width: 100%;
  display: block;
}

.location-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18% 12% 10%;
  gap: 8px;
}

.venue {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 700;
}

.address {
  margin: 0;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.45;
  max-width: 280px;
}

.map-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 18px 6px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(176, 148, 116, 0.7);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(15px, 4vw, 17px);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  background: rgba(255, 252, 248, 0.82);
  box-shadow: 0 6px 16px rgba(92, 70, 48, 0.08);
}

.map-btn__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(176, 148, 116, 0.55);
  background: rgba(255, 252, 248, 0.95);
  color: var(--gold-deep);
}

.map-btn__label {
  line-height: 1.2;
  white-space: nowrap;
}

.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(100%, 360px);
  margin: 4px 0 8px;
  gap: 14px;
  overflow: visible;
  direction: ltr;
  unicode-bidi: isolate;
}

.cd-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 280px);
}

.cd-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 148, 116, 0.55), transparent);
}

.cd-rule-gem {
  width: 11px;
  height: 11px;
  flex: none;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.85;
}

.cd-days {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  column-gap: clamp(12px, 3.5vw, 20px);
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}

.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  min-width: 0;
}

.cd-block-days {
  min-width: 72px;
}

.cd-block-time {
  min-width: 0;
  width: clamp(64px, 22vw, 88px);
}

.cd-num {
  font-family: var(--display);
  line-height: 1.1;
  padding: 0.06em 0;
  animation: cd-tick 0.35s ease;
}

.cd-num-days {
  font-size: clamp(68px, 19vw, 96px);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.cd-num-time {
  font-size: clamp(26px, 7.2vw, 34px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.cd-label {
  font-family: var(--display);
  font-size: clamp(11px, 2.9vw, 13px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 8px;
  padding: 0.2em 0.05em 0.25em;
  overflow: visible;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0.9;
  direction: rtl;
  unicode-bidi: plaintext;
}

.cd-block-days .cd-label {
  margin-top: 6px;
  font-size: clamp(12px, 3.2vw, 14px);
}

.cd-time-row {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  align-items: end;
  justify-content: center;
  column-gap: clamp(4px, 1.5vw, 10px);
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  flex-wrap: nowrap;
}

.cd-sep {
  font-size: clamp(14px, 3.8vw, 17px);
  color: var(--gold);
  line-height: 1;
  padding-bottom: 0.55em;
  opacity: 0.9;
}

.cd-colon {
  font-family: var(--display);
  font-size: clamp(20px, 5.5vw, 26px);
  color: var(--ink);
  opacity: 0.75;
  line-height: 1;
  align-self: center;
  padding-bottom: 1.85em;
}

@media (max-width: 380px) {
  .cd-num-days {
    font-size: clamp(58px, 17vw, 72px);
  }

  .cd-num-time {
    font-size: clamp(22px, 6.4vw, 28px);
  }

  .cd-block-time {
    width: clamp(56px, 20vw, 72px);
  }

  .cd-block-time .cd-label {
    font-size: 10px;
    letter-spacing: 0;
  }
}

.quote {
  margin: 12px 0 0;
  font-style: italic;
  font-size: clamp(17px, 4.5vw, 20px);
  line-height: 1.5;
  max-width: 320px;
}

.title-img {
  position: relative;
  width: min(100%, 280px);
  margin: 0 auto 8px;
}

.title-img img {
  width: 100%;
  display: block;
}

.title-img span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
}

.title-img-sm {
  width: min(100%, 240px);
}

.timeline,
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline li,
.menu-list li {
  text-align: center;
}

.timeline .time {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  margin-bottom: 2px;
}

.timeline .title,
.menu-list h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline p,
.menu-list p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 320px;
  margin-inline: auto;
}

.subtle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(114, 99, 81, 0.88);
  max-width: 320px;
}

.memory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 10px 0;
}

.memory-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.ghost-btn,
.pill-btn {
  appearance: none;
  border: 1.5px solid rgba(176, 148, 116, 0.65);
  background: rgba(255, 252, 248, 0.8);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 18px;
  cursor: pointer;
}

.ghost-btn:disabled,
.pill-btn:disabled,
.field:disabled,
.field-area:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.memory-note {
  font-size: 14px;
  color: rgba(114, 99, 81, 0.75);
}

.game-title,
.gift-title,
.closing-names {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 9vw, 42px);
}

.field-label {
  margin: 8px 0 4px;
  width: 100%;
  text-align: start;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.field,
.field-area {
  width: 100%;
  border: 1px solid rgba(176, 148, 116, 0.55);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--text);
  font-size: 16px;
  color: var(--ink);
  background: rgba(255, 252, 248, 0.85);
}

.field-area {
  min-height: 88px;
  resize: vertical;
}

.rsvp-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 8px 0;
}

.rsvp-actions .pill-btn {
  flex: 1;
}

.pill-btn-ghost {
  background: transparent;
}

.pill-btn-wide {
  width: 100%;
  margin-top: 8px;
}

.counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 8px;
}

.counter button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(176, 148, 116, 0.6);
  background: rgba(255, 252, 248, 0.85);
  font-size: 20px;
  line-height: 1;
}

.counter span {
  font-family: var(--display);
  font-size: 28px;
  min-width: 24px;
}

.gift-value,
.gift-iban {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.gift-note {
  margin-top: 12px;
}

.closing-msg {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.55;
  max-width: 320px;
}

.closing-date {
  margin: 16px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  font-family: var(--display);
  font-size: clamp(28px, 7.5vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
  text-decoration: none;
  -webkit-text-decoration: none;
  pointer-events: none;
  unicode-bidi: isolate;
}

.closing-date__sep {
  padding-inline: 0.08em;
}

.closing-date a {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
}

.closing-weekday {
  margin: 0.35em 0 0;
  font-family: var(--display);
  font-size: clamp(20px, 5.2vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.intro {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #d9cec5;
  overflow: hidden;
}

.intro-poster,
.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.intro-video {
  opacity: 0;
  transition: opacity 0.65s ease;
}

.intro.is-playing .intro-video {
  opacity: 1;
}

.intro.is-playing .intro-poster {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s linear;
}

.intro-hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: transparent;
}

.intro-cta {
  position: absolute;
  left: 50%;
  bottom: 8.5%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.intro.is-playing .intro-cta {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

.hint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8b39a;
}

.open-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px solid transparent;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(14px, 3.8vw, 16px);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  min-width: min(280px, 88vw);
  min-height: 46px;
  height: auto;
  padding: 10px 22px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #fffdf9 0%, #f6f0e7 100%) padding-box,
    linear-gradient(150deg, #ead7b0, #b89262 45%, #f0e2c4 70%, #9a774c) border-box;
  box-shadow: 0 10px 24px rgba(92, 70, 48, 0.12);
  pointer-events: auto;
}

.scroll-down {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.94);
  box-shadow: 0 8px 20px rgba(80, 60, 40, 0.12);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  cursor: pointer;
}

.scroll-down[hidden] {
  display: none !important;
}

.sound {
  position: absolute;
  z-index: 6;
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  background: rgba(255, 252, 248, 0.94);
  box-shadow: 0 8px 20px rgba(80, 60, 40, 0.12);
  display: grid;
  place-items: center;
}

.sound svg {
  width: 46%;
  height: 46%;
}

.sound .sound-slash {
  display: none;
}

.sound.is-muted .sound-slash {
  display: block;
}

@keyframes cd-tick {
  from {
    transform: translateY(-0.45em);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  overflow: visible;
  will-change: opacity, transform, filter, clip-path;
  transition:
    opacity 0.92s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.92s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.92s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
  clip-path: inset(0);
}

.reveal-brooch {
  transform: translateY(8px);
  filter: blur(4px);
}

.reveal-up {
  transform: translateY(20px);
  filter: blur(6px);
}

.reveal-up-lg {
  transform: translateY(38px) scale(0.985);
  filter: blur(10px);
}

.reveal-label {
  transform: scale(1.2);
  filter: blur(5px);
}

.reveal-rule {
  transform: scaleX(0.12);
  filter: none;
}

.reveal-rule.is-visible {
  transform: scaleX(1);
}

.reveal-name-l {
  transform: translateX(-32px);
  filter: blur(8px);
}

.reveal-name-r {
  transform: translateX(32px);
  filter: blur(8px);
}

.reveal-name-l-wide {
  transform: translateX(-56px);
  filter: blur(8px);
}

.reveal-name-r-wide {
  transform: translateX(56px);
  filter: blur(8px);
}

[dir="rtl"] .reveal-name-l,
[dir="rtl"] .reveal-name-l-wide {
  transform: translateX(32px);
}

[dir="rtl"] .reveal-name-l-wide {
  transform: translateX(56px);
}

[dir="rtl"] .reveal-name-r,
[dir="rtl"] .reveal-name-r-wide {
  transform: translateX(-32px);
}

[dir="rtl"] .reveal-name-r-wide {
  transform: translateX(-56px);
}

.reveal-bloom {
  transform: scale(0.84) rotate(-2.5deg);
  filter: blur(7px);
}

.reveal-scale {
  transform: scale(0.9);
  filter: blur(7px);
}

.reveal-scale-sm {
  transform: scale(0.94);
  filter: blur(10px);
}

.reveal-clip {
  clip-path: inset(100% 0 0 0);
  filter: none;
  transform: none;
}

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

  .intro,
  .intro-video,
  .cd-num,
  .reveal {
    transition: none !important;
    animation: none !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: inset(0);
  }
}
