/* 청첩장 화면. 공통 구조 + 테마별(body.theme-*) 색·글꼴·장식 */
:root {
  --serif: "Gowun Batang", Georgia, serif;
  --sans: "Manrope", system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body, var(--serif));
  line-height: 1.8;
  word-break: keep-all;
  overflow-x: clip;
}
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; }

/* 모바일 청첩장이라 넓은 화면에서도 가운데 한 장처럼 */
#app {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 60px rgb(0 0 0 / .08);
  min-height: 100vh;
}

.top {
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
  font: 600 10px/1 var(--sans);
  letter-spacing: .2em;
}
.top a { text-decoration: none; }
.demo-bar {
  padding: 10px 16px;
  text-align: center;
  font: 13px var(--sans);
  background: var(--ink);
  color: var(--bg);
}
.demo-bar a { font-weight: 700; }

/* ---- 첫 화면 공통 ---- */
.hero {
  position: relative;
  min-height: 640px;
  padding: 64px 28px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero > * { position: relative; }
.eyebrow, .label {
  font: 500 10px/1.6 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 22px 0;
  font-weight: 400;
  font-size: 46px;
  line-height: 1.3;
  letter-spacing: -.04em;
}
.names { font-size: 20px; letter-spacing: .14em; }
.date { margin: 10px 0 0; font: 12px var(--sans); letter-spacing: .14em; }
.cue {
  margin-top: 34px;
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  text-decoration: none;
}

/* ---- 섹션 공통 ---- */
.sec { padding: 80px 28px; text-align: center; border-top: 1px solid var(--line); }
.sec .label { color: var(--muted); }
.sec h2 {
  margin: 14px 0 30px;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.5;
  letter-spacing: -.03em;
}
.copy { font-size: 15px; line-height: 2.1; margin: 0; }
.parents { margin-top: 40px; display: grid; gap: 6px; font-size: 15px; }
.parent { margin: 0; }
.parent .pn { color: var(--muted); }
.parent b { font-weight: 700; margin-left: 4px; }
.note { color: var(--muted); font-size: 13px; margin: -14px 0 24px; }

.big { font-size: 64px; line-height: 1.1; letter-spacing: -.03em; }
.big small { display: block; font: 500 11px var(--sans); letter-spacing: .24em; color: var(--muted); margin-bottom: 10px; }
.full { font-size: 15px; margin: 14px 0 0; }
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  max-width: 320px;
  margin: 34px auto 0;
  font: 13px var(--sans);
}
.cal span { padding: 6px 0; }
.cal .wd { font-size: 10px; color: var(--muted); }
.cal .sun { color: var(--accent); }
.cal .pick { border-radius: 50%; background: var(--accent); color: var(--bg); font-weight: 700; }
.count { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin: 28px 0; font-size: 13px; }
.count strong { font-size: 26px; font-weight: 400; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius, 0);
  background: transparent;
  font: 600 13px var(--sans);
  text-decoration: none;
}
.btn.solid { background: var(--ink); color: var(--bg); }
.row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.shot { padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; background: var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shot:hover img { transform: scale(1.05); }
.lb {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgb(10 10 10 / .94);
  color: #fff;
}
.lb img { max-width: 100vw; max-height: 86vh; object-fit: contain; }
.lb button {
  position: absolute;
  border: 0;
  background: none;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  padding: 14px;
}
.lb-x { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; font: 12px var(--sans); letter-spacing: .1em; }

.place h3 { margin: 0; font-size: 22px; font-weight: 700; }
.hall { margin: 4px 0 0; }
.addr { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.acc { text-align: left; border: 1px solid var(--line); border-radius: var(--radius, 0); margin-top: 10px; background: var(--field); }
.acc summary { padding: 14px 18px; cursor: pointer; font: 600 14px var(--sans); }
.acc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.acc-row b { display: block; }
.acc-row span { color: var(--muted); font-size: 13px; }
.mini { border: 1px solid var(--line); background: var(--bg); padding: 6px 12px; border-radius: var(--radius, 0); font: 600 12px var(--sans); white-space: nowrap; }

.form { display: grid; gap: 14px; text-align: left; }
.f { display: grid; gap: 6px; font: 600 12px var(--sans); color: var(--muted); }
.f input, .f textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 0);
  background: var(--field);
  color: var(--ink);
  font: 16px var(--body, var(--serif));
  resize: vertical;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: var(--radius, 0); overflow: hidden; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.seg span {
  display: block;
  padding: 11px 6px;
  text-align: center;
  background: var(--field);
  color: var(--ink);
  font: 500 14px var(--sans);
  cursor: pointer;
}
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.form .btn { margin-top: 6px; width: 100%; }
.done { font-size: 16px; }

.gb-layout { display: grid; gap: 34px; }
.gb-list { max-height: 460px; overflow: auto; text-align: left; }
.gb { padding: 18px 0; border-bottom: 1px solid var(--line); }
.gb-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.gb time { color: var(--muted); font: 11px var(--sans); }
.gb p { margin: 8px 0 0; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.gb-list .note { margin: 0; text-align: center; }

.closing { padding: 90px 28px 80px; text-align: center; border-top: 1px solid var(--line); }
.closing h2 { font-weight: 400; font-size: 25px; line-height: 1.6; margin: 18px 0; }
.sign { letter-spacing: .2em; }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 28px;
  border-top: 1px solid var(--line);
  font: 11px var(--sans);
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 14px var(--sans);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Sunday Letter — 햇살·바다·편지지
   ========================================================= */
.theme-letter {
  --bg: #f6f2ea; --ink: #2f3b35; --muted: #74807a; --line: #ddd8cc; --accent: #c0705a; --field: #fffdf8;
  --radius: 999px;
}
.theme-letter .hero { min-height: 680px; justify-content: flex-end; padding: 0; color: #fff; }
.theme-letter .hero > .cover, .theme-letter .sea { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme-letter .sea {
  background:
    radial-gradient(circle at 70% 22%, #fff7d6 0 6%, transparent 7%),
    linear-gradient(180deg, #bfd6dd 0, #e9dfc8 46%, #8fb3b4 47%, #6f9c9f 62%, #c9c09a 63%, #a6a275 100%);
}
.theme-letter .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(20 32 28 / .75), transparent 60%); }
.theme-letter .over { z-index: 1; padding: 0 28px 60px; }
.theme-letter .hero h1 { font-size: 40px; margin: 14px 0; }
.theme-letter .stamp {
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 22px;
  padding: 10px 8px;
  border: 1.5px dashed rgb(255 255 255 / .8);
  font: 600 10px/1.4 var(--sans);
  letter-spacing: .2em;
  transform: rotate(6deg);
}
.theme-letter .greet {
  margin: 0 18px;
  border: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 33px, #e8e2d4 33px 34px),
    var(--field);
}

/* =========================================================
   Cinema Premiere — 버건디 포스터와 종이 티켓
   ========================================================= */
.theme-cinema {
  --bg: #f4eadb; --ink: #371321; --muted: #8a6758; --line: #dcc9b2; --accent: #b4483a; --field: #fbf4e8;
  --body: var(--sans);
}
.theme-cinema .top { background: #371321; color: #f4eadb; }
.theme-cinema .hero {
  min-height: 700px;
  color: #f7ecd7;
  background:
    radial-gradient(ellipse at 50% 30%, rgb(243 222 186 / .25), transparent 55%),
    linear-gradient(160deg, #301c23, #6d2b2b 50%, #a85c42);
  justify-content: space-between;
}
.theme-cinema .strip { width: 100%; display: flex; justify-content: space-between; font: 500 10px var(--mono); letter-spacing: .12em; opacity: .8; }
.theme-cinema .moon {
  width: 180px; height: 180px; border-radius: 50%; margin: 30px 0 10px;
  background: radial-gradient(circle at 40% 35%, #f3deba, #c88c62 60%, #7d3028);
  box-shadow: 0 0 80px rgb(243 222 186 / .35);
}
.theme-cinema .still { width: 220px; aspect-ratio: 4 / 5; margin: 26px 0 10px; padding: 8px; background: #f7ecd7; transform: rotate(-2deg); }
.theme-cinema .still img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) saturate(.9); }
.theme-cinema .eyebrow { font-family: var(--mono); opacity: .8; }
.theme-cinema .title { margin: 10px 0 4px; font: 400 54px/1.1 var(--serif); letter-spacing: -.05em; }
.theme-cinema .amp { font-size: .5em; font-style: italic; color: #e2b98f; }
.theme-cinema .sub { margin: 6px 0 0; font-family: var(--serif); font-size: 17px; }
.theme-cinema .credits {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgb(247 236 215 / .3);
  font: 9px/1.6 var(--mono);
  letter-spacing: .1em;
}
.theme-cinema .credits b { font-size: 11px; }
.theme-cinema .rating { border: 1px solid currentColor; padding: 6px 8px; font-size: 11px; }
.theme-cinema .cue { margin-top: 20px; font-family: var(--mono); font-size: 11px; }
.theme-cinema .marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  background: #b4483a;
  color: #f7ecd7;
  font: 500 12px var(--mono);
  letter-spacing: .14em;
}
.theme-cinema .marquee span { display: inline-block; animation: slide 30s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }
.theme-cinema .sec h2, .theme-cinema .closing h2, .theme-cinema .copy { font-family: var(--serif); }
.theme-cinema .when {
  margin: 30px 18px;
  border: 0;
  background: var(--field);
  position: relative;
  /* 티켓 양옆의 반원 홈 */
  mask: radial-gradient(circle at 0 50%, transparent 14px, #000 15px) left / 51% 100% no-repeat,
        radial-gradient(circle at 100% 50%, transparent 14px, #000 15px) right / 51% 100% no-repeat;
}
.theme-cinema .when .big { font-family: var(--serif); }
.theme-cinema .closing { background: #371321; color: #f7ecd7; }
.theme-cinema .closing .btn { border-color: #f7ecd7; }
.theme-cinema .closing .btn.solid { background: #f7ecd7; color: #371321; }

/* =========================================================
   Hanji Vows (여백) — 한지·먹색·낙관
   ========================================================= */
.theme-hanji {
  --bg: #f5f1e8; --ink: #30372f; --muted: #6a7064; --line: #cfcfc0; --accent: #8a4234; --field: #faf7ef;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%238d8064' opacity='.07' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
}
.theme-hanji #app { background: transparent; }
.theme-hanji .hero { margin: 0 14px; border: 1px solid var(--line); min-height: 700px; }
.theme-hanji .hero h1 { writing-mode: vertical-rl; height: 280px; font-size: 52px; line-height: 1.7; letter-spacing: .2em; }
.theme-hanji .hero .eyebrow { letter-spacing: .5em; }
.theme-hanji .branch { position: absolute; right: -80px; bottom: 0; width: 280px; color: #66725a; opacity: .55; }
.theme-hanji .frame { width: 170px; aspect-ratio: 3 / 4; padding: 6px; margin-bottom: 22px; border: 1px solid var(--line); background: var(--field); }
.theme-hanji .frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.theme-hanji .parents::after {
  content: "佳約";
  justify-self: center;
  margin-top: 20px;
  padding: 4px 9px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .2em;
  transform: rotate(-5deg);
}
.theme-hanji .closing { background: #e8e9dd; }

/* =========================================================
   Blue Hour — 코발트와 라임
   ========================================================= */
.theme-blue {
  --bg: #f8f8f0; --ink: #123bd6; --muted: #4b5a90; --line: #c3cdee; --accent: #f26c35; --field: #fff;
  --body: var(--sans);
}
.theme-blue .top { background: #123bd6; color: #f8f8f0; }
.theme-blue .hero { background: #123bd6; color: #f8f8f0; align-items: flex-start; text-align: left; min-height: 700px; }
.theme-blue .hero h1 {
  margin: 40px 0 10px;
  font: 800 66px/.92 var(--sans);
  letter-spacing: -.07em;
  text-transform: uppercase;
}
.theme-blue .names {
  padding: 6px 18px;
  background: #d9fa6d;
  color: #123bd6;
  font-weight: 800;
  letter-spacing: .04em;
  transform: rotate(-3deg);
  margin-top: 16px;
}
.theme-blue .orb {
  position: absolute;
  top: 26px;
  right: 22px;
  width: 104px;
  height: 104px;
  display: grid;
  place-content: center;
  border: 1px solid #f8f8f0;
  border-radius: 50%;
  text-align: center;
  font: 600 10px/1.5 var(--sans);
  letter-spacing: .1em;
  transform: rotate(14deg);
}
.theme-blue .polaroid { align-self: flex-end; width: 190px; margin-top: 26px; padding: 8px 8px 30px; background: #fff; transform: rotate(4deg); box-shadow: 0 16px 40px rgb(0 0 0 / .25); }
.theme-blue .polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.theme-blue .date { margin-top: 24px; }
.theme-blue .sec h2, .theme-blue .closing h2 { font-weight: 800; letter-spacing: -.04em; }
.theme-blue .greet { background: #d9fa6d; border: 0; margin: 0 10px; transform: rotate(-1.5deg); }
.theme-blue .greet .label, .theme-blue .greet .pn { color: #123bd6; }
.theme-blue .big { font-weight: 800; }
.theme-blue .closing { background: #123bd6; color: #fff; --ink: #fff; --bg: #123bd6; }

/* =========================================================
   Lunar Archive — 달빛과 궤도
   ========================================================= */
.theme-lunar {
  --bg: #111821; --ink: #e7e9e6; --muted: #9fb0bd; --line: #2f3c48; --accent: #bdd8ea; --field: #1a2530;
}
.theme-lunar .top, .theme-lunar .label, .theme-lunar .eyebrow, .theme-lunar .coords, .theme-lunar .flight { font-family: var(--mono); }
.theme-lunar .hero {
  min-height: 720px;
  background:
    radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent),
    radial-gradient(1px 1px at 80% 12%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 62% 78%, #cfe3f0 50%, transparent),
    radial-gradient(1px 1px at 12% 70%, #fff 50%, transparent),
    radial-gradient(ellipse at 50% 55%, #2c3a46 0, transparent 60%);
}
.theme-lunar .moon {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  margin: 24px 0 6px;
  background:
    radial-gradient(circle at 30% 35%, rgb(53 65 75 / .5) 0 8%, transparent 9%),
    radial-gradient(circle at 58% 62%, rgb(48 58 70 / .5) 0 12%, transparent 13%),
    radial-gradient(circle at 35% 30%, #c4c8c6 0, #7c868b 38%, #3a4652 70%);
  box-shadow: 0 0 90px rgb(184 217 239 / .18);
}
.theme-lunar .moon img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.9); }
.theme-lunar .hero h1 { font-size: 36px; text-shadow: 0 2px 30px #000; margin: 26px 0 16px; }
.theme-lunar .coords { margin: 14px 0 0; font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.theme-lunar .flight { display: flex; align-items: center; gap: 14px; margin: 28px 0 0; font-size: 12px; }
.theme-lunar .flight span { flex: 1; border-top: 1px dashed var(--muted); }
.theme-lunar .closing { background: radial-gradient(ellipse at bottom, #394957, transparent 70%); }

/* 첫 진입 연출 공통 */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: opacity .5s;
}
.intro.gone { opacity: 0; pointer-events: none; }
.barcode {
  display: block;
  height: 42px;
  margin-top: 8px;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 8px, currentColor 8px 11px, transparent 11px 13px);
}

/* =========================================================
   Ivory Classic — 단정한 정통 청첩장
   ========================================================= */
.theme-ivory {
  --bg: #fbf8f3; --ink: #3a3330; --muted: #9a8c84; --line: #ece3d9; --accent: #b5867a; --field: #fff;
  --body: "Nanum Myeongjo", var(--serif);
}
.theme-ivory .hero { min-height: 720px; }
.theme-ivory .hero::before, .theme-ivory .hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.theme-ivory .hero::before { top: -120px; right: -110px; }
.theme-ivory .hero::after { bottom: -130px; left: -120px; }
.theme-ivory .eyebrow { color: var(--accent); letter-spacing: .35em; }
.theme-ivory .dot { width: 26px; height: 26px; margin: 36px 0 30px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--accent); opacity: .85; }
.theme-ivory .arch { width: 220px; aspect-ratio: 3 / 4; margin: 30px 0 26px; border-radius: 999px 999px 0 0; overflow: hidden; }
.theme-ivory .arch img { width: 100%; height: 100%; object-fit: cover; }
.theme-ivory .ko-names { margin: 0; font-size: 13px; letter-spacing: .3em; color: var(--muted); }
.theme-ivory .hero h1 { display: flex; flex-direction: column; align-items: center; margin: 14px 0; font-size: 42px; line-height: 1.25; letter-spacing: 0; }
.theme-ivory .amp { font: italic 400 22px Georgia, serif; color: var(--accent); margin: 2px 0; }
.theme-ivory .sub { margin: 0 0 22px; font-size: 15px; }
.theme-ivory .place { margin: 6px 0 0; font-size: 14px; font-weight: 700; }
.theme-ivory .cue { border: 0; font: 10px var(--sans); letter-spacing: .3em; color: var(--muted); }
.theme-ivory .cue::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: var(--muted); }
.theme-ivory .label { color: var(--accent); letter-spacing: .3em; }

/* =========================================================
   Pull Request — 머지를 기다리는 PR 한 장
   ========================================================= */
.theme-pullrequest {
  --bg: #0e1116; --ink: #e6edf3; --muted: #8b96a3; --line: #262c36; --accent: #3fb950; --field: #161b22;
  --body: var(--sans);
  --radius: 8px;
}
.intro-term { background: #0b0d10; color: var(--muted); font-size: 12px; }
.term { width: min(440px, calc(100vw - 32px)); border: 1px solid #30363d; border-radius: 10px; overflow: hidden; text-align: left; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #161b22; font: 11px var(--mono); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; }
.term pre { min-height: 150px; margin: 0; padding: 16px; color: #7ee787; font: 13px/1.8 var(--mono); white-space: pre-wrap; word-break: break-all; }
.term pre::after { content: "▋"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* =========================================================
   Boarding Pass — 출발 안내판과 탑승권
   ========================================================= */
.theme-boarding {
  --bg: #f3efe6; --ink: #1d2a44; --muted: #6d7690; --line: #d9d3c4; --accent: #e8643c; --field: #fffdf7;
  --body: var(--sans);
  --radius: 10px;
}
.theme-boarding .sec h2, .theme-boarding .closing h2 { font-weight: 800; letter-spacing: -.04em; }
.theme-boarding .label { color: var(--accent); }
.theme-boarding .hero { min-height: auto; padding: 36px 18px 50px; background: #1d2a44; color: #f3efe6; }
.board { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; perspective: 400px; }
.flap {
  display: grid;
  place-items: center;
  width: 22px;
  height: 32px;
  border-radius: 3px;
  background: linear-gradient(#0f1729 49%, #070c18 51%);
  color: #ffd166;
  font: 500 18px var(--mono);
  animation: flap .5s calc(var(--i) * 90ms) both;
}
@keyframes flap {
  0% { transform: rotateX(90deg); opacity: 0; }
  60% { transform: rotateX(-20deg); opacity: 1; }
  100% { transform: none; }
}
.theme-boarding .eyebrow { margin: 22px 0 16px; color: #ffd166; font-size: 12px; }
.pass { width: 100%; border-radius: 16px; background: #fffdf7; color: var(--ink); text-align: left; overflow: hidden; }
.pass-main { padding: 20px; }
.pass-top { display: flex; justify-content: space-between; font: 600 11px var(--sans); letter-spacing: .14em; }
.pass-top b { color: var(--accent); }
.route { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 20px 0; }
.route div:last-child { text-align: right; }
.route small, .pass-grid small, .pass-stub small { display: block; font: 600 9px var(--sans); letter-spacing: .16em; color: var(--muted); }
.route strong { display: block; font: 800 30px/1.2 var(--sans); letter-spacing: -.04em; overflow-wrap: anywhere; }
.plane { font-size: 26px; color: var(--accent); }
.pass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
.pass-grid b { font-size: 14px; overflow-wrap: anywhere; }
.pass-stub { position: relative; padding: 16px 20px 20px; border-top: 2px dashed var(--line); }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: #1d2a44; }
.pass-stub::before { left: -11px; }
.pass-stub::after { right: -11px; }
.pass-stub b { display: block; margin: 2px 0; }
.window { width: 170px; aspect-ratio: 3 / 4; margin-top: 30px; border: 10px solid #c8cfdc; border-radius: 90px; overflow: hidden; box-shadow: 0 0 0 4px #9aa5ba, inset 0 0 30px rgb(0 0 0 / .3); }
.window img { width: 100%; height: 100%; object-fit: cover; }
.theme-boarding .cue { margin-top: 28px; }

/* =========================================================
   Receipt — 감열지 영수증
   ========================================================= */
.theme-receipt {
  --bg: #e9e6df; --ink: #232323; --muted: #6b6b6b; --line: #cfcac0; --accent: #d0342c; --field: #fbfaf7;
  --body: "DM Mono", "Apple SD Gothic Neo", "Malgun Gothic", monospace;
}
.theme-receipt .sec h2, .theme-receipt .closing h2 { font-weight: 700; font-size: 22px; }
.theme-receipt .sec { border-top: 1px dashed #aaa; }
.theme-receipt .hero { min-height: auto; padding: 26px 16px 50px; justify-content: flex-start; }
.printer { z-index: 2; width: 300px; height: 24px; border-radius: 12px 12px 4px 4px; background: #3a3a3a; box-shadow: 0 6px 12px rgb(0 0 0 / .25); }
.paper {
  z-index: 1;
  width: 268px;
  margin-top: -8px;
  padding: 26px 18px 34px;
  background: #fff;
  color: #222;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.7;
  box-shadow: 0 10px 30px rgb(0 0 0 / .08);
  /* 아래쪽 톱니 */
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat,
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x;
  animation: print 2.6s cubic-bezier(.3, .7, .3, 1) both;
}
@keyframes print { from { transform: translateY(-88%); } }
.paper p { margin: 0; }
.paper .shop { text-align: center; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.paper .c { text-align: center; }
.paper .fine { margin-top: 8px; font-size: 10px; color: #777; }
.paper hr { border: 0; border-top: 1px dashed #999; margin: 12px 0; }
.paper .photo img { width: 100%; filter: grayscale(1) contrast(1.15); margin-bottom: 12px; }
.it { display: grid; grid-template-columns: 1fr 40px 84px; }
.it span:not(:first-child) { text-align: right; }
.it.head { color: #888; }
.total { display: flex; justify-content: space-between; margin: 4px 0; font-size: 17px; }
.total b { color: var(--accent); }
.paper h1 { margin: 6px 0; font-size: 17px; font-weight: 700; text-align: center; letter-spacing: 0; line-height: 1.5; }
.paper .barcode { color: #222; margin: 10px 8px 0; }

/* =========================================================
   Pixel Quest — 8비트 게임
   ========================================================= */
.theme-pixel {
  --bg: #1c1838; --ink: #f7f3e3; --muted: #a9a3d1; --line: #3d3770; --accent: #ffcc4d; --field: #262150;
  --body: "Do Hyeon", var(--sans);
  --pixel: "Press Start 2P", var(--mono);
}
.theme-pixel .top, .theme-pixel .label, .theme-pixel .big small, .theme-pixel .foot { font-family: var(--pixel); font-size: 8px; line-height: 1.8; }
.theme-pixel .label { color: var(--accent); }
.theme-pixel .sec { border-top: 4px dashed var(--line); }
.theme-pixel .sec h2, .theme-pixel .closing h2 { font-size: 30px; }
.theme-pixel .big { font-family: var(--pixel); font-size: 34px; margin-top: 10px; }
.theme-pixel .btn { border: 3px solid var(--ink); box-shadow: 4px 4px 0 #000; font: 18px var(--body); }
.theme-pixel .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.theme-pixel .f input, .theme-pixel .f textarea, .theme-pixel .seg, .theme-pixel .acc { border-width: 3px; }
.intro-pixel { background: #0d0b22; color: #fff; }
.intro-pixel .logo { margin: 0; font: 26px/1.6 var(--pixel); color: var(--accent); text-shadow: 4px 4px 0 #ff4d6d; }
.intro-pixel .blink { margin: 10px 0 0; font: 13px var(--pixel); animation: blink 1s steps(1) infinite; }
.intro-pixel small { color: var(--muted); font: 15px var(--body); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
