:root {
  --bg: #fff7f4;
  --bg-soft: #fff0eb;
  --card: rgba(255, 255, 255, 0.9);
  --text: #3e1116;
  --muted: #7e4f57;
  --gold: #b88943;
  --red: #c8102e;
  --line: rgba(200, 16, 46, 0.32);
  --shadow: 0 16px 40px rgba(95, 19, 31, 0.14);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "EB Garamond", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 14%, #c8102e22 0, transparent 38%),
    radial-gradient(circle at 85% 80%, #b8894318 0, transparent 34%),
    linear-gradient(140deg, #fffdfa 0%, #fff4ef 46%, #ffece8 100%);
  overflow-x: hidden;
}

body.theme-swiss {
  --bg: #f2f5f9;
  --bg-soft: #e8edf4;
  --card: rgba(255, 255, 255, 0.9);
  --text: #1a2230;
  --muted: #5a6474;
  --gold: #9a8556;
  --red: #b4232f;
  --line: rgba(26, 34, 48, 0.11);
  --shadow: 0 24px 52px rgba(22, 32, 48, 0.07);
  letter-spacing: 0.012em;
  background:
    linear-gradient(
      180deg,
      rgba(252, 253, 255, 0.42) 0%,
      rgba(244, 247, 252, 0.76) 42%,
      rgba(235, 241, 248, 0.93) 100%
    ),
    url("../themes/swiss/mountain.jpg"),
    radial-gradient(circle at 16% 10%, rgba(180, 35, 47, 0.07) 0, transparent 38%),
    radial-gradient(circle at 82% 74%, rgba(154, 133, 86, 0.12) 0, transparent 38%),
    radial-gradient(ellipse 120% 70% at 50% 100%, rgba(26, 34, 48, 0.12) 0%, transparent 52%),
    linear-gradient(165deg, #fafbfd 0%, #eef2f9 52%, #e4eaf3 100%);
  background-size: cover, cover, auto, auto, cover, auto;
  background-position: center top, center top, center, center, center bottom, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

body.theme-swiss h1,
body.theme-swiss .section-title,
body.theme-swiss .logo {
  font-family: "Marcellus", "EB Garamond", serif;
  font-weight: 400;
  letter-spacing: 0.06em;
}

body.theme-swiss h1 {
  letter-spacing: 0.04em;
}

body.theme-swiss .party-grid .card h3 {
  font-family: "Marcellus", "EB Garamond", serif;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

body.theme-swiss .people-grid .card h3 {
  font-family: "Marcellus", "EB Garamond", serif;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text);
}

body.theme-swiss .topbar {
  background: rgba(252, 253, 255, 0.78);
  border-bottom: 1px solid rgba(26, 34, 48, 0.07);
  backdrop-filter: blur(16px) saturate(1.12);
}

body.theme-swiss .hero-card {
  border: 1px solid rgba(154, 133, 86, 0.26);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(252, 253, 255, 0.9) 48%,
      rgba(248, 250, 253, 0.86) 100%
    ),
    linear-gradient(125deg, rgba(154, 133, 86, 0.06) 0%, transparent 55%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 28px 56px rgba(22, 32, 48, 0.07),
    0 10px 24px rgba(22, 32, 48, 0.035);
  backdrop-filter: blur(10px);
}

body.theme-swiss .eyebrow {
  letter-spacing: 0.16em;
  color: rgba(154, 133, 86, 0.95);
}

body.theme-swiss .meta-pill,
body.theme-swiss .count-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.86));
  border-color: rgba(26, 34, 48, 0.09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

body.theme-swiss .card {
  border-color: rgba(154, 133, 86, 0.2);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 252, 255, 0.9) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 22px 48px rgba(22, 32, 48, 0.055);
}

body.theme-swiss .map-button {
  border-width: 1.5px;
  border-color: rgba(154, 133, 86, 0.52);
  background: transparent;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.76rem;
  padding: 0.52rem 1.15rem;
}

body.theme-swiss .map-button:hover {
  background: rgba(154, 133, 86, 0.09);
  border-color: rgba(154, 133, 86, 0.72);
}

body.theme-swiss .map-embed {
  border-color: rgba(26, 34, 48, 0.1);
}

body.theme-swiss .schedule-chic {
  border-top-color: rgba(26, 34, 48, 0.1);
}

body.theme-swiss .schedule-chic-row {
  border-bottom-color: rgba(26, 34, 48, 0.09);
}

body.theme-swiss .schedule-chic-time,
body.theme-swiss .schedule-chic-title {
  font-family: "Marcellus", "EB Garamond", serif;
}

body.theme-swiss .schedule-chic-desc {
  color: rgba(154, 133, 86, 0.96);
}

body.theme-swiss .photo-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 252, 0.52)),
    linear-gradient(58deg, rgba(228, 234, 242, 0.42), rgba(236, 241, 248, 0.52));
  border-color: rgba(26, 34, 48, 0.09);
}

