:root {
  --canvas: #d7e3ee;
  --paper: #f6f4ef;
  --paper-deep: #e7e2d9;
  --fog: #d5dee8;
  --sage: #8fa3b8;
  --sage-dark: #56697d;
  --ink: #292a2c;
  --ink-soft: #6c6a67;
  --line: rgba(41, 42, 44, 0.16);
  --line-strong: rgba(41, 42, 44, 0.32);
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(65, 72, 82, 0.14);
  --bottom-nav: calc(70px + env(safe-area-inset-bottom));
  color: var(--ink);
  background: var(--canvas);
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

.phone-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(41, 42, 44, 0.08);
}

.view {
  display: none;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav) + 28px);
}

.view:not(#invitation) {
  padding-bottom: 0;
}

#invitation {
  padding-bottom: 0;
  background: var(--paper);
}

.view.is-active {
  display: block;
  animation: view-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 18px 18px 18px;
  background: var(--paper);
}

.cover::before,
.schedule-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("./assets/lace/lace-repeat.webp");
  background-position: center top;
  background-size: 74% auto;
  background-repeat: repeat;
  mix-blend-mode: multiply;
  opacity: 0.06;
  pointer-events: none;
}

.cover::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 86px;
  background: linear-gradient(
    to bottom,
    rgba(246, 244, 239, 0),
    rgba(231, 226, 217, 0.58) 68%,
    var(--paper-deep)
  );
  pointer-events: none;
}

.cover > *,
.schedule-block > * {
  position: relative;
  z-index: 1;
}

.cover__masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--sage-dark);
  font: 600 10px/1.2 "Arial", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cover__music {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cover__music-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 600 13px/1 "Times New Roman", serif;
}

.cover__music.is-playing .cover__music-mark {
  animation: music-turn 4s linear infinite;
}

.cover__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #cbd8e6;
}

.cover__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(75, 91, 111, 0.035);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.cover__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.9) contrast(0.97) brightness(1);
}

.cover__image-caption {
  position: absolute;
  top: 14px;
  right: 11px;
  z-index: 1;
  margin: 0;
  color: rgba(86, 96, 108, 0.76);
  text-shadow: 0 1px 8px rgba(246, 244, 239, 0.98);
  font: 400 11px/1.3 "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  writing-mode: vertical-rl;
  letter-spacing: 0.12em;
}

.cover__title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: end;
  padding: 78px 16px 18px;
  background: linear-gradient(
    to bottom,
    rgba(23, 25, 29, 0),
    rgba(23, 25, 29, 0.58)
  );
}

