*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* 소라색 (powder blue) palette */
  --sky-50:  #f5f9fc;
  --sky-100: #eaf2f8;
  --sky-200: #dcebf3;
  --sky-300: #cfe2ee;
  --sky-400: #b6d2e4;
  --sky-500: #9bbfd6;
  --blue:    #5f86a3;
  --blue-deep: #3f627c;
  --ink:     #2b3c48;
  --ink-soft:#5a7080;
  --ink-faint:#8aa0ad;
  --line:    rgba(63, 98, 124, 0.16);
  --line-soft: rgba(63, 98, 124, 0.09);
  --card:    #ffffff;
  --gold:    #b89b6a;

  --font-ko: 'Noto Serif KR', serif;
  --font-batang: 'Gowun Batang', serif;
  --font-en: 'Cormorant Garamond', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ko);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background:
    radial-gradient(120% 60% at 50% 0%, #ffffff 0%, var(--sky-200) 38%, var(--sky-300) 100%);
  overflow-x: hidden;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Shared bits */
.kicker {
  font-family: var(--font-en);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.22em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section {
  padding: 58px 30px;
  text-align: center;
  position: relative;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-photo {
  position: absolute;
  inset: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(150,190,214,0.35) 0%, rgba(255,255,255,0) 24%),
    linear-gradient(0deg, rgba(38,54,66,0.72) 0%, rgba(38,54,66,0.34) 26%, rgba(38,54,66,0.04) 50%, rgba(255,255,255,0) 64%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-label {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.18em;
  opacity: 0.95;
  margin-bottom: 18px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}
.hero-names {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-ko);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.32);
}
.hero-names .sprig {
  width: 24px;
  height: 32px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.32));
}
.hero-line {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,0.7);
  margin: 20px 0;
}
.hero-date {
  font-family: var(--font-en);
  font-size: 16px;
  letter-spacing: 0.24em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 12px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ===== Intro ===== */
.intro { padding-top: 66px; padding-bottom: 66px; }
.intro-en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 17px;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin-bottom: 26px;
}
.intro-ko {
  font-family: var(--font-batang);
  font-size: 19px;
  line-height: 2.2;
  color: var(--ink);
  letter-spacing: 0.02em;
  word-break: keep-all;
}

/* ===== Photo preview strip ===== */
.strip-section {
  padding: 54px 0 56px;
  text-align: center;
}
.strip-kicker { margin-bottom: 18px; }
.film-strip {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 30px 16px;
  scrollbar-width: none;
}
.film-strip::-webkit-scrollbar { display: none; }
.film-strip .fs-cell {
  flex: 0 0 auto;
  width: 63%;
  aspect-ratio: 4 / 5;
  scroll-snap-align: center;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--sky-100);
  box-shadow: 0 14px 36px -22px rgba(63, 98, 124, 0.55);
}
.film-strip .fs-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.film-strip .fs-cell:active img { transform: scale(1.04); }
.strip-hint {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
  margin-top: 4px;
}

