:root {
  --emerald: #0B5D4A;
  --emerald-deep: #07402F;
  --pink: #D88FA4;
  --pink-soft: #F3D9E0;
  --yellow: #D6B04C;
  --gold: #B88A2A;
  --ivory: #F7F3EA;
  --blush: #F9F0F3;
  --ink: #24302C;
  --muted: #6A756F;
  --line: rgba(184, 138, 42, .35);

  --serif-en: "Cormorant Garamond", "Times New Roman", serif;
  --serif-zh: "Noto Serif TC", "Songti TC", serif;
  /* system Chinese sans (PingFang / Noto Sans CJK / JhengHei): looks native and costs no download */
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(36, 48, 44, .04), 0 12px 32px -12px rgba(11, 93, 74, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  letter-spacing: .02em;
  /* faint paper grain */
  background-image: radial-gradient(rgba(184, 138, 42, .06) 1px, transparent 1px);
  background-size: 4px 4px;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.6em;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem/1 var(--sans); letter-spacing: .08em;
  text-decoration: none; cursor: var(--hand);
  transition: transform .15s, background .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn small { font: italic 500 .95rem var(--serif-en); letter-spacing: .05em; opacity: .8; }
.btn-primary { background: var(--emerald); color: var(--ivory); box-shadow: 0 8px 20px -8px rgba(11, 93, 74, .6); }
.btn-primary:hover { background: var(--emerald-deep); }
.btn-ghost { background: transparent; color: var(--emerald); border-color: var(--line); }
.btn-ghost:hover { background: rgba(11, 93, 74, .05); }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: max(48px, env(safe-area-inset-top)) 24px 40px;
  max-width: 560px; margin: 0 auto;
}
.eyebrow, .sign {
  font: 600 .78rem var(--serif-en); text-transform: uppercase; letter-spacing: .32em;
  color: var(--gold); margin: 0;
}
.mark { width: 104px; margin: 18px auto 8px; }
.names { margin: 0; font-weight: normal; }
.names .zh {
  display: block; font: 700 clamp(2rem, 9vw, 2.75rem)/1.3 var(--serif-zh);
  color: var(--emerald); letter-spacing: .12em;
}
.names .zh i { font: italic 500 .8em var(--serif-en); color: var(--gold); padding: 0 .1em; }
.names .en {
  display: block; margin-top: 6px;
  font: 500 1rem var(--serif-en); text-transform: uppercase; letter-spacing: .4em; color: var(--muted);
}
.tagline { margin: 14px 0 28px; font: italic 500 1.45rem var(--serif-en); color: var(--pink); }

.arch {
  margin: 0; position: relative;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden; aspect-ratio: 3 / 4.2;
  background: #e9e7e3;
  box-shadow: var(--shadow);
}
.arch img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.02); }
/* thin gold inner frame */
.arch::after {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: inherit; pointer-events: none;
}
.hero-stage { position: relative; width: min(78%, 340px); margin: 0 auto; }
.hero-photo { position: relative; z-index: 1; width: 100%; outline: 1px solid var(--line); outline-offset: 8px; }

.date-row {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 36px 0 4px; font-family: var(--serif-en); color: var(--emerald);
}
.date-row span { font-size: .9rem; letter-spacing: .3em; color: var(--gold); }
.date-row b { font-size: 2.1rem; font-weight: 600; letter-spacing: .08em; padding: 0 18px; border-inline: 1px solid var(--line); }
.countdown { margin: 4px 0 26px; color: var(--muted); font-size: .9rem; }
.countdown b { color: var(--emerald); font: 600 1.2rem var(--serif-en); }

/* ---------- the road ---------- */
.road { position: relative; max-width: 560px; margin: 0 auto; padding: 0 20px 24px; }
.road::before {
  /* Yellow Brick Road: dotted golden path running through the page */
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 0;
  border-left: 3px dotted var(--yellow); opacity: .55; transform: translateX(-50%);
}
.stop { position: relative; padding: 56px 0 8px; text-align: center; }
.stop::before {
  /* road marker gem */
  content: ""; display: block; width: 14px; height: 14px; margin: 0 auto 18px;
  background: var(--emerald); border: 2px solid var(--yellow); transform: rotate(45deg);
  box-shadow: 0 0 0 6px var(--ivory);
}
.stop h2 { margin: 4px 0 10px; font: 700 1.6rem var(--serif-zh); color: var(--emerald); letter-spacing: .15em; }
.lede { margin: 0 auto 24px; max-width: 26em; color: var(--muted); font-size: .95rem; background: var(--ivory); }
.lede b { color: var(--emerald); }

.card {
  position: relative; text-align: left;
  background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow);
}