.cover__names {
  margin: 0;
  color: #f4f0e8;
  text-shadow: 0 2px 12px rgba(15, 17, 20, 0.3);
  font-size: clamp(36px, 10.8vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.cover__names span {
  display: block;
}

.cover__amp {
  margin: 0.12em 0;
  color: #d8e0e8;
  font: italic 400 22px/1 "Times New Roman", serif;
}

.cover__date {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-left: 12px;
  border-left: 1px solid rgba(244, 240, 232, 0.44);
  color: #e0e5ea;
  font: 500 11px/1.35 "Arial", sans-serif;
  text-align: right;
  letter-spacing: 0.08em;
}

.cover__date strong {
  display: block;
  margin-bottom: 4px;
  color: #f4f0e8;
  font: 500 34px/0.9 "Times New Roman", serif;
  letter-spacing: 0;
}

.home-details {
  position: relative;
  isolation: isolate;
  padding: 52px 22px 52px;
  background: var(--paper-deep);
}

.home-details::before {
  display: none;
}

.home-details > * {
  position: relative;
  z-index: 1;
}

.home-details__intro {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
}

.home-details__monogram {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  color: var(--sage-dark);
  font: italic 400 27px/1 "Times New Roman", serif;
}

.home-details__eyebrow,
.page-head__index,
.block-title__en,
.meta-label,
.travel-card__category,
.photo-item__number {
  color: var(--sage-dark);
  font: 600 10px/1.3 "Arial", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-details__eyebrow {
  margin: 0 0 10px;
}

.home-details__lead {
  margin: 0;
  font-size: 21px;
  line-height: 1.55;
  font-weight: 400;
}

.event-meta {
  margin-top: 44px;
  border-top: 1px solid var(--line-strong);
}

.event-meta__row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.meta-value {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.dress-code {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swatches {
  display: flex;
  flex: 0 0 auto;
}

.swatch {
  width: 22px;
  height: 22px;
  margin-left: -4px;
  border: 2px solid var(--paper-deep);
  border-radius: 50%;
}

.swatch:first-child {
  margin-left: 0;
  background: #f4f1ea;
}

.swatch:nth-child(2) {
  background: #d7e3ee;
}

.swatch:nth-child(3) {
  background: #cfc6b7;
}

.swatch:nth-child(4) {
  background: #c9d2cc;
}

.schedule-block {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 22px calc(var(--bottom-nav) + 56px);
  background: var(--paper);
}

.block-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.block-title h2 {
  margin: 0;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.2;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline__time {
  color: var(--sage-dark);
  font: 400 24px/1 "Times New Roman", serif;
}

.timeline__title {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.3;
}

.timeline__detail {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.countdown {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--sage-dark);
  font-size: 13px;
  line-height: 1.55;
}

.countdown__days {
  font: 400 42px/1 "Times New Roman", serif;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 22px;
}

.button {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 500 13px/1.25 "Microsoft YaHei", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.button--quiet {
  background: transparent;
  color: var(--ink);
}

.button--wide {
  width: 100%;
}

.button__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  font-size: 15px;
  line-height: 1;
}

.button__icon--map {
  transform: translateY(-0.5px);
}

.button__icon--phone {
  font-size: 13px;
}

.page {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--bottom-nav));
  padding: 22px 20px 44px;
  overflow: hidden;
}

.view:not(#invitation) .page {
  min-height: 100svh;
  padding-bottom: calc(var(--bottom-nav) + 72px);
}

.page--tinted {
  background: #f3f3f0;
}

.page > * {
  position: relative;
  z-index: 1;
}

.page--travel::before,
.page--travel::after,
.page--photos::before,
.page--photos::after,
.page--wishes::before,
.page--wishes::after,
.page--seats::before,
.page--seats::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.page--travel::before,
.page--photos::before,
.page--wishes::before,
.page--seats::before {
  inset: 0;
  background-image: url("./assets/lace/lace-repeat.webp");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: repeat-y;
  mix-blend-mode: multiply;
}

.page--travel::before,
.page--wishes::before {
  opacity: 0.08;
}

.page--photos::before,
.page--seats::before {
  opacity: 0.16;
}

.page--travel::after,
.page--photos::after,
.page--wishes::after,
.page--seats::after {
  display: none;
}

.page-head {
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--line-strong);
}

.page-head__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.page-head__title {
  margin: 14px 0 0;
  font-size: clamp(34px, 11vw, 48px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: 0;
}

.page-head__copy {
  max-width: 27em;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.travel-grid {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.travel-filter {
  display: flex;
  gap: 8px;
  margin: 24px -20px 2px;
  padding: 0 20px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.travel-filter::-webkit-scrollbar {
  display: none;
}

.travel-filter__item {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(86, 105, 125, 0.22);
  border-radius: 999px;
  background: rgba(246, 244, 239, 0.64);
  color: var(--ink-soft);
  font: 500 12px/1 "Arial", sans-serif;
}

.travel-filter__item.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.travel-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 16px;
  min-height: 170px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.travel-card[hidden],
.travel-empty[hidden] {
  display: none;
}

.travel-card:nth-child(even) {
  grid-template-columns: 1fr 42%;
}

.travel-card:nth-child(even) .travel-card__image {
  order: 2;
}

.travel-card__image {
  position: relative;
  min-height: 136px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--fog);
}

.travel-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.96) brightness(1.02);
}

.travel-card__image.is-placeholder::before {
  content: attr(data-mark);
  position: absolute;
  left: 12px;
  bottom: 5px;
  color: rgba(41, 42, 44, 0.18);
  font-size: 58px;
  line-height: 1;
}

.travel-card__image.is-placeholder::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(41, 42, 44, 0.28);
  border-radius: 50%;
}

.travel-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.travel-card__name {
  margin: 9px 0 8px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
}

.travel-card__desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.travel-card__link {
  margin-top: 13px;
  color: var(--sage-dark);
  font: 600 10px/1.2 "Arial", sans-serif;
  letter-spacing: 0.08em;
}

.travel-card.is-disabled {
  cursor: default;
}

.travel-empty {
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.page--album {
  background: #f0f1ef;
}

.photo-album {
  margin-top: 22px;
}

.photo-album__book {
  position: relative;
  width: 100%;
  padding: 10px 10px 15px 17px;
  perspective: 1800px;
  touch-action: pan-y;
  user-select: none;
}

.photo-album__stage {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1280 / 1808;
  transform-style: preserve-3d;
}

.photo-album__spine {
  position: absolute;
  z-index: 4;
  top: 17px;
  bottom: 21px;
  left: 8px;
  width: 15px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(90deg, #737d88 0%, #b3bac0 48%, #e4e5df 100%);
  box-shadow: -4px 7px 15px rgba(60, 67, 75, 0.18);
  pointer-events: none;
}

.photo-album__page-edges {
  position: absolute;
  z-index: 1;
  inset: 15px 5px 8px 21px;
  border: 1px solid rgba(78, 83, 88, 0.15);
  background: repeating-linear-gradient(
    0deg,
    #f6f5ef 0,
    #f6f5ef 2px,
    #d9d8d2 3px,
    #f2f1eb 4px
  );
  box-shadow: 5px 11px 22px rgba(56, 64, 73, 0.18);
  transform: translate(4px, 4px);
  pointer-events: none;
}

.album-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(56, 60, 64, 0.13);
  border-radius: 1px 3px 3px 1px;
  background: #fffef9;
  box-shadow: 3px 8px 20px rgba(53, 60, 68, 0.18);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.album-page--under {
  z-index: 1;
  transform: translate(2px, 2px);
}

.album-page--active {
  z-index: 2;
  cursor: zoom-in;
  transform: rotateY(0deg);
  will-change: transform, opacity, filter;
}

.album-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fffef9;
  pointer-events: none;
}

.album-page::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 18px;
  background: linear-gradient(90deg, rgba(43, 47, 52, 0.16), rgba(43, 47, 52, 0));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.album-page__fold {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(48, 55, 64, 0.18));
  opacity: 0;
  pointer-events: none;
}

.album-turn-zone {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 19%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.album-turn-zone--previous {
  left: 0;
}

.album-turn-zone--next {
  right: 0;
}

.album-turn-zone:disabled {
  cursor: default;
}

.photo-album__controls {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 16px;
  margin: 12px 15px 0 22px;
}

.photo-album__nav {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(246, 244, 239, 0.72);
  color: var(--ink);
  cursor: pointer;
  font: 400 20px/1 "Times New Roman", serif;
}

.photo-album__nav:disabled {
  color: rgba(41, 42, 44, 0.25);
  cursor: default;
}

.photo-album__counter {
  display: grid;
  grid-template-columns: minmax(34px, auto) minmax(24px, 1fr) minmax(24px, auto);
  align-items: center;
  gap: 9px;
  color: var(--sage-dark);
  font: 600 10px/1 "Arial", sans-serif;
  letter-spacing: 0.12em;
  text-align: center;
}

.photo-album__counter-rule {
  height: 1px;
  background: var(--line-strong);
}

.photo-album__progress {
  height: 2px;
  margin: 13px 15px 0 22px;
  overflow: hidden;
  background: rgba(86, 105, 125, 0.16);
}

.photo-album__progress span {
  display: block;
  height: 100%;
  background: var(--sage-dark);
  transition: width 320ms ease;
}

.photo-album__book.is-turning-next .album-page--active {
  transform-origin: left center;
  animation: album-turn-next 680ms cubic-bezier(0.55, 0.03, 0.28, 0.96) both;
}

.photo-album__book.is-turning-previous .album-page--active {
  transform-origin: right center;
  animation: album-turn-previous 680ms cubic-bezier(0.55, 0.03, 0.28, 0.96) both;
}

.photo-album__book.is-turning-next .album-page__fold,
.photo-album__book.is-turning-previous .album-page__fold {
  animation: album-fold-shadow 680ms ease both;
}

.photo-album__book {
  height: var(--album-closed-height, min(96vw, 430px));
  padding: 0;
  perspective: 1800px;
  transition: height 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-album__book.is-open {
  height: var(--album-spread-height, min(88vw, 390px));
}

.photo-album__cover {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  width: 68%;
  aspect-ratio: 1280 / 1808;
  overflow: hidden;
  border: 1px solid rgba(50, 54, 59, 0.17);
  border-radius: 2px 5px 5px 2px;
  background: #fffef9;
  box-shadow: 5px 14px 28px rgba(53, 60, 68, 0.2);
  cursor: pointer;
  transform: translateX(-50%) rotateY(0deg);
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.photo-album__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.photo-album__cover-spine {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 13px;
  background: linear-gradient(90deg, rgba(55, 62, 68, 0.3), rgba(212, 211, 201, 0.15));
  pointer-events: none;
}

.photo-album__cover-sheen {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.18), transparent 38%, rgba(71, 77, 83, 0.04));
  pointer-events: none;
}

.photo-album__spread {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 112%;
  aspect-ratio: 2560 / 1808;
  opacity: 0;
  pointer-events: none;
  perspective: 2200px;
  transform: translateX(-50%) scale(0.96);
  transform-style: preserve-3d;
  transition:
    opacity 360ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-album__book.is-open .photo-album__spread {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.photo-album__book.is-open .photo-album__cover {
  opacity: 0;
  pointer-events: none;
}

.photo-album__spread-edges {
  position: absolute;
  z-index: 0;
  inset: 4px -3px -7px;
  border: 1px solid rgba(67, 72, 76, 0.15);
  background: repeating-linear-gradient(0deg, #f7f6f0 0, #f7f6f0 2px, #d8d7d1 3px, #f2f1ec 4px);
  box-shadow: 3px 10px 22px rgba(53, 60, 68, 0.18);
  pointer-events: none;
}

.photo-album__spread-spine {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18px;
  background: linear-gradient(90deg, transparent, rgba(47, 53, 60, 0.18), rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.album-spread {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  transform-style: preserve-3d;
}

.album-spread--under {
  z-index: 1;
}

.album-spread--current {
  z-index: 2;
}

.album-spread__page {
  position: relative;
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #fffef9;
}

button.album-spread__page {
  cursor: zoom-in;
}

.album-spread__page--left {
  border-right: 1px solid rgba(54, 58, 62, 0.12);
  border-radius: 3px 0 0 3px;
  box-shadow: inset -8px 0 13px rgba(48, 53, 58, 0.06);
}

.album-spread__page--right {
  border-radius: 0 3px 3px 0;
  box-shadow: inset 8px 0 13px rgba(48, 53, 58, 0.06);
}

.album-spread__page[hidden] {
  display: block;
  visibility: hidden;
}

.album-spread__page img,
.album-turning-sheet img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fffef9;
  pointer-events: none;
}

.album-turning-sheet {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  width: 50%;
  transform-style: preserve-3d;
  will-change: transform;
}

.album-turning-sheet[hidden] {
  display: none;
}

.album-turning-sheet__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fffef9;
  box-shadow: 0 0 18px rgba(45, 50, 56, 0.2);
  backface-visibility: hidden;
}

.album-turning-sheet__face--back {
  transform: rotateY(180deg);
}

.photo-album__book.is-turning-next .album-turning-sheet {
  left: 50%;
  transform-origin: left center;
  animation: album-spread-turn-next 680ms cubic-bezier(0.55, 0.03, 0.28, 0.96) both;
}

.photo-album__book.is-turning-previous .album-turning-sheet {
  left: 0;
  transform-origin: right center;
  animation: album-spread-turn-previous 680ms cubic-bezier(0.55, 0.03, 0.28, 0.96) both;
}

.photo-album__book.is-opening .photo-album__cover {
  animation: album-open-cover 680ms cubic-bezier(0.5, 0.04, 0.26, 0.98) both;
}

.photo-album__book.is-closing .photo-album__cover {
  animation: album-close-cover 680ms cubic-bezier(0.5, 0.04, 0.26, 0.98) both;
}

.photo-album__book.is-closing .photo-album__spread {
  animation: album-close-spread 520ms ease both;
}

.album-turn-zone {
  top: 0;
  bottom: 0;
  width: 14%;
}

.panel {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(246, 244, 239, 0.84);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field-label {
  display: grid;
  gap: 7px;
  color: var(--sage-dark);
  font: 600 10px/1.3 "Arial", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field,
.textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.field {
  height: 42px;
  padding: 0;
}

.textarea {
  min-height: 92px;
  padding: 9px 0;
  resize: vertical;
}

.field::placeholder,
.textarea::placeholder {
  color: #92949a;
}

.field:focus,
.textarea:focus {
  border-color: var(--sage-dark);
  box-shadow: 0 1px 0 var(--sage-dark);
}

.field:disabled {
  color: var(--ink-soft);
  cursor: not-allowed;
  opacity: 0.66;
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 13px;
}

.switch-line input {
  width: 17px;
  height: 17px;
  accent-color: var(--sage-dark);
}

.wish-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line-strong);
}

.wish-empty {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.wish {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.wish__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wish__name,
.reply__name {
  margin: 0;
  color: var(--sage-dark);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.wish__mark {
  color: var(--sage);
  font: italic 400 16px/1 "Times New Roman", serif;
}

.wish__text,
.reply__text {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.8;
}

.reply-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 12px 0 0 15px;
  border-top: 1px dotted var(--line-strong);
  border-left: 1px solid var(--line);
}

.reply {
  padding-bottom: 7px;
}

.reply-expand {
  min-height: 30px;
  padding: 4px 0 0;
  border: 0;
  background: transparent;
  color: var(--sage-dark);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.reply__name {
  font-size: 11px;
}

.reply__text {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.reply-composer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dotted var(--line-strong);
}

.reply-composer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  color: var(--sage-dark);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.reply-composer summary::-webkit-details-marker {
  display: none;
}

.reply-composer summary span {
  font: 400 19px/1 "Arial", sans-serif;
  transition: transform 180ms ease;
}

.reply-composer[open] summary span {
  transform: rotate(45deg);
}

.reply-form {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.reply-form .button {
  min-height: 42px;
}

.wish-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 22px 0 0;
}

.wish-pagination__item {
  min-width: 18px;
  min-height: 30px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--sage-dark);
  font: 500 13px/1 "Times New Roman", serif;
  cursor: pointer;
}

.wish-pagination__item.is-active {
  border-bottom-color: var(--sage-dark);
  color: var(--ink);
}

.wish-pagination__ellipsis {
  display: inline-grid;
  place-items: center;
  min-width: 14px;
  min-height: 30px;
  color: rgba(86, 105, 125, 0.58);
  font: 500 13px/1 "Times New Roman", serif;
}

.switch-line--compact {
  font-size: 12px;
}

.seat-stage {
  position: relative;
  margin: 26px 0 10px;
  padding: 30px 22px 34px;
  overflow: hidden;
  background: var(--sage-dark);
  color: var(--paper);
}

.seat-stage::before {
  content: "TABLE";
  position: absolute;
  right: -15px;
  bottom: -17px;
  color: rgba(255, 255, 255, 0.07);
  font: 400 78px/1 "Times New Roman", serif;
}

.seat-stage__label {
  margin: 0 0 28px;
  font: 600 10px/1.3 "Arial", sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.seat-stage__title {
  max-width: 9em;
  margin: 0;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.5;
}

.seat-help {
  min-height: 40px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--sage-dark);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.seat-result {
  position: relative;
  margin-top: 18px;
  padding: 24px 20px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.75;
  text-align: center;
}

.seat-result::before,
.seat-result::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper-deep);
  transform: translateY(-50%);
}

.seat-result::before {
  left: -10px;
}

.seat-result::after {
  right: -10px;
}

.seat-result strong {
  display: inline-block;
  margin: 6px 0;
  color: var(--sage-dark);
  font: 400 42px/1 "Times New Roman", serif;
}

.seat-result__entry {
  display: block;
}

.seat-result__entry + .seat-result__entry {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.helper-text {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.credits {
  display: grid;
  gap: 5px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.credits a {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
  text-decoration: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 54px 18px 96px;
  background: rgba(23, 25, 29, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100svh - 170px);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font: 300 26px/1 "Arial", sans-serif;
  cursor: pointer;
}

.contact-dialog {
  width: min(calc(100% - 36px), 420px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-dialog::backdrop {
  background: rgba(23, 25, 29, 0.72);
  backdrop-filter: blur(4px);
}

.contact-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--line-strong);
}

.contact-dialog__eyebrow {
  margin: 0 0 6px;
  color: var(--sage-dark);
  font: 600 10px/1.3 "Arial", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-dialog h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
}

.contact-dialog__close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: 300 25px/1 "Arial", sans-serif;
  cursor: pointer;
}

.lightbox__close:focus,
.lightbox__close:focus-visible,
.contact-dialog__close:focus,
.contact-dialog__close:focus-visible {
  outline: none;
  box-shadow: none;
}

.contact-dialog__list {
  padding: 0 20px 8px;
}

.contact-dialog__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 10px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.contact-dialog__item:last-child {
  border-bottom: 0;
}

.contact-dialog__item small,
.contact-dialog__item strong {
  display: block;
}

.contact-dialog__item small {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 400;
}

.contact-dialog__item strong {
  font-size: 15px;
  font-weight: 500;
}

.contact-dialog__phone {
  color: var(--sage-dark);
  font: 500 13px/1.2 "Arial", sans-serif;
}

.contact-dialog__call {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--sage-dark);
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav) + 14px);
  z-index: 80;
  width: min(calc(100% - 40px), 400px);
  padding: 12px 16px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: var(--ink);
  color: var(--white);
  font: 500 12px/1.55 "Microsoft YaHei", sans-serif;
  text-align: center;
  box-shadow: var(--shadow);
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 480px);
  min-height: var(--bottom-nav);
  padding: 7px 9px calc(7px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid rgba(41, 42, 44, 0.15);
  background: rgba(246, 244, 239, 0.96);
  backdrop-filter: blur(18px);
}

.tabbar__item {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 54px;
  padding: 2px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #737985;
  font: 500 10px/1.1 "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

.tabbar__item::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 0;
  height: 1px;
  transform: translateX(-50%);
  background: var(--sage-dark);
  transition: width 180ms ease;
}

.tabbar__item.is-active {
  color: var(--ink);
}

.tabbar__item.is-active::after {
  width: 24px;
}

.tabbar__icon {
  position: relative;
  display: block;
  width: 21px;
  height: 21px;
}

.tabbar__icon--ticket {
  border: 1.4px solid currentColor;
  border-radius: 2px;
}

.tabbar__icon--ticket::before {
  content: "";
  position: absolute;
  inset: 5px 4px;
  border-top: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
}

.tabbar__icon--food::before {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 2px;
  width: 13px;
  height: 7px;
  border: 1.4px solid currentColor;
  border-top: 0;
  border-radius: 0 0 9px 9px;
}

.tabbar__icon--food::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 6px;
  height: 1.4px;
  background: currentColor;
  box-shadow: 13px -4px 0 -0.2px currentColor;
  transform: rotate(-4deg);
}

.tabbar__icon--photo {
  border: 1.4px solid currentColor;
  border-radius: 2px;
}

.tabbar__icon--photo::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 8px;
  border-left: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: skewX(-24deg);
}

.tabbar__icon--wish::before,
.tabbar__icon--wish::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 17px;
  border: 1.4px solid currentColor;
  border-radius: 12px 12px 0 0;
  transform-origin: bottom center;
}

.tabbar__icon--wish::before {
  left: 3px;
  transform: rotate(-43deg);
}

.tabbar__icon--wish::after {
  right: 3px;
  transform: rotate(43deg);
}

.tabbar__icon--seat::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 15px;
  height: 11px;
  border: 1.4px solid currentColor;
  border-radius: 2px;
}

.tabbar__icon--seat::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 2px;
  height: 8px;
  border-left: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
}

.button:focus-visible,
.cover__music:focus-visible,
.album-page--active:focus-visible,
.photo-album__nav:focus-visible,
.photo-album__cover:focus-visible,
.album-spread__page:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.tabbar__item:focus-visible {
  outline: 1px solid var(--sage-dark);
  outline-offset: -3px;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes music-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes album-turn-next {
  0% {
    opacity: 1;
    transform: rotateY(0deg);
    filter: brightness(1);
  }

  48% {
    opacity: 0.98;
    filter: brightness(0.82);
  }

  100% {
    opacity: 0;
    transform: rotateY(-112deg) translateX(-1.5%);
    filter: brightness(0.7);
  }
}

@keyframes album-turn-previous {
  0% {
    opacity: 1;
    transform: rotateY(0deg);
    filter: brightness(1);
  }

  48% {
    opacity: 0.98;
    filter: brightness(0.82);
  }

  100% {
    opacity: 0;
    transform: rotateY(112deg) translateX(1.5%);
    filter: brightness(0.7);
  }
}

@keyframes album-fold-shadow {
  0%,
  100% {
    opacity: 0;
  }

  48% {
    opacity: 1;
  }
}

@keyframes album-open-cover {
  0% {
    opacity: 1;
    transform: translateX(-50%) rotateY(0deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateX(-88%) rotateY(-108deg) scale(0.62);
  }
}

@keyframes album-close-cover {
  0% {
    opacity: 0;
    transform: translateX(-88%) rotateY(-108deg) scale(0.62);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) rotateY(0deg) scale(1);
  }
}

@keyframes album-close-spread {
  from {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(-50%) scale(0.96);
  }
}

@keyframes album-spread-turn-next {
  0% {
    transform: rotateY(0deg);
  }

  48% {
    box-shadow: -12px 0 24px rgba(40, 46, 52, 0.2);
  }

  100% {
    transform: rotateY(-180deg);
  }
}

@keyframes album-spread-turn-previous {
  0% {
    transform: rotateY(0deg);
  }

  48% {
    box-shadow: 12px 0 24px rgba(40, 46, 52, 0.2);
  }

  100% {
    transform: rotateY(180deg);
  }
}

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

@media (min-width: 481px) {
  body {
    padding: 16px 0;
  }

  .phone-shell {
    overflow: hidden;
    border-radius: 6px;
    box-shadow: var(--shadow);
  }
}