/* ===== Invitation card ===== */
.card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 20px;
  padding: 48px 30px 42px;
  box-shadow: 0 18px 50px -24px rgba(63,98,124,0.45);
}
.invite-text {
  font-family: var(--font-batang);
  font-size: 16px;
  line-height: 2.35;
  color: var(--ink-soft);
  word-break: keep-all;
  margin-bottom: 36px;
}
.family {
  display: inline-flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.family-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.family-row .role {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue);
  width: 30px;
  text-align: right;
}
.family-row .name {
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

/* ===== Date / Calendar ===== */
.date-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.date-sub {
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  margin-bottom: 38px;
}
.calendar {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 18px;
  padding: 26px 20px 22px;
  box-shadow: 0 16px 44px -26px rgba(63,98,124,0.45);
  max-width: 330px;
  margin: 0 auto 36px;
}
.cal-head, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-head {
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.cal-head span {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
.cal-grid span {
  font-family: var(--font-en);
  font-size: 15px;
  color: var(--ink-soft);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-head .sun, .cal-grid .sun { color: #c77f86; }
.cal-head .sat, .cal-grid .sat { color: #6f93b3; }
.cal-grid .mark {
  position: relative;
  isolation: isolate;
  color: #fff;
  font-weight: 500;
}
.cal-grid .mark::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  z-index: -1;
  box-shadow: 0 6px 16px -6px rgba(63,98,124,0.7);
}
.cal-grid .mark::after {
  content: "♥";
  position: absolute;
  top: -9px;
  right: 2px;
  font-size: 11px;
  color: #c77f86;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 52px;
}
.cd-num {
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.cd-label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cd-sep {
  font-family: var(--font-en);
  font-size: 24px;
  color: var(--sky-500);
  transform: translateY(-9px);
}
.dday {
  font-family: var(--font-batang);
  font-size: 14px;
  color: var(--blue);
  letter-spacing: 0.02em;
}

/* ===== Location ===== */
.loc-name {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.loc-floor {
  font-size: 14px;
  color: var(--blue);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}
.loc-address {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.map-container {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 14px 40px -24px rgba(63,98,124,0.5);
}
.map-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 30px;
}
.map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.7);
  font-family: var(--font-ko);
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.map-btn svg { width: 15px; height: 15px; color: var(--blue); }
.map-btn:active { transform: scale(0.98); background: var(--sky-100); }
.transport {
  text-align: left;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 8px 22px;
}
.t-item {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
}
.t-item:first-child { border-top: none; }
.t-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.t-icon svg { width: 21px; height: 21px; }
.t-content { flex: 1; min-width: 0; }
.t-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 5px;
}
.t-main {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 0.01em;
}
.t-sub {
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.6;
  margin-top: 3px;
}
.bus-route {
  margin-top: 11px;
}
.bus-route + .bus-route {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
}
.bus-nos {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}
.bus-no {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--sky-200);
  color: var(--blue-deep);
  font-family: var(--font-ko);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}
.bus-dest {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===== Game ===== */
.game-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.game-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.95;
  margin-bottom: 18px;
}
.game-section canvas {
  width: 100%;
  height: 220px;
  display: block;
  border-radius: 16px;
  background: var(--sky-50);
  box-shadow: 0 14px 40px -24px rgba(63,98,124,0.5);
  margin-bottom: 12px;
  cursor: pointer;
  touch-action: none;
}
.game-hint {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ===== Account ===== */
.account-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.account-desc {
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.account-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acc-group {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
}
.acc-group summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 20px;
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.acc-group summary::-webkit-details-marker { display: none; }
.acc-group .chev {
  color: var(--blue);
  transition: transform 0.25s;
  font-size: 18px;
}
.acc-group[open] .chev { transform: rotate(180deg); }
.acc-body {
  padding: 0 20px 18px;
}
.acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.acc-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.acc-bank { font-size: 12px; color: var(--ink-faint); }
.acc-num {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.acc-holder { font-size: 12px; color: var(--ink-soft); }
.copy-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  font-family: var(--font-ko);
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.copy-btn:active { background: var(--blue); color: #fff; }

/* ===== Share ===== */
.share-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.share-btns {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.share-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-ko);
  font-size: 14.5px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.share-btn:active { transform: scale(0.99); }
.share-btn.kakao { background: #FEE500; color: #191919; }
.share-btn.ghost {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 56px 32px 74px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-names {
  font-size: 17px;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.footer-date {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--blue);
}
.footer-thanks {
  font-family: var(--font-batang);
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 30, 38, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.lightbox.open { display: flex; opacity: 1; }
.lb-img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lb-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-counter {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.15em;
}

@media (max-width: 360px) {
  .hero-names { font-size: 29px; }
  .section { padding-left: 22px; padding-right: 22px; }
  .cd-item { min-width: 44px; }
  .cd-num { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo img { animation: none; }
  .scroll-cue span { animation: none; }
}
