:root {
  color-scheme: dark;
  --paper: #fff;
  --accent-ink: #fff;
  --soft: #d8a6a9;
  --line: rgba(255,220,225,.24);
  --content: #4d0e12;
  --tab-height: 64px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  color: var(--paper);
  background: #270c0e;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p, dl, dd, ol, ul, fieldset { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.phone-shell {
  isolation: isolate;
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: radial-gradient(ellipse at 89% 4%, #99252c, transparent 48%), linear-gradient(163deg, #6e1318 0%, #4e0f13 56%, #350b0d 100%);
  padding-bottom: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px));
}
#app { position: relative; }

/* Layout follows the client's 750 × 1400 mobile artwork. */
.phone-shell { container-type: inline-size; --tab-height: clamp(54px,15.9vw,72px); }
.phone-shell.is-home { background: #cb0200; }
.home-page {
  display: flex; flex-direction: column;
  min-height: calc(100svh - var(--tab-height) - env(safe-area-inset-bottom,0px));
}
.event-hero { padding-top: env(safe-area-inset-top,0px); }
.hero-art { width: 100%; height: auto; }
.services {
  position: relative; flex: 1; display: flex; flex-direction: column;
  margin-top: -4.25cqw; padding: 0 8.7% min(6.4cqw,36px) 8.25%;
}
.grid {
  flex: 1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  align-content: space-evenly; column-gap: 2.25%; row-gap: 1.8cqw;
}
.tile {
  display: flex; flex-direction: column; position: relative; justify-content: center; align-items: center;
  gap: max(3px,.9cqw); aspect-ratio: 396/289; min-height: 44px; text-align: center;
  color: #fff; background: url("assets/button-surface.webp") center / 100% 100% no-repeat;
  border-radius: 6%; -webkit-tap-highlight-color: transparent;
}
.tile[data-rsvp-press] { transition: transform .12s, filter .12s; }
.tile[data-rsvp-press]:active, .tile.is-pressed { transform: scale(.965); filter: brightness(.83); }
.menu-icon { width: 7.47cqw; height: 7.47cqw; min-width: 22px; min-height: 22px;
  background: url("assets/menu-icons.png") var(--icon-x) var(--icon-y) / 300% 400% no-repeat; }
.tile-name { font-size: clamp(.8rem,3.12cqw,1rem); font-weight: 600; line-height: 1.18; white-space: nowrap; }
.saved-dot { width: 5px; height: 5px; border-radius: 50%; background: white; position: absolute; top: 12%; right: 10%; }
.tabbar { position: fixed; z-index: 4; bottom: 0; left: 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: min(100%,480px);
  background: #b30300; border-radius: 6px 6px 0 0; padding: 0 7.4% env(safe-area-inset-bottom,0px); }
.tabbar { padding-inline: min(7.4vw,35.5px); }
.tabbar a { height: var(--tab-height); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #fff2f1; font-size: .82rem; }
.tabbar .tab-selected { color: #fff; font-weight: 700; }
.nav-icon { display: block; width: clamp(23px,6.85vw,32px); aspect-ratio: 1;
  background: currentColor; mask: url("assets/tab-icons.png") left center / 300% 100% no-repeat;
  -webkit-mask: url("assets/tab-icons.png") left center / 300% 100% no-repeat; }
.tabbar [href="#agenda"] .nav-icon { mask-position: center; -webkit-mask-position:center; }
.tabbar [href="#me"] .nav-icon { mask-position: right; -webkit-mask-position:right; }
.page-header {
  position: relative;
  display: grid; grid-template-columns: 42px 1fr 42px; align-items: center;
  padding: max(15px, env(safe-area-inset-top)) 16px 14px; gap: 7px;
  background: linear-gradient(100deg,#641318eb,#852026bd), url("assets/header-red.webp") 50% 42% / cover;
  border-bottom: 1px solid #ed9ea334;
}
.page-header img { justify-self: center; object-fit: contain; }
.page-header-text { text-align: center; }
.page-header-text span { display: block; color: #f1b3b7; font-size: .75rem; font-weight: 550; letter-spacing: .065em; }
.page-header h1 { margin-top: 3px; font-size: 1.19rem; line-height: 1.25; letter-spacing: .07em; }
.back { height: 41px; width: 41px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: #ffcccf; background: #ffe9ea10; }
.back .icon { width: 20px; height: 20px; }
.page-body { padding: 15px 16px 25px; }
.page-lead {
  display: flex; align-items: center; gap: 13px; padding: 15px 14px; border-radius: 17px; margin-bottom: 12px;
  background: radial-gradient(ellipse at 80% 0%, #ca4f5651, transparent 90%),linear-gradient(132deg,#9f2c33,#73191e);
  border: 1px solid #fbbfc249;
}
.page-lead h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: .025em; }
.page-lead p { color: #f4c9cb; font-size: .82rem; line-height: 1.55; margin-top: 4px; }
.lead-symbol { flex: 0 0 42px; height: 42px; display: grid; place-items: center; color: var(--accent-ink); background: #ffc5c823; border-radius: 13px; }
.lead-symbol .icon { width: 23px; height: 23px; }
.card {
  padding: 14px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px;
  background: linear-gradient(145deg,#a33a4052,#7a2f3332); box-shadow: inset 0 1px #ffd7d90c;
}
.card h2 { color: #fff; font-size: .96rem; line-height: 1.5; margin-bottom: 9px; }
.button {
  min-height: 43px; border-radius: 11px; padding: 6px 10px; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px; text-align: center; line-height: 1.25;
  font-size: .88rem; font-weight: 650; border: 1px solid transparent; cursor: pointer;
}
.button .icon { width: 17px; height: 17px; }
.primary { background: linear-gradient(125deg,#d92238,#b01228); color: #fff; border-color: #ff879350; box-shadow: 0 4px 14px #32060d33; }
.secondary { background: #9d182d; color: #fff; border-color: #ff9ba34f; }
.wide { width: 100%; }
.inline-actions { display: flex; gap: 8px; }
.inline-actions > * { flex: 1 1 0; }
.field { display: block; color: #f7d9db; font-size: .86rem; font-weight: 600; margin: 9px 0 0; }
.field strong { color: #ffb3b7; font-weight: 600; }
.field input { display: block; width: 100%; height: 39px; margin-top: 4px; color: #fff4f5; background: #3c0d106b; outline-offset: 1px; border: 1px solid #ffced132; border-radius: 9px; padding: 0 11px; font-size: 1rem; font-weight: 400; }
.field input::placeholder { color: #ce9fa2; font-size: .89rem; }
.field input[aria-invalid] { border-color: #ffc7ca; }
fieldset { padding: 0; border: 0; min-width: 0; }
.form-card fieldset { margin-top: 11px; }
.form-card h2 + fieldset { margin-top: 0; }
legend { display: block; color: #f7d9db; margin-bottom: 6px; padding: 0; font-size: .86rem; font-weight: 600; }
.choices { display: flex; gap: 8px; }
.choice { flex: 1; position: relative; cursor: pointer; display: grid; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.choice span { display: grid; place-items: center; min-height: 35px; color: #eec6c8; padding: 3px 5px; text-align: center; font-size: .86rem; border-radius: 8px; background: #520f1361; border: 1px solid #ffbfc334; }
.choice input:checked + span { color: #fff; background: #a91a30; border-color: #ffb0b9; }
.hotel { font-size: .87rem; color: #f6d9db; margin-top: 12px; }
.hotel summary { cursor: pointer; color: var(--accent-ink); }
.hotel ul { padding: 8px 0 0; list-style: none; }
.hotel li { padding: 7px 0; }
.hotel li b, .hotel li span { display: block; }
.hotel li span { margin: 4px 0; color: #e1adb0; }
.text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink); }
.text-link .icon { width: 15px; height: 15px; }
.form-error { margin: 0 0 10px; color: #ffe7e8; background: #b5444b; border-radius: 9px; padding: 8px 11px; font-size: .87rem; }
.form-footer p, .caption { color: var(--soft); text-align: center; line-height: 1.5; font-size: .78rem; margin-top: 8px; }
.receipt-card .details-list > div { display: grid; grid-template-columns: 88px 1fr; align-items: start; gap: 7px; padding: 10px 0; border-bottom: 1px solid #ffbfc32a; font-size: .9rem; }
.receipt-card .details-list > div:last-child { border: 0; }
.details-list dt { color: #e1b3b6; }
.details-list dd { overflow-wrap: anywhere; color: #ffeced; }
.details-list .receipt-number { color: var(--accent-ink); }
.receipt-card ~ .button + .button { margin-top: 8px; }
.segments { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 12px 0; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #340c0e67; }
.segments button { min-height: 36px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #e6bbbd; font-size: .88rem; font-weight: 650; }
.segments button[aria-pressed="true"] { color: #fff; background: #a8152c; border-color: #ff97a660; }
.agenda-summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px; border-bottom: 1px solid #ffd0d327; padding-bottom: 10px; color: #ffd3d6; }
.agenda-summary small { display: flex; align-items: center; gap: 4px; color: #e9b6b9; font-size: .78rem; }
.agenda-summary .icon { width: 14px; height: 14px; }
.timeline { list-style: none; padding: 0; }
.timeline li { display: grid; grid-template-columns: 57px 1fr; gap: 5px; min-height: 55px; }
.event-time { padding: 11px 0 0 0; line-height: 1.03; }
.event-time b { display: block; color: #ffced1; font-size: .99rem; font-variant-numeric: tabular-nums; }
.event-time small { color: #d3a4a7; font-size: .72rem; }
.timeline-item { border-left: 1px solid #e19ca04d; padding: 9px 0 6px 15px; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -3px; top: 17px; width: 5px; height: 5px; border-radius: 50%; background: #f5b3b7; box-shadow: 0 0 0 3px #f5b3b721; }
.timeline-item details { font-size: .91rem; }
.timeline-item summary { min-height: 36px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; }
.timeline-item summary::after { content: "+"; color: #ffb8bc; flex: 0 0 auto; font-size: .98rem; }
.timeline-item details[open] summary::after { content: "−"; }
.timeline-item summary::-webkit-details-marker { display: none; }
.timeline-item p { margin: 0 0 5px; color: #ecc1c3; font-size: .83rem; line-height: 1.55; }
.timeline-item small { color: #e5a2a6; }
.top-action { margin-bottom: 12px; }
.contact-card h2 { margin-bottom: 6px; }
.contact-person { display: grid; grid-template-columns: 36px minmax(0,1fr) 42px; align-items: center; gap: 9px; padding: 6px 0 1px; }
.contact-person + .contact-person { margin-top: 9px; padding-top: 12px; border-top: 1px solid #f0b5b827; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f0a2a72b; color: #ffced1; font-size: .94rem; }
.contact-copy strong { display: block; font-size: .92rem; }
.contact-copy small { display: block; font-size: .76rem; line-height: 1.45; color: #edbdc0; padding: 2px 0; }
.contact-copy span { font-variant-numeric: tabular-nums; color: #ffbabe; font-size: .80rem; }
.dial { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: var(--accent-ink); background: #f4a6ab19; border: 1px solid #f4a6ab52; }
.dial .icon { width: 18px; height: 18px; }
.office-card p, .venue-card p { color: #f3ced0; font-size: .9rem; line-height: 1.6; margin-bottom: 10px; }
.floor-plan { position: relative; isolation: isolate; display: grid; grid-template-columns: .95fr 1.1fr; grid-template-rows: 57px 28px 57px; gap: 5px 9px; padding: 10px; border: 1px solid #f0afb33d; border-radius: 12px; background: linear-gradient(#c4787c11 1px,transparent 1px),linear-gradient(90deg,#c4787c11 1px,transparent 1px),#360f11; background-size: 12px 12px; }
.floor-stop { border: 1px solid #d2999c65; border-radius: 8px; background: #602d30; color: #f6d2d4; display: grid; place-content: center; text-align: center; gap: 1px; }
.floor-stop[aria-pressed="true"] { color: #fff; background: #a91a30; border-color: #ff9faa; }
.floor-stop small { font-size: .67rem; opacity: .85; }
.floor-stop b { font-size: .83rem; }
.stop-parking { grid-area: 3 / 1; }
.stop-checkin { grid-area: 1 / 1; }
.stop-hall { grid-area: 1 / 2; }
.stop-banquet { grid-area: 3 / 2; }
.floor-caption { grid-area: 2 / 1 / 2 / 3; justify-self: center; align-self: center; background: #360f11; padding: 0 7px; font-size: .72rem; color: #e3b8ba; }
.floor-path { grid-area: 2 / 1 / 2 / 3; height: 1px; align-self: center; z-index: -1; margin: 0 8px; border-top: 1px dashed #efacb0aa; }
.stop-description { margin-top: 8px; display: flex; align-items: flex-start; gap: 8px; padding: 8px; border-radius: 10px; background: #ffa8ad18; }
.stop-description .icon { width: 18px; height: 18px; color: var(--accent-ink); }
.stop-description b { display: block; color: #ffced1; font-size: .86rem; margin-bottom: 2px; }
.stop-description p span { color: #f4cdcf; line-height: 1.5; font-size: .82rem; }
.steps-card ol { padding-left: 21px; font-size: .84rem; line-height: 1.6; color: #ebc3c5; }
.steps-card li + li { margin-top: 5px; }
.steps-card li::marker { color: var(--accent-ink); }
.pending { text-align: center; padding: 42px 16px 30px; margin-top: 16px; }
.pending-icon { display: grid; place-items: center; width: 57px; height: 57px; margin: 0 auto 14px; border-radius: 17px; color: #fbd2d4; background: #f6aeb22c; }
.pending-icon .icon { width: 28px; height: 28px; }
.pending h2 { font-size: 1.27rem; }
.pending p { color: #e7babd; font-size: .91rem; margin-bottom: 18px; }
.pending .button { padding-inline: 24px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px) + 12px); transform: translate(-50%,8px); z-index: 6; pointer-events: none; color: #ffe4e6; background: #431619; border: 1px solid #d8989c91; padding: 9px 15px; border-radius: 10px; opacity: 0; transition: opacity .15s, transform .15s; text-align: center; font-size: .88rem; max-width: calc(100vw - 30px); }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
.clipboard-field { position: fixed; top: -100px; left: 0; }

@media (max-width: 350px) {
  .page-body { padding-left: 11px; padding-right: 11px; }

}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.tile[href="#ai"] { --icon-x: 0%; --icon-y: 0%; }
.tile[href="#rsvp"] { --icon-x: 50%; --icon-y: 0%; }
.tile[href="#agenda"] { --icon-x: 100%; --icon-y: 0%; }
.tile[href="#checkin"] { --icon-x: 0%; --icon-y: 33.33333%; }
.tile[href="#gift"] { --icon-x: 50%; --icon-y: 33.33333%; }
.tile[href="#seat"] { --icon-x: 100%; --icon-y: 33.33333%; }
.tile[href="#interact"] { --icon-x: 0%; --icon-y: 66.66667%; }
.tile[href="#lucky"] { --icon-x: 50%; --icon-y: 66.66667%; }
.tile[href="#photos"] { --icon-x: 100%; --icon-y: 66.66667%; }
.tile[href="#parking"] { --icon-x: 0%; --icon-y: 100%; }
.tile[href="#contact"] { --icon-x: 50%; --icon-y: 100%; }
.tile[href="#map"] { --icon-x: 100%; --icon-y: 100%; }

/* The four service pages share the burgundy cards of the event reference. */
.phone-shell:not(.is-home) { background: linear-gradient(165deg,#a1192a 0%,#761321 48%,#410d16 100%); }
.phone-shell:not(.is-home) .tabbar { background: #680d19; }
.page-header { background: #800f1d; }
.page-lead { background: radial-gradient(ellipse at 90% 15%,#fba97932,transparent 40%),linear-gradient(130deg,#c3444b,#9a1e30); padding: 19px 17px; border: 1px solid #fff4d748; }
.page-lead small { display:block; font-size:.72rem; font-weight:700; letter-spacing:.12em; margin-bottom:8px; color:#ffe1ad; }
.page-lead h2 { font-size:1.26rem; }
.card { background:linear-gradient(135deg,#ffbec51c,#ffb0bb10); border-color:#ffced236; }
.card h2 { border-inline-start:3px solid #f7cf95; padding-inline-start:8px; }
.form-card .field input { background:#51071833; }
.stay-note { margin:12px 0; font-size:.88rem; line-height:1.65; color:#ffe6e3; }
.stay-note a { text-decoration:underline; text-underline-offset:3px; }
.hotel-list { margin-top:15px; }
.hotel-location { display:flex; align-items:center; gap:10px; padding:11px; background:#ffffff0e; border:1px solid #ffded32b; border-radius:11px; margin-top:7px; }
.hotel-location .icon { width:20px; color:#ffe1b0; }
.hotel-location b,.hotel-location small { display:block; }
.hotel-location b { font-size:.91rem; } .hotel-location small { font-size:.8rem; margin-top:3px; color:#f5cccf; }
.hotel-location em { margin-left:auto; flex-shrink:0; font-size:.8rem; font-style:normal; color:#ffe1ad; }
.form-footer .primary,.choice input:checked + span { background:linear-gradient(110deg,#ffdfa4,#ebb574); color:#641522; }
.checkin-code { margin:16px auto 0; text-align:center; }
.checkin-code img { margin:auto; } .checkin-code figcaption { margin-top:5px; font-size:.8rem; }
