@font-face {
  font-family: "SS GEO CHALK";
  src: url("SS GEO CHALK.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alk Life";
  src: url(alk_life.otf) format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #fff1cd;
  --wine: #4c0f16;
  --wine-soft: #7a2b33;
  --olive: #6f723b;
  --olive-soft: #9aa06a;
  --gold: #b3945c;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family:
    "Alk Life",
    Georgia,
    serif;
  background-color: var(--paper);
  color: var(--wine);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: var(--olive-soft);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--olive);
}
html {
  scrollbar-width: thin;
  scrollbar-color: var(--olive-soft) var(--paper);
}
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.16'/></svg>");
}
.sheet {
  position: relative;
  margin-top: -24px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  background-color: var(--paper);
  box-shadow: 0 -12px 30px rgba(76, 15, 22, 0.11);
}
.countdown {
  z-index: 1;
}
.timetable {
  z-index: 2;
}
.rsvp {
  z-index: 3;
}
.footer {
  z-index: 4;
}
.sheet__body {
  position: relative;
  z-index: 1;
  will-change: transform;
}
.hero {
  position: relative;
  z-index: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 16px;
  background-color: var(--paper);
}
.hero-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.corner {
  position: absolute;
  z-index: 1;
  line-height: 0;
  pointer-events: none;
  will-change: transform;
}
.corner__in {
  line-height: 0;
}
.corner img {
  display: block;
  width: 100%;
  height: auto;
}
.corner--tl {
  top: 0;
  left: 0;
  width: 40%;
}
.corner--tr {
  top: 0;
  right: 0;
  width: 40%;
}
.corner--bl {
  bottom: 0;
  left: 0;
  width: 36%;
}
.corner--br {
  bottom: 0;
  right: 0;
  width: 36%;
}
@keyframes cornerInTL {
  from {
    opacity: 0;
    transform: translate(-46%, -34%) rotate(-7deg);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
}
@keyframes cornerInTR {
  from {
    opacity: 0;
    transform: translate(46%, -34%) rotate(7deg);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
}
@keyframes cornerInBL {
  from {
    opacity: 0;
    transform: translate(-46%, 34%) rotate(7deg);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
}
@keyframes cornerInBR {
  from {
    opacity: 0;
    transform: translate(46%, 34%) rotate(-7deg);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
}
.corner__in--tl {
  animation: cornerInTL 1.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.corner__in--tr {
  animation: cornerInTR 1.7s 0.30s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.corner__in--bl {
  animation: cornerInBL 1.7s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.corner__in--br {
  animation: cornerInBR 1.7s 0.60s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes sway {
  from {
    transform: rotate(-1deg) translateY(0);
  }
  to {
    transform: rotate(0.95deg) translateY(3px);
  }
}
.sway {
  animation: sway 7s ease-in-out infinite alternate;
}
.sway--tl {
  transform-origin: 0 0;
  animation-delay: 1.9s;
  animation-duration: 7.4s;
}
.sway--tr {
  transform-origin: 100% 0;
  animation-delay: 2.1s;
  animation-duration: 8.2s;
}
.sway--bl {
  transform-origin: 0 100%;
  animation-delay: 2.3s;
  animation-duration: 6.8s;
}
.sway--br {
  transform-origin: 100% 100%;
  animation-delay: 2.5s;
  animation-duration: 7.9s;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform, opacity;
}
.hero-layer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}
@keyframes textPopIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.86) rotate(-2deg);
    animation-timing-function: steps(1);
  }
  25% {
    opacity: 1;
    transform: translateY(6px) scale(1.06) rotate(1.5deg);
    animation-timing-function: steps(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px) scale(0.96) rotate(-1deg);
    animation-timing-function: steps(1);
  }
  75% {
    opacity: 1;
    transform: translateY(1px) scale(1.03) rotate(0.5deg);
    animation-timing-function: steps(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}
@keyframes namesStopMotion {
  0% {
    opacity: 0.92;
    transform: translateY(0px) rotate(-0.15deg);
    animation-timing-function: steps(1);
  }
  13% {
    opacity: 1.00;
    transform: translateY(-1px) rotate(0.10deg);
    animation-timing-function: steps(1);
  }
  26% {
    opacity: 0.88;
    transform: translateY(0px) rotate(-0.10deg);
    animation-timing-function: steps(1);
  }
  39% {
    opacity: 0.95;
    transform: translateY(1px) rotate(0.18deg);
    animation-timing-function: steps(1);
  }
  52% {
    opacity: 1.00;
    transform: translateY(0px) rotate(-0.12deg);
    animation-timing-function: steps(1);
  }
  65% {
    opacity: 0.90;
    transform: translateY(-1px) rotate(0.15deg);
    animation-timing-function: steps(1);
  }
  78% {
    opacity: 0.94;
    transform: translateY(0px) rotate(-0.18deg);
    animation-timing-function: steps(1);
  }
  91% {
    opacity: 1.00;
    transform: translateY(1px) rotate(0.10deg);
    animation-timing-function: steps(1);
  }
  100% {
    opacity: 0.92;
    transform: translateY(0px) rotate(-0.15deg);
  }
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  line-height: 1.4;
  color: var(--olive);
  animation: textPopIn 0.7s 0.9s both, namesStopMotion 4.2s 1.6s infinite;
}
.hero-date {
  display: inline-block;
  margin-top: 8px;
  font-family:
    "SS GEO CHALK",
    "Alk Life",
    Georgia,
    serif;
  font-size: 2.3rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--wine);
  animation: textPopIn 0.7s 1.1s both, namesStopMotion 4.2s 1.8s infinite;
}
.hero-sep {
  display: block;
  width: 150px;
  height: auto;
}
.hero-sep--top {
  margin-top: 12px;
  animation: textPopIn 0.7s 1.3s both;
}
.hero-sep--bottom {
  margin-top: 20px;
  animation: textPopIn 0.7s 3.0s both;
}
.couple {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3%;
  width: 100%;
  margin-top: 30px;
  will-change: transform;
}
.couple-fig {
  position: relative;
  line-height: 0;
  transform-origin: 50% 100%;
}
.couple-fig--groom {
  width: 35%;
}
.couple-fig--bride {
  width: 26.5%;
}
.couple-photo {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes figurePop {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(16px);
  }
  55% {
    opacity: 1;
    transform: scale(1.07) translateY(-5px);
  }
  78% {
    opacity: 1;
    transform: scale(0.97) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.couple-fig--groom {
  animation: figurePop 1s 1.5s cubic-bezier(0.34, 1.4, 0.5, 1) both;
}
.couple-fig--bride {
  animation: figurePop 1s 1.75s cubic-bezier(0.34, 1.4, 0.5, 1) both;
}
@keyframes figureFloat {
  from {
    transform: translateY(0) rotate(-0.5deg);
  }
  to {
    transform: translateY(-4px) rotate(0.5deg);
  }
}
.couple-fig--groom .couple-photo {
  animation: figureFloat 3.6s 2.6s ease-in-out infinite alternate;
}
.couple-fig--bride .couple-photo {
  animation: figureFloat 4.1s 2.9s ease-in-out infinite alternate;
}
.couple-heart {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 26px;
  height: auto;
  margin-left: -13px;
  margin-bottom: 6px;
}
@keyframes heartPop {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-18deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.2) rotate(6deg);
  }
  80% {
    opacity: 1;
    transform: scale(0.94) rotate(-2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.16);
  }
  20% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.09);
  }
  42% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
.couple-fig--groom .couple-heart {
  animation: heartPop 0.7s 2.4s cubic-bezier(0.34, 1.5, 0.5, 1) both, heartBeat 3.4s 3.1s ease-in-out infinite;
}
.couple-fig--bride .couple-heart {
  animation: heartPop 0.7s 2.6s cubic-bezier(0.34, 1.5, 0.5, 1) both, heartBeat 3.4s 3.5s ease-in-out infinite;
}
.hero-names {
  margin-top: 16px;
  font-family:
    "SS GEO CHALK",
    "Alk Life",
    Georgia,
    serif;
  font-size: 3.6rem;
  font-weight: normal;
  line-height: 1.1;
  color: var(--wine);
  white-space: nowrap;
}
.hero-name {
  display: inline-block;
}
.hero-name--a {
  animation: textPopIn 0.7s 2.0s both, namesStopMotion 4.2s 2.7s infinite;
}
.hero-name--b {
  animation: textPopIn 0.7s 2.4s both, namesStopMotion 4.2s 3.9s infinite;
}
.hero-amp {
  display: inline-block;
  margin: 0 0.05em;
  vertical-align: 0.08em;
  font-family:
    "Alk Life",
    Georgia,
    serif;
  font-size: 0.5em;
  color: var(--olive-soft);
  animation: textPopIn 0.7s 2.2s both, namesStopMotion 4.2s 3.3s infinite;
}
.hero-tagline {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  color: var(--olive);
  animation: textPopIn 0.7s 3.2s both, namesStopMotion 4.2s 3.9s infinite;
}
body:not(.is-ready) .hero,
body:not(.is-ready) .hero * {
  animation-play-state: paused;
}
.reveal {
  opacity: 0;
}
.reveal.is-in {
  animation: textPopIn 0.7s both;
}
@keyframes cardRise {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.94);
  }
  62% {
    opacity: 1;
    transform: translateY(-6px) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.reveal.reveal--card.is-in {
  animation: cardRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.countdown {
  position: relative;
  overflow: hidden;
  padding: 54px 18px 58px;
}
.cd-grid {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 26px;
}
.cd-unit {
  flex: 1 1 0;
  max-width: 80px;
  padding: 12px 4px 10px;
  border: 1px solid rgba(154, 160, 106, 0.45);
  border-radius: 6px;
  text-align: center;
}
.cd-num {
  display: flex;
  justify-content: center;
  font-family:
    "SS GEO CHALK",
    "Alk Life",
    Georgia,
    serif;
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--wine);
}
.cd-digit {
  display: inline-block;
}
@keyframes digitPop {
  0% {
    opacity: 0.5;
    transform: translateY(-7px) scale(1.18);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.cd-digit.is-popping {
  animation: digitPop 0.45s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.cd-lbl {
  display: block;
  margin-top: 5px;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--olive);
}
.timetable {
  position: relative;
  overflow: hidden;
  padding: 62px 18px 74px;
  background-color: var(--paper);
}
.tt-deco {
  position: absolute;
  z-index: 0;
  width: 30%;
  line-height: 0;
  opacity: 0.38;
  pointer-events: none;
  will-change: transform;
}
.tt-deco img {
  display: block;
  width: 100%;
  height: auto;
}
.tt-deco--tl {
  top: 0;
  left: 0;
}
.tt-deco--tr {
  top: 0;
  right: 0;
}
.tt-deco--bl {
  bottom: 0;
  left: 0;
}
.tt-deco--br {
  bottom: 0;
  right: 0;
}
.tt-head {
  position: relative;
  z-index: 1;
  margin-bottom: 42px;
  text-align: center;
}
.tt-head--tight {
  margin-bottom: 0;
}
.tt-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  color: var(--olive);
}
.tt-heading {
  margin-top: 6px;
  font-family:
    "SS GEO CHALK",
    "Alk Life",
    Georgia,
    serif;
  font-size: 2.2rem;
  font-weight: normal;
  line-height: 1.2;
  color: var(--wine);
}
.tt-head-sep {
  display: block;
  width: 150px;
  height: auto;
  margin: 10px auto 0;
}
.tt-list {
  position: relative;
  z-index: 1;
}
.tt-item {
  position: relative;
}
.tt-item:not(:last-child) {
  padding-bottom: 60px;
}
.tt-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 2px;
  height: 44px;
  margin-left: -1px;
  opacity: 0.6;
  background-image:
    linear-gradient(
      to bottom,
      var(--olive-soft) 0 4px,
      transparent 4px 11px);
  background-size: 2px 11px;
}
.tt-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  background: url(heart.png) center / 15px auto no-repeat, var(--paper);
}
.tt-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 12px 12px 22px;
  text-align: center;
  background-color: var(--paper);
  border: 1px solid rgba(154, 160, 106, 0.4);
  box-shadow: 0 10px 26px rgba(76, 15, 22, 0.07);
}
.tt-card--tilt-l {
  transform: rotate(-1.1deg);
}
.tt-card--tilt-r {
  transform: rotate(1.1deg);
}
.tt-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: 50% 50% 8px 8px / 44% 44% 8px 8px;
}
.tt-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tt-time {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: -29px auto 0;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background-color: var(--wine);
  color: var(--paper);
  font-family:
    "SS GEO CHALK",
    "Alk Life",
    Georgia,
    serif;
  font-size: 1.02rem;
  line-height: 1;
}
@keyframes badgePop {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-14deg);
  }
  62% {
    opacity: 1;
    transform: scale(1.14) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
.reveal--card.is-in .tt-time {
  animation: badgePop 0.6s 0.3s cubic-bezier(0.34, 1.5, 0.5, 1) both;
}
.tt-title {
  margin-top: 12px;
  font-family:
    "SS GEO CHALK",
    "Alk Life",
    Georgia,
    serif;
  font-size: 1.72rem;
  font-weight: normal;
  line-height: 1.25;
  color: var(--wine);
}
.tt-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 13px;
  border: 1px solid rgba(154, 160, 106, 0.55);
  border-radius: 999px;
  color: var(--olive);
  font-size: 0.86rem;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.tt-place:active {
  background-color: var(--olive);
  border-color: var(--olive);
  color: var(--paper);
}
.tt-pin {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: currentColor;
}
.rsvp {
  position: relative;
  overflow: hidden;
  padding: 62px 18px 74px;
  background-color: var(--paper);
}
.rsvp-deadline {
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--olive);
}
.rsvp-form {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  margin: 34px auto 0;
  padding: 22px 20px 24px;
  background-color: var(--paper);
  border: 1px solid rgba(154, 160, 106, 0.4);
  box-shadow: 0 10px 26px rgba(76, 15, 22, 0.07);
}
.rsvp-form.is-closed .rsvp-field,
.rsvp-form.is-closed .rsvp-group,
.rsvp-form.is-closed .rsvp-submit {
  display: none;
}
.rsvp-field {
  display: block;
  margin-bottom: 16px;
}
.rsvp-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--olive);
}
.rsvp-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(154, 160, 106, 0.55);
  border-radius: 4px;
  background-color: var(--paper);
  color: var(--wine);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.25s ease;
}
.rsvp-input:focus {
  outline: none;
  border-color: var(--olive);
}
.rsvp-group {
  margin-bottom: 16px;
  border: 0;
}
.rsvp-group.is-hidden {
  display: none;
}
.rsvp-choices {
  display: flex;
  gap: 8px;
}
.rsvp-choices--count {
  gap: 6px;
}
.rsvp-choice {
  position: relative;
  flex: 1;
}
.rsvp-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.rsvp-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid rgba(154, 160, 106, 0.55);
  border-radius: 4px;
  color: var(--olive);
  font-size: 0.84rem;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}
