:root{color-scheme:light;--paper:#f5f0e4;--card:#fffaf0;--ink:#1d3834;--muted:#6e776b;--teal:#245850;--mint:#dfe8da;--amber:#d7a75c;--line:#d8d8c6;--red:#a55d46;--shadow:0 12px 36px #3649340d;font-family:ui-sans-serif,system-ui,-apple-system,"Noto Sans TC","Microsoft JhengHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 95% 0,#e2e8d5 0,transparent 45%),var(--paper);color:var(--ink);font-size:16px;line-height:1.65}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;color:inherit}button,button *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button:disabled{cursor:default;opacity:.4}button:hover:not(:disabled){filter:brightness(.97)}button:focus-visible,input:focus-visible{outline:3px solid var(--amber);outline-offset:4px}a{color:var(--teal)}h1,h2,h3,p,figure{margin:0}img{display:block;max-width:100%}svg{width:22px;height:22px;flex:none}button{border:0}button>svg{display:inline-block;vertical-align:middle}input{accent-color:var(--teal)}button.primary,button.secondary{display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:52px;border-radius:10px;padding:12px 20px;font-weight:650;font-size:.9375rem;line-height:1.5}.primary{background:var(--teal);color:#fff9e9;box-shadow:0 5px 0 #173d36}.secondary{background:#e8ecde;color:var(--teal);border:1px solid #cbd5bf!important}.full{width:100%}.text-button{background:none;padding:10px 4px;min-height:44px;font-size:.875rem;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;gap:8px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;background:transparent;border:1px solid var(--line);border-radius:50%;flex:none}.eyebrow{font-size:.6875rem;letter-spacing:.15em;font-weight:700;color:var(--teal);display:block}.site-header{max-width:1240px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:24px 36px;gap:20px}.brand{display:flex;align-items:center;gap:11px;background:none;text-align:left;padding:0;min-height:48px;font-size:.9375rem;font-weight:750;letter-spacing:.08em}.brand-symbol{display:flex;align-items:center;justify-content:center;height:44px;width:44px;border:1px solid var(--teal);border-radius:50%;background:#e6ecd9}.brand small{display:block;font-size:.5625rem;letter-spacing:.19em;color:var(--muted);margin-top:1px}.site-header nav{display:flex;align-items:center;gap:9px}.language{height:44px;min-width:44px;font-size:.8125rem;background:none;font-weight:700}.page{max-width:1168px;margin:auto;padding:20px 0 60px}.site-footer{max-width:1168px;margin:auto;padding:24px 0 30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;font-size:.75rem;color:var(--muted)}
.home-hero{display:grid;grid-template-columns:.85fr 1.15fr;gap:52px;align-items:center;padding:32px 0 74px}.hero-copy .eyebrow{display:flex;align-items:center;gap:8px}.eyebrow i{height:6px;width:6px;background:var(--amber);border-radius:50%}.hero-copy h1{font-size:clamp(2.5rem,4.8vw,4.3rem);line-height:1.2;letter-spacing:-.025em;margin:20px 0 24px;font-weight:750}.hero-copy h1 em{font-style:normal;color:var(--teal)}.hero-copy p{font-size:1rem;line-height:1.95;color:var(--muted)}.hero-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:30px}.hero-note{display:flex;align-items:center;gap:20px;color:var(--muted);font-size:.75rem;margin-top:24px}.hero-note span:first-child{display:flex;gap:5px;align-items:center}.hero-note svg{height:15px;width:15px;color:var(--teal)}.hero-art{position:relative;padding:12px 12px 0;background:var(--card);border:1px solid #fff;border-radius:3px;box-shadow:0 18px 40px #263f2520;transform:rotate(2deg)}.hero-image{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:2px}.hero-art figcaption{padding:18px 10px 22px;display:flex;justify-content:space-between;gap:10px;align-items:center}.hero-art figcaption span{font-family:ui-monospace,monospace;font-size:.6875rem;letter-spacing:.14em;color:var(--muted)}.hero-art figcaption b{font-size:.8125rem;font-weight:500}.photo-corner{position:absolute;width:28px;height:28px;border-color:var(--amber);border-style:solid;pointer-events:none}.photo-corner.top{top:-8px;left:-8px;border-width:2px 0 0 2px}.photo-corner.bottom{bottom:-8px;right:-8px;border-width:0 2px 2px 0}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:26px}.section-heading h2{font-size:1.6rem;letter-spacing:-.03em;margin-top:8px}.completion{border:1px solid var(--line);padding:7px 12px;border-radius:99px;font-size:.8125rem;white-space:nowrap;font-variant-numeric:tabular-nums}.case-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.case-card{background:var(--card);padding:0;border-radius:13px;border:1px solid var(--line);overflow:hidden;text-align:left;box-shadow:var(--shadow);transition:transform .2s}.case-card:hover:not(:disabled){transform:translateY(-4px)}.case-photo{position:relative;overflow:hidden}.case-photo>img{aspect-ratio:4/3;width:100%;object-fit:cover}.case-number{position:absolute;top:12px;left:12px;background:#fffbefde;padding:5px 9px;font-family:ui-monospace,monospace;font-size:.625rem;letter-spacing:.12em;border:1px solid #fff}.solved-stamp{position:absolute;right:10px;bottom:12px;color:var(--teal);background:#f1f3e5ed;border:2px solid var(--teal);padding:3px 10px;font-size:.75rem;letter-spacing:.1em;transform:rotate(-8deg);font-weight:750}.case-card-copy{padding:20px}.case-meta{display:flex;justify-content:space-between;gap:8px;font-size:.625rem;color:var(--muted)}.case-meta>span:last-child{color:var(--amber);letter-spacing:.13em;white-space:nowrap}.case-card h3{font-size:1.25rem;font-weight:700;margin:7px 0 17px;line-height:1.45}.card-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:12px;gap:8px;font-size:.6875rem}.card-bottom>span{color:var(--muted)}.card-bottom b{display:flex;align-items:center;gap:6px;color:var(--teal);font-size:.75rem}.card-bottom svg{width:16px;height:16px}.how-strip{display:grid;grid-template-columns:repeat(3,1fr);margin:64px 0 72px;padding:28px 0;border-block:1px solid var(--line);gap:30px}.how-strip>div{display:grid;grid-template-columns:40px 1fr;column-gap:12px}.how-strip>div>span{font-family:Georgia,serif;font-size:1.8rem;color:var(--amber);grid-row:1/3}.how-strip strong{font-size:1rem}.how-strip p{font-size:.8125rem;color:var(--muted);margin-top:5px}.family-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:17px}.family-grid img{aspect-ratio:1;width:100%;object-fit:cover;border-radius:50%;background:#f7ead0;border:1px solid var(--line);margin-bottom:12px}.family-grid strong{display:block;font-size:.9375rem}.family-grid p{font-size:.6875rem;color:var(--muted);line-height:1.7;margin-top:4px}.badge-section{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-top:64px;padding:28px;border:1px dashed #bdc9b4;border-radius:12px;background:#e8ebdd80}.badge-section h2{font-size:1.2rem;margin-top:6px}.badges{display:flex;gap:18px}.badge{display:flex;align-items:center;flex-direction:column;gap:8px;color:#aeb4a4;font-size:.6875rem}.badge svg{height:28px;width:28px}.badge.earned{color:var(--teal)}.badge.earned svg{fill:#e3c88f;stroke:#926c36}
.game-page{max-width:1100px}.story-panel,.reveal-pane{max-width:780px;margin:0 auto;background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}.story-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 24px}.story-top .text-button{font-size:.8125rem}.story-image,.reveal-image{width:100%;aspect-ratio:4/3;object-fit:cover}.story-copy,.reveal-copy{padding:26px 34px 30px}.story-copy h1,.reveal-copy h1{font-size:2rem;margin:8px 0 14px;line-height:1.35;letter-spacing:-.03em}.story-copy p,.reveal-copy p{color:var(--muted);font-size:1rem;line-height:1.9;margin-bottom:24px}.story-copy small{display:block;font-size:.75rem;color:var(--muted);text-align:center;margin-top:16px}.investigation-header{display:flex;align-items:center;gap:22px;padding:4px 0 14px}.investigation-header>div{flex:1}.investigation-header h1{font-size:1.5rem;line-height:1.4;margin-top:3px}.hint-button{display:flex;gap:7px;align-items:center;padding:9px 12px;min-height:44px;border:1px solid #d6bf94;border-radius:9px;background:#f3e8d0;font-size:.8125rem}.hint-button svg{color:#997044;width:20px;height:20px}.case-progress{display:flex;align-items:center;gap:20px;color:var(--muted);font-size:.75rem;padding:13px 0 20px;border-top:1px solid var(--line)}.case-progress span{display:flex;align-items:center;gap:6px}.case-progress span:last-child{margin-left:auto}.case-progress svg{height:16px;width:16px}.explore-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:26px}.room-panel{background:var(--card);border:1px solid var(--line);border-radius:13px;overflow:hidden}.room-top{padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px}.room-top h2{display:flex;gap:8px;align-items:center;font-size:1rem}.room-top>span{color:var(--muted);font-size:.6875rem}.room-scene{position:relative;overflow:hidden;background:#e8d8b8}.room-image{width:100%;aspect-ratio:4/3;object-fit:cover}.room-glow{position:absolute;inset:0;background:radial-gradient(ellipse at 10% 15%,#fff8ce15,transparent 60%);pointer-events:none;mix-blend-mode:screen;animation:glow 5s ease-in-out infinite}.hotspot{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);height:44px;width:44px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#fff9e4e8;color:var(--teal);border:2px solid #fff;box-shadow:0 0 0 5px #ead19c68,0 4px 12px #1a302640;font-size:.875rem;font-weight:750;animation:spot 2.8s ease-in-out infinite;z-index:1}.hotspot.found{background:#245850e8;color:#fff;box-shadow:0 0 0 3px #d4e5c899;animation:none}.hotspot svg{width:20px;height:20px}.room-links{display:grid;grid-template-columns:repeat(4,1fr);padding:12px;gap:7px;border-bottom:1px solid var(--line)}.room-links button{min-height:48px;padding:8px 6px;border-radius:8px;background:#f1f0e5;color:var(--muted);display:flex;justify-content:center;align-items:center;gap:5px;font-size:.75rem}.room-links button.active{background:#e0e7d7;color:var(--teal);font-weight:700}.room-links svg{height:18px;width:18px}.room-links i{font-size:.625rem;background:#ccaa72;color:#fff;border-radius:50%;width:16px;height:16px;line-height:16px;font-style:normal}.scene-points{padding:18px 20px}.scene-points>div{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:10px}.scene-points button{display:flex;align-items:center;gap:8px;min-height:48px;text-align:left;background:#f1eee2;border-radius:7px;padding:8px 10px;font-size:.8125rem}.scene-points button>span{font-size:.625rem;background:#e1e4d3;border-radius:50%;height:23px;width:23px;display:flex;align-items:center;justify-content:center;flex:none}.scene-points button svg{width:15px;height:15px}.scene-points button>svg:last-child{margin-left:auto;color:var(--muted)}.scene-points>p{font-size:.875rem;color:var(--muted);margin-top:12px}.case-notebook{padding:23px 22px;background:repeating-linear-gradient(0deg,transparent,transparent 28px,#d2d2bb45 29px,transparent 30px),#ede9d6;border:1px solid #d1cfba;border-radius:6px;align-self:start;position:relative}.case-notebook:before{content:"";position:absolute;width:65px;height:19px;background:#d7ba8280;left:50%;top:-10px;transform:translateX(-50%) rotate(-4deg)}.case-notebook h2{font-size:1.3rem;margin:7px 0 10px}.case-notebook>p{font-size:.8125rem;color:var(--muted);line-height:1.95}.notebook-line{border-top:1px dashed #b9bca3;margin:20px 0}.recent-clues{display:grid;gap:10px;margin:12px 0 22px}.recent-clues button{display:flex;align-items:center;gap:10px;background:none;padding:0;text-align:left;font-size:.8125rem}.recent-clues img{width:52px;height:52px;object-fit:cover;border:3px solid #fff8e7;border-radius:3px;box-shadow:0 2px 8px #243e2920}.empty-note{font-size:.875rem;color:var(--muted);line-height:1.8;padding:18px 0}.case-notebook .secondary{font-size:.8125rem;min-height:44px}.game-tabs{display:flex;max-width:600px;margin:30px auto 0;border:1px solid #bfccb6;padding:8px;background:#e4e9da;border-radius:12px;gap:7px}.game-tabs button{flex:1;min-height:51px;display:flex;align-items:center;justify-content:center;gap:7px;background:none;border-radius:7px;font-size:.8125rem;position:relative;color:var(--muted)}.game-tabs .active{background:var(--teal);color:#fff9e9}.game-tabs i{height:17px;width:17px;line-height:17px;border-radius:50%;background:var(--amber);color:var(--ink);font-size:.625rem;font-style:normal}.pane-heading{margin:4px 0 24px}.pane-heading h2{font-size:1.5rem;line-height:1.5;margin:7px 0}.pane-heading p{font-size:.875rem;color:var(--muted);line-height:1.8}.people-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.person-card{background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden;padding:0;text-align:left}.person-card>img{aspect-ratio:1;width:100%;object-fit:cover}.person-card>div{padding:22px}.person-state{font-size:.625rem;color:var(--teal);background:var(--mint);padding:5px 8px;border-radius:99px}.person-card h3{font-size:1.3rem;margin:12px 0 8px}.person-card p{font-size:.875rem;color:var(--muted);line-height:1.8;min-height:76px}.person-card strong{font-size:.8125rem;display:flex;align-items:center;gap:6px;margin-top:17px;color:var(--teal)}.person-card strong svg{height:16px;width:16px}.board-pane{max-width:900px;margin:auto}.evidence-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;padding:22px;background:#d8d3ba;border:1px solid #c5c3aa;border-radius:12px}.evidence-card{padding:9px 9px 13px;background:var(--card);border:2px solid transparent;box-shadow:0 3px 10px #263d2820;border-radius:3px;text-align:left;position:relative}.evidence-card:nth-child(2n){transform:rotate(1deg)}.evidence-card:nth-child(3n){transform:rotate(-1deg)}.evidence-card.selected{border-color:var(--teal);box-shadow:0 0 0 3px #2e635236}.evidence-image{position:relative;aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:#e4dfcc;overflow:hidden}.evidence-image>img{height:100%;width:100%;object-fit:cover}.evidence-image>svg{height:38px;width:38px;color:#aaad96}.evidence-image>span{position:absolute;top:8px;left:8px;background:#fff8e9dc;padding:3px 5px;font-family:monospace;font-size:.625rem}.evidence-image>b{position:absolute;bottom:8px;right:8px;width:26px;height:26px;line-height:26px;text-align:center;border-radius:50%;background:var(--teal);color:#fff;font-size:.75rem}.evidence-card>strong{display:block;font-size:.875rem;margin:9px 4px 0}.evidence-card>small{display:block;color:var(--muted);font-size:.6875rem;margin:3px 4px 0}.evidence-card.locked{opacity:1;color:#8e947f}.connect-toolbar{display:flex;align-items:center;justify-content:center;gap:20px;padding:22px 0}.connect-toolbar>span{font-size:.8125rem;color:var(--muted)}.deductions{background:var(--card);border:1px solid var(--line);padding:24px;border-radius:12px}.deductions h3{font-size:1rem;margin-bottom:12px}.deductions h3>span{float:right;color:var(--muted);font-size:.875rem}.deductions article{display:flex;gap:12px;padding:16px 0;border-top:1px solid var(--line)}.deduction-check{flex:none;color:var(--teal)}.deductions small{font-size:.6875rem;color:var(--muted)}.deductions p{font-size:.9375rem;line-height:1.8;margin-top:5px}.deductions .text-button{font-size:.6875rem;min-height:36px;padding:5px 0}.verdict-pane{max-width:850px;margin:auto}.verdict-pane fieldset{border:1px solid var(--line);border-radius:12px;margin:24px 0;padding:24px;background:var(--card)}.verdict-pane legend{padding:0 9px;font-size:1rem;font-weight:700}.suspect-choices{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.suspect-choices label{position:relative;display:block;text-align:center;cursor:pointer;border:2px solid transparent;border-radius:10px;padding:5px}.suspect-choices label.chosen{border-color:var(--teal);background:#e3eadb}.suspect-choices img{width:100%;aspect-ratio:1;border-radius:50%;object-fit:cover}.suspect-choices input{position:absolute;left:5px;top:5px;height:18px;width:18px;z-index:1}.suspect-choices span{font-size:.8125rem;margin-top:7px;display:block}.answer-row{display:flex;align-items:center;gap:12px;min-height:55px;padding:13px 12px;border:1px solid var(--line);border-radius:8px;margin:10px 0;font-size:.875rem;line-height:1.7;cursor:pointer}.answer-row input{flex:none;width:18px;height:18px}.verdict-footer{padding:6px 0 12px}.verdict-footer .text-button{margin-top:12px}.retry-pane{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:28px;max-width:1000px;margin:auto}.retry-image{border-radius:8px;width:100%;aspect-ratio:4/3;object-fit:cover}.retry-pane h1{font-size:1.8rem;line-height:1.4;margin:10px 0 14px}.retry-pane p{font-size:.875rem;color:var(--muted);line-height:1.8}.checklist{display:grid;gap:8px;margin:22px 0}.checklist>span{display:flex;align-items:center;gap:8px;font-size:.875rem}.checklist svg{height:18px;width:18px}.checklist .okay{color:var(--teal)}.checklist .uncertain{color:var(--red)}.retry-pane .text-button{margin-top:10px}.reveal-scene{position:relative;overflow:hidden}.reveal-image{animation:reveal-enter .5s ease-out both}.reveal-step{position:absolute;bottom:17px;left:22px;width:42px;height:42px;border-radius:50%;background:var(--teal);color:#fff;text-align:center;line-height:42px;font-family:Georgia,serif;font-size:1.25rem}.reveal-nav{display:flex;justify-content:space-between;align-items:center;gap:12px}.dots{display:flex;gap:6px}.dots i{height:5px;width:5px;background:var(--line);border-radius:99px}.dots .active{width:20px;background:var(--teal)}.reveal-nav .primary{min-height:48px;font-size:.875rem;padding:10px 17px}.result-pane{max-width:850px;margin:auto;background:var(--card);border:1px solid var(--line);border-radius:15px;overflow:hidden}.result-heading{padding:32px}.result-heading h1{font-size:2rem;line-height:1.5;margin:10px 0 6px}.result-heading p{font-size:.9375rem;color:var(--muted)}.result-image{aspect-ratio:16/9;width:100%;object-fit:cover}.result-score{display:flex;gap:26px;align-items:center;padding:26px 32px;border-bottom:1px solid var(--line)}.result-score>strong{font-family:Georgia,serif;font-size:3.5rem;line-height:1.2;color:var(--teal)}.result-score small{font-family:system-ui;font-size:.875rem;color:var(--muted);margin-left:4px}.result-score>div>span{font-size:.9375rem;font-weight:650}.result-score p{font-size:.75rem;color:var(--muted);margin-top:6px}.score-breakdown{display:grid;grid-template-columns:repeat(5,1fr);padding:18px 32px;gap:12px;background:#e8eddf}.score-breakdown>span{display:flex;justify-content:space-between;gap:5px;font-size:.6875rem;color:var(--muted)}.score-breakdown b{color:var(--teal)}.truth-notes{padding:30px 32px}.truth-notes h2{font-size:1.25rem;line-height:1.5;margin-bottom:23px}.truth-notes article{display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:center;border-bottom:1px solid var(--line);padding:18px 0}.truth-notes article>div{display:flex;gap:8px}.truth-notes figure{flex:1;min-width:0}.truth-notes img{aspect-ratio:1;object-fit:cover;border-radius:6px;width:100%}.truth-notes figcaption{font-size:.625rem;color:var(--muted);margin-top:5px}.truth-notes p{font-size:.875rem;line-height:1.8}.result-actions{display:flex;flex-wrap:wrap;gap:12px;padding:0 32px 32px}.all-clear{padding:30px;text-align:center;background:#e2e9d7}.all-clear>svg{display:block;margin:0 auto 12px;color:#b08742;height:36px;width:36px}.all-clear h2{font-size:1.2rem;line-height:1.6}.all-clear p{font-size:.875rem;color:var(--muted);margin-top:9px}.settings-pane{max-width:700px;margin:auto;border:1px solid var(--line);background:var(--card);padding:32px;border-radius:12px}.settings-pane>.eyebrow{margin-top:22px}.settings-pane h1{font-size:1.8rem;margin:10px 0 24px}.settings-pane>label{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:20px 0;border-block-end:1px solid var(--line)}.settings-pane strong{font-size:1rem}.settings-pane p{font-size:.8125rem;color:var(--muted);margin-top:5px}.settings-pane input[type=checkbox]{width:22px;height:22px;flex:none}.settings-pane input[type=range]{width:140px;flex:none}.settings-note{font-size:.8125rem;color:var(--muted);line-height:1.8;margin:24px 0}.danger{color:var(--red)}
dialog{padding:0;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);max-width:560px;width:calc(100% - 28px);max-height:90svh;box-shadow:0 24px 90px #09251a40;overflow-y:auto}dialog::backdrop{background:#122c24a8;backdrop-filter:blur(4px)}.dialog-close{position:absolute;top:10px;right:10px;z-index:3;background:#fffaefd9;border-color:#fff}.detail-image{width:100%;aspect-ratio:1;max-height:44svh;object-fit:contain;background:#efe5cf}.dialog-text{padding:26px 28px}.dialog-text h2{font-size:1.5rem;line-height:1.4;margin:8px 0 14px}.dialog-text p{font-size:1rem;line-height:1.85;color:var(--muted);margin-bottom:18px}.dialog-text blockquote{margin:18px 0;padding:12px 15px;background:#e7ebdc;border-left:3px solid var(--amber);font-size:.875rem;line-height:1.8}.dialog-text>.primary{margin-top:6px}.dialog-text small{display:block;font-size:.8125rem;color:var(--muted);margin-bottom:16px}.interview-photo{position:relative;max-height:35svh;overflow:hidden;background:#f3e8d2;text-align:center}.interview-image{height:35svh;width:100%;object-fit:contain}.interview-photo>span{position:absolute;bottom:16px;left:22px;border-radius:99px;background:#fffbefd9;padding:5px 15px;font-size:.875rem;font-weight:650}#toast{position:fixed;z-index:200;bottom:28px;left:50%;transform:translate(-50%,12px);max-width:calc(100% - 32px);width:max-content;padding:12px 20px;background:#193d36;color:#fff8e9;border:1px solid #4d7961;border-radius:10px;font-size:.875rem;line-height:1.6;opacity:0;pointer-events:none;transition:.2s}#toast.visible{opacity:1;transform:translate(-50%,0)}
@keyframes glow{50%{opacity:.4}}@keyframes spot{50%{box-shadow:0 0 0 8px #ead19c25,0 4px 12px #1a302640}}@keyframes reveal-enter{from{opacity:.5;transform:scale(1.015)}to{opacity:1;transform:none}}.reduced-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(max-width:1240px){.page,.site-footer{margin-left:36px;margin-right:36px}}
@media(max-width:960px){.home-hero{gap:32px}.case-grid{gap:16px}.case-card-copy{padding:16px}.case-card h3{font-size:1.125rem}.case-meta{font-size:.5625rem}.explore-layout{grid-template-columns:minmax(0,1fr) 230px;gap:18px}.case-notebook{padding:20px 16px}.family-grid{grid-template-columns:repeat(3,1fr);gap:24px}.family-grid img{max-width:150px}.family-grid p{font-size:.8125rem}.badge-section{flex-direction:column;align-items:start}.how-strip{gap:20px}.how-strip>div{grid-template-columns:28px 1fr;gap:8px}.people-grid{gap:14px}.person-card>div{padding:16px}.person-card p{font-size:.8125rem}.score-breakdown{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.site-header{padding:16px 20px;gap:10px}.brand{font-size:.8125rem;letter-spacing:.03em;gap:8px}.brand-symbol{width:37px;height:37px}.brand small{font-size:.5rem;letter-spacing:.08em}.site-header nav{gap:4px}.icon-button{height:40px;width:40px}.language{height:40px;min-width:34px}.page{margin:0 18px;padding-top:8px;padding-bottom:36px}.site-footer{margin:0 20px;padding:21px 0 25px;display:grid;gap:5px}.home-hero{grid-template-columns:1fr;gap:25px;padding:14px 0 43px}.hero-art{order:-1;padding:8px 8px 0;transform:rotate(1deg);margin:0 4px}.hero-art figcaption{padding:11px 7px 13px}.hero-art figcaption b{font-size:.6875rem}.hero-art figcaption span{font-size:.5625rem}.hero-copy{padding:2px 4px}.hero-copy h1{font-size:2.65rem;margin:14px 0 16px;line-height:1.2}.hero-copy p{font-size:.9375rem;line-height:1.8}.hero-actions{margin-top:21px;gap:13px}.hero-actions .primary{font-size:.875rem;padding:12px 17px}.hero-note{font-size:.6875rem;margin-top:17px;gap:18px}.section-heading{align-items:start;gap:12px;margin-bottom:19px}.section-heading h2{font-size:1.25rem;margin-top:6px;line-height:1.5}.completion{font-size:.6875rem;padding:5px 8px;margin-top:18px}.case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.case-card{border-radius:9px}.case-number{top:8px;left:8px;font-size:.5rem;padding:3px 5px}.case-card-copy{padding:12px}.case-meta{font-size:.5625rem;flex-wrap:wrap;gap:3px}.case-card h3{font-size:1rem;margin:7px 0 12px;min-height:2.9em}.card-bottom{padding-top:9px;flex-wrap:wrap;font-size:.625rem;gap:5px}.card-bottom b{font-size:.6875rem}.card-bottom svg{height:14px;width:14px}.solved-stamp{font-size:.625rem;bottom:8px;right:8px;padding:2px 6px}.how-strip{margin:38px 0 43px;padding:22px 0;gap:14px}.how-strip>div{grid-template-columns:1fr;gap:5px}.how-strip>div>span{font-size:1.3rem;grid-row:auto}.how-strip strong{font-size:.875rem}.how-strip p{font-size:.6875rem;line-height:1.7}.family-grid{gap:16px}.family-grid img{margin-bottom:8px}.family-grid strong{font-size:.875rem}.family-grid p{font-size:.6875rem}.badge-section{margin-top:38px;padding:22px;gap:20px}.badges{width:100%;justify-content:space-between;gap:8px}.badge-section h2{font-size:1.125rem}.badge{font-size:.625rem}.story-panel,.reveal-pane{border-radius:12px}.story-top{padding:10px 17px;gap:7px}.story-top .eyebrow{font-size:.5625rem;letter-spacing:.09em}.story-top .text-button{font-size:.75rem}.story-copy,.reveal-copy{padding:22px}.story-copy h1,.reveal-copy h1{font-size:1.6rem}.story-copy p,.reveal-copy p{font-size:.9375rem;line-height:1.8;margin-bottom:21px}.story-copy small{font-size:.6875rem}.investigation-header{gap:10px;padding:4px 0 12px;flex-wrap:wrap}.investigation-header>.text-button{font-size:.75rem;padding-right:3px;min-height:40px}.investigation-header .eyebrow{font-size:.5625rem}.investigation-header h1{font-size:1.1rem}.hint-button{font-size:.6875rem;gap:4px;padding:8px 9px;min-height:40px}.hint-button svg{height:17px;width:17px}.case-progress{gap:12px;font-size:.6875rem;padding:10px 0 15px}.case-progress span:last-child{font-size:.625rem}.explore-layout{grid-template-columns:1fr;gap:22px}.room-top{padding:12px 14px}.room-top h2{font-size:.9375rem}.room-top>span{font-size:.625rem}.room-links{padding:10px 8px;gap:5px}.room-links button{font-size:.6875rem;gap:4px;min-height:48px;padding:7px 4px}.room-links svg{width:15px;height:15px}.hotspot{height:42px;width:42px;font-size:.75rem}.scene-points{padding:15px 14px}.scene-points button{font-size:.75rem;padding:9px 7px;gap:5px;line-height:1.6}.scene-points button>span{width:20px;height:20px}.case-notebook{padding:22px}.case-notebook>p{font-size:.875rem}.recent-clues{grid-template-columns:repeat(3,1fr);gap:10px}.recent-clues button{display:block;font-size:.6875rem;line-height:1.6}.recent-clues img{width:100%;height:auto;aspect-ratio:1;margin-bottom:6px}.case-notebook .secondary{font-size:.875rem}.investigating .page{padding-bottom:100px}.investigating .site-footer{padding-bottom:94px}.game-tabs{position:fixed;bottom:0;left:0;right:0;z-index:20;margin:0;max-width:none;border-radius:13px 13px 0 0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#e5e9dcf5;box-shadow:0 -7px 20px #253e2220;backdrop-filter:blur(10px);gap:5px}.game-tabs button{flex-direction:column;gap:3px;min-height:54px;font-size:.6875rem}.game-tabs svg{height:21px;width:21px}.game-tabs i{position:absolute;top:4px;right:calc(50% - 24px)}.pane-heading{margin:0 0 20px}.pane-heading h2{font-size:1.2rem}.pane-heading p{font-size:.8125rem}.people-grid{grid-template-columns:1fr;gap:16px}.person-card{display:grid;grid-template-columns:110px 1fr;align-items:stretch}.person-card>img{height:100%;aspect-ratio:auto;width:100%;object-fit:cover}.person-card>div{padding:16px}.person-card h3{font-size:1.125rem;margin:10px 0 6px}.person-card p{min-height:0;font-size:.8125rem;line-height:1.8}.person-card strong{font-size:.75rem;margin-top:12px}.person-state{font-size:.5625rem}.evidence-grid{grid-template-columns:repeat(2,1fr);gap:13px;padding:15px}.evidence-card{padding:6px 6px 11px}.evidence-card>strong{font-size:.8125rem;margin:7px 2px 0}.evidence-card>small{font-size:.625rem;margin-left:2px}.connect-toolbar{gap:12px;padding:19px 0}.connect-toolbar>.primary{font-size:.8125rem;padding:11px 15px;min-height:48px;gap:8px}.connect-toolbar>span{font-size:.75rem}.connect-toolbar>.text-button{font-size:.75rem}.deductions{padding:20px}.deductions p{font-size:.875rem}.deductions small{font-size:.625rem}.verdict-pane fieldset{padding:18px;margin:20px 0}.verdict-pane legend{font-size:.875rem}.suspect-choices{grid-template-columns:repeat(3,1fr);gap:9px}.suspect-choices label{padding:6px}.suspect-choices span{font-size:.75rem}.answer-row{font-size:.8125rem;padding:12px 10px;gap:9px;min-height:58px}.retry-pane{grid-template-columns:1fr;padding:20px;gap:22px}.retry-pane h1{font-size:1.5rem}.retry-pane p{font-size:.875rem}.checklist>span{font-size:.8125rem}.reveal-copy p{min-height:3.7em}.reveal-nav{gap:8px}.reveal-nav .primary{font-size:.8125rem;padding:10px 13px;gap:8px}.reveal-nav .text-button{font-size:.75rem}.reveal-step{height:35px;width:35px;line-height:35px;font-size:1.125rem;bottom:12px;left:16px}.result-heading{padding:24px 22px}.result-heading h1{font-size:1.65rem}.result-heading p{font-size:.875rem}.result-score{padding:21px 22px;gap:20px}.result-score>strong{font-size:2.8rem}.result-score>div>span{font-size:.8125rem}.result-score p{font-size:.6875rem}.score-breakdown{padding:16px 22px;gap:10px;grid-template-columns:repeat(3,1fr)}.truth-notes{padding:24px 22px}.truth-notes h2{font-size:1.125rem}.truth-notes article{grid-template-columns:1fr;gap:12px;padding:16px 0}.truth-notes article>div{max-width:240px}.truth-notes p{font-size:.8125rem}.truth-notes figcaption{font-size:.625rem}.result-actions{padding:0 22px 24px;gap:12px}.result-actions .primary,.result-actions .secondary{flex:1;font-size:.8125rem;padding:10px 14px}.result-actions>.text-button{width:100%}.settings-pane{padding:24px 22px}.settings-pane h1{font-size:1.5rem}.settings-pane>label{gap:18px}.settings-pane strong{font-size:.9375rem}.settings-pane p{font-size:.8125rem}.settings-pane input[type=range]{width:100px}.dialog-text{padding:22px}.dialog-text h2{font-size:1.3rem}.dialog-text p{font-size:.9375rem}.dialog-text blockquote{font-size:.8125rem;padding:11px 13px}.dialog-text small{font-size:.75rem}.detail-image{max-height:38svh}.investigating #toast{bottom:calc(86px + env(safe-area-inset-bottom))}#toast{font-size:.8125rem;padding:11px 16px}}
@media(max-width:360px){.site-header{padding:13px 15px}.brand small{display:none}.brand{font-size:.75rem}.brand-symbol{height:34px;width:34px}.site-header nav{gap:2px}.page{margin:0 12px}.case-card-copy{padding:10px}.case-card h3{font-size:.9375rem}.hero-copy h1{font-size:2.4rem}.investigation-header>.text-button{font-size:.6875rem}.hint-button{padding:8px 6px}.investigation-header h1{font-size:1rem}.room-top>span{font-size:.5625rem}.room-links button{flex-direction:column;gap:2px}.room-links i{display:none}.scene-points>div{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Keep touch controls generous even on small phones. */
@media(max-width:760px){.site-header .icon-button{height:44px;width:44px}.language{height:44px;min-width:40px}.hint-button{min-height:44px}.hotspot{height:44px;width:44px}.deductions .text-button{min-height:44px}}

.site-footer{align-items:center;flex-wrap:wrap}
.footer-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px}
.support-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:9px 13px;border:1px solid #cbd5bf;border-radius:10px;background:#e8ecde;color:var(--teal);font-weight:650;text-decoration:none}
.support-link svg{width:18px;height:18px}
.support-link:hover{background:#dce4ce}
.support-link:focus-visible{outline:3px solid var(--amber);outline-offset:4px}

/* An in-flow bottom placement, separated from every game control. */
.ad-banner{width:min(728px,calc(100% - 40px));margin:24px auto 0;padding:12px 0 calc(20px + env(safe-area-inset-bottom));border-top:1px solid var(--line);display:flex;flex-direction:column;align-items:center;gap:6px}
.ad-banner[hidden]{display:none}
.ad-label{font-size:.75rem;line-height:1.5;color:var(--muted)}
.ad-slot{width:100%;min-width:0;min-height:50px;display:flex;align-items:center;justify-content:center;padding:10px 12px;border:1px dashed var(--line);background:var(--mint);color:var(--muted);font-size:.875rem;text-align:center}
