@font-face{font-family:Pass Display;src:url("./assets/heading.ttf") format("truetype");font-style:normal;font-weight:900;font-display:swap}
@font-face{font-family:Pass Italic;src:url("./assets/gemini-lettering.ttf") format("truetype");font-weight:400;font-style:italic;font-display:swap}
:root{
  --canvas:#f7f7f2;--paper:#faf0db;--ink:#21221e;--muted:#62655d;--blue:#2448c7;--orange:#f67c39;
  --stroke:#d6d7cd;--mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  --sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --ease-out:cubic-bezier(.23,1,.32,1);--ease-io:cubic-bezier(.77,0,.175,1);
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
body{
  min-height:100vh;
  min-height:100dvh;
  margin:0;background:var(--canvas);color:var(--ink);font:16px/1.5 var(--sans);-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button{cursor:pointer;color:inherit}
button:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
button{touch-action:manipulation}
::selection{background:#f7b487;color:#1f251e}
.glyphs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.icon{display:inline-block;flex-shrink:0;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.masthead{border-bottom:1px solid var(--stroke)}
.head-inner,.desk{width:min(1144px,calc(100% - clamp(48px,11.4vw,184px)));margin-inline:auto}
.head-inner{height:77px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px}
.brand-name{font:800 26px/1 "Helvetica Neue",Arial,sans-serif;letter-spacing:-1.65px}
.help-link{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 14px;border-radius:20px;border:1px solid #c6c8bf;background:transparent;font-size:13px;line-height:1.3;font-weight:600;min-height:38px}
.help-link .icon{width:16px;height:16px}
.desk{
  --desk-inset:clamp(12px,2.5dvh,32px);
  min-height:calc(100vh - var(--header-height) - 1px);
  min-height:calc(100dvh - var(--header-height) - 1px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-block:var(--desk-inset);
}
.ticket{--ticket-gutter:clamp(28px,4vw,60px);position:relative;isolation:isolate;overflow:hidden;border:1px solid #bfc0b2;border-radius:17px;background:#fffefa;box-shadow:0 3px 0 #e4e3d8,0 9px 18px -15px #222a1e44}
.ticket-top{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 64px;background:var(--paper)}
.ticket-face{position:relative;display:grid;grid-template-columns:1fr 1.06fr;align-items:stretch;min-height:clamp(355px,30vw,425px)}
.ticket-face::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.32;background-image:url("./assets/paper.png");mix-blend-mode:multiply}
.hero-copy{position:relative;z-index:1;padding:clamp(34px,3.3vw,49px) 0 clamp(32px,3vw,46px) clamp(34px,4vw,60px);align-self:center}
h1{margin:18px 0 25px;font-family:"Pass Display","PingFang SC","Microsoft YaHei",var(--sans);font-size:clamp(64px,6.1vw,88px);font-weight:900;line-height:1.06;letter-spacing:-.075em}
.blue-title{color:var(--blue);position:relative;display:inline-block}
.blue-title::after{content:"";position:absolute;left:1px;bottom:-10px;width:72%;height:8px;background:var(--orange);clip-path:polygon(0 58%,8% 26%,41% 9%,69% 17%,99% 55%,98% 72%,53% 58%,16% 82%,2% 100%);transform:rotate(-1.8deg);transform-origin:left center}
.title-dot{display:inline-block;width:.17em;height:.17em;margin-left:.105em;border-radius:50%;background:var(--orange);vertical-align:.035em}
.hero-intro{margin:0;color:#52554b;font-size:clamp(14px,1.16vw,16px);line-height:1.8;letter-spacing:.035em}
.art-stage{position:relative;min-width:0;pointer-events:auto}
.art-bed{position:absolute;inset:0;isolation:isolate;pointer-events:none}
.halftone{position:absolute;inset:8% 1% 4% -6%;opacity:.5;background-image:radial-gradient(circle,#c0ac83 1.05px,transparent 1.25px);background-size:6px 6px;mask-image:radial-gradient(ellipse at center,#000 10%,transparent 71%);transform:rotate(-8deg)}
.bag-mount{position:absolute;inset:5% 7% 5% 0;z-index:1}
.bag{display:block;width:100%;height:100%;object-fit:contain;transform:rotate(7deg);user-select:none;-webkit-user-drag:none}
.spark{position:absolute;z-index:2;display:block;background:var(--orange);clip-path:polygon(50% 0,58% 36%,85% 15%,67% 42%,100% 50%,65% 57%,85% 89%,56% 68%,49% 100%,42% 65%,12% 86%,33% 57%,0 49%,35% 42%,15% 14%,43% 34%)}
.spark-a{width:54px;height:54px;left:-2%;top:24%;transform:rotate(11deg)}
.spark-b{width:21px;height:21px;right:13%;top:12%;background:var(--blue);transform:rotate(11deg)}
.annotation{position:absolute;z-index:3;left:72.2%;top:51%;color:#253f8e;display:flex;flex-direction:column;align-items:flex-end;transform:rotate(-8deg);pointer-events:none}
.ink-arrow{width:65px;height:41px;align-self:flex-start;margin:0 23px -4px 0;transform:rotate(8deg)}
.annotation span{font:italic 24px/1 Georgia,"Times New Roman",serif;letter-spacing:-1.2px}
.ticket-stub{z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding-block:26px;background:#f5e7c9;border-left:1px dashed #b7a887;color:#242a23}
.stub-star{font:42px/.9 Georgia,"Times New Roman",serif;color:var(--orange)}
.barcode{height:65px;width:26px;background:repeating-linear-gradient(to bottom,#34372c 0 2px,transparent 2px 4px,#34372c 4px 5px,transparent 5px 8px,#34372c 8px 12px,transparent 12px 14px,#34372c 14px 16px,transparent 16px 20px,#34372c 20px 23px,transparent 23px 25px)}
.perforation{position:relative;z-index:3;height:1px;background:repeating-linear-gradient(to right,#c0bba8 0 6px,transparent 6px 12px)}
.perforation::before,.perforation::after{content:"";position:absolute;top:50%;width:25px;height:25px;border:1px solid #bfc0b2;border-radius:50%;background:var(--canvas)}
.perforation::before{left:-1px;transform:translate(-50%,-50%)}
.perforation::after{right:-1px;transform:translate(50%,-50%)}
.entry{padding:26px var(--ticket-gutter) 20px}
.entry-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.entry-heading label{font-weight:750;font-size:clamp(20px,1.6vw,24px);letter-spacing:-.055em}
.entry-row{display:flex;gap:12px}
.input-shell{display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:56px;border:1px solid #c4c6bc;border-radius:9px;background:#fff;box-shadow:0 1px 2px #1f27100a;transition:border-color 150ms ease,box-shadow 150ms ease}
.input-shell:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px #2448c71a}
.input-shell:has(input[aria-invalid="true"]){border-color:#b53526;box-shadow:0 0 0 3px #b5352610}
.input-icon{margin-left:16px;color:#70766c}
input{appearance:none;min-width:0;flex:1;align-self:stretch;border:0;outline:none;padding:0;background:none;color:#22251e;font-size:15px}
input::placeholder{color:#76796f;opacity:1}
.paste{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;padding:7px 10px;border:1px solid #dadbd2;border-radius:6px;background:#f7f7f2;color:#464b41;font-size:12px;font-weight:600;line-height:1.4;margin-right:8px}
.paste .icon{width:14px;height:14px}
.submit{flex:0 0 174px;display:flex;align-items:center;justify-content:center;gap:24px;border:1px solid #1e3fb4;border-radius:9px;color:white;background:var(--blue);font-size:16px;font-weight:650;letter-spacing:.03em;min-height:56px;box-shadow:0 2px 0 #173491}
.submit .icon{width:20px}
.message{margin:0;color:#63675c;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.message:not(:empty){margin-top:var(--message-gap,12px)}
.message[data-tone="error"]{color:#a43224}
.message[data-tone="ready"]{color:#2d5b3c}
@media(min-width:1550px){.ticket-face{min-height:435px}}
@media(max-width:860px){
  .head-inner,.desk{width:calc(100% - 48px)}
  .ticket-top{grid-template-columns:minmax(0,1fr) 43px}
  .hero-copy{padding-left:30px}
  .ticket-face{min-height:332px;grid-template-columns:1fr .94fr}
  h1{font-size:65px}
  .art-bed{inset:4% 0}
  .bag-mount{inset:6% 2% 5% -4%}
  .annotation{left:74%;top:54%}
  .annotation span{font-size:19px}
  .spark-a{width:36px;height:36px;left:0}
  .ticket{--ticket-gutter:30px}
  .submit{flex-basis:150px;gap:17px}
}
@media(max-width:620px){
  .head-inner,.desk{width:calc(100% - 32px)}
  .head-inner{height:64px}
  .brand{gap:8px}.brand-name{font-size:23px}
  .help-link{min-height:36px;font-size:12px;padding:8px 10px}
  .ticket{border-radius:13px}
  .ticket-top{grid-template-columns:minmax(0,1fr) 26px}
  .ticket-face{min-height:242px;display:block}
  .hero-copy{padding:27px 14px 24px 21px;pointer-events:none}
  h1{font-size:clamp(41px,9.6vw,58px);line-height:1.1;margin:15px 0 22px}
  .blue-title::after{height:5px;bottom:-6px}
  .hero-intro{font-size:12px;line-height:1.65;letter-spacing:0;max-width:94%}
  .art-stage{position:absolute;inset:5% 0 37% 53%}
  .art-bed{inset:0}.bag-mount{inset:0 2% 0 0}
  .spark-a{width:17px;height:17px;top:5%;left:8%}
  .spark-b{width:12px;height:12px;right:3%;top:1%}
  .annotation{display:none}
  .ticket-stub{padding-block:16px}.stub-star{font-size:23px}.barcode{width:13px;height:37px}
  .perforation::before,.perforation::after{height:19px;width:19px}
  .ticket{--ticket-gutter:19px}
  .entry{padding:21px var(--ticket-gutter) 16px}
  .entry-heading{margin-bottom:11px}.entry-heading label{font-size:20px}
  .entry-row{flex-direction:column;gap:10px}
  .input-shell{gap:8px;min-height:51px}.input-icon{margin-left:12px;width:17px}.paste{min-height:34px;padding:5px 7px;gap:4px;margin-right:6px}.paste .icon{width:13px}
  input{font-size:16px}
  .submit{flex:auto;min-height:47px;gap:16px}
  .message{--message-gap:11px;font-size:11px}
}
@media(max-width:365px){
  .head-inner,.desk{width:calc(100% - 24px)}
  .hero-copy{padding-left:16px}
  .ticket{--ticket-gutter:14px}.paste .icon{display:none}
  .ticket-face{min-height:225px}
  .art-stage{inset:9% 0 38% 54%}
}
.help-link,.paste,.submit{transition:transform 150ms var(--ease-out),background-color 160ms ease}
.submit .icon{transition:transform 180ms var(--ease-out)}
button:active{transform:scale(.975)}
@media(hover:hover) and (pointer:fine){
  .help-link:hover,.paste:hover{background:#eceee4}
  .submit:hover{background:#193bab}
  .submit:hover .icon{transform:translateX(4px)}
}

/* The two impressions share a baseline grid but keep their own type and timing. */
h1{line-height:1;margin-block:13px 22px}
.title-line{display:block;width:fit-content}
.latin-line{overflow:clip;padding-right:.15em}
.lettering{display:block;font:italic 400 1.28em/.95 "Pass Italic",Georgia,serif;letter-spacing:-.045em;transform-origin:0 90%}
.title-cn{position:relative;line-height:1.16;padding-bottom:6px}
.sort{display:inline-block}
.sort:nth-child(1){--index:0}.sort:nth-child(2){--index:1}.sort:nth-child(3){--index:2}.sort:nth-child(4){--index:3}
.blue-title::after{width:86%;bottom:-5px}
@media(hover:hover) and (pointer:fine){
  html[data-motion="playing"] .help-link .icon{transition:transform 180ms var(--ease-out)}
  html[data-motion="playing"] .help-link:hover .icon{transform:rotate(-9deg)}
}
@media(max-width:620px){
  h1{font-size:clamp(34px,8.9vw,54px);margin-block:13px 17px}
  .lettering{font-size:1.43em;line-height:1}
  .title-cn{padding-bottom:3px;line-height:1.2}
  .blue-title::after{bottom:-4px}
  .hero-copy{padding-top:23px}
}
@media(max-width:365px){
  h1{font-size:31px}.lettering{font-size:1.46em}
}

/* One short opening sequence. Idle motion lives only in the printed artwork. */
@keyframes sheet-down{
  from{opacity:.45;transform:perspective(1000px) translateY(-18px) rotateX(3deg) rotate(-1deg)}
  to{opacity:1;transform:none}
}
@keyframes pull-type{
  from{opacity:.2;transform:translateY(.67em) rotate(5deg)}
  to{opacity:1;transform:none}
}
@keyframes place-sort{
  from{opacity:0;transform:translateY(.38em) rotate(7deg) scale(.96)}
  to{opacity:1;transform:none}
}
@keyframes seat-stop{
  0%{opacity:0;transform:translate(-.25em,-.44em) scale(.94)}
  62%{opacity:1;transform:translateY(.025em) scale(1.06,.94)}
  82%{transform:translateY(-.08em)}
  100%{opacity:1;transform:none}
}
@keyframes draw-mark{from{transform:rotate(-1.8deg) scaleX(.025);opacity:0}to{transform:rotate(-1.8deg) scaleX(1);opacity:1}}
@keyframes slip-in{from{opacity:.25;transform:translateY(9px)}to{opacity:1;transform:none}}
@keyframes land-bag{from{opacity:.35;transform:translateY(-16px) rotate(-3deg) scale(.97)}to{opacity:1;transform:rotate(7deg)}}
@media screen{
  html[data-intro][data-motion="playing"]{
    .ticket{animation:sheet-down 580ms var(--ease-out) backwards;transform-origin:50% 5%}
    .lettering{animation:pull-type 760ms 60ms var(--ease-out) backwards}
    .sort{animation:place-sort 590ms calc(140ms + var(--index) * 55ms) var(--ease-out) backwards}
    .title-dot{animation:seat-stop 540ms 390ms var(--ease-out) backwards}
    .blue-title::after{animation:draw-mark 720ms 480ms var(--ease-out) backwards}
    .bag{animation:land-bag 840ms 65ms var(--ease-out) backwards}
    .hero-intro{animation:slip-in 460ms 180ms var(--ease-out) backwards}
    .entry-heading,.entry-row{animation:slip-in 490ms 240ms var(--ease-out) backwards}
    .entry-row{animation-delay:285ms}
  }
}
html[data-motion="paused"]{
  *,*::before,*::after{animation:none!important;transition:none!important}
  button:active,.submit:hover .icon{transform:none}
}

/* Paste a valid link and the detachable strip takes a second, blue impression. */
.ticket-stub{position:relative;isolation:isolate;overflow:hidden}
.ticket-stub::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--blue);transform:scaleY(0);transform-origin:50% 100%}
.desk[data-link-state="ready"] .ticket-stub::before{transform:scaleY(1)}
.desk[data-link-state="ready"] .stub-window{color:#fff6df}
.desk[data-link-state="ready"] .stub-star{color:#fbd480;transform:rotate(90deg)}
.desk[data-link-state="ready"] .barcode{background-color:transparent;filter:invert(1);mix-blend-mode:screen}
.title-dot{position:relative}
.title-dot i{position:absolute;inset:-60%;background:var(--orange);opacity:0;clip-path:polygon(50% 0,63% 37%,100% 50%,63% 63%,50% 100%,37% 63%,0 50%,37% 37%)}
@keyframes press-accent{
  0%,53%,94%,100%{opacity:0;transform:rotate(-45deg) scale(.6)}
  67%,76%{opacity:1;transform:rotate(0) scale(1.06)}
  90%{opacity:0;transform:rotate(40deg) scale(.72)}
}
@media screen{
  html[data-motion="playing"]{
    .ticket-stub::before{transition:transform 270ms var(--ease-io)}
    .stub-star{transition:transform 250ms var(--ease-out),color 160ms ease}
    .stub-window{transition:color 200ms ease}
    .title-dot i{animation:press-accent 5s 320ms ease-in-out infinite}
  }
}

/* Keep the document itself as the single, native scrolling surface. */
:root{--header-height:77px}
.masthead{
  position:sticky;top:0;z-index:8;background:var(--canvas);
}
.brand,.help-link{color:inherit;text-decoration:none}
.brand:focus-visible,.help-link:focus-visible{outline:3px solid var(--blue);outline-offset:4px;border-radius:8px}
#page-top{scroll-margin-top:0}
.paper-light{
  pointer-events:none;position:absolute;left:0;top:0;width:280px;height:280px;opacity:0;
  background:radial-gradient(ellipse at center,#fffbe6c9 0,#fff8d15c 42%,transparent 70%);
}
html[data-motion="playing"]{scroll-behavior:smooth}
@media(hover:hover) and (pointer:fine){
  html[data-motion="playing"]{
    .paper-light{transition:opacity 240ms ease}
    .ticket-face[data-lit] .paper-light{opacity:1}
    .sort{transition:transform 180ms var(--ease-out)}
    .title-cn .sort:hover{transform:translateY(-.07em) rotate(-2.5deg)}
    .help-link:hover{background:#e8ecfa;border-color:#a0aed7;box-shadow:0 2px 0 #c8d0e9}
  }
}
html[data-motion="playing"] .help-link:active{transform:translateY(1px) scale(.97)}
.press-mark{
  position:fixed;z-index:15;width:26px;height:26px;pointer-events:none;
  border-radius:50%;border:1px solid #2448c7a8;opacity:0;
  animation:ink-press 300ms var(--ease-out) forwards;
}
.press-mark::before{
  content:"";position:absolute;inset:6px;background:var(--orange);
  clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);
}
@keyframes ink-press{
  0%{opacity:.82;transform:scale(.65) rotate(-18deg)}
  55%{opacity:.55}
  100%{opacity:0;transform:scale(1.45) rotate(12deg)}
}
@media(max-width:860px){
  .annotation{left:auto;right:1%;top:56%}
  .annotation span{font-size:17px}.ink-arrow{width:45px;height:31px;margin-right:18px}
}
@media(max-width:620px){
  :root{--header-height:64px}
  .hero-intro{max-width:100%}
}
#verification-url{scroll-margin-top:calc(var(--header-height) + 70px)}

/* The rule is printed in the same sheet and on the same grid as the form. */
.ticket-rule {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,clamp(165px,22vw,288px));
  column-gap: clamp(12px,3vw,38px);
  align-items: center;
  position: relative;
  margin-inline: var(--ticket-gutter);
  border-top: 1px dashed #cfcbbd;
}
.rule-copy { padding-block: 16px; }
.ticket-rule h2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}
.ticket-rule h2::before {
  content: "";
  width: 10px;
  height: 4px;
  background: var(--orange);
  transform: skewX(-16deg);
}
.ticket-rule p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #53564d;
}

/* The badge is painted into the paper, with its own transparent rendering surface. */
.charm-stage {
  height: clamp(110px,15dvh,150px);
  position: relative;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
}
.charm-stage::before, .charm-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.charm-stage::before {
  inset: 12% 0 6%;
  background: radial-gradient(circle,#bda77e 0.8px,transparent 1px) 0 0 / 5px 5px;
  mask-image: radial-gradient(ellipse,#0005 5%,transparent 72%);
}
.charm-stage::after {
  width: 56%;
  height: 9%;
  left: 24%;
  bottom: 3%;
  z-index: -1;
  background: radial-gradient(ellipse,#54577933,transparent 68%);
}
.charm-poster, .charm-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}
.charm-view, .charm-stage[data-charm-ready] .charm-poster { opacity: 0; }
.charm-stage[data-charm-ready] .charm-view { opacity: 1; }
html[data-motion="playing"] :is(.charm-view,.charm-poster) { transition: opacity 160ms ease; }
@media (max-width:620px) {
  .ticket-rule { grid-template-columns: minmax(0,1fr) minmax(103px,41%); column-gap: 8px; }
  .charm-stage { height: clamp(90px,14dvh,120px); }
  .rule-copy p span { display: inline-block; max-width: 100%; }
}
@media (max-width:620px) and (min-height:740px) {
  .ticket-face {
    min-height: clamp(250px,34dvh,312px);
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
  }
  .art-stage { inset: 10% 0 33% 53%; }
}
@media (min-width:621px) and (max-height:820px) {
  :root { --header-height: 64px; }
  .head-inner { height: var(--header-height); }
  .ticket-face { min-height: clamp(235px,calc(100dvh - 422px),345px); }
  .hero-copy { padding-block: 22px; }
  h1 { font-size: clamp(51px,min(8.9vw,8.4dvh),69px); margin-block: 9px 16px; }
  .entry { padding-block: 20px 16px; }
}
@media (max-height:685px) {
  :root { --header-height: 54px; }
  .head-inner { height: var(--header-height); }
  .desk { --desk-inset: 10px; }
  .entry { padding-block: 14px 10px; }
  .entry-heading { margin-bottom: 7px; }
  .entry-heading label { font-size: 19px; }
  .entry-row { gap: 7px; }
  .input-shell,.submit { min-height: 44px; }
  .message { --message-gap: 8px; }
  .charm-stage { height: 87px; }
  .rule-copy { padding-block: 10px; }
}
@media (max-width:620px) and (max-height:685px) {
  .ticket-face { min-height: 180px; }
  .hero-copy { padding-block: 13px; }
  h1 { font-size: clamp(30px,8.2vw,40px); margin-block: 5px 11px; }
  .art-stage { inset: 4% 0 35% 55%; }
}