.rsvp-choice input:checked + span {
  background-color: var(--wine);
  border-color: var(--wine);
  color: var(--paper);
}
.rsvp-choice input:focus-visible + span {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}
.rsvp-submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  border: 0;
  border-radius: 4px;
  background-color: var(--wine);
  color: var(--paper);
  font-family:
    "SS GEO CHALK",
    "Alk Life",
    Georgia,
    serif;
  font-size: 1.05rem;
  line-height: 1.3;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    opacity 0.25s ease,
    transform 0.15s ease;
}
.rsvp-submit:active {
  transform: translateY(2px);
}
.rsvp-submit:disabled {
  opacity: 0.45;
  cursor: default;
}
.rsvp-status {
  min-height: 22px;
  margin-top: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
  color: var(--olive);
}
.rsvp-status.is-error {
  color: var(--wine-soft);
}
.footer {
  position: relative;
  padding: 46px 18px 34px;
  text-align: center;
}
.footer-names {
  font-family:
    "SS GEO CHALK",
    "Alk Life",
    Georgia,
    serif;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--wine);
}
.footer-rule {
  display: block;
  width: 54px;
  height: 1px;
  margin: 12px auto 14px;
  background-color: var(--olive-soft);
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: 0.3;
  color: var(--olive);
  font-size: 0.76rem;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.footer-credit:hover {
  opacity: 0.75;
}
.footer-credit img {
  display: block;
  width: 20px;
  height: auto;
}
.music-toggle {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(154, 160, 106, 0.5);
  border-radius: 50%;
  background-color: var(--paper);
  color: var(--wine);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(76, 15, 22, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.music-toggle.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.music-toggle:active {
  transform: scale(0.92);
}
.music-toggle__icon {
  position: absolute;
  display: flex;
  transition: opacity 0.3s ease;
}
.music-toggle__icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.music-toggle__icon--on {
  opacity: 0;
}
.music-toggle__icon--off {
  opacity: 1;
}
.music-toggle.playing .music-toggle__icon--on {
  opacity: 1;
}
.music-toggle.playing .music-toggle__icon--off {
  opacity: 0;
}
#loader {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--paper);
  transition: opacity 0.6s ease;
}
#loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.loader__spin {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(154, 160, 106, 0.35);
  border-top-color: var(--wine);
  border-radius: 50%;
  animation: loaderSpin 0.9s linear infinite;
}
@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}
#opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  cursor: pointer;
  background-color: var(--paper);
  transition: background-color 1.6s ease 1.2s;
}
.opening-panel {
  position: absolute;
  width: 200%;
  height: 120%;
  overflow: hidden;
  transition: transform 5.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.opening-panel--tl {
  top: -30%;
  left: -30%;
  z-index: 4;
  transform-origin: top left;
}
.opening-panel--tr {
  top: -30%;
  right: -30%;
  z-index: 3;
  transform-origin: top right;
  transition-delay: 0.06s;
}
.opening-panel--bl {
  bottom: -30%;
  left: -30%;
  z-index: 2;
  transform-origin: bottom left;
  transition-delay: 0.06s;
}
.opening-panel--br {
  bottom: -30%;
  right: -30%;
  z-index: 1;
  transform-origin: bottom right;
}
.opening-panel img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.opening-hint {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 13%;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--wine);
  animation: hintPulse 2.6s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.85;
  }
}
#opening-overlay.open {
  pointer-events: none;
  background-color: transparent;
}
#opening-overlay.open .opening-hint {
  opacity: 0;
  animation: none;
  transition: opacity 0.5s ease;
}
#opening-overlay.open .opening-panel--tl {
  transform: translate(-100%, -100%);
}
#opening-overlay.open .opening-panel--tr {
  transform: translate(100%, -100%);
}
#opening-overlay.open .opening-panel--bl {
  transform: translate(-100%, 100%);
}
#opening-overlay.open .opening-panel--br {
  transform: translate(100%, 100%);
}
.mobile-prompt {
  display: none;
}
@media (min-width: 769px) {
  .mobile-prompt {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--paper);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 40px;
  }
  .mobile-prompt__icon {
    width: 52px;
    opacity: 0.8;
  }
  .mobile-prompt p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--olive);
  }
  .page {
    display: none;
  }
  #opening-overlay {
    display: none;
  }
  #loader {
    display: none;
  }
  .music-toggle {
    display: none;
  }
}
