*{box-sizing:border-box} :root{--pink:#db2777;--purple:#7c3aed;--paper:#fff1f6;--ink:#281638;--gold:#ffcf54;--line:#ead2ed;color:var(--ink);font:16px/1.5 "Microsoft JhengHei",system-ui,sans-serif}body{margin:0;background:radial-gradient(circle at 80% 10%,#e7dcff,transparent 45%),var(--paper)}.top,main,footer{max-width:1180px;margin:auto}.top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:14px 20px}.brand{font-weight:1000;color:inherit;text-decoration:none}.brand span{display:inline-grid;place-items:center;background:var(--ink);color:white;border-radius:12px;width:38px;height:38px;margin-right:4px}.tools,.actions,.toolbar,.stats{display:flex;gap:8px;flex-wrap:wrap;align-items:center}main{padding:12px 20px 20px}footer{padding:10px 20px 20px;font-size:.82rem;color:#594565}footer span{color:var(--pink);margin:0 8px}button{border:2px solid var(--ink);border-radius:14px;background:#fff;color:var(--ink);font:inherit;font-weight:800;min-height:44px;padding:7px 13px;cursor:pointer;box-shadow:0 3px 0 var(--ink)}button:hover:not(:disabled){background:#f5eaff}button:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--purple);outline-offset:3px}.primary{background:var(--gold)}.primary:hover:not(:disabled){background:#ffe184}.hero{display:grid;grid-template-columns:0.84fr 1.16fr;background:#34204e;color:white;border:3px solid var(--ink);border-radius:30px;overflow:hidden;box-shadow:0 8px 0 #a88dc1}.hero-copy{padding:clamp(22px,5vw,68px) clamp(18px,4vw,54px);align-self:center}.hero img{width:100%;height:100%;max-height:610px;min-height:350px;object-fit:cover;display:block}.eyebrow{font-weight:900;letter-spacing:.13em;color:#8650b8;font-size:.82rem}.hero .eyebrow{color:#ffc2e0}h1,h2,h3,p{margin:0 0 10px}h1,h2{line-height:1.15;overflow-wrap:anywhere}h1,.room h2{font-family:"DFKai-SB","標楷體","Microsoft JhengHei",sans-serif;font-weight:1000}.hero h1{font-size:clamp(3rem,7vw,6rem);color:#fff0f7;text-shadow:3px 4px #9c246b;margin:12px 0 22px}.hero p{max-width:26ch;color:#f8e8ff}.hero .actions{margin:22px 0 12px}.fine{font-size:.85rem;color:#594565}.hero .fine{color:#ead8f5}.room{display:grid;grid-template-columns:1.25fr 1fr;gap:16px;align-items:start}.panel,.stage,.result{border:2px solid var(--ink);border-radius:24px;background:#fffafd;box-shadow:0 4px 0 #b99acb;padding:16px;min-width:0}.stage{padding:0;overflow:hidden;background:#e7c5fa}.scene{position:relative;aspect-ratio:1.56;isolation:isolate;background:linear-gradient(#b19fe9 0 58%,#f8d8ea 58%);overflow:hidden}.scene.night{background:linear-gradient(#3a316a 0 58%,#ae83bf 58%)}.scene canvas,.scene svg,.weather{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.scene canvas{z-index:1}.scene svg{z-index:0}.scene[data-mode="3D"] .flat{visibility:hidden}.hot{position:absolute;z-index:3;transform:translate(-50%,-50%);border-radius:50%;padding:0;width:46px;height:46px;background:#fff4bc;box-shadow:0 0 18px #ffe486,0 3px 0 var(--ink);font-size:1.2rem}.hot.used{background:#e9e0f4;box-shadow:0 2px 0 var(--ink)}.stage-controls{padding:11px;background:#f8e9ff;display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}.dpad{display:flex;gap:4px}.dpad button{min-width:44px;padding:4px}.stats{margin-bottom:12px}.pill{border-radius:20px;background:#f1e4fa;padding:5px 10px;font-size:.82rem;font-weight:900}.mapline{display:flex;gap:5px;margin:0 0 12px;list-style:none;padding:0}.mapline li{flex:1;text-align:center;border-radius:12px;background:#edddf4;font-weight:900;padding:4px 0}.mapline .current{background:var(--purple);color:white}.mapline .done{background:#c3f3e1}.toolbar{margin:13px 0}.toolbar button{font-size:.85rem}.options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:13px 0}.options button{text-align:left;overflow-wrap:anywhere}.options b{color:#6632a0;margin-right:5px}.notice,.speech{padding:10px 12px;background:#f1e4fa;border-radius:14px;margin:10px 0}.good{background:#d4f8e8}.bad{background:#ffe3ea}.timer{display:flex;align-items:center;gap:8px;font-weight:900}.timer progress{width:100%;height:12px;accent-color:var(--pink)}.result{max-width:760px;margin:auto}.result ul{padding-left:22px}.result .actions{margin:16px 0}dialog{border:3px solid var(--ink);border-radius:22px;background:#fffafd;color:var(--ink);max-width:min(620px,94vw);max-height:88vh;width:100%;padding:17px}dialog::backdrop{background:#281638a8}.sheet-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.entry{padding:10px 0;border-bottom:1px solid var(--line)}.entry p{margin:3px 0}.weather{z-index:2;opacity:.5;background:repeating-linear-gradient(112deg,transparent 0 38px,#d8eeff75 40px 42px,transparent 44px 70px);animation:rain 2.2s linear infinite}.glow{color:#6c239e;font-weight:900}.confetti{position:fixed;pointer-events:none;inset:0;z-index:9;overflow:hidden}.confetti i{position:absolute;top:-20px;width:9px;height:16px;animation:fall 1.35s ease-in both}.transition{animation:arrive .33s ease-out}.big{font-size:19px}.big .fine{font-size:.9rem}@keyframes fall{to{transform:translateY(105vh) rotate(620deg)}}@keyframes rain{to{background-position:-75px 120px}}@keyframes arrive{from{opacity:.2;transform:translateY(8px)}}@media(max-width:760px){main{padding:7px 10px 16px}.top{padding:9px 10px}.room,.hero{grid-template-columns:1fr}.hero img{min-height:0;max-height:42vh;order:-1;object-position:center 40%}.hero-copy{padding:20px}.hero h1{font-size:clamp(2.6rem,11vw,4.1rem);margin:5px 0 10px}.room{gap:10px}.panel{padding:12px}.stage-controls{padding:8px}.scene{aspect-ratio:1.72}.toolbar{margin:9px 0}.options{gap:7px}.options button{padding:6px 8px}.pill{padding:4px 8px}.stats{gap:5px}.hot{width:44px;height:44px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01s!important;transition-duration:.01s!important}}@media print{.top,footer,button,.toolbar,.confetti,dialog{display:none!important}body,.result{background:white;color:black;box-shadow:none}.result{border:0;max-width:none}}
.experiment{display:flex;gap:8px;margin:10px 0 15px}.sample{flex:1;min-width:0;display:grid;justify-items:center;align-content:start;padding:9px 4px;min-height:78px;border:2px solid #39234d;border-radius:15px;text-align:center;font-weight:800;font-size:.8rem}.sample strong{font-size:1.55rem;line-height:1.3}.pink{background:#ffd2e5}.aqua{background:#c8edff}.lavender{background:#dec9ff}.mint{background:#cdf4db}.yellow{background:#fff0ad}.opponent{display:flex;align-items:center;gap:10px;background:#eee0ff;border:1px solid #d8b5f1;border-radius:15px;padding:7px 11px;margin:0 0 10px}.opponent>div{flex:1;display:grid;grid-template-columns:1fr auto;gap:3px 8px;align-items:center}.opponent b{grid-column:1/-1}.opponent progress{width:100%;height:10px;accent-color:#a82f91}.enemy-icon{display:grid;place-items:center;width:39px;height:36px;background:#6337a4;color:#fff2ae;border:2px solid #39234d;border-radius:11px;font-size:1.2rem}.timer span{white-space:nowrap}.sheet-head h2{margin:0}
.hot:active:not(:disabled){transform:translate(-50%,calc(-50% + 2px))}.actions input,dialog input{max-width:100%;font:inherit;border:2px solid var(--ink);border-radius:10px;padding:6px 10px;min-height:44px}dialog form .actions{margin-top:12px}
.flat-robot{position:absolute;z-index:2;top:37%;left:50%;transform:translateX(-50%);padding:4px 8px;background:#6440a1;color:#ffe589;border:3px solid #34234a;border-radius:11px;font-weight:900;box-shadow:0 2px 0 #34234a}.scene[data-mode="3D"] .flat-robot{display:none}.eyebrow{color:#6f3e98}.hero .eyebrow{color:#ffc2e0}
