:root{color-scheme:dark;--ink:#16191c;--paper:#f3e9d8;--quiet:#bcb3a8;--line:#37343a;--gold:#f0c680;--soft:#242228;--accent:#a94643;font-family:"Microsoft YaHei","PingFang SC",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--ink);color:var(--paper)}button,input{font:inherit}button{min-height:44px;border:1px solid var(--line);border-radius:8px;background:#26242a;color:var(--paper);padding:8px 12px;cursor:pointer}button:hover{border-color:#c19663;background:#362b2b}button:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button:disabled{cursor:default;opacity:.55}.top{height:76px;padding:0 clamp(14px,3vw,50px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px}.brand,.account,nav{display:flex;align-items:center;gap:9px}.brand strong{font-size:19px;letter-spacing:.08em}.brand small{display:block;color:var(--gold);font-size:10px;margin-top:3px}.seal{background:#a04440;border:1px solid #d08167;box-shadow:inset 0 0 0 2px #a04440,inset 0 0 0 3px #c57460;border-radius:7px;width:40px;height:40px;display:grid;place-items:center;font:700 22px serif}nav button{border-color:transparent;background:transparent;color:var(--quiet)}nav .current,.ticket{color:var(--gold)}nav .current{background:#33282a;border-color:#513937}.ticket b{margin:0 4px}main{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;padding:20px clamp(14px,3vw,50px) 0;max-width:1900px;margin:auto}.world,.panel{border:1px solid var(--line);border-radius:15px;overflow:hidden;position:relative}.world{min-height:690px;isolation:isolate;background:#283d45 url('/town.webp') center/cover no-repeat}.vignette{position:absolute;inset:0;background:linear-gradient(180deg,#111822c9,transparent 42%,transparent 67%,#11151aec),linear-gradient(90deg,#15192380,transparent 65%);pointer-events:none;z-index:0}.intro{position:absolute;left:5%;top:5%;pointer-events:none;z-index:1;text-shadow:0 2px 12px #141215}.intro h1{font:700 clamp(37px,5vw,78px)/1.05 "STKaiti","KaiTi","SimSun",serif;letter-spacing:.09em;margin:10px 0 12px;color:#fff0d1}.intro>p:last-child{font-size:14px}.eyebrow{color:var(--gold);font-size:12px;letter-spacing:.16em;margin:0}.eyebrow i,.world-status i{display:inline-block;width:7px;height:7px;background:#e2b26e;border-radius:50%;box-shadow:0 0 12px #ffd8a1;margin-right:6px}.world-status{position:absolute;top:5%;right:3%;z-index:1;background:#19191ddc;border:1px solid #8f7655;padding:8px 10px;border-radius:30px;font-size:12px}.world-status i{background:#8fc6a0}canvas{position:absolute;width:100%;height:100%;inset:0;touch-action:manipulation}#markers{position:absolute;inset:0;pointer-events:none;z-index:1}.marker{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;border-color:#dba970b0;background:#1d2324ee;box-shadow:0 4px 14px #100c0b88;white-space:nowrap;border-radius:9px;padding:6px 9px;min-height:44px;font-size:12px}.marker span{color:var(--zone);margin-right:5px}.marker.active,.marker:hover{background:#593732;border-color:#e8bc83}.mapbar{position:absolute;z-index:2;bottom:4%;left:4%;right:4%;display:flex;justify-content:space-between;align-items:center;gap:8px}.mapbar>span{padding:10px 13px;background:#1d1a20e6;border:1px solid #725947;border-radius:7px;font-size:13px;color:#f5d4a5}.gold{background:#ecc181;color:#2c1a15;border-color:#e6bd84;font-weight:700}.gold:hover{background:#ffdc9d;color:#2c1a15}.gold b{margin-left:5px}.panel{display:flex;flex-direction:column;background:#201e23;min-width:0}.panel-head{padding:21px 18px 12px;border-bottom:1px solid var(--line)}h2{margin:8px 0;font-family:"STKaiti","KaiTi",serif;font-size:30px}.panel-head>p:last-child,.muted{color:var(--quiet);font-size:13px;line-height:1.6;margin:6px 0}.list{padding:9px;display:grid;gap:5px;align-content:start}.row{display:flex;align-items:center;min-width:0;gap:10px;width:100%;text-align:left;padding:6px 9px;background:#27242a}.row .tile{width:34px;height:34px;display:grid;place-items:center;border-radius:6px;color:var(--zone,var(--gold));background:#352b32;flex:none}.row strong{font-size:14px}.row small{display:block;color:var(--quiet);font-size:11px;margin-top:3px}.row .end{margin-left:auto;color:var(--gold);white-space:nowrap;font-size:12px}.panel-foot{margin-top:auto;border-top:1px solid var(--line);padding:10px 13px;display:flex;justify-content:space-between;align-items:center;color:var(--quiet);font-size:12px}.panel-foot button{padding:0 9px}footer{max-width:1900px;margin:auto;padding:15px clamp(14px,3vw,50px);display:flex;justify-content:space-between;color:var(--quiet);font-size:12px;gap:10px}dialog{width:min(550px,calc(100% - 22px));max-height:90dvh;border:1px solid #8e6b50;padding:20px;border-radius:16px;color:var(--paper);background:#221e23;box-shadow:0 18px 80px #0009}dialog::backdrop{background:#14131ac4;backdrop-filter:blur(3px)}.close{position:absolute;top:9px;right:9px;width:44px;font-size:22px;padding:0;background:#241e25ee;z-index:2}.cast{height:195px;background:radial-gradient(ellipse at 50% 35%,var(--zone),#25212b 78%);border-radius:9px;margin-bottom:13px;position:relative;overflow:hidden}.portrait{background-image:url('/cast.webp');background-size:500% 200%;background-repeat:no-repeat}.cast strong{position:absolute;bottom:0;left:0;right:0;padding:25px 10px 10px;background:linear-gradient(transparent,#19151aef)}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}.actions button{flex:1 0 auto}.modal-title{margin-right:38px}.dialog-note{min-height:22px;color:var(--gold);margin-bottom:0}.sequence{font-size:26px;letter-spacing:.28em;color:var(--gold);margin:16px 0}.board{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-width:250px}.board button{height:55px}.result{min-height:35px;margin-top:8px;color:var(--gold)}label{display:grid;gap:6px;margin:10px 0}input,select{padding:9px;border:1px solid #6c5a54;border-radius:6px;background:#18161b;color:var(--paper);min-height:44px}.ink{display:block;width:100%;height:160px;position:static;background:#eee1c8;touch-action:none;border-radius:6px}.show-stage{position:relative;overflow:hidden;display:grid;place-items:center;text-align:center;min-height:135px;background:linear-gradient(140deg,#34253f,#803e40,#302732);border:1px solid #916754;border-radius:10px;padding:15px}.audience{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin:9px 0}.audience button{font-size:11px;padding:3px;min-height:50px}.seat-filled{border-color:#755048}.picked{background:#543d4a;border-color:var(--gold)}#notice{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:4;background:#40302c;border:1px solid #d4ab79;border-radius:8px;padding:11px 16px;max-width:calc(100% - 24px);pointer-events:none}#notice:empty,#speech:empty{display:none}#speech{position:absolute;left:50%;bottom:14%;transform:translateX(-50%);border:1px solid #a07852;border-radius:9px;padding:8px 12px;background:#261d22e8;pointer-events:none;z-index:3;font-size:13px}.photo-preview{aspect-ratio:16/9;background:#2e3841 url('/town.webp') center/cover;display:grid;place-items:center;border-radius:9px;padding:10px}.photo-preview img{width:100%;max-height:260px;object-fit:contain}.album-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.album-grid a{color:var(--gold);font-size:12px}.album-grid img{width:100%;border-radius:7px}.meter{appearance:none;width:100%;height:30px;background:linear-gradient(90deg,#3e2b40 41%,#ad7654 41% 59%,#3e2b40 59%);border-radius:7px;position:relative;overflow:hidden}.meter span{position:absolute;inset:0 auto 0 0;width:5px;background:#fff2c7}.queue{display:flex;gap:5px;flex-wrap:wrap}.queue button{font-size:12px}.agenda{display:grid;gap:6px}.photo-frame{display:block;width:100%;border-radius:8px}
@media(max-width:950px){main{grid-template-columns:minmax(0,1fr) 270px}.world{min-height:680px}.marker{font-size:11px}.account button{font-size:12px}}
@media(max-width:720px){.top{height:auto;min-height:65px;flex-wrap:wrap;padding-block:7px}.brand strong{font-size:15px}.brand small{font-size:9px}.seal{width:34px;height:34px}nav{order:3;width:100%;justify-content:center}nav button{flex:1}main{grid-template-columns:1fr;padding-top:10px;gap:10px}.world{min-height:530px}.world-status{top:4%;font-size:10px}.intro{top:5%}.intro>p:last-child{font-size:12px}.mapbar{bottom:3%}.mapbar button{font-size:12px}.list{grid-template-columns:repeat(2,minmax(0,1fr))}.row{gap:5px;padding:5px}.row .tile{width:25px}.row .end{font-size:10px}.panel-head{padding-top:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important}}
.cast .portrait{height:100%;width:min(185px,100%);margin:auto}.cast strong{padding-bottom:12px;text-align:center}.stage-actor{height:118px;width:82px;border-radius:40% 40% 18% 18%;border:2px solid #e4a36b;position:relative}.show-stage p{margin:8px 0 0;z-index:1;font-size:13px}.stage-lights{position:absolute;inset:0;background:repeating-linear-gradient(110deg,transparent 0 16%,#e9ae593a 16% 17%,transparent 17% 20%);opacity:.28}.performing .stage-actor{animation:dance .9s ease-in-out infinite alternate}.performing .stage-lights{animation:lights .7s ease-in-out infinite alternate}@keyframes dance{from{transform:translate(-13px,0) rotate(-7deg)}to{transform:translate(13px,-6px) rotate(7deg)}}@keyframes lights{to{opacity:.95;transform:scale(1.27)}}.photo-preview a{color:var(--gold)}[hidden]{display:none!important}
.world .vignette::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at var(--spot-x,50%) var(--spot-y,50%),var(--district,transparent),transparent 22%);opacity:.3;mix-blend-mode:screen}.seat-filled::before,.picked::before,.queue-person::before{content:"";display:block;width:14px;height:19px;margin:0 auto 3px;border-radius:45% 45% 22% 22%;background:radial-gradient(circle at 50% 24%,#ecc7a2 0 22%,transparent 25%),linear-gradient(transparent 35%,var(--robe,#edc181) 36%);filter:drop-shadow(0 1px 2px #121014)}.queue-person::before{display:inline-block;vertical-align:middle;margin:0 5px 0 0}.seat-filled{background:#2f252e}.picked{background:#5b4036}
/* 游人立绘与活动座席 */
.guest-profile{display:grid;grid-template-columns:minmax(116px,210px) 1fr;align-items:center;gap:16px;min-height:255px;border:1px solid #5a454c;border-radius:12px;padding:10px 12px;background:radial-gradient(ellipse at 30% 53%,color-mix(in srgb,var(--guest-accent) 34%,#2b2028),#211d26 76%);overflow:hidden}
#guest-art{min-height:180px;display:grid;place-items:center;isolation:isolate}
#guest-art canvas,.guest-badge{position:static;inset:auto;display:block;width:100%;height:auto;touch-action:auto;object-fit:contain}
#guest-art canvas{filter:drop-shadow(0 10px 9px #100b10ae)}
.guest-profile h2{font-size:clamp(28px,6vw,45px);margin-right:0}
.guest-profile.street-profile{grid-template-columns:86px minmax(0,1fr);gap:10px;min-height:0}
.street-profile #guest-art{min-height:0}
.street-profile h2{font-size:clamp(24px,4vw,32px)}
.street-profile .guest-style{margin:5px 0}
.book-location-toggle{display:flex;align-items:center;gap:7px;min-height:32px;color:var(--quiet);font-size:13px;cursor:pointer}
.book-location-toggle input{width:16px;height:16px;min-height:0;accent-color:var(--gold)}
.guest-style{font-size:13px;color:var(--gold);line-height:1.55}
.guest-badge{width:36px;aspect-ratio:43/61;flex:none;filter:drop-shadow(0 2px 4px #0d0a11a0)}
.guest-book{display:grid;gap:6px;grid-template-columns:repeat(4,minmax(0,1fr));min-height:94px}
.book-guest{min-width:0;display:grid;justify-items:center;align-content:start;gap:1px;padding:5px 2px;background:radial-gradient(ellipse at 50% 40%,#504052,#2e2631 75%);}
.book-guest .guest-badge{width:44px}
.book-guest strong{font-size:13px}
.book-guest small{font-size:11px;color:var(--quiet)}
.book-pages{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-top:10px;color:var(--quiet);font-size:12px}
.queue-stage{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px;color:#f7dba7}
.queue-stage:empty{display:none}
.queue-stage .guest-badge{width:26px}
.queue-person{display:flex;align-items:center;gap:3px;padding:4px 6px}
.queue-person .guest-badge{width:20px}
.queue-person::before,.seat-filled::before,.picked::before{content:none}
.audience button{display:grid;place-items:center}
.audience button .guest-badge{width:23px}
.audience-cheer button:nth-child(3n+1) .guest-badge,.cheering .guest-badge{animation:cheer .34s ease-out 2 alternate}
.audience-cheer button:nth-child(3n+2) .guest-badge{animation:cheer .34s .12s ease-out 2 alternate}
@keyframes cheer{to{transform:translateY(-7px) rotate(-7deg)}}
.show-stage.lit-finale{background:radial-gradient(ellipse at 50% 32%,#ffd585,#ae7456 36%,#442938 80%);border-color:#eec279}
.encore .stage-actor{animation:dance .4s ease-in-out 6 alternate}
.fans{display:flex;align-items:center;gap:8px;border-top:1px solid #533e49;margin-top:9px;padding:6px 0 0;color:#ecd1a5;min-height:51px;font-size:12px}
.fans p{margin:0;line-height:1.45}
.fan-avatars{display:flex;flex:none}
.fans .guest-badge{width:24px}
.face-off{display:flex;align-items:center;justify-content:center;gap:11px;color:var(--gold);font-size:11px}
.face-off .guest-badge,.host-mini{width:45px;height:60px}
.host-mini{border-radius:7px;box-shadow:0 2px 9px #130c13a4}
.game-header h2{margin-bottom:2px}
.game-record{margin:4px 0 0;font-size:13px;color:#f8d08e}

/* 现场小游戏 */
.arcade{padding:10px;border:1px solid #5d434c;border-radius:11px;background:radial-gradient(ellipse at top,#41333f,#29232b 75%)}
.scoreboard{display:flex;justify-content:space-between;gap:16px;color:#ead6bd;font-size:13px;margin:0 0 8px}
.scoreboard b{display:inline-block;margin-left:4px;color:var(--gold);font-size:18px;font-variant-numeric:tabular-nums}
.duel-field{height:80px;display:flex;justify-content:center;align-items:center;gap:16px;background:radial-gradient(ellipse at center,#67414a34,transparent 70%)}
.duel-hand{display:grid;place-items:center;width:66px;height:66px;border:1px solid #8b5e58;border-radius:16px;background:#53343b;color:#ffe1a9;font:700 36px serif}
.duel-vs{font-size:11px;color:#dcba95}
.shuffle .duel-hand{animation:shake .22s linear infinite}
@keyframes shake{50%{transform:translateY(-6px) rotate(8deg)}}
.hud{min-height:34px;margin:8px 0 0;color:#ebd7c6;font-size:13px;line-height:1.4}
.round-log{display:flex;flex-wrap:wrap;gap:4px;list-style:none;padding:0;margin:4px 0 0;color:#e1c8b6;font-size:11px}
.round-log li{padding:3px 6px;border-radius:4px;background:#3c2b35}
.arcade-controls{margin-top:8px}
.arcade-controls button{background:#523740;border-color:#9a675d}
.arcade-controls button:hover{background:#70414a}
.toss-range{height:106px;position:relative;border-radius:8px;overflow:hidden;background:linear-gradient(#2d293b,#53433b 65%,#8d6344 66%,#493b38);border:1px solid #675051}
.toss-target{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:34%;height:45px;display:grid;place-items:center;border-radius:50%;background:repeating-radial-gradient(ellipse,#f7dc94 0 9%,#c08464 12% 20%,#a95556 23% 32%,#5d404a 34% 38%);border:1px solid #ffcf88}
.toss-arrow{position:absolute;top:76%;left:50%;height:16px;width:5px;border-radius:80% 80% 0 0;background:#ffdf98;box-shadow:0 0 7px #ffe5a7;transform:translateX(-50%)}
.throwing .toss-arrow{animation:throw .37s ease-out}
@keyframes throw{to{top:24%;transform:translateX(-50%) scale(.45);opacity:.35}}
.beats,.river{position:relative;overflow:hidden;height:150px;border:1px solid #68526a;border-radius:8px}
.beats{display:grid;grid-template-columns:repeat(3,1fr);background:linear-gradient(0deg,#553447,#271f2f)}
.beats>div{position:relative;border-right:1px solid #75556377}
.beats>i{position:absolute;left:0;right:0;top:84%;border-bottom:2px solid #ffe2a0;box-shadow:0 0 9px #ffd687}
.beat-note{position:absolute;left:50%;transform:translate(-50%,-50%);width:31px;height:21px;background:radial-gradient(ellipse,#ffdc8b,#dc7d53 72%);border-radius:40%;box-shadow:0 0 10px #ee906e}
.river{background:repeating-linear-gradient(90deg,#23484c 0 33%,#c2d0b349 33% 33.4%,#23484c 33.4% 66%,#c2d0b349 66% 66.4%,#23484c 66.4% 100%)}
.wake{position:absolute;inset:0;background:repeating-linear-gradient(169deg,transparent 0 13px,#d1f4dea0 14px 15px,transparent 17px 30px);opacity:.25;animation:water 1.1s linear infinite}
@keyframes water{to{transform:translateY(31px)}}
.boat,.driftwood{position:absolute;top:79%;left:50%;transform:translate(-50%,-50%);display:block;z-index:1}
.boat{width:23px;height:43px;border-radius:50% 50% 34% 34%;border:2px solid #d1a56c;background:repeating-linear-gradient(#a4533e 0 6px,#efc392 6px 8px);box-shadow:0 7px 11px #0e2e3d99;transition:left .14s ease-out}
.boat-rival{top:65%;left:83%;border-color:#84c2c0;background:repeating-linear-gradient(#416b76 0 6px,#9cc9ab 6px 8px)}
.driftwood{top:0;width:38px;height:10px;border-radius:35%;background:#875c3c;border:1px solid #e4ba7e;z-index:0;transform:translate(-50%,-50%) rotate(-12deg)}
.rowing{animation:paddle .28s ease-out}
@keyframes paddle{50%{transform:translate(-50%,-66%) rotate(-5deg)}}
.recital{display:grid;justify-items:center;gap:6px;padding:14px;border:1px solid #6d4e57;border-radius:8px;background:linear-gradient(#3d2d40,#302534);color:#ead5bd}
.recital-name{font-size:12px}
.recital-note{font-size:20px;color:#ffdfa2}
.recital-progress{font-size:15px;min-height:20px;color:#edaa73}
@media(max-width:720px){
 nav{gap:3px}nav button{padding:6px 5px;font-size:13px}
 .guest-profile{grid-template-columns:minmax(110px,43%) 1fr;gap:8px;min-height:205px}
 .guest-profile .eyebrow{font-size:10px;letter-spacing:0}
 .book-guest .guest-badge{width:34px}
 .audience{gap:3px}
 .audience button{min-height:54px}
}
.queue-stage small{display:block;margin-top:4px;color:var(--quiet);font-size:11px}
.immersive .top{height:68px;background:#1d1822;border-color:#463244}
.immersive main{display:block;max-width:none;margin:0;padding:0;position:relative}
.immersive .world{height:calc(100dvh - 68px);min-height:530px;border:none;border-radius:0;background:#2c263b}
.immersive .intro,.immersive #crowd,.immersive .vignette,.immersive #markers,.immersive footer{display:none}
.immersive .world-status{top:21px;right:22px;z-index:3;background:#211926d9;border-color:#8b6062}
.immersive .mapbar{left:auto;right:22px;bottom:24px;z-index:5}
.immersive .mapbar>span{display:none}
.immersive #speech{bottom:124px}
#world3d,#world-labels,#view-hud{position:absolute;inset:0}
#world3d canvas{touch-action:none;cursor:grab;outline:none}
#world3d canvas:active{cursor:grabbing}
#world-labels,#view-hud{pointer-events:none}
#world-labels{z-index:2}
#view-hud{z-index:4}
#view-hud button,.world-pin{pointer-events:auto}
.world-pin{position:absolute;top:0;left:0;min-height:32px;padding:4px 10px;border-radius:6px;border-color:#c28c68;background:#382234e8;box-shadow:0 3px 10px #16101e9f;color:#f8dab2;font-size:12px;white-space:nowrap;will-change:transform}
.world-pin.in-reach{border-color:#ffd696;background:#673946;color:#ffe7b8}
.world-pin:before{content:'◇';margin-right:5px;color:#ffda9d}
.world-cursor{position:absolute;left:0;top:0;width:16px;height:14px;background:#f5c27060;border:2px solid #f6cc8c;border-radius:50%;box-shadow:0 0 10px #ff9d5c}
.view-title{position:absolute;left:26px;top:22px;text-shadow:0 2px 10px #1a1021c0}
.view-title h1{font:700 clamp(28px,4vw,59px)/1.03 "STKaiti","KaiTi",serif;color:#ffecd0;letter-spacing:.09em;margin:0 0 6px}
.view-title p{display:inline-block;margin:0;padding:5px 9px;font-size:12px;color:#f4d6ac;border:1px solid #ce996457;background:#302137b8;border-radius:5px}
#travel{position:absolute;top:24px;left:50%;transform:translateX(-50%);background:#2c2034e8;border:1px solid #cf9c76aa;border-radius:26px;padding:6px 13px;color:#ffdbab;font-size:12px;white-space:nowrap}
.view-commands{position:absolute;bottom:23px;left:50%;transform:translateX(-50%);text-align:center}
.view-commands p{margin:10px 0 0;font-size:12px;color:#fae5cb;background:#271a2adf;padding:6px 9px;border-radius:6px;white-space:nowrap}
.view-commands button{box-shadow:0 0 20px #f4aa7540;min-width:120px}
kbd{font:inherit;font-weight:700;color:#ffd197}
#orient{position:absolute;bottom:23px;left:23px;width:44px;padding:0;font-size:22px;background:#382639dd;border-color:#b17b78}
.walkpad{display:none}
.immersive .panel{position:absolute;z-index:7;right:18px;top:62px;width:min(350px,calc(100% - 30px));max-height:calc(100% - 140px);box-shadow:0 8px 36px #1b1025bd;background:#211b28ee;backdrop-filter:blur(12px)}
.immersive .panel .list{overflow:auto;grid-template-columns:1fr}
.immersive .panel-head{padding-right:58px}
.immersive .panel[hidden]{display:none}
.immersive .modal-title{scroll-margin:8px}
#theater{position:absolute;z-index:6;left:50%;bottom:22px;transform:translateX(-50%);width:min(610px,calc(100% - 22px));border-radius:11px;border:1px solid #b285711f;background:#2d2033e8;box-shadow:0 6px 26px #151019a9;padding:11px 14px;backdrop-filter:blur(9px)}
#theater .theater-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
#theater h2{font-size:25px;margin:0}
#theater p{font-size:13px;margin:4px 0;color:#ead6bb;line-height:1.42}
#theater .actions{margin-top:6px}
#theater .actions button{padding:6px 9px}
#theater .seat-controls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-top:8px}
#theater .seat-controls button{min-height:34px;padding:2px;font-size:10px}
#theater .seat-controls .occupied{border-color:#825765;background:#483043}
#theater .seat-controls .chosen{border-color:#f6cc88;background:#653e4e;color:#ffe5af}
#theater .theater-status{color:#ffd9a1}
.watch-mode .view-commands,.watch-mode .walkpad,.watch-mode #orient,.watch-mode .mapbar,.watch-mode .world-status{display:none}
@media(pointer:coarse),(max-width:720px){
 .immersive .top{height:auto;min-height:100px}
 .immersive .world{height:calc(100dvh - 104px);min-height:480px}
 .immersive .world-status{top:15px;right:12px;font-size:10px;padding:6px 8px}
 .view-title{left:14px;top:14px}
 .immersive .mapbar{right:11px;bottom:13px}
 .view-commands{bottom:128px;left:auto;right:11px;transform:none}
 .view-commands p{display:none}
 .view-commands button{min-width:95px;font-size:12px}
 #orient{left:auto;right:14px;bottom:72px}
 .walkpad{display:grid;position:absolute;left:12px;bottom:13px;grid-template-columns:repeat(3,44px);gap:5px;touch-action:none}
 .walkpad button{padding:0;min-height:44px;background:#372438cb;border-color:#b88575;font-size:20px;touch-action:none}
 .walkpad button:first-child{grid-column:2}
 .walkpad button:nth-child(2){grid-column:1;grid-row:2}
 .walkpad button:nth-child(3){grid-column:2;grid-row:2}
 .walkpad button:nth-child(4){grid-column:3;grid-row:2}
 #travel{top:85px;left:14px;transform:none}
 .world-pin{min-height:36px}
 .immersive .panel{top:62px;right:12px}
 #theater{padding:8px 9px;bottom:11px}
 #theater .actions{gap:5px}
 #theater .actions button{font-size:11px}
}
dialog.onsite{position:fixed;inset:auto 16px 15px auto;margin:0;width:min(445px,calc(100% - 32px));max-height:min(84dvh,650px);background:#261c2af2}
dialog.onsite::backdrop{background:linear-gradient(90deg,transparent 12%,#21132263 100%);backdrop-filter:none}
dialog.onsite .cast{height:143px}
dialog.onsite .cast .portrait{width:133px}
@media(max-width:720px){
 dialog.onsite{inset:auto 8px 8px 8px;width:auto;max-height:62dvh;padding:12px}
 dialog.onsite .cast{height:112px}
 dialog.onsite .cast .portrait{width:103px}
}
.activity-mode #world-labels,.activity-mode .view-commands,.activity-mode .walkpad,.activity-mode #orient{display:none}
@media(max-width:720px){
 .activity-mode #world3d{bottom:49dvh}
 .activity-mode .mapbar{display:none}
 dialog.onsite{max-height:52dvh}
 dialog.onsite .face-off{gap:8px}
 dialog.onsite .face-off .guest-badge,dialog.onsite .host-mini{width:34px;height:46px}
 dialog.onsite .toss-range{height:82px}
}
body.immersive{height:100dvh;display:flex;flex-direction:column}
.immersive .top{flex:none}
.immersive main{flex:1;min-height:0;width:100%}
.immersive .world{height:100%;min-height:0}
@media(max-width:720px){.activity-mode #world3d{bottom:min(49dvh,55%)}}
#theater .theater-top>div{display:flex;gap:4px}
@media(max-width:720px){#theater .theater-top button{min-height:39px;padding:4px 7px;font-size:12px}}
/* Edge-mounted controls leave the town visible through the whole screen. */
.immersive .top{position:absolute;top:0;left:0;right:0;z-index:9;height:auto;padding:14px 22px;min-height:0;pointer-events:none;background:linear-gradient(#101015f7,#10101584 57%,#10101500);border:0}
.immersive .top button,.immersive .top nav{pointer-events:auto}
.immersive .top nav{gap:2px;background:#18181bba;border:1px solid #d3b09032;border-radius:7px;padding:2px;box-shadow:0 2px 12px #03030738}
.immersive .top nav button{border-color:transparent;padding:7px 12px;background:none;color:#ece2ce;min-height:37px}
.immersive .top nav button:hover,.immersive .top nav button[aria-expanded=true]{background:#3d3028;color:#f8ddb4}
.immersive .top .account button{font-size:12px;background:#1a191cc4;border-color:#caaa7d45;min-height:41px}
.immersive .top .brand small{color:#e1c9ac;letter-spacing:.16em}
.immersive .view-title{top:82px;left:24px}
.immersive .view-title h1,.immersive .world-status{display:none}
.immersive .view-title p{background:#181719bf;border-color:#b9956238;letter-spacing:.085em;font-size:13px;padding:6px 10px;color:#f3dfbb}
.immersive .view-title p::before{content:'◆';color:#daaa63;font-size:9px;margin-right:7px}
.immersive #travel{top:83px;border-color:#c9a47662;background:#201914bf}
.immersive .panel{top:75px;background:#1a181bee;border-color:#a6896845}
.immersive .world-pin{color:#f1ddbb;background:#16181bc9;border-color:#d3ab6a55;font-size:11px;min-height:29px;padding:4px 8px;opacity:.84}
.immersive .world-pin.in-reach{opacity:1;border-color:#edc58b;background:#3e2a1e}
.view-settings{position:absolute;left:20px;bottom:21px;pointer-events:auto}
.view-settings summary{display:flex;gap:6px;align-items:center;justify-content:center;list-style:none;cursor:pointer;min-height:44px;padding:6px 11px;background:#17171bcc;color:#f3dec1;border:1px solid #b796704f;border-radius:7px;font-size:12px}
.view-settings summary::-webkit-details-marker{display:none}
.view-settings-body{display:grid;gap:6px;position:absolute;bottom:51px;width:168px;padding:8px;border:1px solid #a68a6555;border-radius:8px;background:#1b191de8}
.view-settings-body button,.view-settings-body select{width:100%;font-size:12px;background:#282324}
.view-settings-body label{font-size:12px;margin:0;color:#e8d7ba}
.view-settings-body #orient{position:static;font-size:12px;width:100%;padding:5px;min-height:38px}
.watch-mode .view-settings,.activity-mode .view-settings{display:none}
.onsite-guide{display:flex;align-items:center;gap:11px;margin:8px 0 10px;padding:8px;border-left:2px solid #b99563;background:#ca9b7813;border-radius:3px}
.onsite-guide .guide-avatar{width:42px;height:49px;border-radius:5px;flex:none}
.onsite-guide strong{font-size:12px;color:#f5d7a6}
.onsite-guide p{margin:3px 0 0;font-size:13px}
dialog.onsite{width:min(420px,calc(100% - 28px));border-color:#ae956963;background:#1a181cef}
.dialog-note{color:#ffda9d}
#world3d.recovering::after{content:'正在恢复画面';position:absolute;top:48%;left:50%;transform:translateX(-50%);padding:10px 14px;background:#18151e;color:#eed5b4;border-radius:7px}
@media(max-width:700px){
 .immersive .top{display:grid;grid-template-columns:1fr auto;width:100%;align-items:center;gap:4px 12px;padding:8px 11px;min-height:0}
 .immersive .top nav{grid-column:1/-1;width:auto;justify-self:start;padding:0;gap:1px}
 .immersive .top nav button{min-height:39px;font-size:11px;padding:6px 11px;flex:none}
 .immersive .top .account button{font-size:11px;min-height:38px;padding:5px 8px}
 .immersive .top .brand .seal{width:29px;height:29px}
 .immersive .view-title{top:102px;left:12px}
 .immersive .view-title p{font-size:11px}
 .immersive #travel{top:140px;left:12px}
 .immersive .panel{top:98px;max-height:calc(100% - 126px)}
 .view-settings{left:auto;right:11px;bottom:68px}
 .view-settings-body{right:0}
 .view-settings summary{min-height:39px}
 .immersive .view-commands{bottom:119px}
 .immersive .world-pin{min-height:36px}
 dialog.onsite{width:auto}
}
.photo-preview.captured{background:#161719}
.photo-preview.captured img{display:block;width:100%;object-fit:contain}
