.detective-game{--ink:#eee6d6;--muted:#b3b8ad;--gold:#e5bc70;--night:#0e2428;color:var(--ink);background:#0c1d21;max-width:1440px;margin:1rem auto 3rem;border:1px solid #63776b55;border-radius:18px;overflow:clip;box-shadow:0 24px 70px #00101444;font-family:Arial,sans-serif}
.detective-game *{box-sizing:border-box}.detective-game [hidden]{display:none!important}.detective-game a{color:inherit}.detective-game button,.detective-game input{font:inherit}.detective-game button,.detective-game a{touch-action:manipulation}.detective-game button{cursor:pointer}.detective-game :is(a,button,input,summary):focus-visible{outline:3px solid #ffe49c;outline-offset:4px}.detective-game__bar{display:flex;align-items:center;justify-content:space-between;padding:22px 32px;border-bottom:1px solid #b5c5ac26;gap:1rem;background:#10272b}.detective-game__brand{display:flex;gap:12px;text-decoration:none;font-size:10px;letter-spacing:2px;line-height:1.7}.detective-game__brand>span:first-child{font-size:40px;line-height:1;color:var(--gold)}.detective-game__brand strong{font-size:18px;letter-spacing:3px}.detective-game__chapter{font-size:10px;letter-spacing:2px;color:var(--muted)}.detective-game__chapter span{color:var(--gold);padding:0 8px}.detective-game__plain{font-size:12px;white-space:nowrap}.detective-game__intro{text-align:center;padding:34px 20px 28px;background:radial-gradient(ellipse at bottom,#23403e88,transparent)}.detective-game__eyebrow{font-size:10px!important;letter-spacing:2px;color:var(--gold);font-weight:700;margin:0 0 12px!important}.detective-game h1{font-family:Georgia,serif;color:#fff4dd;font-weight:400;font-size:clamp(25px,3.4vw,46px);line-height:1.16;margin:0 0 12px}.detective-game h1 em{font-weight:400;color:var(--gold)}.detective-game__intro>p:last-child{font-size:14px;color:#c4c6b9;margin:0}.detective-game__desk{position:relative;aspect-ratio:3/2;max-height:700px;overflow:hidden}.detective-game__art{width:100%;height:100%;object-fit:cover;display:block}.detective-game__desk-files{position:absolute;inset:29% 17% 20% 17%;display:grid;grid-template-columns:1fr 1fr;gap:10%;align-items:center}.detective-game__file{color:#352820!important;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:15px;padding:6%;height:100%;text-decoration:none;transition:transform .25s,filter .25s;transform:rotate(-2deg);text-shadow:0 1px #ffe4a15c}.detective-game__file:nth-child(even){transform:rotate(2deg)}.detective-game__file:hover{transform:translateY(-10px) rotate(0deg);filter:drop-shadow(0 5px 7px #54290055)}.detective-game__file-top{font:700 11px monospace;letter-spacing:3px;border-bottom:1px solid #593f2b66;width:100%;padding-bottom:12px}.detective-game__file-icon{font-size:45px;line-height:1}.detective-game__file strong{font:400 clamp(20px,2.8vw,37px)/1.12 Georgia,serif;max-width:240px}.detective-game__file>span:not([class]),.detective-game__file small{font-size:11px;line-height:1.5}.detective-game__file small{letter-spacing:1px;font-size:9px}.detective-game__file-open{font-size:12px;font-weight:700;display:flex;justify-content:space-between;width:100%;margin-top:auto;border-top:1px solid #593f2b66;padding-top:12px}.detective-game__file-open b{font-size:22px}.detective-game__desk-nav{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);background:#0e2428ed;padding:8px;border-radius:40px;display:flex;align-items:center;gap:12px}.detective-game__desk-nav button{border:0;background:transparent;color:var(--ink);width:44px;height:36px}.detective-game__footer{padding:20px 30px;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px;color:#c0c4b5;border-top:1px solid #84978644}.detective-game__footer b{color:var(--gold);margin-right:8px}.detective-game__case-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 30px}.detective-game__case-heading>a{font-size:12px;color:#c2c8bc;white-space:nowrap}.detective-game__case-heading h1{font-size:30px;margin:0}.detective-game__state{color:var(--gold);font-size:11px;border:1px solid #9fae8266;border-radius:30px;padding:9px 15px;white-space:nowrap}.detective-game__room-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;align-items:start}.detective-game__room{position:relative;aspect-ratio:3/2;overflow:hidden;background:#1c2929}.detective-game__atmosphere{position:absolute;inset:0;background:radial-gradient(ellipse at 20% 40%,#ffb9440c,transparent 50%);pointer-events:none;animation:detective-light 5s ease-in-out infinite alternate}.detective-game__hotspot{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);border:1px solid #f6d698b3;background:#162a27c7;width:48px;height:48px;border-radius:50%;color:#ffe5a4;box-shadow:0 0 0 7px #ffe5a41c,0 0 35px #ffe39047;transition:box-shadow .2s,background .2s}.detective-game__hotspot>span:first-child{font-size:26px;font-weight:400}.detective-game__hotspot:hover{box-shadow:0 0 0 12px #ffe5a42e,0 0 40px #ffe39077;background:#33544c}.detective-game__hotspot[data-found="true"]{background:#304a3f;color:#fff7d8}.detective-game__hotspot-label{position:absolute;bottom:calc(100% + 16px);left:50%;transform:translateX(-50%);white-space:nowrap;background:#10272bf2;padding:8px 12px;border:1px solid #dac68c99;border-radius:5px;font-size:11px;opacity:0;pointer-events:none}.detective-game__hotspot:is(:hover,:focus-visible) .detective-game__hotspot-label{opacity:1}.detective-game__object-bar{display:flex;gap:4px;padding:12px;background:#12292c;flex-wrap:wrap}.detective-game__object{border:0;background:transparent;color:#e0e1cd;font-size:11px;padding:10px 12px;min-height:44px}.detective-game__object span{color:var(--gold);margin-right:8px}.detective-game__object[data-found="true"]{background:#35504488;border-radius:5px}.detective-game__notepad{padding:28px 24px;color:#d4d9c8;background:linear-gradient(145deg,#183136,#10272b);height:100%}.detective-game__notepad h2{font:400 27px/1.14 Georgia,serif;color:#fff0d5;margin:0 0 18px}.detective-game__notepad>p{font-size:13px;line-height:1.7}.detective-game__steps{list-style:none;padding:12px 0;margin:0}.detective-game__steps li{display:flex;align-items:center;gap:10px;min-height:45px;color:#c6ccbc;font-size:12px}.detective-game__steps li>span{display:grid;place-items:center;width:27px;height:27px;border:1px solid #8c9c8977;border-radius:50%;color:var(--gold)}.detective-game__steps [data-done="true"]>span{background:#5e7652;color:#fff}.detective-game__clue-count{padding:10px 0;border-top:1px solid #b8c5a233}.detective-game__primary{background:#e6bc72;color:#1c2c28;border:1px solid #f8dc9d;padding:13px 18px;border-radius:5px;font-size:12px;font-weight:700;min-height:44px;text-decoration:none;display:inline-block}.detective-game__primary:disabled{opacity:.55;cursor:wait}.detective-game__notepad>.detective-game__primary{width:100%;text-align:center}.detective-game__help{color:#f3dfae;border:0;border-bottom:1px solid #bcae7f88;background:transparent;padding:10px 0;margin:8px 10px 0 0;font-size:12px;min-height:44px}.detective-game__small{font-size:10px!important;color:#acbbaa}.detective-game__dialog{color:#e9e4d3;background:#142c30;border:1px solid #d5bc7e99;border-radius:12px;width:min(92vw,600px);max-height:85dvh;padding:35px;box-shadow:0 25px 100px #0008;line-height:1.7}.detective-game__dialog::backdrop{background:#071718bf;backdrop-filter:blur(4px)}.detective-game__dialog h2{font:400 29px/1.2 Georgia,serif;color:#ffe4b0;margin:8px 25px 18px 0}.detective-game__dialog-close{position:absolute;right:14px;top:12px;border:0;background:transparent;color:#e8d6b4;font-size:30px;width:44px;height:44px}.detective-game__dialog p{font-size:14px}.detective-game__dialog label{font-size:12px;display:block;margin:15px 0 8px}.detective-game__answer{display:flex;gap:10px}.detective-game__answer input{background:#0a1e23;border:1px solid #90a58c;color:#fff5d9;width:100%;min-width:0;padding:10px 15px;font:30px monospace;border-radius:5px;letter-spacing:5px}.detective-game__dialog-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.detective-game__dialog [data-dialog-extra]>p{padding:15px;border-left:2px solid #cbb06b;background:#243c3d}.detective-game__room-badge{position:absolute;inset:25% 15%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:10px;border:1px solid #e7cb87aa;background:#102728e8;color:#ffdf99;border-radius:14px;box-shadow:0 0 70px #f5c66433;animation:detective-reveal .6s ease-out;pointer-events:none}.detective-game__room-badge>span:first-child{font-size:52px}.detective-game__room-badge strong{font:30px Georgia,serif}.detective-game__room[data-stage="opened"] .detective-game__art{filter:brightness(1.12)}.detective-game__text{padding:20px 30px;border-top:1px solid #98aa7c44}.detective-game__text>summary{cursor:pointer;color:#c5ceb8;font-size:12px;min-height:30px}.detective-game__text .detectives{margin-top:20px;color:var(--text-color,#132a30)}.detective-game__error,.detective-game__preview{padding:15px 25px;background:#503e22;color:#ffe6b6;font-size:13px;margin:0}.detective-game__intro,.detective-game__case-heading{animation:detective-reveal .45s ease-out}@keyframes detective-light{to{opacity:.4}}@keyframes detective-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1200px){.detective-game__desk{aspect-ratio:1.85}.detective-game__desk .detective-game__art{object-position:center 56%}.detective-game__desk-files{inset:22% 17% 12%}}
@media(max-width:900px){.detective-game__room-layout{grid-template-columns:minmax(0,1fr) 250px}.detective-game__bar{padding:18px}.detective-game__chapter{display:none}.detective-game__notepad{padding:22px 18px}.detective-game__case-heading{padding:20px}.detective-game__case-heading>a{display:none}.detective-game__file{gap:8px}.detective-game__file-icon{font-size:30px}.detective-game__footer{padding:16px;flex-wrap:wrap}}
@media(max-width:650px){.detective-game{margin:10px 8px 25px;border-radius:12px}.detective-game__brand strong{font-size:14px}.detective-game__brand{font-size:8px;gap:6px}.detective-game__bar{padding:14px 12px}.detective-game__brand>span:first-child{font-size:30px}.detective-game__plain{font-size:10px}.detective-game__intro{padding:25px 16px}.detective-game__intro>p:last-child{font-size:12px}.detective-game__eyebrow{font-size:8px!important;letter-spacing:1.5px}.detective-game__desk{aspect-ratio:1.05}.detective-game__desk .detective-game__art{object-position:center}.detective-game__desk-files{inset:28% 7% 18%;gap:12%}.detective-game__file{gap:8px;padding:2%}.detective-game__file-top{font-size:8px;padding-bottom:5px;letter-spacing:1px}.detective-game__file-icon{font-size:28px}.detective-game__file strong{font-size:22px}.detective-game__file>span:not([class]){font-size:10px}.detective-game__file small{display:none}.detective-game__file-open{font-size:10px;padding-top:6px}.detective-game__room-layout{grid-template-columns:1fr}.detective-game__case-heading{padding:20px 15px;gap:8px}.detective-game__case-heading h1{font-size:24px}.detective-game__state{font-size:9px;padding:7px}.detective-game__notepad{padding:22px}.detective-game__notepad h2{font-size:26px}.detective-game__hotspot{width:44px;height:44px}.detective-game__object-bar{gap:0;padding:6px}.detective-game__object{font-size:10px;padding:8px;flex:1}.detective-game__dialog{padding:27px 22px}.detective-game__dialog h2{font-size:26px}.detective-game__text{padding:20px 16px}.detective-game__footer{font-size:10px;line-height:1.5}.detective-game__room-badge{inset:10% 13%;gap:5px}.detective-game__room-badge strong{font-size:22px}.detective-game__room-badge>span:first-child{font-size:35px}}
@media(prefers-reduced-motion:reduce){.detective-game *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.detective-game__open-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;animation:detective-reveal .6s ease-out}
.detective-game__dialog{position:fixed;inset:0;margin:auto}
.detective-game__bar{position:relative;inset:auto;width:100%;height:auto;min-height:0;z-index:1;box-shadow:none}@media(max-width:650px){.detective-game__file{gap:6px;justify-content:flex-start}.detective-game__file-icon,.detective-game__file>span:not([class]){display:none}.detective-game__file strong{font-size:20px}.detective-game__file-open{margin-top:auto;font-size:10px}.detective-game__file-top{padding-bottom:4px}}
@media(min-width:651px){.detective-game__desk{aspect-ratio:3/2;max-height:none}.detective-game__desk-files{inset:32% 24% 27% 24%;gap:12%}}
.detective-game__file strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.detective-game__case-heading>div{min-width:0}.detective-game__case-heading h1,.detective-game__dialog{overflow-wrap:anywhere}.detective-game__object{min-width:0;overflow-wrap:anywhere}
