:root{color-scheme:light;--paper:#f9f5ed;--white:#fffdf9;--plum:#704d60;--ink:#473440;--muted:#6c5b60;--line:#decfbe}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;color:var(--ink);background:radial-gradient(ellipse at top,#fffdf8,transparent 72%),var(--paper);font:15px/1.55 system-ui,sans-serif}
button,input{font:inherit}a{color:inherit}
:focus-visible{outline:2px solid #815972;outline-offset:4px}
.demo-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px clamp(14px,4vw,44px);background:var(--white);border-bottom:1px solid var(--line)}
.demo-brand{display:flex;align-items:center;gap:9px;text-decoration:none;font:clamp(22px,4vw,28px)/1 Georgia,serif;white-space:nowrap}
.demo-brand img{width:38px;height:38px;border-radius:3px;object-fit:contain}
.demo-brand small{display:block;margin-top:5px;font:600 8px/1.2 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.17em;color:var(--muted)}
.demo-header-actions,.demo-card-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.demo-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px 15px;border:1px solid var(--line);border-radius:9px;background:var(--white);color:var(--ink);text-decoration:none;font-weight:600;cursor:pointer}
.demo-button:hover{border-color:var(--plum)}
.demo-primary,.demo-button[aria-pressed=true]{background:var(--plum);border-color:var(--plum);color:white}
.demo-main{width:min(100% - 28px,820px);margin:20px auto 32px}
.demo-eyebrow{color:var(--muted);font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:650;text-align:center;margin:0 0 12px}
html[lang=th] .demo-eyebrow{letter-spacing:.06em}
.demo-envelope{width:100%;text-align:center}
.demo-envelope .pn-envelope-stage{min-height:clamp(500px,75vh,640px)}
.demo-envelope .pn-envelope-intro p,.demo-envelope .pn-envelope-intro>span{display:none}
.demo-envelope .pn-envelope-intro h2{margin:4px 0;font-size:clamp(31px,6vw,47px)}
.demo-envelope .pn-envelope-open:focus-visible{outline-offset:5px}
.demo-envelope #loading{min-height:440px;display:grid;place-items:center;color:var(--muted)}
.demo-card,.demo-panel{overflow:hidden;background:var(--white);border:1px solid var(--line);border-radius:20px;box-shadow:0 16px 46px #41262b12}
.demo-card{display:grid;grid-template-columns:1fr 1fr}
.demo-portrait{width:100%;height:100%;min-height:310px;object-fit:cover;object-position:center 42%;display:block;background:#e5d9ca}
.demo-card-content{padding:clamp(22px,5vw,44px) 18px;text-align:center;align-self:center}
.demo-card h1{font:400 clamp(37px,6vw,62px)/1.2 Georgia,serif;letter-spacing:-.035em;margin:10px 0 20px}
html[lang=th] .demo-card h1{font-family:system-ui,sans-serif;letter-spacing:normal}
.demo-date{margin:0;color:var(--ink);font-weight:650}.demo-venue{margin:5px 0 21px;color:var(--muted)}
.demo-card-actions{justify-content:center}
.demo-panel{margin-top:14px;padding:clamp(16px,4vw,28px)}
.demo-panel h2{font-size:22px;margin:0 0 15px}.demo-panel p{margin:12px 0 0;color:var(--muted)}
.demo-panel label{display:block;color:var(--muted);font-size:13px;margin-bottom:4px}
.demo-panel input{width:100%;min-height:44px;border:1px solid var(--line);border-radius:9px;background:var(--white);color:var(--ink);padding:8px 12px;font-size:16px}
.demo-matches{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}
.demo-floor svg{display:block;width:100%;height:auto}
.demo-floor .seat-room{fill:#faf6ee;stroke:#cdb9a7;stroke-width:2}
.demo-floor .seat-table ellipse,.demo-floor .seat-table rect{fill:#efe7dd;stroke:#b39a87;stroke-width:1.5}
.demo-floor .seat-fixture rect{fill:#e7decb;stroke:#baa888}
.demo-floor .seat-entrance rect{fill:#e2e8d9;stroke:#9aab8c}
.demo-floor text{fill:var(--ink)}
.demo-floor .seat-target ellipse,.demo-floor .seat-target rect{fill:#e7d4df;stroke:#73515f;stroke-width:4}
.demo-floor .seat-target text{font-weight:700}
.demo-floor .seat-destination-popup rect,.demo-floor .seat-destination-popup path{fill:#704d60}
.demo-floor .seat-destination-popup text{fill:white;font-family:system-ui,sans-serif}
.demo-floor .seat-destination-ring{fill:none;stroke:#8f6177;stroke-width:2}
.demo-footer{margin-top:14px;text-align:center;color:var(--muted);font-size:12px}
.demo-replay{display:block;margin:0 auto 6px;min-height:44px;border:0;background:none;text-decoration:underline;color:var(--plum);cursor:pointer}
@media(max-width:600px){
  .demo-card{grid-template-columns:minmax(0,1fr)}
  .demo-portrait{height:clamp(215px,62vw,330px);min-height:0}
  .demo-card h1{margin:6px 0 10px}
  .demo-header-actions{gap:5px}
  .demo-header-actions .demo-button{padding-inline:9px;font-size:13px}
}
.demo-open-label{position:absolute;top:100%;left:0;right:0;margin-top:14px;color:#654857;font-weight:600;font-size:14px}
.demo-envelope .is-opening .demo-open-label{visibility:hidden}
.demo-floor text{font-family:system-ui,sans-serif}
.demo-floor .seat-destination-popup polygon{fill:#704d60}
.demo-floor .seat-destination-caption{font-size:13px}
.demo-floor .seat-destination-pulse{fill:none;stroke:#8f6177;stroke-width:2}
.demo-tour{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:0 auto 14px}
.demo-tour select{min-height:44px;max-width:100%;min-width:0;padding:8px 10px;font:inherit;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:9px}
.demo-tour :disabled{opacity:.55;cursor:wait}
.demo-feature{margin-top:0}.demo-feature h2{font:400 clamp(24px,5vw,38px)/1.2 Georgia,serif}
.demo-feature-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:11px 0}
.demo-feature-row span{color:var(--muted);text-align:right}.demo-feature-row strong{min-width:0}
#feature-action{margin-top:14px}
@media(prefers-reduced-motion:no-preference){
 .demo-enter{animation:demo-enter .48s cubic-bezier(.22,1,.36,1) both}
 @keyframes demo-enter{from{opacity:0;transform:translateY(9px) scale(.987)}to{opacity:1;transform:none}}
}
@media(max-width:420px){.demo-tour select{flex:1 1 125px}.demo-tour .demo-button{padding-inline:9px;font-size:13px}}
.demo-tour{position:sticky;top:0;z-index:10;padding:5px 0;background:var(--paper);border-radius:10px}
.demo-card,.demo-panel,.demo-envelope{scroll-margin-top:65px}