/* info */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.info-grid .full { grid-column: 1 / -1; padding-top: 18px; border-top: 1px dashed var(--line); }
.info-grid h3 { margin: 0 0 2px; font: 600 .75rem var(--sans); letter-spacing: .25em; color: var(--gold); }
.info-grid p { margin: 0; font-size: 1rem; }
.map-links { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.map-links .btn { min-height: 40px; padding: 0 1.1em; font-size: .9rem; }

/* gallery */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px;
  margin: 0 -20px; padding-inline: 20px; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery .arch { scroll-snap-align: center; }
/* swiped on a while: the photos grow to nearly full width (app.js animates the width) */
.gallery.big { grid-auto-columns: 86%; }
.gallery.growing { scroll-snap-type: none; }
/* which photo of how many, faded in only once the photos have grown */
.gallery-count { margin: -6px 0 0; height: 1.2em; text-align: center; font-size: .78rem; letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .4s; }
.gallery-count.on { opacity: 1; }

/* ---------- RSVP form ---------- */
.rsvp { padding-top: 20px; }
.progress { display: flex; justify-content: space-between; align-items: center; list-style: none; margin: 0 4px 22px; padding: 0; position: relative; }
.progress::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; border-top: 2px dotted var(--line); }
.progress li {
  position: relative; width: 12px; height: 12px; transform: rotate(45deg);
  background: #fffdf8; border: 2px solid var(--line); transition: all .25s;
}
.progress li.on { background: var(--yellow); border-color: var(--gold); }
.progress li.now { background: var(--emerald); border-color: var(--yellow); width: 16px; height: 16px; }

