:root {
  color-scheme: light;
  --paper: #f7edcd;
  --ink: #253c32;
  --red: #be4531;
  --muted: #766f5b;
  --line: #253c3226;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; color: var(--ink); background-color: var(--paper);
  background-image: radial-gradient(#867b4b12 .7px, transparent .7px); background-size: 7px 7px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  padding: calc(28px + env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
}
[hidden] { display: none !important; }
button, a { font: inherit; touch-action: manipulation; }
button { cursor: pointer; user-select: none; -webkit-user-select: none; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
.masthead, .admission, footer { width: min(1120px, 100%); margin-inline: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 22px; text-decoration: none; min-width: 0; }
.brand-seal { display: block; flex-shrink: 0; width: 112px; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.brand strong { display: block; font-size: 17px; letter-spacing: 2px; }
.brand small { display: block; margin-top: 4px; font-size: 9px; letter-spacing: 1.6px; color: var(--muted); }
.open-sign { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 11px; }
.open-sign i { width: 6px; height: 6px; background: #788951; border-radius: 50%; }
.admission { display: grid; grid-template-columns: 1.05fr 1fr; align-items: start; gap: 68px; padding-block: 62px 50px; }
.invitation { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--red); font-size: 12px; letter-spacing: 2px; margin: 0 0 22px; }
.tiny-star { font-size: 23px; line-height: 1; }
h1 { font-size: clamp(52px, 5.5vw, 77px); letter-spacing: -3px; font-weight: 850; line-height: 1.15; margin: 0; }
h1 > span { color: var(--red); }
#subtitle { margin: 22px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; max-width: 33em; overflow-wrap: anywhere; }
.welcome-note { display: flex; align-items: center; gap: 17px; margin-block: 25px 29px; }
.note-number { font-family: Georgia, serif; font-style: italic; font-size: 35px; color: #a59566; }
.welcome-note p { margin: 0; font-size: 12px; line-height: 1.9; color: var(--muted); }
.welcome-note strong { font-weight: 500; color: var(--ink); }
.note-arrow { font-size: 33px; margin-left: 5px; color: #ab9b6d; }
.boarding-pass { position: relative; background: #fffaf0; border: 1px solid #253c323b; padding: 18px 23px 12px; border-radius: 3px; }
.boarding-pass::before, .boarding-pass::after { content: ""; position: absolute; bottom: 41px; width: 14px; height: 28px; background: var(--paper); border: 1px solid #253c323b; }
.boarding-pass::before { left: -1px; border-left: 0; border-radius: 0 20px 20px 0; }
.boarding-pass::after { right: -1px; border-right: 0; border-radius: 20px 0 0 20px; }
.ticket-heading { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: 1px; }
.ticket-id { font-family: Georgia, serif; font-size: 12px; color: var(--muted); }
.ticket-route { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 23px 0 19px; font-size: 9px; color: var(--muted); }
.route-name { display: block; color: var(--ink); font-size: 17px; font-weight: 650; margin-top: 5px; }
.route-arrow { color: #a69773; letter-spacing: 1px; font-size: 14px; }
#status { min-height: 22px; margin: 0 0 11px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.progress { height: 3px; width: 100%; background: #e7dfca; overflow: hidden; border-radius: 2px; margin-bottom: 18px; }
#progress-fill { height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.go { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 19px; min-height: 44px; border: 1px solid var(--ink); background: var(--ink); color: #fffaf0; border-radius: 3px; font-size: 12px; text-decoration: none; transition: transform 120ms var(--ease-out), background 120ms ease; }
.go:active { transform: scale(.97); background: #3d5449; }
.quiet { border: 0; background: transparent; color: var(--muted); padding: 10px 8px; min-height: 44px; font-size: 11px; }
.quiet:active { color: var(--red); }
.ticket-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed #bcb198; color: #8a7f68; font-size: 9px; }
.barcode { width: 62px; height: 17px; flex-shrink: 0; background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px, var(--ink) 3px 5px, transparent 5px 7px, var(--ink) 7px 8px, transparent 8px 11px); opacity: .7; }
.scene { min-width: 0; position: relative; padding-top: 4px; }
.scene-top { display: flex; justify-content: space-between; gap: 12px; margin: 0 15px 34px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.scribble { display: block; font-family: "STKaiti", "KaiTi", serif; color: #8a7a57; font-size: 17px; margin-left: 23px; margin-bottom: 20px; transform: rotate(-5deg); }
.polaroid { position: relative; margin: 0 27px 0 18px; padding: 13px 13px 0; background: #fffdfa; border: 1px solid #ebe1ca; box-shadow: 4px 8px 0 #d7c9a255, 0 14px 30px #5c4c2521; transform: rotate(3deg); }
.photo-tape { position: absolute; width: 116px; height: 34px; left: calc(50% - 58px); top: -17px; background: #dfc980aa; border-inline: 1px dashed #bfa96355; transform: rotate(-7deg); z-index: 2; }
.frog { width: 100%; aspect-ratio: 360 / 415; background: #f1f1ee; overflow: hidden; }
.frog img, .frog canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.polaroid figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 63px; padding-inline: 10px; font-family: "STKaiti", "KaiTi", serif; font-size: 16px; letter-spacing: 1px; }
.photo-heart { color: var(--red); font-size: 32px; }
.laugh-sticker { position: absolute; top: 105px; right: -12px; z-index: 3; display: flex; align-items: center; justify-content: center; flex-direction: column; width: 105px; height: 105px; color: #fff5dc; background: var(--red); border-radius: 40% 56% 44% 53% / 50% 43% 56% 45%; transform: rotate(13deg); outline: 1px solid #fff5dc88; outline-offset: -6px; font-size: 24px; font-weight: 800; line-height: 1.2; }
.laugh-sticker span { font-size: 17px; }.laugh-sticker small { font-size: 6px; letter-spacing: 1px; font-weight: 500; margin-top: 7px; }
.scene-bottom { display: flex; align-items: center; gap: 15px; padding: 35px 20px 0; }
.hand-star { font-size: 44px; color: var(--red); line-height: 1; }
.scene-bottom p { margin: 0; color: var(--muted); font-family: "STKaiti", "KaiTi", serif; font-size: 17px; line-height: 1.6; }
.scene-bottom strong { color: var(--ink); font-weight: 500; }
.stamp { display: grid; place-items: center; margin-left: auto; width: 64px; height: 64px; border: 3px double var(--red); border-radius: 50%; transform: rotate(-14deg); font-size: 12px; line-height: 1.35; letter-spacing: 2px; color: var(--red); text-align: center; opacity: .75; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 9px; color: var(--muted); font-size: 10px; }
.footer-dot { padding-inline: 10px; }
dialog { width: min(440px, calc(100% - 36px)); padding: 32px; border: 1px solid #bdad85; border-radius: 4px; background: #fffaf0; color: var(--ink); box-shadow: 0 20px 90px #253c3233; }
dialog::backdrop { background: #253c3266; }
dialog .eyebrow { font-size: 9px; margin-bottom: 18px; }
dialog h2 { font-size: 34px; margin: 0 0 20px; letter-spacing: -1px; }
dialog p { font-size: 13px; line-height: 1.9; color: var(--muted); }
dialog .go { margin-top: 8px; }
@media (hover: hover) and (pointer: fine) {
  .go:hover { background: #3d5449; }
  .quiet:hover { color: var(--red); }
}
@media (min-width: 1500px) { .admission { padding-block: 78px 64px; } }
@media (max-width: 950px) {
  .admission { gap: 34px; padding-block: 46px 40px; }
  h1 { font-size: 60px; }
  .polaroid { margin-inline: 6px 15px; }
  .laugh-sticker { width: 88px; height: 88px; right: -4px; top: 111px; font-size: 21px; }
  .laugh-sticker span { font-size: 15px; }
  .scene-bottom { padding-inline: 8px; }
  .route-name { font-size: 15px; }
  .route-arrow { font-size: 10px; letter-spacing: 0; }
}
@media (max-width: 700px) {
  body { padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); padding-top: calc(21px + env(safe-area-inset-top)); }
  .masthead { padding-bottom: 18px; gap: 8px; }
  .brand-seal { width: 84px; }
  .brand { gap: 12px; }.brand strong { font-size: 14px; letter-spacing: 1px; }.brand small { font-size: 7px; letter-spacing: .8px; }
  .open-sign { font-size: 9px; gap: 5px; white-space: nowrap; flex-shrink: 0; }
  .open-sign i { flex-shrink: 0; }
  .admission { display: flex; flex-direction: column; gap: 34px; padding-block: 32px; }
  .invitation { display: contents; }
  .eyebrow { order: 0; margin: 0 0 -21px; font-size: 10px; letter-spacing: 1.5px; }
  h1 { order: 1; font-size: clamp(47px, 12.5vw, 72px); letter-spacing: -2px; }
  #subtitle { order: 2; margin: -20px 0 -3px; font-size: 12px; }
  .scene { order: 3; width: min(420px, 100%); margin-inline: auto; padding-top: 0; }
  .scene-top { margin-inline: 0; margin-bottom: 25px; font-size: 9px; }
  .scribble { font-size: 15px; margin-left: 10px; margin-bottom: 16px; }
  .polaroid { max-width: 310px; margin-inline: auto; padding: 10px 10px 0; }
  .polaroid figcaption { font-size: 14px; min-height: 51px; padding-inline: 5px; }
  .photo-heart { font-size: 27px; }
  .photo-tape { width: 95px; left: calc(50% - 47px); height: 28px; top: -13px; }
  .laugh-sticker { top: 81px; right: 0; }
  .scene-bottom { padding-top: 23px; padding-inline: 8px; gap: 12px; }
  .scene-bottom p { font-size: 15px; }.hand-star { font-size: 35px; }.stamp { width: 56px; height: 56px; font-size: 10px; }
  .welcome-note { display: none; }
  .boarding-pass { order: 4; width: 100%; padding: 17px 20px 12px; }
  .invitation > noscript { order: 6; }
  .ticket-route { margin-top: 20px; }
  .route-name { font-size: 16px; }
  .route-arrow { font-size: 12px; }
  footer { font-size: 9px; gap: 5px; }
  footer .quiet { font-size: 10px; padding-right: 0; }
  .footer-dot { padding-inline: 4px; }
}
@media (max-width: 360px) {
  body { padding-inline: 16px; }.open-sign { display: none; }
  .boarding-pass { padding-inline: 16px; }.route-name { font-size: 14px; }.route-arrow { font-size: 10px; }
  .polaroid { margin-inline: 9px; }.laugh-sticker { right: -2px; width: 80px; height: 80px; }
  footer { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .go { transition: background 120ms ease; }.go:active { transform: none; }
}