body.theme-swiss .photo-card:hover {
  box-shadow: 0 22px 44px rgba(22, 32, 48, 0.11);
}

body.theme-swiss .about-text {
  color: var(--text);
}

body.theme-swiss .double-happiness {
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.65));
}

body.theme-swiss .audio-toggle {
  border-color: rgba(154, 133, 86, 0.32);
  background: rgba(255, 255, 255, 0.84);
}

body.theme-chinese {
  --bg: #fff7f4;
  --bg-soft: #fff0eb;
  --card: rgba(255, 255, 255, 0.9);
  --text: #3e1116;
  --muted: #7e4f57;
  --gold: #b88943;
  --red: #c8102e;
  --line: rgba(200, 16, 46, 0.32);
  --shadow: 0 16px 40px rgba(95, 19, 31, 0.14);
  font-family: "Noto Sans SC", "EB Garamond", serif;
  background:
    linear-gradient(rgba(255, 253, 250, 0.8), rgba(255, 244, 239, 0.88)),
    url("../themes/chinese/xian.jpg"),
    radial-gradient(circle at 20% 14%, #c8102e22 0, transparent 38%),
    radial-gradient(circle at 85% 80%, #b8894318 0, transparent 34%),
    linear-gradient(140deg, #fffdfa 0%, #fff4ef 46%, #ffece8 100%);
  background-size: cover, cover, auto, auto, auto;
  background-position: center top, center top, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

body.theme-chinese .double-happiness {
  text-shadow:
    0 0 10px rgba(200, 16, 46, 0.34),
    0 0 22px rgba(184, 137, 67, 0.26);
  animation: blingPulse 2.8s ease-in-out infinite;
}

body.theme-chinese .hero-card,
body.theme-chinese .card,
body.theme-chinese .meta-pill,
body.theme-chinese .count-item {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 16px 34px rgba(95, 19, 31, 0.14),
    0 0 0 1px rgba(184, 137, 67, 0.18) inset;
}

body.theme-chinese .hero-card::after,
body.theme-chinese .card::after,
body.theme-chinese .meta-pill::after,
body.theme-chinese .count-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 42%;
  height: 100%;
  transform: skewX(-20deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 245, 204, 0.55),
    rgba(255, 255, 255, 0)
  );
  animation: blingSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}

body.theme-chinese .section-title {
  text-shadow: 0 2px 14px rgba(184, 137, 67, 0.22);
}

body.theme-chinese .map-button {
  border-color: #c8102e;
  background: linear-gradient(120deg, #c8102e, #d1334b 58%, #be8a42);
  color: #fffdfa;
  box-shadow: 0 8px 20px rgba(136, 26, 39, 0.24);
}

body.theme-chinese .map-button:hover {
  background: linear-gradient(120deg, #da1536, #b90f2b 55%, #b88336);
  transform: translateY(-1px);
}

body.theme-japanese {
  --bg: #faf6f3;
  --bg-soft: #f3ece8;
  --card: rgba(255, 255, 255, 0.9);
  --text: #2a2522;
  --muted: #6f6158;
  --gold: #8f6a43;
  --red: #a51b29;
  --line: rgba(142, 85, 49, 0.28);
  --shadow: 0 16px 38px rgba(54, 37, 28, 0.14);
  font-family: "Noto Sans JP", "EB Garamond", serif;
  background:
    linear-gradient(rgba(253, 251, 249, 0.78), rgba(245, 239, 234, 0.88)),
    url("../themes/japanese/sakura.jpg"),
    radial-gradient(circle at 20% 20%, #a51b2918 0, transparent 34%),
    radial-gradient(circle at 88% 78%, #8f6a4317 0, transparent 34%),
    linear-gradient(140deg, #fdfbf9 0%, #f5efea 50%, #eee5df 100%);
  background-size: cover, cover, auto, auto, auto;
  background-position: center top, center top, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

.background-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    radial-gradient(#c8102e 0.45px, transparent 0.45px),
    repeating-linear-gradient(45deg,
      transparent 0 20px,
      rgba(200, 16, 46, 0.02) 20px 21px);
  background-size: 3px 3px, auto;
}

body.theme-swiss .background-grain {
  opacity: 0.038;
  background-image:
    radial-gradient(rgba(26, 34, 48, 0.35) 0.4px, transparent 0.4px),
    repeating-linear-gradient(
      102deg,
      transparent 0 30px,
      rgba(154, 133, 86, 0.035) 30px 31px
    );
  background-size: 4px 4px, auto;
}

body.theme-japanese .background-grain {
  background-image:
    radial-gradient(#8f6a43 0.45px, transparent 0.45px),
    repeating-linear-gradient(45deg,
      transparent 0 24px,
      rgba(143, 106, 67, 0.03) 24px 25px);
}

.sakura-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.theme-japanese .sakura-layer {
  opacity: 1;
}

.fireworks-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 13;
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.theme-chinese .fireworks-layer {
  opacity: 1;
}



.sakura-petal {
  position: absolute;
  top: -8vh;
  left: 0;
  width: var(--petal-size, 14px);
  height: calc(var(--petal-size, 14px) * 0.72);
  border-radius: 80% 80% 80% 20%;
  background: radial-gradient(circle at 35% 35%, #ffe4ef 0, #f6b6c9 60%, #e894ad 100%);
  opacity: 0.8;
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation: sakuraFall var(--duration, 11s) linear infinite;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.08));
}

@keyframes sakuraFall {
  0% {
    transform: translate3d(var(--start-x, 0vw), -10vh, 0) rotate(0deg);
  }

  25% {
    transform: translate3d(calc(var(--start-x, 0vw) + 4vw), 25vh, 0) rotate(120deg);
  }

  50% {
    transform: translate3d(calc(var(--start-x, 0vw) - 3vw), 55vh, 0) rotate(240deg);
  }

  75% {
    transform: translate3d(calc(var(--start-x, 0vw) + 5vw), 80vh, 0) rotate(320deg);
  }

  100% {
    transform: translate3d(calc(var(--start-x, 0vw) - 2vw), 110vh, 0) rotate(420deg);
  }
}

@keyframes blingPulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.1);
  }
}

@keyframes blingSweep {
  0% {
    left: -130%;
  }
  55% {
    left: 140%;
  }
  100% {
    left: 140%;
  }
}

.container {
  width: min(1120px, calc(100vw - 2.2rem));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 248, 244, 0.86);
  border-bottom: 1px solid rgba(200, 16, 46, 0.14);
}

.topbar-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: nowrap;
  padding: 0.45rem 0;
}

.logo {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  letter-spacing: 0.05em;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 0.25rem;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.logo a:hover {
  opacity: 0.88;
}

.logo-text--short {
  display: none;
}

@media (max-width: 400px) {
  .logo-text--full {
    display: none;
  }

  .logo-text--short {
    display: inline;
  }
}

.double-happiness {
  color: var(--red);
  font-family: "Noto Sans SC", sans-serif;
  margin-right: 0.4rem;
  font-weight: 700;
}

.lang-picker {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
}

.lang-menu {
  position: relative;
  flex: 0 0 auto;
}

.lang-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font: inherit;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.38rem 0.52rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-menu-trigger:hover {
  border-color: var(--red);
  box-shadow:
    0 3px 14px rgba(95, 19, 31, 0.12),
    0 0 0 1px rgba(200, 16, 46, 0.08);
}

.lang-menu-trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.lang-menu-trigger-flag {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
}

.lang-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(26, 22, 24, 0.28);
  cursor: default;
}

.lang-menu-list {
  position: fixed;
  z-index: 50;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  min-width: min(14rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.lang-menu-option {
  margin: 0;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.35;
}

.lang-menu-option:hover,
.lang-menu-option:focus-visible {
  background: var(--bg-soft);
  outline: none;
}

.lang-menu-option--active {
  background: rgba(184, 137, 67, 0.12);
  color: var(--text);
}

body.theme-chinese .lang-menu-trigger {
  border-color: rgba(200, 16, 46, 0.32);
}

body.theme-chinese .lang-menu-trigger:hover {
  border-color: var(--red);
}

body.theme-chinese .lang-menu-option--active {
  background: rgba(200, 16, 46, 0.1);
}

body.theme-japanese .lang-menu-trigger {
  border-color: rgba(143, 106, 67, 0.35);
}

body.theme-japanese .lang-menu-trigger:hover {
  border-color: var(--gold);
}

body.theme-japanese .lang-menu-option--active {
  background: rgba(143, 106, 67, 0.12);
}

body.theme-swiss .lang-menu-trigger {
  border-color: rgba(154, 133, 86, 0.38);
  background: linear-gradient(180deg, #ffffff 0%, rgba(252, 253, 255, 0.96) 100%);
}

body.theme-swiss .lang-menu-trigger:hover {
  border-color: rgba(154, 133, 86, 0.58);
  box-shadow:
    0 2px 12px rgba(22, 32, 48, 0.08),
    0 0 0 2px rgba(154, 133, 86, 0.12);
}

body.theme-swiss .lang-menu-option--active {
  background: rgba(154, 133, 86, 0.12);
}

.lang-select {
  --lang-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%235a6574' d='M2.2 5.2h9.6L7 10.2z'/%3E%3C/svg%3E");
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.42rem 2.35rem 0.42rem 0.78rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  appearance: none;
  background-color: #fff;
  background-image: var(--lang-select-chevron), linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right 0.62rem center, 0 0;
  background-size: 14px 14px, 100% 100%;
  min-width: min(11.25rem, calc(100vw - 7.5rem));
  max-width: calc(100vw - 7.5rem);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-select:hover {
  border-color: var(--red);
  box-shadow:
    0 3px 14px rgba(95, 19, 31, 0.12),
    0 0 0 1px rgba(200, 16, 46, 0.08);
}

.lang-select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

body.theme-chinese .lang-select {
  border-color: rgba(200, 16, 46, 0.32);
}

body.theme-chinese .lang-select:hover {
  border-color: var(--red);
  box-shadow:
    0 3px 16px rgba(126, 24, 37, 0.16),
    0 0 0 1px rgba(200, 16, 46, 0.1);
}

body.theme-japanese .lang-select {
  border-color: rgba(143, 106, 67, 0.35);
  --lang-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%236f6158' d='M2.2 5.2h9.6L7 10.2z'/%3E%3C/svg%3E");
}

body.theme-japanese .lang-select:hover {
  border-color: var(--gold);
  box-shadow:
    0 3px 14px rgba(74, 54, 39, 0.12),
    0 0 0 1px rgba(143, 106, 67, 0.12);
}

body.theme-swiss .lang-select {
  border-color: rgba(154, 133, 86, 0.38);
  --lang-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%235a6474' d='M2.2 5.2h9.6L7 10.2z'/%3E%3C/svg%3E");
  background-image: var(--lang-select-chevron),
    linear-gradient(180deg, #ffffff 0%, rgba(252, 253, 255, 0.96) 100%);
}

body.theme-swiss .lang-select:hover {
  border-color: rgba(154, 133, 86, 0.58);
  box-shadow:
    0 2px 12px rgba(22, 32, 48, 0.08),
    0 0 0 2px rgba(154, 133, 86, 0.12);
}

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.85rem;
  padding-bottom: 0.65rem;
}

.quick-nav-link {
  text-decoration: none;
  border: none;
  border-radius: 0;
  padding: 0.42rem 0.1rem;
  margin: 0;
  color: var(--text);
  background: transparent;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.quick-nav-link:hover {
  transform: none;
  color: var(--red);
  border-bottom-color: var(--red);
}

.quick-nav-link--active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.quick-nav-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

body.theme-swiss .quick-nav-link:hover,
body.theme-swiss .quick-nav-link--active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

body.theme-chinese .quick-nav-link:hover,
body.theme-chinese .quick-nav-link--active {
  color: var(--red);
  border-bottom-color: var(--red);
}

body.theme-japanese .quick-nav-link:hover,
body.theme-japanese .quick-nav-link--active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

section {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}

.hero {
  min-height: 88vh;
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.2rem, 4vw, 3rem);
}

.countdown-top {
  margin-bottom: 1rem;
}

.countdown-top .countdown {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, #ffffffee, #fff6f5),
    linear-gradient(35deg, transparent 40%, #c8102e0d 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 3.2vw, 2.3rem);
  animation: floatIn 0.9s ease both;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0.6rem 0;
  line-height: 0.95;
  font-size: clamp(2.2rem, 7vw, 4.9rem);
}

.jp-title-image {
  display: block;
  width: min(100%, 460px);
  margin: 0.65rem auto 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: contain;
  max-height: 42vh;
  height: auto;
}

body:not(.theme-japanese) .jp-title-image {
  display: none !important;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
}

.meta-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.meta-pill {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff7f8;
  padding: 0.65rem;
  text-align: center;
}

.meta-pill b {
  display: block;
  font-size: 0.87rem;
  color: var(--gold);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.count-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff8f9;
  text-align: center;
  padding: 1rem 0.4rem;
}

.count-value {
  display: block;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--gold);
  line-height: 1;
}

.count-label {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-sub {
  margin-top: 0.5rem;
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 2.7vw, 1.8rem);
}

.party-grid,
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.party-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.party-grid > .card,
.people-grid > .card {
  min-width: 0;
}

.card--schedule {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.schedule-card-title {
  margin-bottom: 0.35rem;
  font-size: clamp(1.45rem, 3.2vw, 2.25rem);
}

.section-sub--follow {
  margin-top: 0.35rem;
}

.schedule-chic {
  margin-top: 0.85rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--line);
}

.schedule-chic-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 26%) 1fr;
  column-gap: clamp(1.25rem, 4vw, 2.75rem);
  row-gap: 0.35rem;
  align-items: start;
  padding: clamp(1.75rem, 4vw, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
}

.schedule-chic-row:last-child {
  border-bottom: none;
  padding-bottom: 0.35rem;
}

.schedule-chic-time {
  margin: 0;
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.35;
}

.schedule-chic-main {
  min-width: 0;
}

.schedule-chic-title {
  margin: 0 0 0.5rem;
  font-size: clamp(0.82rem, 1.85vw, 1.02rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
}

.schedule-chic-desc {
  margin: 0;
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: clamp(0.94rem, 2.1vw, 1.06rem);
  color: var(--gold);
  line-height: 1.55;
  opacity: 0.94;
}

body.theme-chinese .schedule-chic-desc {
  font-family: "EB Garamond", "Noto Sans SC", serif;
}

body.theme-japanese .schedule-chic-desc {
  font-family: "EB Garamond", "Noto Sans JP", serif;
}

@media (max-width: 640px) {
  .schedule-chic-row {
    grid-template-columns: 1fr;
  }

  .schedule-chic-time {
    margin-bottom: 0.1rem;
  }
}

.map-button {
  display: inline-block;
  margin-top: 0.8rem;
  text-decoration: none;
  border: 1px solid var(--gold);
  color: var(--text);
  border-radius: 999px;
  padding: 0.46rem 1rem;
  transition: 0.2s ease;
}

.map-button:hover {
  background: #ffe0e7;
}

.location-photo-wrap {
  margin: 0.85rem 0 0;
  margin-inline: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.location-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-embed {
  width: 100%;
  height: 300px;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.map-button--below-map {
  margin-top: 0.85rem;
}

.map-fallback {
  display: none;
  margin-top: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
}

.schedule-list {
  --timeline-time-col: 92px;
  --timeline-marker-col: 22px;
  --timeline-gap: 0.95rem;
  --timeline-line-x: calc(var(--timeline-time-col) + var(--timeline-marker-col) * 0.5);
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0.1rem 0.1rem 0.1rem 0.2rem;
  display: grid;
  gap: 0.55rem;
  position: relative;
}

.schedule-list::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: var(--timeline-line-x);
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(200, 16, 46, 0.65),
    rgba(184, 137, 67, 0.55),
    rgba(200, 16, 46, 0.4)
  );
}

.schedule-item {
  display: grid;
  grid-template-columns: var(--timeline-time-col) var(--timeline-marker-col) minmax(0, 1fr);
  gap: var(--timeline-gap);
  align-items: center;
  padding: 0.15rem 0.1rem;
  position: relative;
  z-index: 1;
}

.schedule-time {
  display: inline-block;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.03em;
  font-size: 1.02rem;
  text-align: right;
  white-space: nowrap;
  padding-top: 0;
}

.schedule-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.13);
  justify-self: center;
}

.schedule-text {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.62rem 0.75rem;
}

@media (max-width: 740px) {
  .schedule-list {
    --timeline-time-col: 70px;
    --timeline-marker-col: 18px;
    --timeline-gap: 0.55rem;
    --timeline-line-x: calc(var(--timeline-time-col) + var(--timeline-marker-col) * 0.5);
    padding-left: 0;
  }

  .schedule-list::before {
    left: var(--timeline-line-x);
  }

  .schedule-item {
    grid-template-columns: var(--timeline-time-col) var(--timeline-marker-col) minmax(0, 1fr);
    gap: var(--timeline-gap);
  }

  .schedule-time {
    text-align: right;
    padding: 0;
    font-size: 0.95rem;
  }

  .schedule-text {
    padding: 0.56rem 0.62rem;
  }
}

.gallery-grid {
  column-width: 260px;
  column-gap: 0.8rem;
}

.photo-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(130deg, #ffffffcc, #ffffff00),
    linear-gradient(60deg, #ffe4d9cc, #ffcad3cc);
  display: grid;
  place-items: center;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  break-inside: avoid;
  margin: 0 0 0.8rem;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.photo-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.35s ease;
  display: block;
}

.photo-card:hover img {
  transform: scale(1.03);
}

.placeholder {
  text-align: center;
  color: var(--muted);
  padding: 1rem;
  font-size: 1.06rem;
}

.about-text {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  color: #4a1b22;
}

.symbol-note {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.5;
}

.animate {
  opacity: 0;
  transform: translateY(26px);
  transition: 0.65s ease;
}

.animate.in {
  opacity: 1;
  transform: translateY(0);
}

footer {
  padding: 2rem 0 2.8rem;
  color: var(--muted);
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 8, 10, 0.82);
  backdrop-filter: blur(4px);
}

.lightbox.open {
  display: grid;
}

.lightbox-content {
  position: relative;
  max-width: min(94vw, 1300px);
  max-height: 90vh;
  display: grid;
  gap: 0.5rem;
}

.lightbox-image {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.28);
}

.lightbox-close {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
}

.audio-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {

  .hero-grid,
  .party-grid,
  .people-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {

  .countdown,
  .countdown-top .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    column-width: 180px;
  }

  .topbar-inner {
    gap: 0.45rem;
  }

  .quick-nav {
    gap: 0.1rem 0.65rem;
    padding-bottom: 0.45rem;
  }

  .quick-nav-link {
    font-size: 0.86rem;
    padding: 0.35rem 0.05rem;
  }

  .lang-select {
    font-size: 1.05rem;
    min-width: 0;
    width: auto;
    max-width: 4.35rem;
    padding: 0.38rem 1.75rem 0.38rem 0.45rem;
    text-align: center;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
