/* Generated by build_assets.py; edit source files and rebuild. */
/* style.css */
:root{--paper:#f5f2e9;--ink:#233b3a;--muted:#69756b;--line:#d9ded0;--orange:#d95e34;--mint:#e2eadc;--accent:#d95e34;--white:#fffdf6;font-family:"PingFang TC","Microsoft JhengHei",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer;color:inherit}button{border:0;background:none}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #1c7772;outline-offset:4px}button:disabled{cursor:default;opacity:.5}button:hover:not(:disabled){filter:brightness(.96)}[hidden]{display:none!important}.skip{position:fixed;top:-100px;left:10px;background:white;z-index:100}.skip:focus{top:10px}.masthead{max-width:1560px;margin:auto;padding:22px 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px;font-size:12px;letter-spacing:.08em}.brand b{display:block;font-size:16px;letter-spacing:.06em}.brand small{font-size:9px;letter-spacing:.18em}.brand-icon{background:var(--ink);color:var(--paper);width:45px;height:45px;border-radius:12px;display:grid;place-items:center;font-size:30px;transform:rotate(-8deg)}nav{display:flex;gap:10px}.masthead nav button{font-size:13px;padding:10px 16px;border:1px solid var(--line);border-radius:24px}#count{display:inline-grid;place-items:center;border-radius:50%;background:var(--orange);color:white;width:21px;height:21px;margin-left:5px;font-size:11px}.masthead nav .quiet{border:0}main{max-width:1560px;margin:auto;padding:0 42px}.intro{display:flex;align-items:center;justify-content:space-between;padding:36px 0 27px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.2em;margin:0 0 12px;color:var(--muted)}h1{font-size:clamp(30px,3.8vw,57px);letter-spacing:-.05em;line-height:1.25;margin:0;font-weight:800}h1 span{color:var(--orange)}.lead{font-size:15px;color:var(--muted);margin:15px 0 0}.intro-note{display:flex;align-items:center;gap:18px;font-size:13px;line-height:1.8}.tiny-mark{font-size:66px;color:var(--orange);font-weight:300}.learning-path{display:flex;align-items:center;gap:22px;font-size:13px;padding:15px 0 19px;border-top:1px solid var(--line)}.learning-path b{font-size:11px;color:var(--orange);margin-right:5px}.learning-path i{color:#8f9e91;font-style:normal}.learning-path button{padding:0}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px;align-items:stretch}.detail{border:1px solid var(--line);background:var(--white);border-radius:22px;padding:27px 25px;position:relative;min-height:580px;max-height:650px;overflow:auto;scrollbar-width:thin;scroll-margin-top:16px;box-shadow:0 6px 20px #203b3a05}.detail .kicker{font-size:10px;letter-spacing:.13em;color:var(--muted);display:flex;align-items:center;gap:8px;margin-bottom:15px}.detail .icon{display:grid;place-items:center;font-size:27px;width:49px;height:49px;border-radius:15px;background:color-mix(in srgb,var(--accent) 16%,white);margin-bottom:15px}.detail h2{font-size:29px;letter-spacing:-.04em;margin:0 0 12px}.detail .tagline{font-size:14px;line-height:1.8;margin:0 0 21px;color:#586a60}.detail h3{font-size:11px;letter-spacing:.1em;margin:20px 0 12px;color:var(--muted)}.course{display:grid;grid-template-columns:1fr auto;gap:3px 8px;margin-bottom:14px}.course b{font-size:14px;line-height:1.5}.course small{font-size:9px;border-radius:4px;background:#eaf0e5;padding:3px 5px;align-self:start;white-space:nowrap;color:#48634c}.course small.elective{background:#f7e8d9;color:#906438}.course p{grid-column:1/-1;font-size:12px;color:var(--muted);line-height:1.6;margin:0}.course-list{padding-left:13px;border-left:2px solid color-mix(in srgb,var(--accent) 35%,white)}.idea{background:var(--paper);padding:13px 15px;border-radius:12px;font-size:12px;line-height:1.8;margin:18px 0}.idea b{font-size:10px;display:block;letter-spacing:.12em;margin-bottom:4px;color:var(--accent)}.primary{background:var(--ink);color:white;border-radius:12px;padding:13px 18px;display:inline-flex;justify-content:center;gap:12px;align-items:center;font-size:13px;font-weight:700;min-height:46px}.detail .primary{width:100%}.text-button{font-size:12px;text-decoration:underline;text-underline-offset:4px;padding:9px 0}.detail .back{font-size:11px;padding:0;margin-bottom:18px;color:var(--muted)}.jobs{font-size:11px;line-height:1.8;color:var(--muted);margin-top:12px}.core-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;line-height:1.8;margin:18px 0}.core-line span{background:var(--mint);padding:4px 8px;border-radius:6px}.map-wrap{border-radius:22px;border:1px solid #d4e0d8;background:#dfece7;overflow:hidden;position:relative;min-width:0;display:flex;flex-direction:column;min-height:580px}.map-top{display:flex;align-items:center;justify-content:space-between;padding:17px 21px;position:absolute;top:0;left:0;right:0;z-index:2;font-size:11px;letter-spacing:.06em;pointer-events:none}.map-top>*{pointer-events:auto}.map-reset{background:#fffdf4ce;border-radius:20px;padding:9px 12px;font-size:11px}.live-dot{display:inline-block;width:6px;height:6px;background:var(--orange);border-radius:50%;margin-right:7px}#map{height:555px;flex:1;position:relative;min-height:450px}#world{width:100%;height:100%;display:block;touch-action:none}#labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.island-label{position:absolute;transform:translate(-50%,0);pointer-events:auto;white-space:nowrap;border-radius:10px;background:#fffdf5f0;padding:8px 12px;font-size:12px;font-weight:700;border:1px solid #ffffff;box-shadow:0 4px 12px #25454014;transition:background .2s}.island-label small{display:block;font-size:9px;font-weight:500;margin-top:3px;color:#6b7a70}.island-label.active{background:var(--ink);color:white;border-color:var(--ink)}.island-label.active small{color:#e1e7d7}.island-label.saved::after{content:'✦';position:absolute;right:-6px;top:-9px;color:var(--orange);background:var(--white);border-radius:50%;font-size:16px;width:22px;height:22px}.island-label.core{border:2px solid #d99049;font-size:14px}.mood{display:flex;align-items:center;justify-content:center;gap:5px;font-size:10px;padding:0 14px;position:relative;z-index:2}.mood>span{margin-right:7px;color:#536b60}.mood button{border-radius:15px;padding:8px 11px;min-height:32px;background:#ffffff55}.mood button[aria-pressed=true]{background:var(--ink);color:white}.map-hint{text-align:center;font-size:10px;letter-spacing:.06em;color:#536b60;margin:10px 0 16px}.island-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:16px 0 0}.island-nav button{font-size:11px;border:1px solid var(--line);padding:8px 10px;border-radius:7px;min-height:36px}.island-nav button[aria-pressed=true]{background:var(--ink);color:white}.highlights{padding:49px 0 36px}.section-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px}.section-title h2{font-size:25px;margin:0;letter-spacing:-.04em}.section-title>p{font-size:12px;color:var(--muted);margin:0}.highlight-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.highlight{text-align:left;border:1px solid var(--line);border-radius:15px;overflow:hidden;background:var(--white);padding:0;transition:transform .2s;display:flex;flex-direction:column}.highlight:hover{transform:translateY(-4px)}.highlight>img{width:100%;height:auto;aspect-ratio:2.45;object-fit:cover;display:block}.highlight-text{display:block;padding:16px}.highlight-text small{font-size:10px;color:var(--orange);letter-spacing:.06em}.highlight-text b{display:block;font-size:14px;margin:8px 0;line-height:1.5}.highlight-text b i{float:right;font-style:normal}.highlight-text>span{font-size:11px;color:var(--muted);line-height:1.7;display:block}.grad-art{aspect-ratio:2.45;background:var(--ink);color:#d9e7bc;display:flex;align-items:center;justify-content:space-evenly;font-size:70px;width:100%;overflow:hidden}.grad-art span{font-size:28px;line-height:.95;letter-spacing:-.04em;font-weight:900}footer{border-top:1px solid var(--line);padding:24px 0 35px;display:flex;justify-content:space-between;align-items:center;font-size:10px;line-height:1.9;color:var(--muted)}footer b{font-size:11px;letter-spacing:.08em;color:var(--ink)}footer p{margin:5px 0}footer button{text-decoration:underline;font-size:10px;padding:0}dialog{border:1px solid var(--line);padding:0;background:var(--white);color:var(--ink);width:min(780px,calc(100% - 28px));max-height:90dvh;border-radius:22px;box-shadow:0 24px 100px #152a3b44}dialog::backdrop{background:#16333388;backdrop-filter:blur(6px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;padding:15px 25px;background:var(--white);position:sticky;top:0;z-index:3;border-bottom:1px solid var(--line);font-size:10px;letter-spacing:.1em}.dialog-top button{font-size:20px;width:36px;height:36px;border-radius:50%;background:var(--paper)}#modalBody{padding:30px}#modalBody h2{font-size:31px;line-height:1.3;letter-spacing:-.03em;margin:6px 0 15px}#modalBody p{font-size:14px;line-height:1.85;color:#607064}.modal-photo{width:100%;border-radius:12px;margin:15px 0;display:block}.source-link{display:inline-block;font-size:12px;text-decoration:underline;text-underline-offset:4px;margin:13px 10px 0 0}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.chips span{font-size:12px;background:var(--mint);padding:8px 12px;border-radius:20px}.production-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:25px 0}.production-steps>div{border-top:2px solid var(--orange);padding-top:12px}.production-steps b{font-size:14px}.production-steps small{font-size:11px;line-height:1.8;display:block;margin-top:7px;color:var(--muted)}.film-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.film-tabs button{border:1px solid var(--line);padding:9px 15px;border-radius:18px;font-size:12px}.film-tabs button[aria-selected=true]{background:var(--ink);color:white}.video-slot{aspect-ratio:16/9;background:#213934;color:white;display:grid;place-items:center;border-radius:12px;overflow:hidden}.video-slot button{color:white;text-align:center;width:100%;height:100%;background:radial-gradient(ellipse at top right,#536756,transparent)}.video-slot .play{display:block;font-size:45px;color:#e5b76d;margin-bottom:16px}.video-slot b{font-size:23px;display:block}.video-slot small{display:block;font-size:11px;margin-top:12px;color:#e1e9df}.video-slot iframe{width:100%;height:100%;border:0}.passport{border:1px solid var(--ink);border-radius:15px;background:var(--paper);padding:25px;position:relative;overflow:hidden}.passport::before{content:'';position:absolute;left:0;right:0;top:0;height:8px;background:repeating-linear-gradient(90deg,var(--ink) 0 12px,transparent 12px 20px)}.passport .big{font-size:35px;font-weight:800;line-height:1.3;margin:15px 0}.saved-item{border-top:1px dashed #bdcabc;padding:13px 0;font-size:14px}.saved-item small{display:block;font-size:11px;color:var(--muted);line-height:1.8;margin-top:5px}.passport-actions{display:flex;gap:14px;margin-top:20px;flex-wrap:wrap}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,12px);background:var(--ink);color:white;border-radius:30px;padding:13px 24px;font-size:13px;opacity:0;pointer-events:none;transition:.2s;z-index:15;max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}#mapFallback{padding:120px 30px;text-align:center;font-size:14px;line-height:1.8}.no-script{padding:30px}.equipment-note{background:var(--mint);border-radius:12px;padding:15px;font-size:13px;line-height:1.8}
@media(min-width:1600px){#map{height:600px}}
@media(max-width:1100px){.workspace{grid-template-columns:300px 1fr}.detail{padding:22px 20px}.highlight-grid{grid-template-columns:repeat(2,1fr)}.intro-note{display:none}main{padding:0 26px}.masthead{padding:18px 26px}.section-title>p{display:none}.island-label{font-size:11px;padding:7px 9px}}
@media(max-width:760px){.masthead{padding:15px 18px}.brand-icon{width:34px;height:34px;font-size:23px}.brand{font-size:10px;gap:9px}.brand b{font-size:12px}.brand small{font-size:8px}.masthead nav button{padding:9px 10px;font-size:11px}.masthead nav .quiet{display:none}main{padding:0 16px}.intro{padding:25px 2px 22px}h1{font-size:33px}.lead{font-size:12px;line-height:1.8;margin-top:10px}.eyebrow{font-size:9px}.learning-path{gap:8px;font-size:10px;justify-content:space-between;padding:13px 0}.learning-path b{font-size:9px;margin-right:2px}.learning-path button{font-size:10px}.workspace{display:flex;flex-direction:column;gap:16px}.map-wrap{order:0;min-height:520px;border-radius:17px}.detail{order:1;max-height:none;min-height:0;padding:25px;border-radius:17px}.detail h2{font-size:28px}.detail .icon{float:right;margin:0}.detail .tagline{margin-bottom:20px}.detail .kicker{margin-bottom:12px}#map{height:455px;min-height:455px;flex:none}.map-top{padding:12px 14px;font-size:10px}.map-reset{font-size:10px}.island-label{padding:7px 8px;font-size:11px;border-radius:8px}.island-label small{font-size:8px}.island-label.core{font-size:12px}.mood{gap:5px;font-size:9px}.mood button{font-size:10px;padding:8px 9px}.map-hint{font-size:9px}.island-nav{gap:5px;margin-top:15px}.island-nav button{font-size:10px;padding:8px}.highlights{padding-top:34px}.section-title h2{font-size:23px}.highlight-grid{gap:10px}.highlight-text{padding:12px}.highlight-text b{font-size:12px}.highlight-text>span{font-size:10px}.highlight-text small{font-size:9px}.grad-art{font-size:46px}.grad-art span{font-size:20px}footer{display:block;font-size:9px}footer>p{margin-top:16px}#modalBody{padding:22px}#modalBody h2{font-size:27px}.production-steps{gap:8px}.production-steps b{font-size:12px}.production-steps small{font-size:10px}.dialog-top{padding:11px 20px}.passport{padding:20px}.passport .big{font-size:28px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* play.css */
:root{--ink:#29273e;--paper:#fff9e9;--muted:#686078;--orange:#e25a3d;--line:#e8ddcb}html,body{width:100%;height:100%;overflow:hidden}body{background:linear-gradient(#7db9e6,#c5e3ef 50%,#efc8d8);color:var(--ink)}#map{position:fixed;inset:0;height:100%;min-height:0}#world{height:100%;width:100%}#labels{z-index:2}.game-top{position:fixed;left:18px;right:18px;top:16px;z-index:12;display:flex;justify-content:space-between;align-items:start;gap:12px;pointer-events:none}.game-top>*{pointer-events:auto}.logo-brand{display:flex;gap:15px;align-items:center;background:#2c293a;padding:12px 18px;border-radius:17px;color:#fff9e9;box-shadow:0 6px 0 #00000016}.logo-brand img{width:142px;height:auto}.logo-brand>span{font-size:22px;font-weight:900;border-left:1px solid #ffffff33;padding-left:14px}.logo-brand small{font-size:8px;letter-spacing:.19em;display:block;margin-top:4px}.top-tools{display:flex;gap:7px}.top-tools button{min-height:44px;background:var(--paper);border:2px solid #fff;border-radius:13px;padding:10px 13px;box-shadow:0 4px 0 #00000012;font-size:13px;font-weight:700}.player-hud{position:fixed;left:18px;top:112px;z-index:8;display:flex;align-items:center;background:#fff9e9ed;border:3px solid white;border-radius:20px;box-shadow:0 8px 24px #33264c18;width:275px;padding:8px;gap:12px;pointer-events:auto}.portrait-wrap{width:98px;height:132px;position:relative;background:linear-gradient(#b7d6f0,#e3e9db);border-radius:14px;flex:none;overflow:hidden}#portrait{display:block;width:100%;height:100%}#levelBadge{position:absolute;bottom:4px;left:5px;right:5px;border-radius:10px;background:#302c40;color:#fff;font-size:10px;text-align:center;padding:3px}.player-info{min-width:0}.player-info>small{font-size:8px;letter-spacing:.1em;color:#887b8d}.player-info>b{font-size:19px;display:block;margin:5px 0 11px}.xp-track{height:8px;background:#e5dccf;border-radius:9px;overflow:hidden}#xpBar{height:100%;background:linear-gradient(90deg,#e76e40,#ffcb56);width:0;transition:width .5s}#xpText{display:block;font-size:10px;line-height:1.5;margin-top:6px}#lookBtn{font-size:10px;border:1px solid #d8cbb9;border-radius:8px;padding:4px 8px;margin-top:7px}.quest-banner{position:fixed;top:108px;left:50%;transform:translateX(-50%);z-index:6;text-align:center;max-width:440px;width:max-content;background:#fff9e9e6;border:2px solid #fff;border-radius:15px;padding:12px 22px;box-shadow:0 5px 0 #4d375315;pointer-events:none}.quest-banner>span{display:block;font-size:9px;letter-spacing:.12em;color:#9c6935}.quest-banner>b{font-size:12px;display:block;margin-top:5px}#questDots{display:flex;justify-content:center;gap:7px;margin-top:7px}#questDots i{width:6px;height:6px;background:#d7cdbd;border-radius:50%}#questDots i.done{background:#e27140}.view-tools{position:fixed;right:17px;bottom:150px;z-index:8;display:grid;gap:7px}.view-tools button{background:#fff9e9;border:2px solid white;box-shadow:0 3px 0 #0001;border-radius:12px;width:43px;height:43px;font-size:22px}.mission{position:fixed;right:18px;top:100px;bottom:152px;width:340px;z-index:10;overflow:auto;border:3px solid #fff;border-radius:22px;background:#fff9eef5;padding:26px 22px;box-shadow:0 15px 50px #34275130;scrollbar-width:thin}.close-mission{position:absolute;right:10px;top:10px;background:#e9e3da;border-radius:50%;width:30px;height:30px;font-size:15px;z-index:2}.mission .eyebrow{font-size:9px;color:#ad633e;margin-bottom:10px;letter-spacing:.1em}.mission h2{font-size:24px;margin:0 25px 9px 0;line-height:1.4;letter-spacing:-.03em}.mission .brief{font-size:12px;line-height:1.8;color:#6b6370;margin:8px 0 14px}.mission h3{font-size:13px;margin:15px 0 9px;line-height:1.6}.mission .options{display:grid;gap:7px}.mission .option{padding:11px 13px;min-height:43px;text-align:left;border-radius:11px;border:1.5px solid #dacfbf;background:#fffefa;font-size:12px;line-height:1.6}.mission .option[aria-pressed=true]{border-color:#e77c45;background:#fff0c8;box-shadow:inset 3px 0 #e77c45}.mission .feedback{font-size:12px;line-height:1.8;background:#e8efdf;border-radius:12px;padding:12px;margin:12px 0;color:#40563c}.mission .reward-hint{font-size:11px;color:#886537;background:#fff0c6;border:1px dashed #d8ae64;border-radius:10px;padding:9px;margin:14px 0}.mission .primary{width:100%;background:#e2633d;color:white;border-bottom:4px solid #b34529;border-radius:12px;font-size:13px}.mission .course-list{margin-top:15px;padding-left:10px;border-left:2px solid #dfad72}.mission .course{margin-bottom:9px}.mission .course b{font-size:11px}.mission .course small{font-size:8px}.mission .course p{font-size:10px}.mission details{margin-top:15px}.mission summary{font-size:11px;cursor:pointer;font-weight:700}.mission .next-island{width:100%;border:1px solid #d8cbb9;border-radius:10px;margin-top:10px;padding:11px;font-size:12px}.game-bottom{position:fixed;bottom:14px;left:18px;right:18px;z-index:9;border:3px solid white;border-radius:18px;padding:8px 12px;background:#fff9e9ed;display:block;box-shadow:0 5px 24px #44325022;margin:0;color:var(--ink)}.dock-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;font-size:10px}.dock-title button{font-size:10px;font-weight:700;text-decoration:none;border-radius:8px;background:#eee5d4;padding:5px 9px}.game-bottom #islandNav{display:flex;gap:6px;justify-content:center;overflow-x:auto;scrollbar-width:none}.game-bottom #islandNav button{flex:1;min-width:76px;padding:7px 8px;border:1px solid #dfd3c2;border-radius:11px;font-size:11px;background:#fffef6;white-space:nowrap;min-height:42px}.game-bottom #islandNav button b{font-size:17px;margin-right:3px}.game-bottom #islandNav button[aria-pressed=true]{background:#302b40;color:white;border-color:#302b40}.game-bottom #islandNav button.done{box-shadow:inset 0 -3px #e2ad49}.attractions{display:flex;justify-content:center;gap:20px;padding-top:6px}.attractions button{font-size:10px;padding:4px;text-decoration:none}.island-label{border:2px solid white;border-bottom:4px solid #e3d4bc;border-radius:11px;color:#393148;background:#fff9e9f5;padding:7px 12px;font-size:12px;box-shadow:0 4px 15px #32253b20}.island-label.active{background:#fff2c9;color:#29273e;border-color:#f0aa4e;transform:translate(-50%,0) scale(1.06)}.island-label.active small{color:#8c6534}.island-label small{font-size:9px}.island-label.saved::after{content:'✓';background:#83b66b;color:white;font-size:13px;line-height:22px}.island-label.core{font-size:14px}.welcome{position:fixed;inset:0;display:grid;place-items:center;z-index:40;background:#51476f55;backdrop-filter:blur(4px);padding:20px}.welcome-card{width:min(450px,100%);background:#fff9e9;border:5px solid white;border-radius:30px;padding:30px;text-align:center;box-shadow:0 22px 0 #44344924,0 35px 90px #342b4c50;transform:rotate(-1deg)}.welcome-card>img{width:160px;background:#2d293a;padding:9px 15px;border-radius:12px}.welcome-card>p:first-of-type{font-size:10px;letter-spacing:.2em;color:#86674e;margin:20px 0 10px}.welcome h1{font-size:49px;line-height:1.15;color:#302b40;letter-spacing:-.05em}.welcome h1 span{color:#e5643e}.welcome-steps{display:flex;justify-content:center;gap:8px;align-items:center;margin:22px 0;font-size:13px;font-weight:700}.welcome-steps i{font-style:normal;color:#9c8e7d}.welcome-note{font-size:13px;line-height:1.9;color:#6e6571}.welcome .primary{background:#e5643e;border-bottom:5px solid #b84e2d;width:100%;padding:16px}.welcome-card>small{display:block;font-size:10px;color:#9b8a79;margin-top:14px}.reward{position:fixed;left:50%;top:48%;transform:translate(-50%,-50%) rotate(-2deg);width:min(360px,88vw);z-index:35;border:5px solid #fff5d2;border-radius:25px;background:#fff6d9;box-shadow:0 0 0 7px #ffc56466,0 20px 80px #4a275d66;padding:25px;text-align:center;animation:reward-in .35s ease-out}.reward>#rewardIcon{font-size:65px;line-height:1.4}.reward>b{display:block;font-size:24px}.reward>span{display:block;font-size:12px;margin-top:10px;color:#78593c}.reward>button{background:#302b40;color:#fff7df;border-radius:12px;padding:12px 15px;font-size:12px;margin-top:20px;width:100%}@keyframes reward-in{from{opacity:0;transform:translate(-50%,-50%) scale(.5) rotate(-12deg)}to{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(-2deg)}}#heroTag{position:absolute;pointer-events:none;z-index:4;transform:translate(-50%,-100%);font-size:10px;font-weight:800;background:#ffce5c;border:2px solid white;padding:4px 8px;border-radius:8px;white-space:nowrap}#toast{bottom:155px;z-index:45;background:#302b40}dialog{z-index:50}.gear-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.gear-item{border:2px solid #e7dccc;border-radius:15px;padding:15px;background:#f4efdf;display:block;text-align:left}.gear-item.locked{filter:grayscale(1);opacity:.6}.gear-item b{display:block;font-size:13px;margin:6px 0}.gear-item span{font-size:30px}.gear-item small{font-size:10px;line-height:1.5;display:block;color:#7f7180}.gear-item[aria-pressed=true]{border-color:#eb9a42;background:#fff0c7}.stats{display:flex;gap:10px;margin-bottom:20px}.stats div{flex:1;text-align:center;background:#eee5d3;border-radius:12px;padding:14px}.stats b{display:block;font-size:24px}.stats small{font-size:10px}.film-strip{display:flex;gap:5px;margin:10px 0}.film-strip span{background:#302b40;color:#fff;padding:15px 5px;border-top:4px dashed #dbc78f;border-bottom:4px dashed #dbc78f;border-radius:4px;flex:1;text-align:center;font-size:12px}.game-top .logo-brand img{object-fit:contain}#mapFallback{position:absolute;top:25%;left:30%;right:25%;background:#fff9e9;padding:20px;border-radius:15px}
@media(max-width:1050px){.quest-banner{top:100px;left:48%;max-width:310px;padding:10px}.player-hud{width:220px;gap:8px}.portrait-wrap{width:78px;height:110px}.player-info>b{font-size:16px}.mission{width:305px}.game-bottom #islandNav button{font-size:10px;min-width:74px}.logo-brand>span{font-size:18px}.logo-brand img{width:120px}}
@media(max-width:760px){.game-top{left:9px;right:9px;top:max(8px,env(safe-area-inset-top));gap:5px}.logo-brand{padding:9px 11px;border-radius:13px;gap:0}.logo-brand img{width:111px}.logo-brand>span{display:none}.top-tools{gap:4px}.top-tools button{padding:7px 9px;font-size:17px;min-height:39px;border-radius:11px}.top-tools button span{display:none}.player-hud{top:75px;left:9px;padding:5px;width:173px;border-width:2px;border-radius:14px;gap:7px}.portrait-wrap{width:62px;height:87px;border-radius:10px}.player-info>b{font-size:13px;margin:3px 0 6px}.player-info>small{font-size:6px}.xp-track{height:5px}#xpText{font-size:8px}#lookBtn{font-size:8px;padding:3px 5px;margin-top:4px}#levelBadge{font-size:8px;bottom:2px;padding:2px}.quest-banner{left:auto;right:9px;top:79px;transform:none;width:calc(100% - 202px);max-width:220px;padding:9px 7px;border-radius:12px}.quest-banner>span{font-size:8px}.quest-banner>b{font-size:10px;line-height:1.6}.view-tools{right:9px;bottom:160px;gap:5px}.view-tools button{width:34px;height:34px;font-size:19px}.mission{left:9px;right:9px;top:auto;bottom:145px;width:auto;max-height:47dvh;border-radius:20px;padding:20px 18px;z-index:11}.mission h2{font-size:21px}.mission .brief{font-size:11px}.mission .options{gap:5px}.mission .option{padding:9px 12px;min-height:42px}.mission .feedback{font-size:11px;padding:10px}.game-bottom{left:7px;right:7px;bottom:max(7px,env(safe-area-inset-bottom));padding:7px;border-radius:15px;border-width:2px}.dock-title{font-size:8px;margin-bottom:6px}.dock-title button{font-size:9px;padding:4px 7px}.game-bottom #islandNav{justify-content:start;gap:5px}.game-bottom #islandNav button{flex:none;min-width:65px;font-size:9px;padding:6px;min-height:42px}.game-bottom #islandNav button b{display:block;font-size:17px;line-height:1.2}.attractions{gap:3px;justify-content:space-between;padding-top:6px}.attractions button{font-size:8px;padding:3px 1px}.island-label{padding:5px 7px;font-size:10px;border-bottom-width:3px}.island-label small{font-size:7px}.island-label.core{font-size:11px}.welcome-card{padding:25px 20px}.welcome h1{font-size:43px}.welcome-note{font-size:12px}.welcome-steps{font-size:12px}.reward{top:43%}.reward>b{font-size:22px}.gear-grid{gap:8px}.gear-item{padding:12px}#mapFallback{left:15%;right:15%;top:30%}#heroTag{font-size:8px;padding:3px 5px}}
@media(prefers-reduced-motion:reduce){.reward{animation:none}}

.game-bottom button{text-decoration:none}.game-bottom #islandNav button{font-weight:700}

/* festival.css */
/* The real school becomes part of the playable world. */
.hall-launch{position:fixed;right:18px;top:79px;z-index:9;background:#30263f;color:#ffdc89;border:2px solid #f3bd58;border-radius:13px;padding:9px 15px;font-size:17px;box-shadow:0 5px 18px #24203033}.hall-launch span{font-size:13px;font-weight:800}.hall-launch small{display:block;font-size:8px;letter-spacing:.12em;margin-top:3px}.hall-launch.unlocked{animation:hall-glow 2.4s ease-in-out infinite}@keyframes hall-glow{50%{box-shadow:0 0 22px #ffb63b88}}.mission{top:139px}.top-tools{max-width:58vw;flex-wrap:wrap;justify-content:end}.top-tools button{font-size:12px;padding:10px}.mission-media{display:flex;gap:10px;width:100%;background:#302b40;color:#fff6dd;border-radius:12px;overflow:hidden;padding:0;margin:13px 0;text-align:left;min-height:86px}.mission-media>img{width:115px;object-fit:cover;aspect-ratio:4/3}.mission-media>span{padding:10px 8px 9px 0;min-width:0;align-self:center}.mission-media small{font-size:8px;letter-spacing:.07em;color:#f0bc6b;display:block}.mission-media b{display:block;font-size:11px;line-height:1.5;margin:4px 0}.mission-media i{font-size:9px;font-style:normal;color:#e3d5be}#encounter{position:fixed;left:18px;bottom:164px;width:262px;z-index:7;border:3px solid white;border-radius:18px;background:#fff9e9;box-shadow:0 12px 35px #35233c35;animation:discovery-in .4s ease-out;overflow:hidden}.encounter-close{position:absolute;right:6px;top:5px;z-index:2;border-radius:50%;background:#302b40;color:white;width:25px;height:25px;font-size:12px}.encounter-open{display:block;width:100%;padding:0 0 14px;text-align:left}.encounter-tag{display:block;font-size:9px;font-weight:800;padding:12px 13px;color:#a66332;letter-spacing:.06em}.encounter-image{position:relative}.encounter-image>img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.encounter-image>i{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;background:#222b40cc;color:#fff;font-size:20px;font-style:normal;display:grid;place-items:center;width:43px;height:43px;border:2px solid #fff7d9}.encounter-open>b{display:block;font-size:14px;line-height:1.5;padding:12px 14px 5px}.encounter-open>span:not(.encounter-tag){display:block;font-size:11px;line-height:1.7;color:#706574;padding:0 14px}.encounter-open>small{display:block;font-size:10px;color:#b06439;padding:9px 14px 0}@keyframes discovery-in{from{transform:translateY(25px) rotate(-4deg);opacity:0}to{transform:none;opacity:1}}.reward{max-height:85dvh;overflow:auto;top:50%}#rewardDiscovery>button{display:flex;text-align:left;gap:10px;background:#302b40;color:#fff4dc;width:100%;border-radius:12px;padding:0;overflow:hidden;margin-top:18px}#rewardDiscovery img{width:96px;object-fit:cover}#rewardDiscovery span{font-size:9px;padding:10px 9px 10px 0;line-height:1.5}#rewardDiscovery b{display:block;font-size:11px;margin:4px 0}#rewardDiscovery small{font-size:8px;color:#ffce83}
#modal.library-mode{width:min(1120px,calc(100% - 24px));background:#faf7ed}#modal.library-mode #modalBody{padding:27px 30px}.library-mode h2{font-size:32px!important}.library-intro{font-size:13px!important}.library-filters,.country-filters{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.library-filters button{padding:10px 15px;background:#e9e3d6;border:1px solid #ded4bf;border-radius:10px;font-size:12px;font-weight:700}.library-filters button[aria-pressed=true]{background:#302b40;border-color:#302b40;color:#ffdd94}.library-filters small{font-size:9px;opacity:.7;margin-left:4px}.country-filters button{font-size:11px;border-bottom:2px solid transparent;padding:7px 12px}.country-filters button[aria-pressed=true]{border-color:#d77a42;color:#ac572a;font-weight:bold}.shelf-count{font-size:10px!important;color:#8b7b66!important;margin:16px 0!important}.film-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px}.film-tile{padding:0;text-align:left;display:block;background:#fffdf5;border:1px solid #e1d8c8;border-radius:12px;overflow:hidden;box-shadow:0 3px 0 #302b4008;transition:transform .18s}.film-tile:hover{transform:translateY(-4px)}.thumb-wrap{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;background:#282638}.thumb-wrap img{width:100%;height:100%;display:block;object-fit:cover}.thumb-wrap i{font-style:normal;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:40px;height:40px;border-radius:50%;background:#1719249e;border:2px solid #fff5d4;display:grid;place-items:center;color:white;font-size:16px}.thumb-wrap small{position:absolute;left:8px;bottom:8px;padding:4px 8px;border-radius:5px;font-size:9px;background:#262438dd;color:#ffda88}.film-tile>b{display:block;padding:12px 13px 5px;font-size:14px;line-height:1.5}.film-tile>span:not(.thumb-wrap){display:block;padding:0 13px 14px;font-size:10px;line-height:1.6;color:#8b7b6b}.library-note{font-size:11px!important}.player-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#302b40;padding:15px 18px;color:white;border-radius:13px 13px 0 0}.player-heading h3{font-size:18px;margin:4px 0}.player-heading small{font-size:9px;color:#eac486}.player-heading button{color:#fff8e7;font-size:11px;white-space:nowrap}.library-mode .video-slot{border-radius:0 0 13px 13px}.playback-fallback{font-size:11px!important;line-height:1.8!important}.playback-fallback a{text-decoration:underline}.cinema-mode .dialog-top{background:#171624;color:#eee0bb;border-color:#6c553e}.cinema-mode .dialog-top button{background:#403548;color:#fff}.cinema-mode{width:100vw!important;height:100dvh;max-height:100dvh;max-width:100vw;border:0;border-radius:0;background:radial-gradient(ellipse at 50% 35%,#514052,#1b1724 65%)!important;color:#fff2d2!important}.cinema-mode #modalBody{padding:0 20px 35px}.cinema-marquee{text-align:center;padding:18px 10px}.cinema-marquee>img{width:130px;display:block;margin:0 auto 9px}.cinema-marquee>small{font-size:9px;letter-spacing:.25em;color:#d8b779}.cinema-marquee h2{font-size:28px!important;margin:7px 0!important;letter-spacing:.15em!important}.cinema-marquee p{font-size:11px!important;color:#cfbfc5!important;margin:5px 0!important}.theatre-stage{position:relative;max-width:1030px;margin:auto;padding:12px 30px 20px;background:#342637;border-radius:14px 14px 0 0;border-top:7px solid #ce9c4a;box-shadow:0 0 60px #edcd7020}.theatre-screen{position:relative;aspect-ratio:16/9;background:#0d1018;border:5px solid #0d1018;box-shadow:0 0 35px #e6c98b20;z-index:2}.theatre-screen button{display:block;width:100%;height:100%;position:relative;padding:0;overflow:hidden;color:white}.theatre-screen button>img{width:100%;height:100%;object-fit:cover;filter:brightness(.55)}.theatre-screen button>span{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:15px;text-shadow:0 2px 10px #000}.theatre-screen i{font-size:45px;font-style:normal;margin-bottom:14px;color:#ffe2a0}.theatre-screen b{font-size:23px}.theatre-screen small{font-size:12px;margin-top:12px}.theatre-screen iframe{width:100%;height:100%;border:0}.curtain{position:absolute;width:32px;top:0;bottom:0;background:repeating-linear-gradient(90deg,#7b2a3e 0,#4f2034 12px,#8d3249 22px);z-index:3;pointer-events:none;transition:width 1s}.curtain.left{left:0}.curtain.right{right:0}.showtime .curtain{width:10px}.stage-edge{position:absolute;left:-12px;right:-12px;bottom:-12px;height:15px;border-radius:5px;background:linear-gradient(#be9856,#533b34);box-shadow:0 5px 20px #0009}.cinema-seats{max-width:1100px;margin:27px auto 0;display:grid;grid-template-columns:repeat(12,1fr);gap:7px 11px;perspective:500px;padding:0 12px}.cinema-seats i{height:23px;border-radius:10px 10px 3px 3px;background:linear-gradient(#753f50,#3c2838);border-top:2px solid #9c6971;box-shadow:0 4px 0 #17121e}.cinema-caption{max-width:1000px;margin:22px auto 0;text-align:center;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.cinema-caption>b{width:100%;font-size:15px}.cinema-caption>span{width:100%;font-size:10px;color:#bba8b3;line-height:1.7}.cinema-caption>a,.cinema-caption>button{border:1px solid #655368;border-radius:7px;padding:9px 12px;font-size:11px;color:#f0d5a7}.cinema-caption>button{background:#352b3d}
@media(max-width:760px){.top-tools{max-width:calc(100vw - 160px);gap:3px}.top-tools button{padding:6px 8px;min-height:33px;font-size:15px}.hall-launch{top:154px;right:9px;padding:7px 10px;font-size:15px}.hall-launch small{display:none}.hall-launch span{font-size:10px}.mission{top:auto}.mission-media{min-height:70px;margin:10px 0}.mission-media>img{width:95px}.mission-media b{font-size:10px}.mission-media small{font-size:7px}.mission-media>span{padding:8px 5px 8px 0}#encounter{left:9px;right:9px;bottom:148px;width:auto;z-index:10;border-radius:13px;max-height:112px}.encounter-open{padding:8px 30px 8px 108px;min-height:100px;position:relative}.encounter-tag{font-size:7px;padding:0 0 4px}.encounter-image{position:absolute;left:0;top:0;bottom:0;width:98px}.encounter-image>img{height:100%;aspect-ratio:auto;object-fit:cover}.encounter-image i{width:27px;height:27px;font-size:11px}.encounter-open>b{padding:0;font-size:11px;line-height:1.6}.encounter-open>span:not(.encounter-tag){padding:4px 0 0;font-size:9px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.encounter-open>small{display:none}.mission:not([hidden])~.game-bottom{z-index:9}.reward{padding:20px}.reward>#rewardIcon{font-size:48px}.reward>b{font-size:20px}.reward>span{font-size:11px}#rewardDiscovery img{width:85px}.library-mode #modalBody{padding:20px 14px!important}.library-mode h2{font-size:25px!important}.film-shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 9px}.film-tile>b{padding:9px 9px 4px;font-size:12px}.film-tile>span:not(.thumb-wrap){padding:0 9px 10px;font-size:9px}.thumb-wrap i{width:31px;height:31px;font-size:12px}.thumb-wrap small{font-size:7px;padding:3px 5px;bottom:5px;left:5px}.library-filters{gap:5px}.library-filters button{padding:8px 9px;font-size:10px}.country-filters{gap:4px;margin:10px 0}.country-filters button{font-size:10px;padding:6px 8px}.player-heading{padding:11px}.player-heading h3{font-size:15px}.player-heading button{font-size:10px}.cinema-mode #modalBody{padding:0 10px 24px}.cinema-marquee{padding:23px 0}.cinema-marquee>img{width:120px}.cinema-marquee h2{font-size:26px!important}.cinema-marquee p{font-size:10px!important;padding:0 15px;line-height:1.8!important}.theatre-stage{padding:8px 13px 13px;border-top-width:5px}.curtain{width:16px}.theatre-screen{border-width:3px}.theatre-screen i{font-size:28px;margin-bottom:9px}.theatre-screen b{font-size:17px}.theatre-screen small{font-size:9px;line-height:1.8}.cinema-seats{grid-template-columns:repeat(8,1fr);gap:8px 6px;padding:0}.cinema-seats i{height:20px}.cinema-caption{margin-top:25px}.cinema-caption>b{font-size:13px;line-height:1.8}.cinema-caption>span{font-size:9px;padding:0 20px}.cinema-caption>a,.cinema-caption>button{font-size:10px}.in-cinema .game-bottom{visibility:hidden}}
@media(prefers-reduced-motion:reduce){.hall-launch.unlocked,#encounter{animation:none}.curtain{transition:none}}
.career-inline{font-size:10px;color:#76647d;line-height:1.7;margin:-4px 0 12px}.career-inline button{display:block;text-decoration:underline;text-underline-offset:3px;font-size:9px;color:#a05e39;padding:4px 0}.career-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:25px 0}.career-list article{background:#eee6d7;padding:18px;border-radius:12px}.career-list b{font-size:16px}.career-list p{font-size:12px!important;margin:7px 0 0!important}.hall-label{border-color:#f2c259;background:#32263c;color:#ffe2a6}.hall-label small{color:#e8c78d}
@media(max-width:760px){.career-list{grid-template-columns:1fr}.hall-label{font-size:9px}.hall-label small{font-size:7px}.game-top .top-tools{max-width:220px}.player-hud{top:87px}.quest-banner{top:88px}.hall-launch{top:173px}.mission{bottom:145px}.encounter-open{font-size:10px}}
/* Equipment fitting room and a standalone pre-screening inspiration house. */
#modal.gear-mode{width:min(940px,calc(100% - 24px))}.bag-layout{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(0,1.15fr);gap:24px;align-items:start}.bag-look{position:sticky;top:78px;background:#e7ede3;border:2px solid white;border-radius:22px;overflow:hidden;box-shadow:0 6px 0 #d5ddce}.bag-portrait-stage{width:100%;height:350px;background:radial-gradient(ellipse at 50% 75%,#edf4cf,#c4e2e9 80%);position:relative}.bag-portrait-stage::after{content:'';position:absolute;bottom:15px;left:25%;right:25%;height:16px;background:#7e9c9d44;border-radius:50%;pointer-events:none}.bag-portrait-stage #portrait{width:100%;height:100%;touch-action:none;cursor:grab}.bag-turn{display:flex;align-items:center;justify-content:space-around;padding:10px;font-size:12px}.bag-turn button{background:#fff7df;width:42px;height:36px;border-radius:12px;font-size:23px;border:1px solid #c9d4c2}.bag-look #wearStatus{font-size:10px;margin:0 0 13px;text-align:center;color:#4a615c}.gear-mode .gear-grid{gap:10px}.gear-mode .gear-item{min-height:130px}.timehouse-launch{position:fixed;right:153px;top:79px;z-index:9;border:2px solid #b5e7d4;border-radius:13px;background:#283c4a;color:#def6df;padding:9px 15px;font-size:17px;box-shadow:0 5px 18px #24203033}.timehouse-launch span{font-size:13px;font-weight:800}.timehouse-launch small{display:block;font-size:8px;letter-spacing:.1em;margin-top:3px}.timehouse-label{background:#e2fff1;border-color:#72af9f;color:#244a4a}.timehouse-label small{color:#56877a}#modal.timehouse-mode{width:min(1040px,calc(100% - 24px));background:linear-gradient(140deg,#f8faea,#e6f1e9)}.timehouse-mode h2{color:#274c50}.timehouse-route{display:flex;align-items:center;gap:15px;background:#dce9dd;border-radius:12px;padding:14px;font-size:12px;margin:20px 0}.timehouse-route i{font-style:normal;color:#64988f}.timehouse-picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:22px 0}.timehouse-picks .film-tile[aria-pressed=true]{outline:3px solid #518c80}.timehouse-actions{display:flex;gap:12px;flex-wrap:wrap}.timehouse-actions .primary{background:#345b5a;font-size:12px}.timehouse-actions .primary:last-child{background:#3d2c47;color:#f2d699}.timehouse-mode .library-note{font-size:10px!important}.timehouse-mode .video-slot{border-radius:0 0 13px 13px}.timehouse-mode .player-heading{background:#345b5a}
@media(max-width:760px){#modal.gear-mode #modalBody{padding:18px 14px}.bag-layout{display:block}.bag-look{top:62px;z-index:2;margin-bottom:18px;border-radius:17px}.bag-portrait-stage{height:205px}.bag-turn{padding:5px}.bag-turn button{width:40px;height:30px;font-size:20px}.bag-look #wearStatus{font-size:9px;margin-bottom:7px}.gear-mode .gear-item{min-height:120px}.gear-mode h2{font-size:24px!important}.gear-mode #modalBody>p{font-size:12px!important}.timehouse-launch{right:9px;top:215px;padding:8px 10px;font-size:14px}.timehouse-launch span{font-size:10px}.timehouse-launch small{display:none}.timehouse-picks{grid-template-columns:1fr;gap:12px;margin:18px 0}.timehouse-picks .film-tile{display:grid;grid-template-columns:44% 1fr;grid-template-rows:auto auto;align-items:start}.timehouse-picks .thumb-wrap{grid-row:1/3;align-self:stretch;aspect-ratio:auto;min-height:112px}.timehouse-picks .film-tile>b{padding:13px 12px 4px;font-size:14px}.timehouse-picks .film-tile>span:not(.thumb-wrap){padding:0 12px 12px;font-size:10px}.timehouse-route{font-size:10px;gap:8px;padding:10px;line-height:1.8}.timehouse-actions{gap:8px}.timehouse-actions .primary{width:100%;font-size:12px}.timehouse-mode #modalBody{padding:22px 16px}.timehouse-mode h2{font-size:25px!important}.timehouse-mode #modalBody>p{font-size:12px!important}.timehouse-label{font-size:9px}.timehouse-label small{font-size:7px}}
.course-summary{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0 15px}.course-summary span{font-size:10px;line-height:1.7;border:1px solid #dfcfb7;border-radius:7px;background:#f8edda;color:#775639;padding:4px 6px}.mission .option .choice-course{display:block;font-size:10px;font-weight:700;color:#956333;margin-bottom:4px;line-height:1.65}.mission .option .choice-action{display:block;font-size:12px;line-height:1.7}.mission-course-block{margin-top:20px;padding-top:8px;border-top:1px dashed #d8c4a4}.mission-course-block h3{font-size:13px}.mission .mission-course-block .course b{font-size:12px;line-height:1.8}.mission .mission-course-block .course p{font-size:11px;line-height:1.8}.mission .mission-course-block .course{margin-bottom:14px}.mission .mission-course-block .course small{font-size:9px}.mission .mission-course-block .course-list{border-left:3px solid #d6a970;padding-left:10px}
@media(max-width:760px){.course-summary span{font-size:9px}.mission .option .choice-course{font-size:10px}.mission .option{min-height:61px}}
.timehouse-label.ready{background:#d9fff0!important;color:#155247!important;border-color:#63eeb9!important;box-shadow:0 0 0 3px #a0ffe894,0 0 24px #6fffdab0;animation:timehouse-beacon 2.4s ease-in-out infinite}.timehouse-label.ready small{color:#26715c}.timehouse-label.visited{border-color:#83b4a3}.timehouse-launch.unlocked{box-shadow:0 0 0 3px #92ffe533,0 0 24px #61ffcd99;animation:timehouse-beacon 2.4s ease-in-out infinite}@keyframes timehouse-beacon{50%{box-shadow:0 0 0 5px #a0ffe844,0 0 32px #6fffdacc}}.journey-path{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:22px 0;padding:14px;background:#e8eddf;border-radius:12px;font-size:12px}.journey-path i{font-style:normal;color:#839483}.logo-brand{cursor:pointer}
@media(prefers-reduced-motion:reduce){.timehouse-label.ready,.timehouse-launch.unlocked{animation:none}}

/* responsive.css */
/* Defaults preserve the desktop layout. */
.sheet-bar{display:contents}#sheetTitle,#expandMission,#moreTools,#compactPassport,#compactFestival{display:none}#utilityMenu{display:contents}
@media (max-width:1100px), (pointer:coarse) and (max-width:1400px){
 :root{--touch:44px;--safe-bottom:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px)}
 .game-top{top:calc(8px + var(--safe-top));left:10px;right:10px;gap:8px;align-items:center;z-index:14}
 .logo-brand{padding:8px 12px;border-radius:12px;min-height:48px;gap:0}.logo-brand>span{display:none}.logo-brand img{width:112px!important;height:auto}
 .top-tools{display:flex;flex-wrap:nowrap;max-width:none;gap:6px;position:relative;align-items:center}
 .top-tools>#bagBtn,.top-tools>#restartBtn,.top-tools>#moreTools{display:block;min-width:44px;min-height:44px;padding:8px 11px;font-size:19px;border-radius:12px;order:initial}
 .top-tools>#bagBtn span,.top-tools>#restartBtn span,.top-tools>#moreTools span{display:none}
 #utilityMenu{display:none;position:absolute;right:0;top:54px;width:268px;max-height:calc(100dvh - 86px - var(--safe-top));overflow:auto;overscroll-behavior:contain;padding:10px;background:#fff9ed;border:2px solid white;border-radius:16px;box-shadow:0 12px 36px #2c25494a;z-index:20;gap:7px;grid-template-columns:1fr 1fr}
 .tools-open #utilityMenu{display:grid}.top-tools #utilityMenu>button{display:block;position:static;inset:auto;min-height:46px;min-width:0;padding:9px 8px;width:100%;background:#eee7d7;color:#302b40;border:1px solid #ddd0b9;border-radius:10px;font-size:12px;box-shadow:none;white-space:normal;line-height:1.6;animation:none}
 .top-tools #utilityMenu>button span{display:inline;font-size:12px}.top-tools #utilityMenu>button small{display:none}#compactPassport,#compactFestival{display:block}
 .player-hud{left:10px;top:calc(68px + var(--safe-top));width:176px;height:74px;gap:8px;padding:5px 7px;border:2px solid white;border-radius:14px;box-shadow:0 4px 14px #33264c15}
 .portrait-wrap{width:46px;height:60px;border-radius:9px;flex:none}.player-info{flex:1;min-width:0}.player-info>small,#lookBtn{display:none}.player-info>b{font-size:13px;line-height:1.3;margin:0 0 6px;white-space:nowrap}.xp-track{height:5px}#xpText{font-size:9px;line-height:1.5;margin-top:5px}#levelBadge{font-size:7px;padding:2px;bottom:2px;left:3px;right:3px}
 .quest-banner{left:auto;right:10px;top:calc(70px + var(--safe-top));width:min(300px,calc(100% - 208px));max-width:none;transform:none;padding:8px 10px;border-radius:12px;min-height:55px;box-shadow:0 3px 0 #4d375310}
 .quest-banner>span{font-size:8px;letter-spacing:.04em}.quest-banner>b{font-size:10px;line-height:1.5;margin-top:4px}#questDots{gap:5px;margin-top:5px}#questDots i{width:5px;height:5px}
 .game-bottom{left:8px;right:8px;bottom:calc(6px + var(--safe-bottom));border-radius:15px;padding:7px;border:2px solid white;display:block;height:70px;box-shadow:0 4px 18px #44325015;z-index:9;transition:none}
 .game-bottom .dock-title,.game-bottom .attractions{display:none}.game-bottom #islandNav{justify-content:flex-start;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;height:100%;align-items:stretch;padding-bottom:0}
 .game-bottom #islandNav button{flex:0 0 auto;min-width:76px;min-height:50px;padding:5px 9px;font-size:11px;border-radius:10px;white-space:nowrap;touch-action:manipulation}
 .game-bottom #islandNav button b{display:block;font-size:19px;margin:0 0 3px;line-height:1}
 body.sheet-open .game-bottom{display:none}
 .mission{left:50%;right:auto;top:auto;bottom:var(--safe-bottom);width:min(940px,calc(100% - 20px));height:33dvh;min-height:160px;max-height:none;transform:translateX(-50%);padding:0;display:flex;flex-direction:column;overflow:hidden;z-index:12;border:2px solid white;border-radius:21px 21px 0 0;background:#fffbf2;box-shadow:0 -8px 32px #36274c25}
 .mission.expanded{height:calc(100dvh - 68px - var(--safe-top) - var(--safe-bottom));max-height:none}
 .sheet-bar{display:flex;flex:0 0 54px;align-items:center;gap:8px;padding:4px 8px 4px 18px;background:#f5ecd9;border-bottom:1px solid #e4d4bc;position:relative;z-index:3;min-width:0}
 #sheetTitle{display:block;flex:1;min-width:0;font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #expandMission{display:block;flex:none;min-height:44px;min-width:96px;font-size:12px;font-weight:800;border:1px solid #d7c3a4;border-radius:11px;background:#fffaf0;padding:7px 10px}
 #closeMission{position:static;flex:none;width:44px;height:44px;border-radius:12px;background:#e8dcc9;font-size:18px;min-height:44px}
 #missionBody{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:15px 20px 24px;scroll-padding-bottom:18px;scrollbar-width:thin;touch-action:pan-y}
 .mission .eyebrow{display:none}.mission h2{font-size:20px;line-height:1.45;margin:0 0 9px;letter-spacing:-.02em}.mission .brief{font-size:12px;line-height:1.8;margin:7px 0 12px}.course-summary{margin:8px 0 13px;gap:5px}.course-summary span{font-size:11px;padding:4px 7px}
 .mission .option{min-height:66px;font-size:13px;padding:12px 14px}.mission .option .choice-course{font-size:11px}.mission .option .choice-action{font-size:13px}.mission .feedback{font-size:12px;line-height:1.85}.mission .primary,.mission .next-island{min-height:48px;font-size:13px}
 .mission-media{min-height:82px}.mission-media>img{width:114px}.mission-media b{font-size:12px}.mission-media small{font-size:9px}.mission-media i{font-size:10px}.career-inline{font-size:11px}.career-inline button{font-size:11px;min-height:36px;text-align:left;padding:6px 0}
 .mission .mission-course-block .course b{font-size:13px}.mission .mission-course-block .course p{font-size:12px}.mission .mission-course-block .course small{font-size:10px}
 .view-tools{right:10px;bottom:calc(var(--map-obstruction,84px) + 10px + var(--safe-bottom));gap:7px;z-index:8}.view-tools button{width:44px;height:44px;border-radius:12px;font-size:22px}
 body.sheet-expanded .view-tools,body.sheet-expanded .quest-banner,body.sheet-expanded .player-hud{visibility:hidden;pointer-events:none}
 #encounter{left:10px;right:auto;bottom:calc(86px + var(--safe-bottom));width:min(340px,calc(100% - 76px));max-height:116px;z-index:7}.encounter-open{padding:10px 31px 10px 110px;min-height:104px}.encounter-image{position:absolute;left:0;top:0;bottom:0;width:100px}.encounter-image>img{height:100%;object-fit:cover;aspect-ratio:auto}.encounter-tag{font-size:8px;padding:0 0 4px}.encounter-open>b{padding:0;font-size:12px}.encounter-open>span:not(.encounter-tag){padding:4px 0 0;font-size:10px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.encounter-open>small{display:none}.encounter-close{width:32px;height:32px;font-size:14px}
 body.sheet-open #encounter{display:none!important}
 #toast{bottom:calc(var(--map-obstruction,84px) + 15px);font-size:12px;padding:11px 18px;z-index:30}
 .island-label{font-size:11px;min-height:39px;padding:6px 9px;max-width:145px}.island-label small{font-size:8px}.island-label.core{font-size:12px}
 #modal:not(.cinema-mode){max-height:calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom));width:min(920px,calc(100% - 20px));border-radius:20px}.dialog-top{padding:9px 16px;min-height:62px}.dialog-top button{width:44px;height:44px}.film-tabs button,.library-filters button,.country-filters button{min-height:44px}.timehouse-actions .primary{min-height:48px}.gear-item{min-height:126px}.bag-turn button{width:48px;height:44px}.bag-portrait-stage{height:300px}.bag-look{top:64px}.bag-look #wearStatus{font-size:11px}.bag-turn{font-size:12px}#portrait{touch-action:none}
 .reward{max-height:calc(100dvh - 50px - var(--safe-top) - var(--safe-bottom));overflow:auto}.reward>button{min-height:48px}.welcome{padding:14px}.welcome-card{max-height:calc(100dvh - 28px);overflow:auto}.welcome .primary{min-height:48px}
}
@media(max-width:600px){
 .player-hud{width:158px;height:64px;gap:7px;padding:4px 6px}.portrait-wrap{width:39px;height:52px}.player-info>b{font-size:12px;margin-bottom:5px}#xpText{font-size:8px}.quest-banner{width:calc(100% - 188px);padding:7px 8px;min-height:50px}.quest-banner>span{font-size:7px}.quest-banner>b{font-size:9px}#questDots i{width:4px;height:4px}
 .mission{left:0;right:0;transform:none;width:100%;border-radius:21px 21px 0 0;min-height:160px}.sheet-bar{padding-left:13px;gap:6px}#sheetTitle{font-size:12px}#expandMission{font-size:11px;min-width:90px;padding:7px 8px}#missionBody{padding:13px 16px 24px}.mission h2{font-size:19px}.mission .brief{font-size:12px}.course-summary span{font-size:10px}
 .island-label{font-size:10px;padding:5px 7px;min-height:37px;max-width:126px}.island-label.core{font-size:11px}.island-label small{font-size:7px}.hall-label,.timehouse-label{font-size:9px}
 .bag-layout{display:block}.bag-portrait-stage{height:240px}.bag-look{top:63px;margin-bottom:16px}.bag-turn{padding:5px}.bag-turn button{height:40px}.gear-mode #modalBody{padding:17px 14px}.gear-mode .gear-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .timehouse-picks .film-tile{min-height:115px}.cinema-mode .dialog-top{min-height:58px}.cinema-mode #modalBody{padding-bottom:calc(24px + var(--safe-bottom))}
}
@media(max-height:520px) and (max-width:1100px), (max-height:520px) and (pointer:coarse) and (max-width:1400px){
 .game-top{top:6px;left:8px;right:8px}.logo-brand{min-height:42px;padding:6px 9px}.logo-brand img{width:90px!important}.top-tools>#bagBtn,.top-tools>#restartBtn,.top-tools>#moreTools{min-height:42px;height:42px;padding:6px 10px}
 .player-hud{top:57px;height:55px;width:161px}.portrait-wrap{width:34px;height:45px}.player-info>b{font-size:11px}#xpText{font-size:8px}.quest-banner{top:57px;right:9px;width:210px;padding:6px;min-height:42px}.quest-banner>span,#questDots{display:none}.quest-banner>b{font-size:10px}
 .mission{height:36dvh;min-height:140px;width:min(900px,calc(100% - 16px));left:50%;right:auto;transform:translateX(-50%)}.mission.expanded{height:calc(100dvh - 55px - var(--safe-bottom))}.sheet-bar{flex-basis:48px}#expandMission,#closeMission{height:44px;min-height:44px}#missionBody{padding:10px 16px 20px}
 .view-tools{display:flex;flex-direction:row;right:10px;gap:5px}.view-tools button{width:40px;height:40px;font-size:20px}.game-bottom{height:60px;padding:5px}.game-bottom #islandNav button{min-height:46px;min-width:85px;display:flex;align-items:center;justify-content:center;gap:5px}.game-bottom #islandNav button b{display:inline;margin:0}
 #utilityMenu{top:48px;max-height:calc(100dvh - 62px)}.bag-layout{display:grid;grid-template-columns:230px 1fr;gap:15px}.bag-portrait-stage{height:185px}.bag-look{top:61px}.gear-mode .gear-item{min-height:110px}.welcome-card{padding:18px 24px;width:min(560px,95vw)}.welcome h1{font-size:30px}.welcome-card>img{width:110px}.welcome-card>p:first-of-type{margin:8px 0}.welcome-steps{margin:10px 0}.welcome-note{font-size:11px}.welcome-card>small{margin-top:7px}
}
/* Keep the mission HUD out of the landmark and give the wordmark its own skyline. */
@media(min-width:1101px) and (pointer:fine){.quest-banner{left:18px;right:auto;top:284px;transform:none;width:275px;max-width:275px;padding:13px 15px}.quest-banner>b{font-size:12px;line-height:1.7}}
@media(max-width:1100px), (pointer:coarse) and (max-width:1400px){.logo-brand{padding:6px 10px;min-height:46px}.logo-brand img{width:100px!important}.player-hud{top:calc(74px + var(--safe-top))}.quest-banner{top:calc(76px + var(--safe-top))}.view-tools{display:block}.view-tools #resetView{width:44px;height:44px}.top-tools #utilityMenu>button>span{margin-left:3px}}
@media(max-height:520px) and (max-width:1100px), (max-height:520px) and (pointer:coarse) and (max-width:1400px){.logo-brand img{width:85px!important}.player-hud{top:61px}.quest-banner{top:61px}.logo-brand{min-height:40px;padding:5px 8px}.view-tools{display:block}}
@media(max-height:520px) and (max-width:1100px), (max-height:520px) and (pointer:coarse) and (max-width:1400px){.island-label,.island-label.core,.hall-label,.timehouse-label{font-size:10px;padding:5px 7px;min-height:36px;max-width:104px;white-space:nowrap}.island-label small{display:none}#heroTag{display:none}}
#labelLeaders{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;overflow:hidden}#labelLeaders line{stroke:#627c8b;stroke-width:1.2;stroke-opacity:.6;stroke-linecap:round}body.sheet-expanded #labels,body.sheet-expanded #labelLeaders{visibility:hidden}.island-label.active{transform:translate(-50%,0)}.hall-label small,.timehouse-label small{white-space:nowrap}
@media(max-width:600px){.island-label{max-width:120px}.island-label small{font-size:7px}.hall-label,.timehouse-label{font-size:9px;padding:5px 6px}}
#hallBtn{background:#30263f;color:#ffdc89;border-color:#f3bd58}#timehouseBtn{background:#283c4a;color:#def6df;border-color:#b5e7d4}
@media(max-width:360px){.island-label small{display:none}.island-label,.island-label.core{font-size:9px;min-height:36px;padding:5px 6px;max-width:110px}.hall-label,.timehouse-label{font-size:8.5px}}

/* playful.css */
/* Bright, tactile toy-game skin. Layout, course content, and progression are unchanged. */
:root{--ink:#293352;--paper:#fff8e5;--orange:#f66c3c;--muted:#6d6680;--line:#e4d6bd;font-family:"Arial Rounded MT Bold","PingFang TC","Microsoft JhengHei",sans-serif}
.logo-brand{border:2px solid #fff4d9;border-bottom:5px solid #242039;border-radius:18px;background:#30304c;box-shadow:0 5px 0 #30304c22}.logo-brand>span{font-weight:900;letter-spacing:.02em}
.player-hud{background:#fff6da;border:3px solid white;box-shadow:0 5px 0 #e3b96466,0 10px 20px #3f53811a}.portrait-wrap{background:radial-gradient(circle at 50% 40%,#fff7b7,#bfe2ff 75%);border:2px solid #fff5d4}.player-info>b{font-weight:900;color:#343252}.xp-track{background:#e8dac0;border:1px solid #ddcaa9;height:9px}.xp-track #xpBar{background:repeating-linear-gradient(115deg,#ffba46 0 11px,#ffd966 11px 20px)}#levelBadge{background:#5843a0;border:1px solid #fff4d8;font-weight:900}
.quest-banner{background:#fff5cb;border:3px solid white;box-shadow:0 5px 0 #dfac5366}.quest-banner>span{color:#bd6a2e;font-weight:900}.quest-banner>b{color:#373155;font-weight:800}#questDots i{background:#e1ca9c}#questDots i.done{background:#ff7e52;box-shadow:0 0 0 2px #ffdf8e}
.top-tools>button,.view-tools button{background:#fff4cd;border:2px solid #fffdf1;border-bottom:4px solid #d7b779;box-shadow:0 3px 0 #34416b20;font-weight:800;transition:transform .12s,filter .12s}.top-tools>button:active,.view-tools button:active{transform:translateY(2px)}
.island-label{background:#fff9e7;border:2px solid white;border-bottom:5px solid var(--island-color,#d5bd8c);border-radius:13px;color:#363150;font-weight:900;box-shadow:0 4px 0 #3b42651a,0 8px 16px #3049630d}.island-label small{font-weight:600;color:#7c6b6d}.island-label.active{background:#fff0ab;border-color:#ffb849;box-shadow:0 0 0 3px #fff9da,0 7px 0 #e7a74555}.island-label.saved::after{border:2px solid #fff7d5;background:#70ba63;line-height:19px;font-weight:900}.hall-label{background:#3c3058;color:#ffe0a2;border-color:#f2bd57}.hall-label small{color:#f5d7a0}.timehouse-label{background:#daffec;border-color:#76cbb4;color:#2c655b}
.game-bottom{background:#fff7df;border:3px solid white;box-shadow:0 5px 0 #bca8b455,0 0 20px #29335215}.game-bottom #islandNav button{background:#fffdf4;border:2px solid #eadab8;border-bottom:4px solid #ddc8a2;border-radius:12px;font-weight:800}.game-bottom #islandNav button[aria-pressed=true]{background:#5843a0;border-color:#6953ad;border-bottom-color:#352669;color:#fffbe6}.game-bottom #islandNav button.done{box-shadow:inset 0 -3px #ffd35a}.attractions button{font-weight:700;color:#5a4869}
.welcome{background:#40528f44;backdrop-filter:blur(2px)}.welcome-card{border:5px solid white;border-bottom:12px solid #ffd365;background:radial-gradient(ellipse at 50% 0,#fffbed,#fff0c8);border-radius:34px;box-shadow:0 14px 0 #9f67932b,0 28px 65px #32477745;transform:rotate(-1.2deg)}.welcome-card>img{border:2px solid #fff8dc;box-shadow:3px 4px 0 #594d7366;transform:rotate(3deg)}.welcome h1{font-weight:900;color:#37305b;text-shadow:2px 3px 0 #fff}.welcome h1 span{color:#f77644;text-shadow:2px 3px 0 #fff,4px 5px 0 #ffd47a}.welcome-steps span{background:#fff9e9;border:2px solid white;border-radius:12px;padding:9px 7px;box-shadow:0 3px 0 #e5c68d}.welcome .primary,.mission .primary{background:#f57542;border-color:#c64c2e;box-shadow:inset 0 2px 0 #ffbc78,0 3px 0 #a93d281a}.welcome .primary:active,.mission .primary:active{transform:translateY(2px)}.welcome-note{color:#786176}.welcome-card>small{color:#8b6a5d}
.mission{border:3px solid white;background:#fff9ea;box-shadow:0 10px 0 #50376517,0 15px 40px #25345c29}.mission h2{font-weight:900;color:#373253}.mission .option{background:#fffdf6;border:2px solid #e9d7b5;border-bottom:4px solid #dcc69e;border-radius:14px}.mission .option[aria-pressed=true]{background:#ffe16a;border-color:#ffb14b;box-shadow:inset 4px 0 #f77c43}.mission .option:active{transform:translateY(1px)}.mission .feedback{background:#e3f4cb;border:1px solid #cae5a9;color:#4a673d}.mission .reward-hint{background:#fff0b1;border:2px dashed #e7b14b}.mission-media{background:#45335e;border:2px solid #fff6d7;box-shadow:0 3px 0 #d7c5ad}.course-summary span{background:#fff0cf;border:1px solid #e5c991;color:#81542e;font-weight:600}.sheet-bar{background:#ffe5a2}.sheet-bar #expandMission{background:#fff9e5;border-bottom:3px solid #d8b26e}.sheet-bar #closeMission{background:#f6d78f}
#encounter{background:#fff7db;box-shadow:0 5px 0 #e1c17a88,0 12px 24px #2a355b22}.encounter-tag{color:#b26037;font-weight:900}.encounter-open>b{color:#483554}.reward{background:radial-gradient(circle at top,#fffdec,#ffedab);border:5px solid #fff;box-shadow:0 0 0 8px #ffcb4a70,0 18px 0 #d8943f33,0 24px 70px #553d6d66}.reward>#rewardIcon{filter:drop-shadow(3px 5px 0 #e7ba5570)}.reward>b{color:#5a3e75;font-weight:900}.reward>button{background:#6244ad;border-bottom:4px solid #412879;color:#fff7df;font-weight:800}.reward>button:active{transform:translateY(2px)}
#heroTag{background:#ffdc67;border:2px solid white;box-shadow:0 3px 0 #cf9f4e66;color:#6a431d}#toast{background:#4b3978;border:2px solid #fff4d6;box-shadow:0 4px 0 #2a214755;font-weight:700}dialog:not(.cinema-mode){border:3px solid white;box-shadow:0 10px 0 #4a3a6a30,0 25px 90px #26365366}.dialog-top{background:#fff3cd;color:#6c4c69}.dialog-top button{background:#ffe2a2;color:#5c426e}.gear-item[aria-pressed=true]{background:#fff0b9;border-color:#ffb957;box-shadow:0 4px 0 #efc882}.bag-look{background:#e3effb;border-color:#fff;box-shadow:0 6px 0 #a1c4e466}.bag-portrait-stage{background:radial-gradient(ellipse at center,#fff7b8,#bce2ff 80%)}.film-tile{border:2px solid #e5d3b3;box-shadow:0 4px 0 #ddc6a144}.film-tile>b{color:#44355f}.timehouse-mode .timehouse-actions .primary{background:#419e8b;border-bottom:4px solid #27776b}.timehouse-mode .timehouse-actions .primary:last-child{background:#6846a2;border-bottom-color:#43286d}
@media(max-width:1100px),(pointer:coarse) and (max-width:1400px){.player-hud{border-width:2px}.xp-track{height:6px}.top-tools>#bagBtn,.top-tools>#restartBtn,.top-tools>#moreTools{border-bottom-width:4px}.mission{border-width:2px}.game-bottom{border-width:2px}.game-bottom #islandNav button{border-bottom-width:3px}.top-tools #utilityMenu>button{background:#fff1cf;border-bottom:3px solid #dabc83;color:#49365f}.welcome-steps span{padding:7px 5px}}
@media(prefers-reduced-motion:reduce){.top-tools>button,.view-tools button{transition:none}.welcome-card{transform:none}.welcome-card>img{transform:none}}

/* studio.css */
/* Studio skin: calmer surfaces, island-tinted mission panels, the two-mode welcome and the challenge-mode arcade. Layout positions are unchanged. */
:root{--ink:#1d2142;--ink-2:#2d3264;--paper:#fffaf2;--cream:#fff3dc;--sun:#ffc83d;--tang:#ff6a3d;--tang-d:#d4471e;--mint:#2fbf95;--line:#ece2cf;--glass:#fffdf8eb;--lift:0 1px 0 #1d214212,0 12px 30px -14px #1d214255;--role:#f26b3a;font-family:"Arial Rounded MT Bold","PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif}
html{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overscroll-behavior:none}
button{-webkit-tap-highlight-color:transparent}
button:focus-visible{outline:3px solid #6aa8ff;outline-offset:2px}

/* ---- HUD surfaces ---- */
.player-hud,.quest-banner,.game-bottom{background:var(--glass);border:1px solid #fff;box-shadow:var(--lift);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.player-hud{border-radius:22px}.portrait-wrap{background:radial-gradient(circle at 50% 35%,#fff8c9,#bde0ff 78%);border:2px solid #fff}
#levelBadge{background:var(--ink);color:var(--sun);border:2px solid #fff;letter-spacing:.04em}
.player-info>small{color:#8a7f95;letter-spacing:.14em}.player-info>b{color:var(--ink)}
.xp-track{background:#efe6d5;border:0;border-radius:99px;overflow:hidden}.xp-track #xpBar{background:linear-gradient(90deg,var(--sun),var(--tang));border-radius:99px}
#lookBtn{color:#6d6680}
.quest-banner{border-radius:18px}.quest-banner>span{color:var(--tang-d);letter-spacing:.1em}.quest-banner>b{color:var(--ink)}
#questDots i{background:#eadfca}#questDots i.done{background:var(--tang);box-shadow:0 0 0 3px #ffe2cf}
.top-tools>button,.view-tools button{background:var(--glass);border:1px solid #fff;border-bottom:3px solid #e6dac3;color:var(--ink);box-shadow:0 6px 16px -10px #1d214266;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.top-tools>button:hover,.view-tools button:hover{filter:brightness(1.03);transform:translateY(-1px)}
.top-tools>#modeBtn{background:linear-gradient(135deg,#e9fbf3,#c9f2e2);border-bottom-color:#8fd9bd;color:#11624b}
body.mode-arcade .top-tools>#modeBtn{background:linear-gradient(135deg,var(--ink-2),var(--ink));border-color:#3d4380;border-bottom-color:#0d0f24;color:var(--sun)}
.game-bottom{border-radius:22px}
.dock-title{color:#6d6680}.dock-title button{background:var(--ink);color:#fff;border-radius:99px;padding:5px 12px}
.game-bottom #islandNav button{background:#fff;border:1px solid #efe5d3;border-bottom:3px solid #e3d6bd;color:var(--ink);border-radius:14px}
.game-bottom #islandNav button:hover{border-color:#e1cfae}
.game-bottom #islandNav button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);border-bottom-color:#0b0d22;color:#fff}
.game-bottom #islandNav button.done{box-shadow:inset 0 -3px 0 var(--sun)}
.attractions button{color:#5d5672}
.island-label{border-radius:14px;border:1px solid #fff;border-bottom:4px solid var(--island-color,#d5bd8c);background:#fffdf8f2;color:var(--ink)}
.island-label.active{background:var(--ink);color:#fff;border-color:var(--ink);border-bottom-color:var(--sun);box-shadow:0 0 0 3px #fff,0 10px 22px -8px #1d214288}
.island-label.active small{color:#ffe7a6}
/* Map labels collapse to icon badges when zoomed in (scene.js toggles these classes) */
.island-label{transition:opacity .2s,background .2s}
#labels.labels-mini .island-label{font-size:0;width:36px;height:36px;min-height:0;max-width:none;padding:0;border-radius:50%;display:grid;place-items:center;border-width:2px;border-bottom-width:3px}
#labels.labels-mini .island-label::before{content:attr(data-icon);font-size:18px;line-height:1}
#labels.labels-mini .island-label small{display:none}
#labels.labels-mini .island-label.saved::after{width:16px;height:16px;line-height:13px;font-size:10px;right:-5px;top:-5px}
#labels.labels-mini .island-label.active{width:auto;height:auto;border-radius:12px;padding:5px 10px;font-size:11px;display:block}
#labels.labels-mini .island-label.active::before{content:none}
.labels-zoomed #labelLeaders{display:none}
#labels.labels-ghost .island-label:not(.active){opacity:.3}
#labels.labels-ghost .island-label:not(.active):hover,#labels.labels-ghost .island-label:not(.active):focus-visible{opacity:1}
body.mode-arcade .quest-banner{background:linear-gradient(135deg,#262b5c,var(--ink));border-color:#3d4380;box-shadow:0 12px 30px -14px #0d0f24aa}
body.mode-arcade .quest-banner>span{color:var(--sun)}body.mode-arcade .quest-banner>b{color:#fff}
body.mode-arcade #questDots i{background:#ffffff2e}body.mode-arcade #questDots i.done{background:var(--sun);box-shadow:0 0 0 3px #ffc83d40,0 0 12px #ffc83d}

/* ---- Share / QR ---- */
.view-tools #shareBtn{display:grid;place-items:center}.view-tools #shareBtn svg{width:20px;height:20px}
#modal.share-mode{width:min(460px,calc(100% - 24px));text-align:center}
.share-mode #modalBody h2{margin-bottom:10px}
.share-qr{width:min(260px,70vw);margin:8px auto 10px;padding:14px;background:#fff;border-radius:20px;box-shadow:0 0 0 1px #ece2cf,0 14px 30px -18px #1d214288}
.share-qr img{display:block;width:100%;height:auto}
.share-url{font-family:ui-monospace,Menlo,monospace;font-size:12px!important;color:var(--ink)!important;word-break:break-all;background:#fff6e2;border-radius:10px;padding:8px 10px;margin:0 0 14px}
.share-mode .passport-actions{justify-content:center}
.share-note{font-size:12px!important}
#modal.share-big{width:min(92vw,92dvh);max-height:96dvh}
.share-big .share-qr{width:min(78vw,72dvh)}
.share-big #modalBody>.eyebrow,.share-big .share-note{display:none}

/* ---- Mission panel ---- */
.mission{background:#fffdf8;border:1px solid #fff;box-shadow:0 18px 50px -18px #1d214266,0 2px 0 #1d21420d}
#missionBody::before{content:'';display:block;height:5px;margin:-26px -22px 18px;background:linear-gradient(90deg,var(--role),color-mix(in srgb,var(--role) 40%,var(--sun)))}
.m-hero{display:flex;gap:12px;align-items:center;margin:0 0 4px}
.m-icon{flex:none;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-size:27px;background:color-mix(in srgb,var(--role) 16%,#fff);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--role) 28%,#fff)}
.mission .m-hero .eyebrow{margin:0 0 3px;color:color-mix(in srgb,var(--role) 80%,#000);font-weight:800}
.mission .m-hero h2{margin:0;font-size:21px;line-height:1.35;color:var(--ink)}
.mission .brief{color:#655f74}
.mission .course-summary span{background:color-mix(in srgb,var(--role) 10%,#fff);border:1px solid color-mix(in srgb,var(--role) 26%,#fff);color:var(--ink);border-radius:99px}
.mission h3{color:var(--ink)}
.mission .option{background:#fff;border:1.5px solid #eee4d2;border-bottom:3px solid #e6dac3;border-radius:14px;transition:border-color .15s,transform .12s}
.mission .option:hover{border-color:color-mix(in srgb,var(--role) 45%,#eee4d2)}
.mission .option .choice-course{color:color-mix(in srgb,var(--role) 75%,#5a3a1a)}
.mission .option .choice-action{display:flex;gap:8px;align-items:baseline}
.mission .option .choice-action i{flex:none;font-style:normal;font-size:11px;font-weight:900;width:20px;height:20px;line-height:20px;text-align:center;border-radius:50%;background:#f3ecdf;color:var(--ink)}
.mission .option[aria-pressed=true]{background:color-mix(in srgb,var(--role) 12%,#fff);border-color:var(--role);box-shadow:none}
.mission .option[aria-pressed=true] .choice-action i{background:var(--role);color:#fff}
.mission .feedback{background:#eefaf3;border:1px solid #c9ecd8;color:#24563f;border-radius:14px}
.mission .reward-hint{background:#fff7dd;border:1px dashed #edc66d;color:#7d5a1d;border-radius:12px}
.welcome .primary,.mission .primary{background:linear-gradient(180deg,#ff8152,var(--tang));border:0;border-bottom:4px solid var(--tang-d);box-shadow:0 10px 20px -12px #d4471e;color:#fff;font-weight:900}
.mission .primary:disabled{background:#ece6dc;border-bottom-color:#d9d0c1;color:#9b93a3;box-shadow:none}
.mission .primary.arcade-start{background:linear-gradient(180deg,#3a3f7e,var(--ink));border-bottom-color:#0b0d22;color:var(--sun);font-size:15px;letter-spacing:.02em;box-shadow:0 12px 24px -12px #1d2142}
.mission .next-island{background:#fff;border:1px solid #eee4d2;color:var(--ink);font-weight:700}
.mission .course-list{border-left-color:color-mix(in srgb,var(--role) 50%,#fff)}
.mission-media{background:var(--ink);border:0;box-shadow:none}

/* Challenge card inside the panel */
.arcade-card{margin:16px 0 4px;padding:16px;border-radius:18px;color:#f3f0ff;background:radial-gradient(circle at 100% 0,color-mix(in srgb,var(--role) 45%,transparent),transparent 60%),linear-gradient(160deg,#262a58,#191c3d);box-shadow:0 14px 30px -16px #191c3d;position:relative;overflow:hidden}
.arcade-card::before{content:'';position:absolute;left:0;right:0;top:0;height:8px;background:repeating-linear-gradient(120deg,#fff 0 10px,#1d2142 10px 20px);opacity:.85}
.ac-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:6px}
.ac-genre{font-size:11px;font-weight:900;color:var(--ink);background:var(--sun);border-radius:99px;padding:4px 10px}
.ac-stars{color:var(--sun);letter-spacing:.1em;font-size:14px}
.ac-pitch{font-size:13px;line-height:1.75;margin:12px 0 8px;color:#fff}
.ac-how{margin:0;padding:0;list-style:none;counter-reset:how;display:grid;gap:6px}
.ac-how li{counter-increment:how;display:flex;gap:8px;font-size:12px;line-height:1.6;color:#d8d4ef}
.ac-how li::before{content:counter(how);flex:none;width:19px;height:19px;border-radius:50%;background:#ffffff1f;color:#fff;font-size:10px;font-weight:900;display:grid;place-items:center;margin-top:1px}
.ac-course{margin-top:12px;padding:10px 12px;border-radius:12px;background:#ffffff12;border:1px solid #ffffff1c;display:grid;gap:2px}
.ac-course small{font-size:10px;color:#bdb7df}.ac-course b{font-size:14px;color:#fff}.ac-course span{font-size:11px;color:#d8d4ef}
.pass-stars{font-style:normal;color:#e09b13;letter-spacing:.08em;font-size:.9em}

/* ---- Reward ---- */
.reward{background:#fffdf6;border:0;border-radius:28px;box-shadow:0 0 0 8px #ffffff8c,0 30px 80px -20px #2a1f4d99}
.reward>#rewardIcon{width:104px;height:104px;margin:0 auto 6px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle,#fff 45%,transparent 46%),conic-gradient(from 0deg,#ffd45c,#ff8a5c,#ffd45c,#ff8a5c,#ffd45c,#ff8a5c,#ffd45c,#ff8a5c,#ffd45c);font-size:52px;filter:none}
.reward>b{color:var(--ink)}
.rank-up{display:block;width:max-content;max-width:100%;margin:10px auto 0;background:var(--ink);color:var(--sun);border-radius:99px;padding:5px 14px;font-size:13px;animation:burst .45s cubic-bezier(.2,.9,.3,1.4)}
.reward>button{background:var(--ink);border-bottom:4px solid #0b0d22;color:#fff;border-radius:14px}

/* ---- Welcome: pick a mode ---- */
.welcome{background:radial-gradient(circle at 50% 30%,#3d4a9a33,#1d214277);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.welcome-card{width:min(700px,100%);transform:none;border:0;border-radius:32px;padding:0 34px 26px;background:#fffdf7;box-shadow:0 0 0 8px #ffffff70,0 40px 90px -30px #1d2142cc;overflow:hidden;position:relative}
.welcome-film{height:30px;margin:0 -34px 24px;background:radial-gradient(circle at 50% 50%,#fffdf7 3.2px,transparent 3.6px) 0 0/20px 30px,linear-gradient(var(--ink),var(--ink));background-repeat:repeat-x;background-position:5px 0,0 0;border-bottom:4px solid var(--sun)}
.welcome-card>img{width:150px;transform:none;border:0;box-shadow:none;background:var(--ink);border-radius:12px}
.welcome-card>p:first-of-type{color:var(--tang-d);font-weight:900;margin:16px 0 6px}
.welcome h1{font-size:46px;color:var(--ink);text-shadow:none}
.welcome h1 span{color:var(--tang);text-shadow:none;background:linear-gradient(transparent 62%,#ffe08a 62%);padding:0 4px}
.welcome-note{margin:12px 0 0;color:#655f74}
.welcome-route{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:14px 0 0;font-size:12px;font-weight:800;color:var(--ink)}
.welcome-route span{background:#fff3dc;border-radius:99px;padding:6px 11px}
.welcome-route i{width:14px;height:2px;background:#e3cfa7;border-radius:2px}
.mode-question{margin:22px 0 10px;font-size:12px;letter-spacing:.16em;color:#8a7f95;font-weight:800}
.mode-pick{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.mode-card{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto auto;column-gap:12px;row-gap:4px;text-align:left;padding:18px 18px 16px;border-radius:22px;border:2px solid transparent;transition:transform .16s,box-shadow .16s;min-height:150px;overflow:hidden}
.mode-card:not(:disabled):hover{transform:translateY(-3px)}
.mode-card:disabled{opacity:.6;cursor:progress}
.mode-icon{grid-row:1/3;width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-size:28px}
.mode-card b{font-size:21px;font-weight:900;align-self:end}
.mode-card small{font-size:12px;line-height:1.6;grid-column:2}
.mode-card em{grid-column:1/-1;margin-top:10px;justify-self:start;font-style:normal;font-weight:900;font-size:13px;border-radius:99px;padding:8px 14px}
.mode-card.explore{background:linear-gradient(160deg,#fff8e4,#ffeec2);border-color:#ffe2a0;color:var(--ink);box-shadow:0 14px 28px -18px #b07a1a}
.mode-card.explore .mode-icon{background:#fff;box-shadow:0 4px 0 #f3d690}
.mode-card.explore small{color:#7a6650}.mode-card.explore em{background:var(--tang);color:#fff;box-shadow:0 4px 0 var(--tang-d)}
.mode-card.challenge{background:radial-gradient(circle at 100% 0,#6b4cff55,transparent 55%),linear-gradient(160deg,#2b3068,var(--ink));color:#fff;border-color:#3d4380;box-shadow:0 14px 30px -16px #1d2142}
.mode-card.challenge::before{content:'';position:absolute;left:0;right:0;top:0;height:9px;background:repeating-linear-gradient(120deg,#fff 0 11px,#1d2142 11px 22px)}
.mode-card.challenge::after{content:'NEW';position:absolute;right:14px;top:18px;font-size:10px;font-weight:900;letter-spacing:.1em;color:var(--ink);background:var(--sun);border-radius:99px;padding:3px 8px}
.mode-card.challenge .mode-icon{background:#ffffff18;box-shadow:inset 0 0 0 1px #ffffff30}
.mode-card.challenge small{color:#cfcbef}.mode-card.challenge em{background:var(--sun);color:var(--ink);box-shadow:0 4px 0 #c48a0e}
.welcome-card>small{margin-top:16px;color:#8a7f95}
@media(max-width:560px){.welcome-card{padding:0 18px 20px}.welcome-film{margin:0 -18px 18px}.welcome h1{font-size:36px}.mode-pick{grid-template-columns:1fr;gap:10px}.mode-card{min-height:0;padding:16px}.mode-card em{margin-top:6px}.welcome-route{font-size:11px}.welcome-route i{display:none}}
@media(max-height:560px) and (orientation:landscape){.welcome-card{padding:0 22px 14px;width:min(720px,96vw)}.welcome-film{height:18px;margin-bottom:10px;background-size:20px 18px,auto}.welcome-card>img,.welcome-card>p:first-of-type,.welcome-note,.welcome-route{display:none}.welcome h1{font-size:26px}.welcome h1 br{display:none}.mode-question{margin:10px 0 8px}.mode-card{min-height:0;padding:12px 14px}.mode-icon{width:40px;height:40px;font-size:22px}.mode-card b{font-size:17px}.mode-card em{margin-top:6px;padding:6px 12px}}

/* ---- Compact (phones / tablets): keep the mode switch reachable ---- */
@media(max-width:1100px),(pointer:coarse) and (max-width:1400px){
 .top-tools>#modeBtn{display:block;min-width:44px;min-height:44px;padding:8px 11px;font-size:19px;border-radius:12px}
 .top-tools>#modeBtn span{display:none}
 .player-hud,.quest-banner{top:var(--hud-top,calc(90px + var(--safe-top)))}
 #missionBody::before{margin:-15px -20px 14px}
 .mission .m-hero h2{font-size:19px}.m-icon{width:44px;height:44px;font-size:23px;border-radius:13px}
}
@media(max-width:520px){#missionBody::before{margin:-13px -16px 12px}}

/* ======================= Arcade overlay ======================= */
.arcade{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));background:radial-gradient(circle at 50% 0,color-mix(in srgb,var(--role) 40%,#12142b),#0b0d1ff2 70%);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.arcade[hidden]{display:none}
.arcade-cabinet{width:min(980px,100%);max-height:100%;display:flex;flex-direction:column;background:#151834;border:1px solid #ffffff1f;border-radius:28px;box-shadow:0 0 0 6px #ffffff0a,0 30px 80px #000a,0 0 90px -30px var(--role);overflow:hidden;color:#f4f1ff;animation:cab-in .32s cubic-bezier(.2,.9,.3,1.2)}
@keyframes cab-in{from{transform:translateY(18px) scale(.97);opacity:0}}
.arcade-top{display:flex;align-items:center;gap:12px;padding:12px 14px 12px 16px;background:linear-gradient(#1d2148,#171a3a);border-bottom:1px solid #ffffff14;flex:none}
.arcade-badge{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;font-size:22px;background:var(--role);box-shadow:0 0 22px -4px var(--role)}
.arcade-name{min-width:0}.arcade-name small{display:block;font-size:10px;letter-spacing:.14em;color:color-mix(in srgb,var(--role) 55%,#fff);font-weight:800}.arcade-name b{display:block;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arcade-hud{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.arcade-hud .chip{font-size:13px;font-weight:800;padding:6px 11px;border-radius:99px;background:#ffffff12;border:1px solid #ffffff1f;font-variant-numeric:tabular-nums;white-space:nowrap}
.arcade-hud .chip-time{background:#ffc83d22;border-color:#ffc83d55;color:var(--sun)}
.arcade-x{flex:none;width:42px;height:42px;border-radius:50%;background:#ffffff14;color:#fff;font-size:18px;border:1px solid #ffffff22}
.arcade-x:hover{background:#ffffff26}
.arcade-stage{flex:1;min-height:0;overflow:auto;padding:22px;position:relative;overscroll-behavior:contain}
.arcade-go{background:linear-gradient(180deg,#ffd862,#ffb81f);color:var(--ink);border:0;border-bottom:4px solid #c48a0e;border-radius:16px;font-size:16px;font-weight:900;padding:14px 24px;box-shadow:0 12px 26px -12px #ffb81f;transition:transform .12s}
.arcade-go:hover{transform:translateY(-1px)}.arcade-go:active{transform:translateY(2px)}
.arcade-ghost{background:transparent;color:#fff;border:1.5px solid #ffffff40;border-radius:16px;font-size:14px;font-weight:800;padding:12px 18px}
.game-tip{text-align:center;color:#b9b4da;font-size:13px;margin:0 0 14px}

/* Intro */
.arcade-intro{display:grid;grid-template-columns:minmax(220px,.85fr) 1.15fr;gap:26px;align-items:center}
.ai-poster{aspect-ratio:4/5;border-radius:24px;position:relative;overflow:hidden;display:grid;place-items:center;background:radial-gradient(circle at 50% 40%,color-mix(in srgb,var(--role) 70%,#fff) 0,var(--role) 40%,color-mix(in srgb,var(--role) 50%,#12142b) 100%);box-shadow:inset 0 0 0 1px #ffffff30}
.ai-poster::before{content:'';position:absolute;left:0;right:0;top:0;height:18px;background:repeating-linear-gradient(120deg,#fff 0 14px,#1d2142 14px 28px)}
.ai-poster::after{content:'';position:absolute;inset:0;background:repeating-radial-gradient(circle at 50% 42%,#ffffff14 0 2px,transparent 2px 26px)}
.ai-icon{font-size:110px;filter:drop-shadow(0 12px 18px #0006);position:relative;z-index:1;animation:float 3s ease-in-out infinite}
@keyframes float{50%{transform:translateY(-8px) rotate(-3deg)}}
.ai-genre{position:absolute;z-index:1;bottom:16px;left:16px;right:16px;text-align:center;background:#151834e6;border-radius:99px;padding:8px 10px;font-size:12px;font-weight:900;color:var(--sun)}
.ai-copy h3{font-size:30px;margin:0 0 8px;line-height:1.25}
.ai-copy>p{color:#d8d4ef;font-size:14px;line-height:1.8;margin:0 0 12px}
.ai-copy ol{margin:0 0 14px;padding:0;list-style:none;counter-reset:s;display:grid;gap:8px}
.ai-copy li{counter-increment:s;display:flex;gap:10px;font-size:13px;line-height:1.6;color:#e7e4f7}
.ai-copy li::before{content:counter(s);flex:none;width:22px;height:22px;border-radius:50%;background:var(--role);color:#fff;font-weight:900;font-size:11px;display:grid;place-items:center}
.ai-course{display:grid;gap:2px;padding:12px 14px;border-radius:14px;background:#ffffff0f;border:1px solid #ffffff1c;margin-bottom:12px}
.ai-course small{font-size:11px;color:#b9b4da}.ai-course b{font-size:16px}.ai-course span{font-size:12px;color:#cfcbef}
.ai-best{font-size:13px;color:#cfcbef;margin:0 0 10px}.ai-best b{color:var(--sun);letter-spacing:.08em}
.ai-note{font-size:12px;color:#ffe4a0;background:#ffc83d18;border-radius:10px;padding:8px 10px;margin:0 0 12px}
.ai-copy .arcade-go{width:100%;font-size:18px;padding:16px}

/* Result */
.arcade-result{text-align:center;max-width:620px;margin:0 auto;padding:6px 0 4px;position:relative}
.ar-burst{font-size:76px;line-height:1.2;animation:burst .5s cubic-bezier(.2,.9,.3,1.4)}
@keyframes burst{from{transform:scale(.3) rotate(-20deg);opacity:0}}
.arcade-result h3{font-size:28px;margin:4px 0 6px}
.arcade-result.lose h3{color:#ffd0c2}
.ar-stars{display:flex;justify-content:center;gap:8px;font-size:46px;margin:4px 0}
.ar-stars span{color:#ffffff22}
.ar-stars span.on{color:var(--sun);text-shadow:0 0 18px #ffc83d99;animation:star-pop .45s var(--d) both cubic-bezier(.2,.9,.3,1.6)}
@keyframes star-pop{from{transform:scale(0) rotate(-40deg)}}
.ar-detail{color:#e7e4f7;font-size:15px;margin:6px 0 16px}
.ar-lesson{text-align:left;background:#ffffff0f;border:1px solid #ffffff1c;border-left:4px solid var(--role);border-radius:14px;padding:14px 16px;margin-bottom:18px}
.ar-lesson small{display:block;font-size:12px;color:var(--sun);font-weight:800;margin-bottom:4px}.ar-lesson p{margin:0;font-size:13px;line-height:1.8;color:#d8d4ef}
.ar-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.ar-confetti{position:absolute;inset:-20px 0 auto;height:0;pointer-events:none}
.ar-confetti i{position:absolute;top:0;left:var(--x);width:8px;height:14px;border-radius:2px;background:hsl(var(--h) 90% 62%);animation:confetti 1.9s var(--d) cubic-bezier(.3,.6,.6,1) both}
@keyframes confetti{from{transform:translateY(-30px) rotate(0);opacity:1}to{transform:translateY(360px) rotate(var(--r));opacity:0}}

/* Memory match */
.mm-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:760px;margin:0 auto;perspective:900px}
.mm-card{aspect-ratio:16/11;padding:0;border:0;background:none;border-radius:14px}
.mm-inner{position:relative;display:block;width:100%;height:100%;transform-style:preserve-3d;transition:transform .45s cubic-bezier(.3,.9,.4,1.15)}
.mm-card.open .mm-inner{transform:rotateY(180deg)}
.mm-back,.mm-face{position:absolute;inset:0;border-radius:14px;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:grid;place-items:center;overflow:hidden}
.mm-back{background:repeating-linear-gradient(45deg,#ffffff10 0 8px,transparent 8px 16px),linear-gradient(150deg,color-mix(in srgb,var(--role) 85%,#fff),color-mix(in srgb,var(--role) 70%,#12142b));box-shadow:inset 0 0 0 2px #ffffff35,0 8px 18px -10px #000;align-content:center;gap:2px}
.mm-back b{font-size:28px}.mm-back small{font-size:10px;letter-spacing:.14em;color:#ffffffcc;font-weight:800}
.mm-face{transform:rotateY(180deg);background:#fffaf0;color:var(--ink);box-shadow:inset 0 0 0 2px #fff}
.mm-face svg{width:100%;height:100%;display:block}
.mm-face.txt{align-content:center;gap:1px;padding:6px;text-align:center}
.mm-face.txt b{font-size:clamp(18px,2.6vw,26px);font-weight:900}.mm-face.txt em{font-style:normal;font-size:11px;font-weight:900;color:var(--tang-d);letter-spacing:.1em}.mm-face.txt small{font-size:11px;color:#6d6680}
.mm-card.matched .mm-face{box-shadow:inset 0 0 0 3px #3fd59a,0 0 18px #3fd59a88}
.mm-card:not(.open):hover .mm-inner{transform:translateY(-3px)}

/* Lights out */
.lo-wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;align-items:center}
.lo-monitor{background:#0b0c1d;border-radius:18px;padding:12px;box-shadow:inset 0 0 0 2px #ffffff18;transition:box-shadow .3s}
.lo-monitor.perfect{box-shadow:inset 0 0 0 3px var(--sun),0 0 40px -6px var(--sun)}
.lo-scene{position:relative;aspect-ratio:16/10;border-radius:10px;overflow:hidden;background:linear-gradient(#f3d3a3 0 64%,#b5835a 64%);filter:brightness(calc(.16 + var(--lit)*.9)) saturate(calc(.3 + var(--lit)*.8));transition:filter .35s}
.lo-scene::after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 50% 45%,#fff3c4 0,transparent 55%);opacity:calc(var(--lit)*.7)}
.lo-actor{position:absolute;left:50%;bottom:14%;transform:translateX(-50%);font-size:clamp(54px,8vw,92px)}
.lo-prop{position:absolute;font-size:clamp(28px,4vw,46px)}.lo-prop.a{left:9%;bottom:16%}.lo-prop.b{right:8%;bottom:14%}.lo-prop.c{left:20%;top:14%}
.lo-meter{display:flex;align-items:center;gap:8px;margin:10px 2px 4px;font-size:12px;color:#b9b4da}
.lo-track{flex:1;height:8px;border-radius:99px;background:#ffffff14;overflow:hidden}.lo-meter i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#ff9c3d,var(--sun));transition:width .3s}
.lo-meter b{color:#fff;min-width:38px;text-align:right}
.lo-monitor small{font-size:10px;letter-spacing:.14em;color:#77729b}
.lo-grid{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:10px;width:min(340px,100%);margin:0 auto}
.lo-lamp{aspect-ratio:1;border-radius:18px;background:#23274f;border:1px solid #ffffff1c;display:grid;place-items:center;transition:background .2s,box-shadow .2s,transform .1s}
.lo-lamp:active{transform:scale(.94)}
.lo-lamp span{width:44%;height:44%;border-radius:50%;background:#3a3f6e;box-shadow:inset 0 -3px 0 #0003;transition:all .2s}
.lo-lamp.on{background:radial-gradient(circle,#ffe7a0 0,#ffb84a 70%);box-shadow:0 0 22px -2px #ffc83dcc;border-color:#fff3c9}
.lo-lamp.on span{background:#fff;box-shadow:0 0 14px 4px #fff7}
.lo-lamp.hint{outline:3px solid #3fd59a;outline-offset:3px;animation:hint 1s ease-in-out infinite}
@keyframes hint{50%{outline-offset:7px}}
.lo-hint{display:grid;gap:2px;width:min(340px,100%);margin:0 auto 14px;padding:12px 14px;border:0;border-bottom:4px solid #c48a0e;border-radius:16px;background:linear-gradient(180deg,#ffd862,#ffb81f);color:var(--ink);text-align:center;box-shadow:0 10px 24px -12px #ffb81f;position:relative}
.lo-hint b{font-size:16px;font-weight:900}.lo-hint small{font-size:12px;color:#5b4a1a;font-weight:700}
.lo-hint:active{transform:translateY(2px)}
.lo-hint.nudge{animation:nudge 1.3s ease-in-out infinite}
.lo-hint.nudge::after{content:'試試看！';position:absolute;right:-6px;top:-12px;background:#ff3d6b;color:#fff;font-size:11px;font-weight:900;border-radius:99px;padding:3px 9px;box-shadow:0 4px 10px #0005}
@keyframes nudge{50%{box-shadow:0 0 0 6px #ffc83d55,0 0 30px #ffc83d}}
.lo-lamp.hint{position:relative}.lo-lamp.hint::after{content:'按這盞';position:absolute;left:50%;bottom:4px;transform:translateX(-50%);background:#3fd59a;color:var(--ink);font-size:11px;font-weight:900;border-radius:99px;padding:2px 8px;white-space:nowrap;z-index:1}
.lo-tools{display:flex;gap:8px;justify-content:center;margin-top:10px}
.lo-tools button{background:#ffffff12;color:#fff;border:1px solid #ffffff22;border-radius:12px;padding:9px 12px;font-size:12px;font-weight:800}

/* Spot the difference */
.sd-panels{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.sd-panel{margin:0;background:#0b0c1d;border-radius:18px;padding:10px;box-shadow:inset 0 0 0 2px #ffffff14}
.sd-panel figcaption{font-size:12px;font-weight:800;color:#cfcbef;margin:0 2px 8px}
.sd-room{display:grid;grid-template-columns:repeat(5,1fr);border-radius:12px;overflow:hidden;background:linear-gradient(transparent 47%,#9c6a3f 47% 50%,transparent 50% 72%,#8a5a34 72% 73.5%,transparent 73.5%),repeating-linear-gradient(90deg,#f7e0bd 0 16px,#f2d6ac 16px 32px) top/100% 72% no-repeat,repeating-linear-gradient(90deg,#c48d5d 0 38px,#b9804f 38px 40px)}
.sd-cell{aspect-ratio:1;border:0;background:none;padding:0;font-size:clamp(18px,3.4vw,34px);position:relative;border-radius:10px;display:grid;place-items:center}
.sd-cell span{filter:drop-shadow(0 3px 2px #0003)}
.sd-cell:hover{background:#ffffff26}
.sd-cell.found::after{content:'';position:absolute;inset:6%;border-radius:50%;border:3px solid #ff3d6b;box-shadow:0 0 0 3px #fff8,0 0 14px #ff3d6b;animation:ring .35s cubic-bezier(.2,.9,.3,1.5)}
@keyframes ring{from{transform:scale(1.8);opacity:0}}
.sd-cell.miss{animation:shake .32s}
@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}

/* Boom mic */
.bm-wrap{display:grid;gap:12px;max-width:860px;margin:0 auto}
.bm-bar{display:flex;gap:12px;align-items:stretch}
.bm-status{flex:1;display:grid;gap:2px;padding:10px 14px;border-radius:14px;background:#ffffff0f;border:1.5px solid #ffffff22;transition:background .2s,border-color .2s}
.bm-status b{font-size:16px}.bm-status small{font-size:12px;color:#cfcbef}
.bm-status.best{background:#3fd59a26;border-color:#3fd59a}.bm-status.good{background:#ffc83d1f;border-color:#ffc83d}.bm-status.far{background:#ff9c3d1a;border-color:#ff9c3d88}.bm-status.ng{background:#ff3d6b2b;border-color:#ff3d6b}
.bm-snr{flex:none;display:grid;justify-items:center;align-content:center;gap:4px;padding:8px 14px;border-radius:14px;background:#ffffff0f;border:1.5px solid #ffffff22}
.bm-snr small{font-size:10px;letter-spacing:.14em;color:#b9b4da}
.bm-snr span{display:flex;gap:3px;align-items:flex-end;height:28px}
.bm-snr i{width:7px;border-radius:2px;background:#ffffff1c;transition:background .15s}
.bm-snr i:nth-child(1){height:20%}.bm-snr i:nth-child(2){height:40%}.bm-snr i:nth-child(3){height:60%}.bm-snr i:nth-child(4){height:80%}.bm-snr i:nth-child(5){height:100%}
.bm-snr i.on{background:#3fd59a}.bm-snr i.on.far{background:#ff9c3d}.bm-snr i.on.ng{background:#ff3d6b}
.bm-stage{position:relative;height:min(440px,56dvh);min-height:300px;border-radius:18px;overflow:hidden;background:radial-gradient(circle at 50% 40%,#3a3466,#16182f 70%);touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none}
.bm-stage::before{content:'';position:absolute;inset:0;background:linear-gradient(#ffffff06 1px,transparent 1px) 0 0/40px 40px,linear-gradient(90deg,#ffffff06 1px,transparent 1px) 0 0/40px 40px}
.bm-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:2;pointer-events:none}.bm-actor{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.bm-mic{fill:#e7e9f5;stroke:#fff;stroke-width:2;transition:fill .15s}
.bm-mic.best{fill:#3fd59a}.bm-mic.good{fill:#ffc83d}.bm-mic.far{fill:#c9cce0}.bm-mic.ng{fill:#ff3d6b;filter:drop-shadow(0 0 8px #ff3d6b)}
.bm-frame{position:absolute;z-index:1;border:3px solid #ffffffb0;border-radius:4px;box-shadow:0 0 0 9999px #05061099;pointer-events:none;transition:border-color .2s}
.bm-frame span{position:absolute;left:8px;top:6px;font-size:10px;letter-spacing:.12em;color:#ffffffaa;font-weight:800}
.bm-rec{position:absolute;right:8px;top:6px;font-style:normal;font-size:11px;font-weight:900;color:#ff3d6b;opacity:0}
.bm-frame.rolling{border-color:#ff3d6b}.bm-frame.rolling .bm-rec{opacity:1;animation:blink 1s steps(2) infinite}
.bm-frame.ok{border-color:#3fd59a}.bm-frame.ng{border-color:#ff3d6b;animation:shake .32s}
@keyframes blink{50%{opacity:.2}}
.bm-cue{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:3;background:#151834e6;border:1px solid #ffffff26;border-radius:99px;padding:8px 16px;font-size:14px;font-weight:900;white-space:nowrap;opacity:0;transition:opacity .2s;pointer-events:none}
.bm-cue.show{opacity:1}.bm-cue.rec{color:#ff8ba0}.bm-cue.ok{color:#3fd59a}.bm-cue.ng{color:#ff6b86}
.bm-take{position:absolute;left:0;right:0;bottom:0;height:5px;z-index:3;background:#ffffff14}.bm-take i{display:block;height:100%;width:0;background:#ff3d6b}

/* Rhythm */
.rh-wrap{display:grid;gap:14px;max-width:820px;margin:0 auto;user-select:none;-webkit-user-select:none}
.rh-monitor{justify-self:center;width:min(300px,70%);aspect-ratio:16/9;border-radius:14px;background:#0b0c1d;box-shadow:inset 0 0 0 2px #ffffff18;display:grid;place-content:center;justify-items:center;gap:2px}
.rh-monitor span{font-size:46px}.rh-monitor b{font-size:14px;color:var(--sun);letter-spacing:.1em}
.rh-track{position:relative;height:170px;border-radius:18px;background:#0e1028;overflow:hidden;box-shadow:inset 0 0 0 2px #ffffff14;touch-action:manipulation;cursor:pointer}
.rh-ruler{position:absolute;left:0;right:0;top:0;height:20px;background:repeating-linear-gradient(90deg,#ffffff30 0 1px,transparent 1px 24px),#171a3a;border-bottom:1px solid #ffffff14}
.rh-reel{position:absolute;left:0;top:28px;height:76px;will-change:transform}
.rh-clip{position:absolute;top:0;height:100%;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 92%,#fff),var(--c));border-radius:9px;box-shadow:inset 0 0 0 1px #0002;display:flex;align-items:flex-end;padding:6px 8px;overflow:hidden}
.rh-clip span{font-size:12px;font-weight:900;color:#1d2142c0;white-space:nowrap}
.rh-mark{position:absolute;top:-6px;width:4px;height:88px;margin-left:-2px;background:#fff;border-radius:3px;box-shadow:0 0 10px #fff}
.rh-mark.hit{background:#3fd59a;box-shadow:0 0 14px #3fd59a}.rh-mark.miss{background:#ff3d6b;box-shadow:none;opacity:.6}
.rh-audio{position:absolute;left:0;right:0;bottom:12px;height:40px;background:repeating-linear-gradient(90deg,#4fd1a566 0 2px,transparent 2px 5px);mask:linear-gradient(transparent 0,#000 30% 70%,transparent);-webkit-mask:linear-gradient(transparent 0,#000 30% 70%,transparent);opacity:.6}
.rh-line{position:absolute;left:24%;top:0;bottom:0;width:3px;margin-left:-1.5px;background:#ff3b5c;box-shadow:0 0 16px #ff3b5c}
.rh-line b{position:absolute;bottom:4px;left:6px;font-size:11px;color:#ff8ba0;letter-spacing:.1em}
.rh-judge{position:absolute;left:calc(24% + 12px);top:110px;font-size:18px;font-weight:900;opacity:0}
.rh-judge.pop{animation:judge .6s ease-out}.rh-judge.perfect{color:var(--sun)}.rh-judge.good{color:#3fd59a}.rh-judge.miss{color:#ff6b86}.rh-judge.idle{color:#9a95c0;font-size:13px}
@keyframes judge{0%{opacity:1;transform:translateY(6px) scale(1.2)}100%{opacity:0;transform:translateY(-14px)}}
.rh-button{justify-self:center;width:min(420px,100%);padding:18px;border-radius:18px;border:0;border-bottom:5px solid #a3122e;background:linear-gradient(180deg,#ff5f7c,#ff3b5c);color:#fff;font-size:18px;font-weight:900;touch-action:manipulation}
.rh-button:active{transform:translateY(3px);border-bottom-width:2px}

/* Catch */
.ct-wrap{position:relative;height:min(440px,58dvh);border-radius:20px;overflow:hidden;background:linear-gradient(#8fd0ff,#d7f0ff 62%,#9ad17f 62%,#7fbf66);touch-action:none;cursor:ew-resize;user-select:none;-webkit-user-select:none}
.ct-sky{position:absolute;inset:0;background:radial-gradient(ellipse 80px 26px at 20% 18%,#fff 60%,transparent 62%),radial-gradient(ellipse 110px 30px at 72% 12%,#fff 60%,transparent 62%)}
.ct-sign{position:absolute;right:14px;bottom:calc(38% + 6px);background:var(--ink);color:#fff;font-size:12px;font-weight:900;border-radius:8px;padding:5px 9px}
.ct-field{position:absolute;inset:0}
.ct-item{position:absolute;left:0;top:0;margin-left:-26px;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;will-change:transform}
.ct-item b{font-size:30px;line-height:1}
.ct-item i{position:absolute;right:-6px;top:-6px;min-width:22px;height:22px;border-radius:99px;font-style:normal;font-size:12px;font-weight:900;display:grid;place-items:center;padding:0 4px;color:#fff;box-shadow:0 2px 6px #0004}
.ct-item.good{background:#ffffffe6;box-shadow:0 0 0 4px #2fbf95,0 6px 12px #0003}.ct-item.good i{background:#1f9e78}
.ct-item.bad{background:#ffe1e7;box-shadow:0 0 0 4px #ff3d6b,0 0 18px #ff3d6b99}.ct-item.bad i{background:#e01e4f}
.ct-legend{position:absolute;z-index:3;left:10px;right:10px;top:10px;display:flex;gap:8px;flex-wrap:wrap;justify-content:center;pointer-events:none}
.ct-legend span{display:flex;align-items:center;gap:6px;font-size:16px;background:#151834e0;border-radius:99px;padding:5px 12px 5px 6px}
.ct-legend b{font-size:12px;font-weight:900;border-radius:99px;padding:3px 9px;color:#fff}
.ct-legend .good b{background:#1f9e78}.ct-legend .bad b{background:#e01e4f}
.ct-ready{position:absolute;z-index:4;inset:0;display:grid;place-content:center;justify-items:center;gap:10px;text-align:center;background:#151834cc;transition:opacity .3s}
.ct-ready.gone{opacity:0;pointer-events:none}
.ct-ready>b{font-size:26px}.ct-ready p{margin:0;display:grid;gap:8px}
.ct-ready p span{font-size:15px;font-weight:800;border-radius:12px;padding:8px 14px}.ct-ready .good{background:#1f9e7840;border:2px solid #2fbf95}.ct-ready .bad{background:#e01e4f40;border:2px solid #ff3d6b}
.ct-ready em{font-style:normal;font-size:44px;font-weight:900;color:var(--sun)}
.ct-cart{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:grid;justify-items:center;pointer-events:none}
.ct-cart span{font-size:56px;line-height:1;filter:drop-shadow(0 6px 4px #0004)}.ct-cart small{font-size:11px;font-weight:900;color:#fff;background:var(--ink);border-radius:99px;padding:2px 8px;margin-top:-4px}
.ct-cart.hurt{animation:shake .32s}
.ct-pop{position:absolute;bottom:96px;transform:translateX(-50%);font-size:20px;font-weight:900;opacity:0;pointer-events:none;white-space:nowrap;background:#fff;border-radius:99px;padding:2px 10px}
.ct-pop.show{animation:judge .7s ease-out}.ct-pop.good{color:#1d7a4f}.ct-pop.bad{color:#e01e4f}

/* Whack-a-mole */
.wm-wrap{display:grid;justify-items:center;gap:16px}
.wm-brief{text-align:center;background:#ffffff0f;border:1px solid #ffffff1c;border-radius:16px;padding:12px 18px;display:grid;gap:4px;width:min(520px,100%)}
.wm-brief.flash{animation:burst .45s cubic-bezier(.2,.9,.3,1.3)}
.wm-brief small{font-size:11px;color:#b9b4da;letter-spacing:.06em}.wm-brief b{font-size:22px}
.wm-brief span{font-size:13px;color:#e7e4f7}.wm-brief em{font-style:normal;display:inline-block;background:var(--sun);color:var(--ink);font-weight:900;border-radius:99px;padding:3px 10px;margin:2px 3px}
.wm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:min(470px,100%)}
.wm-hole{position:relative;aspect-ratio:1.05;border:0;padding:0;border-radius:20px;overflow:hidden;background:radial-gradient(ellipse at 50% 120%,#000a 30%,transparent 60%),linear-gradient(#3a1f45,#24142e);box-shadow:inset 0 0 0 1px #ffffff14}
.wm-seat{position:absolute;left:8%;right:8%;bottom:0;height:24%;border-radius:14px 14px 0 0;background:linear-gradient(#c8324a,#8e1f33);box-shadow:inset 0 3px 0 #ff6b80;z-index:2}
.wm-mole{position:absolute;left:50%;bottom:-80%;transform:translateX(-50%);width:76%;display:grid;justify-items:center;gap:3px;transition:bottom .16s cubic-bezier(.3,1.4,.5,1);z-index:1}
.wm-hole.up .wm-mole{bottom:24%}
.wm-mole b{font-size:clamp(26px,5vw,38px);width:1.55em;height:1.55em;display:grid;place-items:center;border-radius:50%;background:#fff;box-shadow:0 4px 0 #0003}
.wm-mole small{font-size:11px;font-weight:900;background:#151834;color:#fff;border-radius:99px;padding:2px 8px;white-space:nowrap}
.wm-hole.hit .wm-mole b{background:#3fd59a;transform:scale(.9)}.wm-hole.wrong .wm-mole b{background:#ff6b86;transform:rotate(-12deg)}

/* Quiz */
.qz-wrap{max-width:720px;margin:0 auto}
.qz-bar{height:6px;border-radius:99px;background:#ffffff14;overflow:hidden}.qz-bar i{display:block;height:100%;width:100%;background:linear-gradient(90deg,var(--sun),var(--tang));transition:width 1s linear}
.qz-num{font-size:11px;letter-spacing:.2em;color:var(--sun);font-weight:900;margin:16px 0 6px}
.qz-q{font-size:21px;line-height:1.6;margin:0 0 16px}
.qz-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.qz-opt{display:flex;gap:10px;align-items:center;text-align:left;background:#ffffff10;border:1.5px solid #ffffff22;color:#fff;border-radius:14px;padding:14px;font-size:15px;font-weight:800;line-height:1.5;transition:background .15s,border-color .15s}
.qz-opt:not(:disabled):hover{background:#ffffff1c;border-color:#ffffff44}
.qz-opt i{flex:none;font-style:normal;width:26px;height:26px;border-radius:8px;background:#ffffff1c;display:grid;place-items:center;font-size:12px}
.qz-opt.right{background:#3fd59a33;border-color:#3fd59a}.qz-opt.right i{background:#3fd59a;color:var(--ink)}
.qz-opt.wrong{background:#ff3d6b2e;border-color:#ff3d6b}.qz-opt.wrong i{background:#ff3d6b}
.qz-opt:disabled{cursor:default;color:#fff;opacity:.45}.qz-opt.right:disabled,.qz-opt.wrong:disabled{opacity:1}
.qz-why{margin-top:14px;background:#ffffff0f;border-left:4px solid var(--role);border-radius:12px;padding:14px 16px;font-size:14px;line-height:1.8;color:#e7e4f7}
.qz-why b{color:var(--sun)}.qz-why .arcade-go{display:block;margin:12px 0 0 auto;padding:11px 20px;font-size:14px}

/* Arcade on small screens */
@media(max-width:760px){
 .arcade{padding:0}
 .arcade-cabinet{border-radius:0;height:100%;width:100%;border:0}
 .arcade-top{padding:10px 10px 10px 12px;padding-top:max(10px,env(safe-area-inset-top));flex-wrap:wrap;row-gap:8px}
 .arcade-badge{width:36px;height:36px;font-size:19px;border-radius:12px}
 .arcade-name b{font-size:16px}
 .arcade-hud{order:3;width:100%;justify-content:flex-start}.arcade-hud:empty{display:none}
 .arcade-hud .chip{font-size:12px;padding:5px 9px}
 .arcade-x{margin-left:auto}
 .arcade-stage{padding:16px 14px calc(18px + env(safe-area-inset-bottom))}
 .arcade-intro{grid-template-columns:1fr;gap:16px}
 .ai-poster{aspect-ratio:16/8}.ai-icon{font-size:70px}
 .ai-copy h3{font-size:24px}
 .mm-grid{grid-template-columns:repeat(3,1fr);gap:8px}
 .lo-wrap{grid-template-columns:1fr;gap:14px}
 .lo-monitor{padding:8px}.lo-scene{aspect-ratio:16/5}.lo-actor{font-size:46px}.lo-prop{font-size:26px}.lo-monitor small{display:none}.lo-meter{margin:6px 2px 0}.lo-grid{width:min(300px,100%)}
 .sd-panels{grid-template-columns:1fr;gap:10px}
 .sd-panel{padding:8px}.sd-cell{font-size:clamp(20px,7vw,32px)}.sd-room{max-width:420px;margin:0 auto}
 .qz-options{grid-template-columns:1fr}.qz-q{font-size:18px}
 .rh-track{height:150px}
 .bm-stage{height:calc(100dvh - 250px);min-height:320px}.bm-status b{font-size:14px}
 .ct-wrap{height:calc(100dvh - 210px);min-height:320px}
}
@media(max-height:560px) and (orientation:landscape){
 .arcade{padding:0}.arcade-cabinet{border-radius:0;height:100%;width:100%}
 .arcade-intro{grid-template-columns:200px 1fr}.ai-poster{aspect-ratio:1}
 .sd-panels{grid-template-columns:1fr 1fr}.sd-room{max-width:none}
 .ct-wrap{height:calc(100dvh - 120px)}
 .rh-monitor{display:none}
}
@media(prefers-reduced-motion:reduce){.arcade-cabinet,.ai-icon,.ar-burst,.ar-stars span.on,.wm-brief.flash,.lo-hint.nudge,.bm-frame.rolling .bm-rec,.sd-cell.found::after,.lo-lamp.hint{animation:none}.mm-inner{transition:none}.wm-mole{transition:none}}
/* Keep the next step on screen: arcade cards get a start button in their header; the explore claim button sticks to the bottom of the sheet until scrolled to. */
.ac-top{flex-wrap:wrap}.ac-stars{margin-left:auto}
.ac-go{margin-left:auto;flex:none;font:inherit;font-size:14px;font-weight:900;color:var(--ink);background:linear-gradient(180deg,#ffe48a,var(--sun));border:0;border-bottom:3px solid #c9971d;border-radius:99px;padding:7px 14px;cursor:pointer;box-shadow:0 6px 16px -8px #000;animation:acGo 1.8s ease-in-out infinite}
.ac-stars+.ac-go{margin-left:0}
.ac-go:hover{filter:brightness(1.05)}.ac-go:active{transform:translateY(2px);border-bottom-width:1px}
@keyframes acGo{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
.mission .primary.sticky-claim{position:sticky;bottom:10px;z-index:3;box-shadow:0 -10px 18px -6px #fff9ea,0 10px 20px -12px #d4471e}
.mission .primary.sticky-claim:disabled{opacity:1;background:#f4eee3;color:#7a6f63;border:2px dashed #dccfb8;border-bottom-width:4px;box-shadow:0 -10px 18px -6px #fff9ea}
@media (prefers-reduced-motion:reduce){.ac-go{animation:none}}
