@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700;800;900&display=swap');
:root{--paper:#FAFAFA;--ink:#2B2C2E;--muted:#5f6166;--line:#e9e9ee;--teal:#19AFBE;--soft:#F3F1F6;--green:#40863F;--violet:#793A96;font-family:Heebo,system-ui,sans-serif;color:var(--ink);background:#23272b;color-scheme:light}*{box-sizing:border-box}body{margin:0;min-height:100dvh;overflow:hidden}button,input,a{font:inherit}button{min-height:44px;cursor:pointer;border:0;color:inherit}button:disabled{opacity:.4;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--teal);outline-offset:3px}[hidden]{display:none!important}#world{position:fixed;inset:0;background:url('/assets/archive.webp') center/cover;touch-action:none}#world canvas{display:block;width:100%;height:100%}.world-shade{position:fixed;inset:0;pointer-events:none;background:linear-gradient(#0005,transparent 28%,transparent 58%,#0008)}.topbar{position:fixed;z-index:4;inset:0 0 auto;display:flex;gap:12px;align-items:center;padding:calc(11px + env(safe-area-inset-top)) 18px 10px;background:#fafafae8;backdrop-filter:blur(15px);border-bottom:1px solid #ffffff80}.logo{display:flex;direction:ltr;align-items:center;gap:6px}.logo img:first-child{width:27px;height:30px}.logo img:last-child{width:102px;height:30px;object-fit:contain}.topbar>span{flex:1;font-size:11px;font-weight:700;color:var(--muted)}.topbar>button{width:38px;min-height:38px;border-radius:50%;background:#fff;font-size:20px;box-shadow:0 0 0 1px var(--line)}#inventory{display:flex;align-items:center;justify-content:center;gap:3px;font-size:21px}#inventory span{font-size:10px}.eyebrow{font-size:10px;letter-spacing:.6px;color:var(--teal);font-weight:800}.intro,.room-intro{position:fixed;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);width:min(90vw,440px);padding:30px 27px;text-align:center;background:#fafafaf2;backdrop-filter:blur(18px);border:1px solid #ffffffb0;border-radius:26px;box-shadow:0 25px 80px #0004}.intro h1{font-size:43px;line-height:1.15;letter-spacing:-1.6px;font-weight:900;margin:16px 0}.intro p{color:var(--muted);font-size:15px;line-height:1.8}.intro-facts{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:11px;margin:24px 0}.intro-facts i{height:3px;width:3px;background:#b8b8c0;border-radius:50%}.primary{min-height:52px;background:var(--ink);color:#fff;border-radius:99px;padding:13px 24px;font-weight:800;font-size:16px;display:flex;justify-content:center;align-items:center;gap:8px;box-shadow:none;width:100%;transition:transform .15s}.primary:active{transform:scale(.98)}.intro small{display:block;color:var(--muted);font-size:10px;margin-top:14px;line-height:1.7}.room-intro h2{font-weight:900;font-size:31px;margin:13px 0}.room-intro p{font-size:15px;line-height:1.8;color:var(--muted);margin-bottom:22px}.objective{position:fixed;z-index:3;top:calc(80px + env(safe-area-inset-top));left:18px;right:18px;max-width:520px;margin:auto;background:#fafafaeb;backdrop-filter:blur(14px);border-radius:20px;box-shadow:0 2px 20px #0001;border:1px solid #fff;padding:13px 17px;display:flex;align-items:center;gap:15px;pointer-events:none}.objective>div:first-child{flex:1}.objective h1{font-size:19px;font-weight:800;line-height:1.4;margin:4px 0 0}.dots{display:flex;gap:4px;direction:ltr}.dots i{width:6px;height:6px;border-radius:50%;background:#d4d4dd}.dots i.complete{background:var(--green)}.dots i.current{background:var(--teal);box-shadow:0 0 0 3px #19afbe20}.controls{position:fixed;z-index:4;inset:auto 18px calc(12px + env(safe-area-inset-bottom));max-width:460px;margin:auto}.instruction{display:flex;gap:9px;align-items:center;margin:0 6px 11px;color:#fff;text-shadow:0 1px 5px #000}.instruction p{font-size:11px;line-height:1.5;margin:0;flex:1}.gesture{font-size:23px}.instruction button{background:#ffffffee;color:var(--ink);text-shadow:none;border-radius:50%;width:34px;min-height:34px;font-weight:800}.main-action{background:#fff;color:var(--ink);box-shadow:0 7px 30px #0003;min-height:55px;border:1px solid #fff}.main-action.door{background:var(--teal);color:#fff}.control-row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:9px}.control-row button{min-height:34px;background:#fafafaeb;border:1px solid #ffffffa0;border-radius:99px;font-size:10px;padding:5px 12px}.control-row>span{font-size:8px;color:#fff;text-shadow:0 1px 5px #000}.remote{position:absolute;bottom:calc(100% + 12px);left:0;right:0;background:#fafafaf5;backdrop-filter:blur(15px);border:1px solid #fff;border-radius:20px;padding:13px;display:flex;align-items:center;gap:12px;box-shadow:0 10px 40px #0004}.remote>img{width:30px}.remote>div{display:flex;gap:6px;flex:1;direction:ltr}.remote>div button{min-height:40px;flex:1;background:var(--ink);color:#fff;border-radius:12px;font-weight:800}.remote>div button.active{background:var(--teal)}.remote>div button.done{background:#eaf2e6;color:var(--green)}.remote>button{background:none;font-size:10px;padding:0;min-width:40px}.sheet{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,520px);max-height:calc(100dvh - 75px);overflow-y:auto;background:var(--paper);border-radius:25px 25px 0 0;padding:0 24px calc(23px + env(safe-area-inset-bottom));box-shadow:0 -15px 70px #0003;overscroll-behavior:contain;animation:sheet-in .25s cubic-bezier(.16,1,.3,1)}.sheet-grip{width:37px;height:4px;border-radius:8px;background:#d5d4dc;margin:11px auto 12px}.sheet>header{display:flex;align-items:center;justify-content:space-between;gap:15px}.sheet h2{font-size:25px;line-height:1.25;font-weight:900;letter-spacing:-.5px;margin:6px 0}.sheet>header button{background:none;font-size:25px;color:var(--muted);width:44px;min-width:44px}#sheet-copy{font-size:14px;line-height:1.8;color:var(--muted);margin:9px 0 18px}#sheet-status{font-size:12px;line-height:1.6;color:var(--muted);margin:13px 0 0;min-height:19px;text-align:center}#scrim{position:fixed;inset:0;background:#111a;backdrop-filter:blur(4px);z-index:19}.picker{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:17px}.pick-person{background:#fff;border:1px solid var(--line);border-radius:15px;padding:7px;min-width:0;display:flex;flex-direction:column;align-items:center}.pick-person img{width:100%;aspect-ratio:1.2;object-fit:cover;object-position:center 30%;border-radius:10px}.pick-person b{font-size:10px;line-height:1.4;margin:7px 0 2px}.pick-person small{font-size:8px;color:var(--muted);text-align:center}.pick-person.selected{border:2px solid var(--teal);padding:6px;background:#19afbe08}.portrait-placeholder{width:100%;aspect-ratio:1.2;display:grid;place-items:center;background:var(--soft);color:var(--violet);font-size:25px;border-radius:10px}.task-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.task-options button{background:#fff;border:1px solid var(--line);border-radius:17px;min-height:85px;padding:12px 8px;font-size:20px;font-weight:800}.task-options button small{display:block;font-size:10px;color:var(--muted);font-weight:500;margin-top:5px}.task-options button.selected,.task-options button.lit{background:var(--teal);color:#fff;border-color:var(--teal)}.task-options button.selected small,.task-options button.lit small{color:#fff}.paper{background:#fff;border:1px solid #e4dfcf;padding:19px;border-radius:4px;box-shadow:0 4px 14px #2b2c2e09;margin:14px 0 18px;text-align:center}.paper small{font-size:10px;color:var(--muted)}.paper strong{font-weight:900;font-size:33px;letter-spacing:8px;display:block;margin-top:9px;direction:ltr}.signal-bars{display:flex;justify-content:center;align-items:flex-end;gap:8px;height:65px;margin:10px 0}.signal-bars i{width:18px;background:var(--teal);border-radius:4px 4px 0 0;height:24px}.signal-bars i:nth-child(2){height:42px}.signal-bars i:nth-child(3){height:60px}.plain{background:none;color:var(--muted);font-size:12px;min-height:44px}.plain.block{width:100%}.number-sequence{direction:ltr;display:flex;gap:9px;justify-content:center;margin:13px 0;min-height:40px}.number-sequence i{font-style:normal;background:var(--soft);border-radius:11px;min-width:40px;min-height:40px;display:grid;place-items:center;font-weight:800}.evidence-card{text-align:center;border-radius:20px;padding:23px;background:linear-gradient(145deg,#fff,#f1edf5);border:1px solid var(--line);margin:16px 0 20px}.evidence-card>span{display:inline-grid;place-items:center;width:49px;height:49px;background:#e7f1e2;color:var(--green);border-radius:50%;font-size:27px}.evidence-card h3{font-size:22px;margin:13px 0 7px}.evidence-card p{font-size:14px;color:var(--muted);line-height:1.8;margin:0}.evidence-card strong{font-size:30px;color:var(--violet);display:block;direction:ltr;margin:10px 0}.inventory-list{display:grid;gap:10px;margin-bottom:18px}.inventory-item{background:#fff;border:1px solid var(--line);border-radius:15px;padding:13px;display:flex;align-items:center;gap:13px}.inventory-item>span{display:grid;place-items:center;width:37px;height:37px;border-radius:12px;background:var(--soft);font-weight:800;font-size:13px;color:var(--violet)}.inventory-item b{font-size:13px}.inventory-item p{font-size:11px;color:var(--muted);line-height:1.6;margin:3px 0}.route-list{display:grid;gap:10px;margin-bottom:18px}.route-room{padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}.route-room b{font-size:14px}.route-room small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.vault-code{width:100%;min-height:65px;background:#fff;border:1px solid var(--line);border-radius:14px;text-align:center;font:800 30px Heebo;letter-spacing:15px;direction:ltr;margin:4px 0 17px}.vault-code:focus{outline:2px solid var(--teal)}#toast{position:fixed;z-index:40;left:50%;top:calc(70px + env(safe-area-inset-top));transform:translateX(-50%) translateY(-15px);opacity:0;pointer-events:none;max-width:90vw;background:var(--ink);color:#fff;border-radius:14px;padding:12px 18px;box-shadow:0 6px 30px #0003;font-size:13px;text-align:center;transition:.2s}#toast.on{opacity:1;transform:translateX(-50%) translateY(0)}#connection-error{position:fixed;z-index:50;bottom:15px;left:15px;right:15px;background:#fff;border:1px solid #f0515d77;border-radius:16px;padding:14px;display:flex;align-items:center;gap:12px;box-shadow:0 8px 50px #0005;font-size:12px}#connection-error span{flex:1;line-height:1.7}#connection-error button{background:var(--ink);color:#fff;border-radius:99px;padding:7px 17px;white-space:nowrap}.complete-title{font-size:32px!important}.fineprint{font-size:10px;color:var(--muted);line-height:1.7;text-align:center}.chosen-banner{font-size:12px;color:var(--muted);padding:10px 0;text-align:center}.sheet .logo-small{width:100px;height:auto;margin-bottom:10px}@keyframes sheet-in{from{opacity:0;transform:translate(-50%,25px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:350px){.topbar{padding-inline:12px;gap:8px}.logo img:last-child{width:82px}.logo img:first-child{width:24px}.topbar>span{font-size:9px}.topbar>button{width:34px;min-height:34px}.objective{left:12px;right:12px;padding:11px 13px}.objective h1{font-size:17px}.controls{left:12px;right:12px}.control-row button{font-size:9px;padding:5px 9px}.control-row>span{font-size:7px}.intro{padding:23px 20px}.intro h1{font-size:36px}.sheet{padding-inline:18px}.remote{gap:7px}.remote>img{width:23px}.remote>div{gap:4px}.remote>button{font-size:9px;min-width:35px}}
@media(orientation:landscape) and (max-height:600px){.topbar{padding:7px 20px;height:49px}.logo img:last-child{width:94px;height:26px}.logo img:first-child{height:27px;width:24px}.topbar>button{min-height:32px;width:34px}.objective{top:62px;left:auto;right:20px;width:300px;padding:10px 14px}.objective h1{font-size:16px}.eyebrow{font-size:8px}.controls{left:20px;right:auto;bottom:15px;width:300px}.instruction p{font-size:10px}.main-action{min-height:46px;font-size:14px}.instruction{margin-bottom:8px}.control-row{margin-top:6px}.control-row button{min-height:30px;font-size:9px}.control-row>span{font-size:7px}.intro,.room-intro{width:460px;padding:20px 25px;top:calc(50% + 12px)}.intro h1{font-size:31px;line-height:1.15;margin:9px 0}.intro h1 br{display:none}.intro p,.room-intro p{font-size:12px;line-height:1.5;margin:8px 0}.intro-facts{margin:12px 0;font-size:10px}.intro small{font-size:9px;margin-top:10px}.intro .primary,.room-intro .primary{min-height:43px;font-size:14px}.room-intro h2{font-size:26px;margin:9px 0}.room-intro p{margin-bottom:15px}.sheet{bottom:10px;max-height:calc(100dvh - 20px);border-radius:22px;width:460px;padding-bottom:18px}.sheet-grip{margin:8px auto}.sheet h2{font-size:22px;margin:3px 0}#sheet-copy{font-size:12px;line-height:1.65;margin:6px 0 12px}.task-options{margin:10px 0;gap:8px}.task-options button{min-height:60px;font-size:18px;padding:8px}.sheet .primary{min-height:43px;font-size:14px;padding:9px}.paper{padding:10px;margin:10px 0}.paper strong{font-size:25px;margin-top:5px}.signal-bars{height:43px}.signal-bars i{height:18px}.signal-bars i:nth-child(2){height:30px}.signal-bars i:nth-child(3){height:43px}.evidence-card{padding:14px;margin:10px 0 14px}.evidence-card>span{width:36px;height:36px;font-size:20px}.evidence-card h3{font-size:20px;margin:8px 0}.evidence-card p{font-size:12px}.evidence-card strong{font-size:25px;margin:6px 0}.picker{grid-template-columns:repeat(5,1fr);gap:6px}.pick-person{padding:4px;border-radius:10px}.pick-person b{font-size:8px}.pick-person small{font-size:7px}.pick-person img{max-height:65px}.pick-person.selected{padding:3px}.vault-code{min-height:48px;font-size:25px;margin-bottom:12px}.number-sequence{margin:8px 0;min-height:32px}.number-sequence i{min-height:32px;min-width:32px}#sheet-status{font-size:10px;margin-top:8px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.sheet-actions{display:flex;align-items:center;gap:4px;flex:none}.sheet-actions button{width:40px;min-height:40px;background:none;border:0;font-size:22px;color:var(--muted)}.sheet-actions #task-help{font-size:16px;font-weight:800;border:1px solid var(--line);border-radius:50%;width:34px;min-height:34px;background:#fff}.guided{animation:guide-target 1s ease-in-out 3!important}.gesture-demo{position:relative;animation:guide-target 1s ease-in-out 3!important}.gesture-demo:after{content:'☝';position:absolute;left:50%;top:50%;font-size:26px;line-height:1;pointer-events:none;filter:drop-shadow(0 2px 3px #0003);animation:guide-touch .75s ease-in-out 3}.share-actions{display:grid;gap:10px;margin-top:14px}.share-actions>button{min-height:48px;border-radius:99px;padding:12px 20px;font-weight:800}.share-actions>button:first-child{background:var(--teal);color:#fff}.share-actions>button:not(:first-child){background:#fff;border:1px solid var(--line);color:var(--ink)}.share-actions p{font-size:11px;color:var(--muted);line-height:1.7;text-align:center}@keyframes guide-target{50%{box-shadow:0 0 0 6px #19afbe55,0 0 30px #19afbe66}}@keyframes guide-touch{50%{transform:translateY(6px) scale(.93)}}@media(prefers-reduced-motion:reduce){.guided,.gesture-demo,.gesture-demo:after{animation:none!important}.guided{outline:3px solid var(--teal)}}
.share-panel{padding:17px;background:#fff;border:1px solid var(--line);border-radius:18px;margin-top:12px;overflow:hidden}.share-panel h3{font-size:19px;margin:0 0 9px}.share-panel p{font-size:12px;line-height:1.75;color:var(--muted)}.share-panel input{display:block;width:100%;min-height:48px;border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:10px 12px;font-size:12px;user-select:all;margin:13px 0}.share-panel>.primary{margin-top:10px}.share-panel small{display:block;margin-top:12px}.share-panel a.primary{min-height:48px;text-decoration:none}