.step { border: 0; margin: 0; padding: 0; min-width: 0; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step legend { font: 700 1.2rem var(--serif-zh); color: var(--emerald); margin-bottom: 18px; padding: 0; letter-spacing: .08em; }

.field { display: block; margin-bottom: 18px; }
.einvite { margin: -6px 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--blush); border: 1px dashed var(--pink); color: var(--ink); font-size: .88rem; line-height: 1.6; text-align: center; }
.field > span { display: block; font-size: .85rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; letter-spacing: .1em; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; font-size: .8rem; }
.field small { display: block; margin-top: 6px; font-size: .78rem; color: var(--muted); }
.field .diet-note { margin: -2px 0 -8px; }
input:not([type=radio], [type=checkbox]), textarea {
  width: 100%; font: 400 16px/1.5 var(--sans); color: var(--ink);
  padding: 12px 14px; border: 1px solid rgba(36, 48, 44, .16); border-radius: 12px;
  background: #fff; transition: border-color .2s, box-shadow .2s; appearance: none;
}
input:focus, textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(11, 93, 74, .12); }
textarea { resize: vertical; }
::placeholder { color: #a8afab; }
.invalid input, .invalid .choice { border-color: #c0566b; }

.choice { display: grid; gap: 10px; }
.choice.two { grid-template-columns: 1fr 1fr; }
.choice.wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.pill > span, .chip > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 10px 12px; border-radius: 14px; cursor: var(--hand);
  border: 1px solid rgba(36, 48, 44, .16); background: #fff; transition: all .18s; font-weight: 500;
}
.pill small { font: italic 500 .9rem var(--serif-en); color: var(--muted); font-weight: 500; }
.pill.big > span { min-height: 76px; font-size: 1.05rem; }
.chip > span { min-height: 40px; padding: 6px 18px; border-radius: 999px; }
.choice input:checked + span { border-color: var(--emerald); background: rgba(11, 93, 74, .06); color: var(--emerald); box-shadow: inset 0 0 0 1px var(--emerald); }
.pill.pink input:checked + span { border-color: var(--pink); background: var(--blush); color: #9b4d63; box-shadow: inset 0 0 0 1px var(--pink); }
.pill.muted input:checked + span { border-color: var(--muted); background: #f1f1ee; color: var(--ink); box-shadow: inset 0 0 0 1px var(--muted); }
.choice input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }

.counters { border: 1px solid rgba(36, 48, 44, .1); border-radius: 14px; margin-bottom: 18px; background: #fff; }
.counter { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.counter + .counter { border-top: 1px solid rgba(36, 48, 44, .07); }
.counter > span { font-weight: 500; }
.counter small { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #fffdf8; color: var(--emerald); font-size: 1.1rem; cursor: var(--hand);
}
.stepper button:active { background: var(--emerald); color: var(--ivory); }
.stepper input { width: 40px; text-align: center; border: 0; padding: 0; font: 600 1.15rem var(--serif-en); background: transparent; }

.form-error { color: #b0475f; font-size: .88rem; margin: 0 0 12px; }
.nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; }
.nav .btn-primary { flex: 1; }

.done { text-align: center; padding: 36px 24px; animation: rise .4s ease; }
.done img { margin: 0 auto 12px; }
.done h3 { font: 700 1.3rem var(--serif-zh); color: var(--emerald); margin: 0 0 8px; }
.done p { color: var(--muted); margin: 0 0 20px; }

.lookup { margin: 22px auto 0; max-width: 420px; text-align: left; background: var(--ivory); }
.lookup summary { cursor: var(--hand); text-align: center; color: var(--emerald); font-size: .9rem; list-style: none; text-decoration: underline dotted var(--gold); text-underline-offset: 5px; }
.lookup summary::-webkit-details-marker { display: none; }
.lookup-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 10px; margin-top: 16px; align-items: end; }
.lookup-body .btn, .lookup-body .form-error { grid-column: 1 / -1; }
.lookup-body .form-error { margin: 10px 0 0; text-align: center; }

/* ---------- footer ---------- */
.footer {
  margin-top: 56px; padding: 56px 28px max(40px, env(safe-area-inset-bottom));
  background: var(--emerald); color: var(--ivory); text-align: center;
  border-radius: 40px 40px 0 0;
}
.footer img { margin: 0 auto 18px; filter: brightness(1.6); }
.footer .sprout img { margin: 0; filter: none; }
.footer blockquote { margin: 0 auto; max-width: 22em; font: italic 500 1.25rem/1.5 var(--serif-en); }
.footer cite { display: block; margin-top: 10px; font-size: .95rem; color: var(--yellow); font-style: normal; letter-spacing: .1em; }
.footer .small { margin: 28px 0 0; font: 500 .8rem var(--serif-en); letter-spacing: .3em; opacity: .6; text-transform: uppercase; }

/* ---------- larger screens ---------- */
@media (min-width: 900px) {
  /* text column centred on one axis, so the two paths meet right above the "&" */
  .hero { max-width: 1040px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: center; padding-top: 72px; }
  .hero > * { grid-column: 1; }
  .hero .hero-stage { grid-column: 2; grid-row: 1 / span 8; width: 100%; max-width: 380px; justify-self: center; }
  .hero .btn { justify-self: center; }
  .hero:not(:has(.hero-stage)) { display: block; max-width: 560px; }
  .road, .lookup { max-width: 640px; }
  /* wider than the text column, and always five whole photos: it snaps a photo edge to the left */
  .gallery {
    --gw: min(1200px, 100vw - 96px); width: var(--gw); margin-inline: calc(50% - var(--gw) / 2);
    padding-inline: 0; gap: 18px; grid-auto-columns: calc((100% - 4 * 18px) / 5);
  }
  .gallery .arch { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* keep headings legible over the road line; use lining figures (Cormorant defaults to old-style) */
.stop .sign, .stop h2 { display: table; margin-inline: auto; padding-inline: 14px; background: var(--ivory); }
body { font-variant-numeric: lining-nums; }

/* reads like print: nothing selectable except what guests type */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }

/* Chinese breaks anywhere; keep phrases whole and even out line lengths */
.nb { white-space: nowrap; }
h1, h2, h3, legend, .lede, .form-error, blockquote, .done p { text-wrap: balance; }
p, small { text-wrap: pretty; }

/* ---------- sparkles ---------- */
.hero { position: relative; overflow-x: clip; }
.footer { position: relative; overflow-x: clip; }
.twinkle {
  position: absolute; width: var(--s); height: var(--s); pointer-events: none; z-index: 0;
  opacity: .5; animation: twinkle 5s ease-in-out infinite;
}
.twinkle::before, .twinkle::after { content: ""; position: absolute; inset: 0; }
.twinkle::before {
  background: linear-gradient(135deg, #FFF3C8, var(--yellow) 60%, var(--gold));
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.twinkle::after { inset: -60%; background: radial-gradient(circle, rgba(246, 222, 150, .55), transparent 60%); }
.footer .twinkle::after { background: radial-gradient(circle, rgba(246, 222, 150, .35), transparent 60%); }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  45% { opacity: .95; transform: scale(1) rotate(45deg); }
  60% { opacity: .7; transform: scale(.85) rotate(60deg); }
}

/* gold foil on the ampersand and a slow sheen across primary buttons */
.names .zh i {
  background: linear-gradient(100deg, var(--gold) 35%, #F6DE96 50%, var(--gold) 65%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: foil 4s ease-in-out infinite;
}
/* one quick flash, a few seconds' rest, again; the glow also nudges WebKit to repaint the clipped text */
@keyframes foil {
  0%, 72% { background-position: 100% 0; filter: drop-shadow(0 0 0 rgba(246, 222, 150, 0)); }
  86% { filter: drop-shadow(0 0 6px rgba(246, 222, 150, .9)); }
  100% { background-position: 0 0; filter: drop-shadow(0 0 0 rgba(246, 222, 150, 0)); }
}
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 236, 180, .38) 50%, transparent 62%);
  transform: translateX(-110%); animation: sheen 6s ease-in-out 1.5s infinite;
}
@keyframes sheen { 0%, 72% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
.stop::before { animation: gem 4s ease-in-out infinite; }
@keyframes gem {
  0%, 100% { box-shadow: 0 0 0 6px var(--ivory), 0 0 0 6px rgba(214, 176, 76, 0); }
  50% { box-shadow: 0 0 0 6px var(--ivory), 0 0 16px 8px rgba(214, 176, 76, .45); }
}

/* particles: petals, leaves, stars, glints */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.bit { position: absolute; display: block; width: 9px; height: 9px; }
.bit.petal { width: 10px; height: 7px; background: var(--pink); border-radius: 80% 0 80% 0; opacity: .9; }
.bit.leaf { width: 10px; height: 6px; background: #7BAA6E; border-radius: 0 90% 0 90%; }
.bit.crumb { width: 5px; height: 4px; background: var(--emerald); border-radius: 1px 2px 1px 3px; }
.bit.star, .bit.glint {
  background: linear-gradient(135deg, #FFF3C8, var(--yellow) 55%, var(--gold));
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.bit.star { width: 13px; height: 13px; }
.bit.dust { width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, #FFF8DE 15%, var(--yellow) 45%, var(--gold) 80%); box-shadow: 0 0 6px rgba(214, 176, 76, .85); }
.bit.glint { width: 8px; height: 8px; filter: drop-shadow(0 0 3px rgba(246, 222, 150, .9)); }

/* ---------- Spell Sprouts ---------- */
/* .peek is clipped only on the side it hides behind, so hops and leans above that edge stay visible */
.peek {
  position: absolute; z-index: 1; width: var(--w); aspect-ratio: var(--ar); pointer-events: none;
  clip-path: inset(-300px -300px 0 -300px);
}
.peek[data-from=right] { clip-path: inset(-300px 0 -300px -300px); }
.peek[data-from=left] { clip-path: inset(-300px -300px -300px 0); }
.sprout {
  position: absolute; inset: 0; pointer-events: auto; -webkit-tap-highlight-color: transparent; touch-action: none;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
  transform: translateY(105%); transition: transform .75s cubic-bezier(.34, 1.56, .64, 1);
}
.sp-body { position: absolute; inset: 0; transform-origin: 50% 100%; filter: drop-shadow(0 2px 3px rgba(80, 60, 30, .12)); }
.sp-body img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.sp-eye { position: absolute; width: 4.2%; height: 4.2%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 18%, #3a2a20 24%); }
.peek.out .sprout { transform: translateY(calc((1 - var(--show)) * 100%)); }
.peek[data-from=right] .sprout { transform-origin: 100% 100%; transform: translateX(105%) rotate(-12deg); }
.peek.out[data-from=right] .sprout { transform: translateX(calc((1 - var(--show)) * 100%)) rotate(-12deg); }
.peek[data-from=left] .sprout { transform-origin: 0 100%; transform: translateX(-105%) rotate(12deg); }
.peek.out[data-from=left] .sprout { transform: translateX(calc((var(--show) - 1) * 100%)) rotate(12deg); }
.peek.awake { --show: .9; }
/* angry brows, only shown while held up by a finger */
.sp-brow { position: absolute; width: 10%; height: 2.2%; border-radius: 2px; background: #3a2a20; display: none; }
/* picked up: the sprout leaves its hiding spot and rides the finger */
.lift { position: fixed; left: 0; top: 0; z-index: 62; pointer-events: none; transform-origin: 50% 100%; will-change: transform; }
.lift .sprout { transform: none; transition: none; pointer-events: none; }
.lift.mad .sp-brow { display: block; }
.lift.mad .sp-body { filter: drop-shadow(0 0 5px rgba(226, 58, 46, .55)); }
.mad-mark { position: absolute; right: -14%; top: -4%; width: 42%; opacity: 0; transform: scale(0); }
.lift.mad .mad-mark { animation: mad-in .25s cubic-bezier(.34, 1.8, .64, 1) forwards, mad-throb .5s .25s ease-in-out infinite; }
@keyframes mad-in { to { opacity: 1; transform: scale(1); } }
@keyframes mad-throb { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 1; transform: scale(1.22) rotate(8deg); } }
.gallery { position: relative; }
/* room above the cards for the sprouts peeking over them */
.rsvp { margin-top: 40px; }
.done { margin-top: 84px; }

.sp-mouth { position: absolute; left: 50%; top: 61.7%; width: 24%; transform: translate(-50%, -40%); overflow: visible; pointer-events: none; }
.zzz { position: absolute; left: 80%; top: 30%; pointer-events: none; }
.zzz i {
  position: absolute; font: italic 600 13px var(--serif-en); color: var(--emerald); opacity: 0;
  animation: zzz 3.6s ease-out infinite;
}
.zzz i:nth-child(2) { animation-delay: 1.2s; font-size: 11px; }
.zzz i:nth-child(3) { animation-delay: 2.4s; font-size: 15px; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 4px); } 25% { opacity: .7; } 100% { opacity: 0; transform: translate(14px, -26px); } }
.peek.awake .zzz { display: none; }

.luck {
  position: fixed; z-index: 61; margin: 0; padding: 8px 14px; transform: translateX(-50%); white-space: nowrap;
  background: #fffdf8; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  font: 500 .85rem var(--serif-zh); color: var(--gold); text-align: center; animation: luck-in .4s ease;
}
@keyframes luck-in { from { opacity: 0; transform: translate(-50%, 8px); } }
/* the gold sprout after it hops down: walks along the bottom, sometimes dangles from a finger */
.walker { position: fixed; left: 0; top: 0; z-index: 41; width: var(--w); aspect-ratio: var(--ar); pointer-events: none; will-change: transform; }
.walker .sprout { transform: none; transition: none; }
.walker[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .twinkle { opacity: .6; transform: scale(.8); }
}

/* ---------- calendar, venue map, travel ---------- */
.info-grid .cal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.info-grid .cal small { color: var(--muted); font-size: .82rem; }
.venue { margin-top: 16px; }
.venue h3, .travel-h { margin: 0 0 2px; font: 600 .75rem var(--sans); letter-spacing: .25em; color: var(--gold); }
.venue-name { margin: 0; font: 500 1.1rem var(--serif-zh); color: var(--ink); }
.venue-name b { color: var(--emerald); }
.venue-addr { margin: 2px 0 6px; color: var(--muted); font-size: .9rem; }
.copy { display: inline-flex; align-items: center; gap: 5px; font: 500 .82rem var(--sans); color: var(--emerald); background: none; border: 1px dashed var(--line); border-radius: 999px; padding: 4px 12px; cursor: var(--hand); }
.copy.ok { border-style: solid; border-color: var(--emerald); }
.map { margin: 16px -8px 0; background: var(--ivory); border-radius: 14px; padding: 6px; }
.map svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.map .rail { stroke: #4b524f; stroke-width: 7; }
.map .rail-ties { stroke: #fff; stroke-width: 3; stroke-dasharray: 8 8; }
.map .station { fill: var(--emerald); stroke: #fff; stroke-width: 2; }
.map .st-t { fill: #fff; font: 700 13px var(--sans); text-anchor: middle; }
.map .st-s { fill: #fff; font: 500 10px var(--sans); text-anchor: middle; }
.map .road { fill: #d9d4c7; }
.map .road-t { fill: var(--ink); font: 500 10.5px var(--sans); text-anchor: middle; letter-spacing: .3em; }
.map .lbl { fill: var(--ink); font: 500 11px var(--sans); }
.map .lbl.end { text-anchor: end; fill: var(--muted); }
.map .lbl.mid { text-anchor: middle; }
.map .lbl.strong { font-weight: 700; fill: var(--emerald); font-size: 12px; }
.map .park { fill: #fffdf8; stroke: #b07a55; stroke-width: 2.5; }
.map .lot { fill: #e7e3da; }
.map .p { fill: var(--emerald); }
.map .p-t { fill: #fff; font: 700 12px var(--sans); text-anchor: middle; }
.map .lot-t { fill: var(--muted); font: 500 11px var(--sans); text-anchor: middle; }
.map .lawn { fill: #cfe0c3; }
.map .lawn-t { fill: #47704a; font: 700 12px var(--sans); text-anchor: middle; letter-spacing: .1em; }
.map .chimney { fill: #9aa09d; }
.map .hall { fill: var(--pink-soft); stroke: var(--pink); stroke-width: 3; stroke-linejoin: round; }
.map .hall-t { fill: #9b4d63; font: 700 13px var(--sans); text-anchor: middle; }
.map .hall-s { fill: #9b4d63; font: 500 10px var(--sans); text-anchor: middle; }
.map .hall-o { fill: #ece6da; stroke: #c9c1b0; stroke-width: 1.5; }
.map .walk { fill: none; stroke: var(--pink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 8; }
.map .walk.in { stroke-width: 3.5; }
.map .exit { fill: var(--yellow); }
.map .exit-t { fill: #fff; font: 700 12px var(--sans); text-anchor: middle; }
.map .pill { fill: #fff; stroke: var(--pink); stroke-width: 1.5; }
.map .pill-t { fill: #9b4d63; font: 700 13px var(--sans); text-anchor: middle; }
.map .pill-s { fill: var(--muted); font: 500 10px var(--sans); text-anchor: middle; }
.map .gate { fill: #b5413c; }
.map .gate-t { fill: #fff; font: 700 11px var(--sans); text-anchor: middle; }
.map .no { fill: #b5413c; font: 700 11px var(--sans); text-anchor: middle; }
.map .north { fill: var(--ink); }
.venue .map-links .btn { flex: 1 1 140px; min-height: 48px; padding: 0 1em; font-size: .95rem; white-space: nowrap; letter-spacing: .04em; }
.map-note { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.venue .travel-h { margin-top: 26px; }

/* accordions: travel steps and FAQ */
.travel details, .faq details { border-bottom: 1px dashed var(--line); }
.travel summary, .faq summary {
  list-style: none; cursor: var(--hand); position: relative; padding: 14px 32px 14px 0;
  font-weight: 500; color: var(--ink); -webkit-tap-highlight-color: transparent;
}
.travel summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.travel summary::after, .faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%);
  background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 5.5v13M5.5 12h13'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 5.5v13M5.5 12h13'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s;
}
details[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.travel details > div, .faq details > div { padding: 0 0 14px; color: var(--muted); font-size: .95rem; }
.travel details > div p, .faq details > div p { margin: 0 0 6px; }
.faq { padding-top: 8px; padding-bottom: 8px; }
.faq details:last-child { border-bottom: 0; }

/* post-wedding link */
.thanks-banner { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 24px; text-align: center; text-decoration: none; border-color: var(--pink); background: var(--blush); }
.thanks-banner b { font: 700 1.1rem var(--serif-zh); color: var(--emerald); }
.thanks-banner span { color: #9b4d63; font-size: .9rem; }

/* ---------- install the app ---------- */
.install { margin: 22px auto 0; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, var(--blush), #eef5ef); border: 1px solid var(--pink); text-align: center; }
.install h4 { margin: 0 0 4px; font: 700 1.1rem var(--serif-zh); color: var(--emerald); }
.install p { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.install .btn { width: 100%; }
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(20, 30, 26, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.sheet { width: 100%; max-width: 480px; background: #fffdf8; border-radius: 22px 22px 0 0; padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); text-align: center; animation: up .3s ease; position: relative; }
.sheet img.icon { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 10px; box-shadow: var(--shadow); }
.sheet h4 { margin: 0 0 6px; font: 700 1.25rem var(--serif-zh); color: var(--emerald); }
.sheet > p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.sheet .btn { width: 100%; margin-top: 8px; }
.sheet .close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); cursor: var(--hand); }
.sheet .close .i { width: 24px; height: 24px; }
.steps { list-style: none; margin: 0 0 8px; padding: 0; text-align: left; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 1rem; counter-increment: s; }
.steps li::before { content: counter(s); flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--emerald); color: #fff; font: 700 .9rem/28px var(--sans); text-align: center; }
.steps .ic { display: inline-flex; vertical-align: middle; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #1a73e8; margin: 0 2px; }
.steps .ic .i { width: 18px; height: 18px; }
.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--emerald); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: up .3s ease; }
.install-bar img { width: 36px; height: 36px; border-radius: 9px; }
.install-bar span { flex: 1; font-size: .9rem; line-height: 1.35; }
.install-bar .btn { min-height: 38px; padding: 0 1em; font-size: .88rem; background: var(--ivory); color: var(--emerald); }
.install-bar .x { background: none; border: 0; color: #fff; opacity: .7; width: 32px; height: 32px; cursor: var(--hand); }
.install-bar .x .i { width: 20px; height: 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* ---------- thank-you page ---------- */
.thanks-page .hero { padding-bottom: 8px; }
.preview-note { margin: 12px auto 0; padding: 6px 14px; border-radius: 999px; background: var(--pink-soft); color: #9b4d63; font-size: .85rem; display: inline-block; }
.t-msg { text-align: center; font: 500 1.05rem/2 var(--serif-zh); color: var(--ink); }
.t-msg p { margin: 0; }
.t-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.t-grid button { padding: 0; border: 0; background: none; cursor: zoom-in; }
.t-grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
@media (min-width: 900px) { .t-grid { grid-template-columns: repeat(3, 1fr); } }
.back { text-align: center; margin: 40px 0 0; }
.viewer { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.viewer::backdrop { background: rgba(10, 16, 14, .85); }
.viewer img { max-width: 96vw; max-height: 80vh; border-radius: 8px; margin: 0 auto; }
.viewer div { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.viewer .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.thanks-page .names .en { letter-spacing: .2em; font-size: .85rem; }
.back .btn { background: var(--ivory); }

/* ---------- mono icons (sprite: /icons.svg) ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.stepper button { display: inline-flex; align-items: center; justify-content: center; }
.stepper button .i { width: 18px; height: 18px; }
.thanks-banner .i { width: 1em; height: 1em; }
.map .mi { fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.map .mi.heart { stroke: #9b4d63; fill: var(--pink); }
.map .mi.no-x { stroke: #b5413c; stroke-width: 3; }

/* ---------- quick nav ---------- */
.stop { scroll-margin-top: 64px; }
.venue { scroll-margin-top: 72px; }
.quick {
  position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; z-index: 45;
  display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255, 253, 248, .94); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(20, 40, 30, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translate(-50%, -140%); opacity: 0; transition: transform .3s, opacity .3s;
}
.quick.show { transform: translate(-50%, 0); opacity: 1; }
.quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 54px; aspect-ratio: 1; padding: 0; border-radius: 50%; color: var(--muted); text-decoration: none; font-size: .72rem; letter-spacing: .05em; }
.quick a .i { width: 20px; height: 20px; }
.quick a.on { color: var(--ivory); background: var(--emerald); }
/* desktop: a column tucked into the bottom-right corner, out of the reading line */
@media (min-width: 900px) {
  .quick { top: auto; left: auto; right: 20px; bottom: 20px; flex-direction: column; transform: translateX(140%); }
  .quick.show { transform: none; }
}

/* ---------- parents ---------- */
.parents { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px 6px; margin: 28px auto 0; padding: 22px 12px 18px; border-radius: 22px; background: var(--card, #fffdf8); border: 1px solid var(--line); box-shadow: var(--shadow); }
.parents .side p { margin: 0; }
.parents .role { font: 600 .72rem var(--sans); letter-spacing: .3em; padding-left: .3em; }
.parents .groom .role { color: #b0607a; }
.parents .bride .role { color: var(--emerald); }
.parents .pn { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 !important; font: 500 1.15rem/1.5 var(--serif-zh); color: var(--ink); letter-spacing: .12em; }
.parents .child { font-size: .85rem; color: var(--muted); letter-spacing: .1em; }
.parents .child b { font: 700 1rem var(--serif-zh); letter-spacing: .15em; }
.parents .groom .child b { color: #b0607a; }
.parents .bride .child b { color: var(--emerald); }
.parents .knot { width: 44px; height: auto; opacity: .9; }
.parents .invite { grid-column: 1 / -1; margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font: 500 .95rem var(--serif-zh); color: var(--emerald); letter-spacing: .1em; }
/* gallery sprout running to the next photo: shown whole, unclipped */
.peek.dash { clip-path: none; }
.peek.dash .sprout { transform: none; transition: transform .2s; }
/* returning guest: what they replied */
.summary {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; max-width: 300px; margin: -6px auto 22px;
  padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .55); text-align: left; font-size: .95rem;
}
.summary:empty { display: none; }
.summary dt { color: var(--gold); font: 600 .78rem/1.9 var(--sans); letter-spacing: .15em; }
.summary dd { margin: 0; color: var(--ink); }

/* ---------- messages with the couple ---------- */
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.done-actions .btn { position: relative; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #d9443a; color: #fff; font: 700 .72rem/20px var(--sans); }
.notify .btn[disabled] { opacity: .6; }
.chat-sheet { text-align: left; display: flex; flex-direction: column; max-height: min(82vh, 720px); }
.chat-sheet h4 { text-align: center; }
.chat-sheet .lead { margin: 0 0 12px; text-align: center; color: var(--muted); font-size: .9rem; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 12px; min-height: 120px; overscroll-behavior: contain; }
.chat-log:empty::before { content: "有什麼想對新人說的，都可以寫在這裡"; margin: auto; color: var(--muted); font-size: .9rem; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.bubble time { display: block; margin-top: 4px; font-size: .7rem; opacity: .6; }
.bubble.them { align-self: flex-start; background: linear-gradient(135deg, var(--blush), #eef5ef); border: 1px solid var(--pink); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--emerald); color: var(--ivory); border-bottom-right-radius: 6px; }
.bubble.new { box-shadow: 0 0 0 2px var(--gold); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding-top: 10px; border-top: 1px dashed var(--line); }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; font: inherit; background: #fff; }
.chat-form .btn { width: auto; margin: 0; flex: none; }
.chat-err { margin: 6px 0 0; color: #b3261e; font-size: .85rem; }
/* FAQ heading: a sprout has climbed onto the last character and gnaws at its top edge */
.chew { position: relative; display: inline-block; }
.bitten {
  position: relative; z-index: 2; pointer-events: none;
  -webkit-mask: radial-gradient(circle at 46% 17%, transparent .15em, #000 .16em), radial-gradient(circle at 31% 17%, transparent .07em, #000 .08em);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle at 46% 17%, transparent .15em, #000 .16em) intersect, radial-gradient(circle at 31% 17%, transparent .07em, #000 .08em);
}
/* tucked behind the character with its cut-off edge hidden under the top stroke; only the paws come over the top */
.peek.gnaw { z-index: 1; left: calc(100% - .66em - 21px); top: calc(.36em + 2px - 42px * 351 / 264); }
.gnaw-paws { position: absolute; z-index: 3; left: calc(100% - .66em - 14px); top: calc(.36em - 2px); width: 28px; overflow: visible; pointer-events: none; fill: #f6d0d2; stroke: #c98e93; stroke-width: 1.3; transition: opacity .25s; }
/* picked off, or sulking out of sight: nothing left holding on */
.peek.gnaw.lifted + .gnaw-paws, .peek.gnaw:not(.out) + .gnaw-paws { opacity: 0; transition-duration: 0s; }
body.admin { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* a silver wand with a crystal bubble (desktop only), sparklier over anything clickable; near a sprout it turns into a green witch's claw */
:root {
  --hand: url(/img/cursor-wand-hi.svg) 10 10, pointer;
  --claw: url(/img/cursor-claw.svg) 16 16, grab;
}
html { cursor: url(/img/cursor-wand.svg) 10 10, auto; }
a, button, summary, label, select { cursor: var(--hand); }
.sprout, html.near, html.near * { cursor: var(--claw) !important; }
html.clutch, html.clutch * { cursor: url(/img/cursor-claw-shut.svg) 16 16, grabbing !important; }
input:not([type=checkbox], [type=radio]), textarea { cursor: auto; }

/* ---------- thank-you page: guests share photos ---------- */
.t-up { text-align: center; }
.t-up p { margin: 0 0 14px; }
.t-up .btn { cursor: pointer; }
.t-status { min-height: 1.5em; margin-top: 12px !important; color: var(--muted); font-size: .9rem; }
.t-up h3 { margin: 24px 0 12px; font: 600 1rem var(--serif-zh); }
.t-mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.t-mine figure { margin: 0; }
.t-mine img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.t-mine figcaption { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; margin-top: 4px; }
.t-mine .st.pending { color: var(--gold); }
.t-mine .st.approved { color: var(--emerald); }
.t-mine .st.rejected { color: var(--muted); }
.t-mine button { border: 0; background: none; color: #9b4d63; font: inherit; cursor: pointer; padding: 2px; }

/* ---------- wedding-day page: the seat card is a forest-sprite trading card that flips both ways ---------- */
/* sizes are in cqw (1% of the card's width) so the whole card scales as one piece; bigger on a computer for older eyes */
.d-card-wrap { display: grid; place-items: center; margin: 8px 0 14px; perspective: 1400px; }
.d-back { margin-top: 20px; }
.tcard {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --tint: #F3D9E0; --rim: var(--pink);
  position: relative; width: min(320px, 84vw); aspect-ratio: 63 / 88; padding: 0; border: 0; background: none;
  container-type: inline-size; font: inherit; color: var(--ink); font-variant-numeric: lining-nums; -webkit-tap-highlight-color: transparent;
}
.tc-inner {
  position: absolute; inset: 0; transform-style: preserve-3d; border-radius: 5cqw;
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + 180deg)); transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.tcard.open .tc-inner { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.tc-back, .tc-front {
  position: absolute; inset: 0; border-radius: 5cqw; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 18px 40px -16px rgba(7, 64, 47, .55);
}
.tc-back { transform: rotateY(180deg); background: var(--emerald); }
.tc-back-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.tc-medal {
  position: absolute; left: 20%; right: 20%; top: 21%; bottom: 25%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; color: var(--emerald);
}
.tc-brand { font: italic 600 6.4cqw var(--serif-en); color: var(--gold); letter-spacing: .04em; }
.tc-pair { display: flex; align-items: flex-end; justify-content: center; gap: 1cqw; }
.tc-pair .tc-sprite { height: 22cqw; }
.tc-heart { font-style: normal; font-size: 6cqw; color: var(--pink); padding-bottom: 6cqw; }
.tc-couple { font: 700 6.6cqw var(--serif-zh); letter-spacing: .12em; }
.tc-date { font: 600 4.4cqw "Noto Serif TC", var(--serif-en); letter-spacing: .2em; color: var(--gold); }
.tc-tap { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; color: #F6DE96; font: 500 4cqw var(--serif-zh); letter-spacing: .2em; animation: tc-pulse 2.4s ease-in-out infinite; }
@keyframes tc-pulse { 50% { opacity: .45; } }
.tc-front {
  display: grid; grid-template-rows: auto 1fr auto auto auto auto; gap: 1.8cqw; padding: 3cqw 3.6cqw 2.4cqw; text-align: left;
  border: 2.6cqw solid var(--rim); background: linear-gradient(170deg, #fffdf8 30%, var(--tint));
}
.k-pink-shy { --tint: var(--blush); --rim: #e3a9b9; }
.k-green { --tint: #DCEBDF; --rim: #4f9a78; }
.k-courier { --tint: #F1E6CF; --rim: #c6a46a; }
.k-gold-joy { --tint: #F6E7B6; --rim: var(--gold); }
.tc-top { display: flex; justify-content: space-between; align-items: center; color: var(--emerald); }
.tc-kind { font: 700 5.6cqw var(--serif-zh); letter-spacing: .08em; }
.tc-no { font: 500 3.8cqw "Noto Serif TC", var(--serif-en); letter-spacing: .06em; color: var(--muted); }
.tc-art {
  position: relative; min-height: 0; display: grid; place-items: end center; overflow: hidden;
  border: 1cqw solid #E8C66A; border-radius: 2cqw; box-shadow: inset 0 0 0 .4cqw rgba(255, 255, 255, .6);
}
.tc-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.tc-art > .tc-sprite { height: 66%; max-height: 180px; margin-bottom: 3%; filter: drop-shadow(0 1.2cqw .8cqw rgba(0, 0, 0, .18)); }
.tc-sprite { position: relative; }
.tc-sprite img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tc-place {
  position: absolute; left: 2cqw; bottom: 2cqw; padding: .6cqw 2.4cqw; border-radius: 99px;
  background: rgba(255, 253, 248, .85); color: var(--emerald); font: 600 3.2cqw var(--serif-zh); letter-spacing: .08em;
}
.tc-seat { display: flex; align-items: baseline; justify-content: center; gap: 2cqw; color: var(--emerald); line-height: 1; padding-top: 1cqw; }
.tc-seat small { font: 600 4cqw var(--serif-en); letter-spacing: .25em; }
.tc-seat b { font: 700 11cqw "Noto Serif TC", var(--serif-en); } /* Noto's even figures: Cormorant only has old-style ones */
.tc-seat span { font: 700 5.4cqw var(--serif-zh); }
.tc-seat .tc-wait { font: 600 4.8cqw var(--serif-zh); padding: 3cqw 0; }
.tc-name { margin: 0; text-align: center; font: 700 6cqw var(--sans); }
.tc-name small { margin-left: 2.4cqw; font: 400 3.8cqw var(--sans); color: var(--muted); }
.tc-skill { margin: 0; padding: 1.8cqw 2.6cqw; border-radius: 2cqw; background: rgba(255, 255, 255, .7); font: 400 3.8cqw/1.5 var(--sans); }
.tc-skill b { margin-right: 2cqw; color: #9b4d63; }
.tc-foot { text-align: center; font: 400 3.2cqw var(--sans); letter-spacing: .06em; color: var(--muted); }
.tc-holo {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .55;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .9), transparent 45%),
    linear-gradient(115deg, transparent 30%, rgba(255, 240, 200, .6) calc(var(--mx) - 10%), transparent calc(var(--mx) + 20%));
}
.tcard.gold .tc-holo {
  mix-blend-mode: color-dodge; opacity: .4;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .8), transparent 40%),
    linear-gradient(125deg, #ff9fbf, #ffe58a calc(var(--mx) - 20%), #9fffd2, #9fd0ff calc(var(--mx) + 30%), #e0a8ff);
}
@media (min-width: 900px) { .tcard { width: min(460px, calc(86vh * 63 / 88)); } }
.d-flow { list-style: none; margin: 0; padding: 18px 22px; }
.d-flow li { display: flex; gap: 18px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.d-flow li:last-child { border-bottom: 0; }
.d-flow time { font: 700 1.05rem var(--serif-en); color: var(--emerald); min-width: 3.2em; }
.d-place { text-align: center; }
.d-place p { margin: 0 0 6px; }
.d-maps { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px !important; }
@media (prefers-reduced-motion: reduce) { .tc-inner { transition: none; } .tc-tap { animation: none; } }
