:root{
  --bg:#061019;--bg2:#091823;--panel:#0b1a25;--panel2:#0e2330;--line:#284657;--text:#f6f2e9;--muted:#93a8b4;
  --gold:#d6a84f;--gold2:#f0c66a;--blue:#2e79a4;--green:#76c47e;--red:#b95b54;--purple:#b28add;--shadow:0 18px 50px rgba(0,0,0,.32)
}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;background:radial-gradient(circle at 50% -20%,#143044 0,transparent 36%),linear-gradient(180deg,#061019,#08141d 48%,#050d13);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:var(--gold2);text-decoration:none}img{display:block;max-width:100%}[hidden]{display:none!important}.eyebrow,.panel-kicker{font-size:.72rem;letter-spacing:.14em;font-weight:900;color:var(--gold2);text-transform:uppercase}.muted{color:var(--muted)}.center{text-align:center}
.landing-shell{width:min(1180px,calc(100% - 26px));margin:0 auto;padding:18px 0 40px}.panel{background:linear-gradient(180deg,rgba(14,35,48,.98),rgba(7,21,30,.98));border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
.hero-card{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);min-height:520px;overflow:hidden;border:1px solid #3b5360;border-radius:24px;background:#07131c;box-shadow:var(--shadow)}.hero-art{min-height:520px;background:linear-gradient(90deg,transparent 70%,#07131c 100%),url('../img/rumya-cover.png') center/cover no-repeat}.hero-copy{padding:46px 42px;display:flex;flex-direction:column;justify-content:center}.hero-copy h1{font-family:Georgia,serif;font-size:clamp(4rem,8vw,7.2rem);line-height:.8;margin:12px 0 16px;color:var(--gold2);text-shadow:0 3px 22px rgba(214,168,79,.15)}.subtitle{font-family:Georgia,serif;font-size:1.2rem;margin:0 0 16px;color:#e7dac1}.tagline{font-size:1rem;line-height:1.6;color:#b9c7cf}.feature-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.feature-row span,.case-badges span{padding:8px 10px;border-radius:999px;background:#102735;border:1px solid #315064;color:#c9d6dc;font-size:.75rem}
.alert{margin:14px 0;padding:13px 15px;border-radius:13px;border:1px solid}.alert.danger{background:#33191a;border-color:#744141;color:#efc6c3}.play-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.play-panel{padding:25px}.play-panel h2,.season-strip h2,.section-heading h2{font-family:Georgia,serif;font-size:2rem;margin:5px 0 8px}.play-panel p,.season-strip p,.section-heading p{color:#9fb0ba;line-height:1.6}.stack-form{display:grid;gap:14px;margin-top:18px}.stack-form label{display:grid;gap:7px;font-size:.82rem;font-weight:700}.stack-form input,.stack-form select,.chat-form input{width:100%;background:#07151f;color:#fff;border:1px solid #37566a;border-radius:11px;padding:12px 13px;outline:none;font-size:16px}.stack-form input:focus,.stack-form select:focus,.chat-form input:focus{border-color:var(--gold)}fieldset{border:0;padding:0;margin:0}legend{font-size:.82rem;font-weight:700;margin-bottom:8px}.role-picker{display:grid;grid-template-columns:1fr 1fr;gap:9px}.role-option input{position:absolute;opacity:0;pointer-events:none}.role-option span{display:grid;grid-template-columns:52px 1fr;gap:10px;align-items:center;border:1px solid #315064;background:#0a1c27;border-radius:13px;padding:8px;cursor:pointer}.role-option img{width:52px;height:52px;object-fit:cover;border-radius:10px}.role-option b,.role-option small{grid-column:2}.role-option b{grid-row:1;margin-bottom:-11px}.role-option small{grid-row:2;color:var(--muted)}.role-option input:checked+span{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold);background:#2a2318}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:11px;padding:11px 16px;border:1px solid transparent;font-weight:900;cursor:pointer;transition:.16s ease}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.primary{background:linear-gradient(#e0b35b,#c99235);color:#19130b}.btn.secondary{background:#11314a;color:#fff;border-color:#35607b}.btn.ghost{background:#111d25;color:#d9e2e7;border-color:#344752}.giant{width:100%;font-size:1.05rem}.micro-note{font-size:.73rem;color:#758c99;margin-top:15px}.room-code-input{text-transform:uppercase;letter-spacing:.2em;font-weight:900}.season-strip{margin-top:14px;padding:20px 24px;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}.season-stats{display:grid;grid-template-columns:auto auto;gap:5px 10px;align-items:center}.season-stats b{font-family:Georgia,serif;font-size:2rem;color:var(--gold2);text-align:right}.season-stats span{font-size:.72rem;color:#8ea3af;text-transform:uppercase;letter-spacing:.08em}.case-library{margin-top:28px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.section-heading p{max-width:470px;text-align:right}.case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.case-card{text-align:left;border:1px solid #2c4758;background:linear-gradient(145deg,#0b1d29,#0a1720);border-radius:16px;padding:16px;color:#fff;cursor:pointer;display:grid;gap:6px}.case-card:hover,.case-card.selected{border-color:var(--gold);background:linear-gradient(145deg,#18242a,#2a2418)}.case-card .case-no{font-size:.67rem;color:var(--gold2);font-weight:900;letter-spacing:.1em}.case-card b{font-family:Georgia,serif;font-size:1.2rem}.case-card small{color:#9aadb7;line-height:1.5}.case-meta{font-size:.7rem;color:#d4b46e}.site-footer{display:flex;justify-content:space-between;padding:22px 4px 0;color:#6e8490;font-size:.75rem}

.game-shell{width:min(1500px,100%);margin:auto;padding:8px 10px 18px}.game-topbar{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:8px 10px;background:rgba(5,15,22,.94);border:1px solid #253e4d;border-radius:14px;backdrop-filter:blur(16px)}.brand-mini{display:flex;align-items:baseline;gap:10px;min-width:0}.brand-mini b{font-family:Georgia,serif;color:var(--gold2);font-size:1.5rem}.brand-mini span{font-size:.78rem;color:#93a8b4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-chip{font-size:.7rem;color:#77909f;padding:7px 10px;border:1px solid #29485c;border-radius:999px;background:#0a1b26}.room-chip strong{color:#fff;letter-spacing:.12em;margin:0 5px}.room-chip button{border:0;background:transparent;color:#b7c7d0;cursor:pointer}.top-actions{display:flex;justify-content:flex-end;gap:6px;align-items:center}.status-pill{font-size:.7rem;border:1px solid #2b4a5c;background:#0b1e2a;border-radius:999px;padding:7px 9px;color:#b4c5ce}.icon-btn{width:38px;height:38px;border-radius:10px;border:1px solid #2c4859;background:#0c1e29;color:#d8e3e8;display:grid;place-items:center;cursor:pointer}
.center-card{width:min(560px,calc(100% - 30px));margin:12vh auto;padding:30px;border:1px solid var(--line);border-radius:20px;background:var(--panel);text-align:center}.lobby-view{width:min(1000px,100%);margin:16px auto}.case-poster{padding:30px;background:radial-gradient(circle at 80% 0,rgba(214,168,79,.12),transparent 30%),linear-gradient(145deg,#0d2030,#0a1720)}.case-number{color:var(--gold2);font-weight:900;font-size:.75rem;letter-spacing:.13em}.case-poster h1{font-family:Georgia,serif;font-size:clamp(2.4rem,7vw,4rem);margin:6px 0 8px}.case-poster p{color:#a9bac3;line-height:1.7;max-width:760px}.mission-strip{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.mission-strip span{font-size:.73rem;padding:8px 10px;border:1px solid #324b5a;border-radius:999px;background:#0d1d27}.duo-panel{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;margin:10px 0}.detective-card{display:grid;grid-template-columns:76px 1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid #2e4a5a;border-radius:16px;background:#0a1923}.detective-card.mine{border-color:var(--gold)}.detective-card img{width:76px;height:76px;object-fit:cover;border-radius:12px}.detective-card h3{margin:0;font-family:Georgia,serif;font-size:1.2rem}.detective-card p{margin:2px 0;color:#8fa3ae;font-size:.74rem}.player-name{font-size:.77rem;color:#d5dee3}.ready-badge{font-size:.63rem;background:#192733;color:#8aa0ae;border-radius:999px;padding:5px 7px}.ready-badge.ready{background:#153a21;color:#a9ecaf}.duo-link{color:var(--gold);font-size:1.5rem}
.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:10px;margin-top:10px}.main-stage,.side-panel{min-width:0}.objective-bar{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#0c1f2b;border:1px solid #284657;border-radius:14px 14px 0 0}.objective-bar span{font-size:.68rem;color:var(--gold);font-weight:900}.objective-bar strong{flex:1;font-size:.86rem}.objective-bar button{border:1px solid #4b5e3a;background:#243017;color:#d9ebae;border-radius:8px;padding:7px 9px;cursor:pointer}.scene-root{min-height:610px;border:1px solid #284657;border-top:0;border-radius:0 0 18px 18px;overflow:hidden;background:#07151f}.scene{min-height:610px;position:relative;padding:24px;overflow:hidden;background:linear-gradient(145deg,#111d27,#24323b 45%,#0b1218)}.scene-overlay{position:absolute;inset:0;background:radial-gradient(circle at 75% 18%,rgba(224,177,85,.15),transparent 25%),linear-gradient(180deg,rgba(4,10,15,.06),rgba(4,10,15,.58));pointer-events:none}.theme-school{background:radial-gradient(circle at 75% 20%,rgba(220,175,86,.18),transparent 24%),linear-gradient(140deg,#10232b,#4a3828 55%,#101519)}.theme-library{background:radial-gradient(circle at 70% 20%,rgba(235,179,78,.18),transparent 25%),linear-gradient(140deg,#19130f,#4a3421 48%,#11191c)}.theme-cipher{background:radial-gradient(circle at 70% 25%,rgba(77,125,177,.2),transparent 26%),linear-gradient(140deg,#0c1d29,#172d40 52%,#0b131a)}.theme-clock{background:radial-gradient(circle at 70% 20%,rgba(191,119,79,.2),transparent 25%),linear-gradient(140deg,#1d1513,#453128 52%,#101519)}.theme-room13{background:radial-gradient(circle at 70% 20%,rgba(131,98,160,.2),transparent 26%),linear-gradient(140deg,#111820,#262336 52%,#0c1117)}.theme-train{background:radial-gradient(circle at 75% 15%,rgba(198,161,86,.16),transparent 25%),linear-gradient(140deg,#11171c,#2b2c2b 52%,#080d11)}.theme-house{background:radial-gradient(circle at 70% 20%,rgba(138,154,89,.13),transparent 25%),linear-gradient(140deg,#101816,#293026 52%,#0a1010)}.theme-cctv{background:radial-gradient(circle at 75% 20%,rgba(83,143,186,.22),transparent 25%),linear-gradient(140deg,#07151f,#153248 52%,#070e13)}.theme-page17{background:radial-gradient(circle at 75% 20%,rgba(168,111,192,.18),transparent 25%),linear-gradient(140deg,#16131c,#2d2440 52%,#0c0c12)}.theme-archive{background:radial-gradient(circle at 75% 18%,rgba(223,169,76,.18),transparent 25%),linear-gradient(140deg,#16130e,#3f2e1c 50%,#0d1114)}.scene-content{position:relative;z-index:2;max-width:800px}.scene-title{font-family:Georgia,serif;font-size:clamp(2rem,5vw,3rem);margin:4px 0 6px}.scene-sub{color:#c0ced6;max-width:700px;line-height:1.6}.scene-character{position:absolute;right:20px;bottom:18px;z-index:1;width:180px;opacity:.38;text-align:right}.scene-character img{width:160px;height:190px;object-fit:cover;object-position:top;border-radius:18px;margin-left:auto;filter:saturate(.75) contrast(1.06)}.scene-character span{display:block;font-family:Georgia,serif;font-weight:700;font-size:1.2rem;margin-top:6px}.scene-character small{font-size:.65rem;letter-spacing:.12em;color:#a8b8c1}.hotspot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px;max-width:760px}.hotspot{min-height:145px;padding:16px;border:1px solid #426070;background:rgba(7,20,29,.88);color:#fff;border-radius:16px;text-align:left;cursor:pointer;box-shadow:0 9px 25px rgba(0,0,0,.2);display:block}.hotspot:hover{border-color:var(--gold)}.hotspot.found{border-color:#3c7647;background:rgba(15,45,26,.78)}.hotspot:disabled{cursor:default}.hotspot .big-icon{font-size:2.1rem}.hotspot b{display:block;margin:9px 0 4px}.hotspot small{display:block;color:#9fb2be;line-height:1.4}.hotspot em{display:block;margin-top:12px;color:#d7bd79;font-style:normal;font-size:.7rem}.puzzle-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px;max-width:850px}.puzzle-note,.puzzle-console,.puzzle-box,.theory-compare{padding:18px;border:1px solid #455c69;background:rgba(6,16,22,.88);border-radius:16px}.puzzle-note h3,.puzzle-console h3{font-family:Georgia,serif;font-size:1.4rem;margin:5px 0 9px}.puzzle-role{font-size:.7rem;color:var(--gold2);font-weight:900}.puzzle-visual{margin:16px 0;padding:16px;border:1px dashed #5c6c72;border-radius:12px;background:#0b1b25;color:var(--gold2);font-family:Georgia,serif;font-size:1.5rem;letter-spacing:.08em;text-align:center}.partner-callout,.waiting-box,.success-box{margin-top:14px;padding:12px;border-radius:11px;font-size:.8rem;line-height:1.5}.partner-callout{background:#17233a;border:1px solid #384b78;color:#c7d7ef}.waiting-box{background:#1e2630;border:1px solid #48535c;color:#b8c4ca}.success-box{background:#153521;border:1px solid #39764a;color:#a9ecaf}.code-form{display:flex;gap:8px;margin-top:14px}.code-form input{min-width:0;flex:1;background:#06131c;border:1px solid #436071;color:#fff;border-radius:10px;padding:12px 13px;font-size:16px;text-transform:uppercase}.code-form button{border:0;background:var(--gold);color:#111;border-radius:10px;padding:10px 16px;font-weight:900;cursor:pointer}.timeline-list{display:grid;gap:8px;margin-top:20px;max-width:850px}.timeline-item{display:grid;grid-template-columns:100px 1fr auto;gap:10px;align-items:center;padding:11px;border:1px solid #344f61;border-radius:12px;background:rgba(11,27,39,.94)}.timeline-item b{color:var(--gold2)}.timeline-controls{display:flex;gap:5px}.timeline-controls button{border:1px solid #456277;background:#102a3b;color:#fff;border-radius:8px;padding:7px 10px;cursor:pointer}.theory-options{display:grid;gap:10px;margin-top:20px;max-width:800px}.theory-option{padding:15px;border:1px solid #415969;background:rgba(11,26,37,.94);border-radius:14px;color:#fff;text-align:left;cursor:pointer}.theory-option:hover{border-color:var(--gold)}.theory-option.selected{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold);background:#2b2418}.theory-option b,.theory-option small{display:block}.theory-option small{color:#9fb1bb;margin-top:5px;line-height:1.45}.theory-compare{display:grid;gap:4px;max-width:800px;margin-top:12px;border-color:#715d43}.theory-compare small{color:#bba886;margin-top:6px}
.side-panel{border:1px solid #284657;border-radius:16px;background:#091823;overflow:hidden;min-height:650px;display:flex;flex-direction:column}.side-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #284657}.side-tabs button{border:0;background:#0b1b27;color:#91a6b2;padding:12px 6px;cursor:pointer}.side-tabs button.active{color:#fff;background:#123047;box-shadow:inset 0 -2px var(--gold)}.tab-pane{display:none;min-height:0;flex:1;overflow:auto;padding:11px}.tab-pane.active{display:block}.evidence-list{display:grid;gap:9px}.evidence-card{display:grid;grid-template-columns:38px 1fr;gap:9px;padding:10px;border:1px solid #2e4859;border-radius:12px;background:#0b1d29}.evidence-card .ev-icon{font-size:1.5rem;display:grid;place-items:start center}.evidence-card b{display:block;font-size:.87rem}.evidence-card small{display:block;color:#c7a968;font-size:.67rem;margin-top:2px}.evidence-card p{margin:4px 0 0;color:#8fa4b1;font-size:.73rem;line-height:1.4}.share-mini{margin-top:8px;border:1px solid #365a71;background:#102a3b;color:#cfe0e8;border-radius:8px;padding:5px 8px;font-size:.67rem;cursor:pointer}.empty-state{padding:28px 12px;text-align:center;color:#8298a6;line-height:1.6}.chat-list{height:390px;overflow:auto;display:flex;flex-direction:column;gap:7px;padding-right:3px}.chat-msg{max-width:90%;padding:8px 10px;border-radius:11px;background:#113047;font-size:.78rem;line-height:1.45;white-space:pre-wrap}.chat-msg.mine{align-self:flex-end;background:#3a2e52}.chat-msg.system{max-width:100%;align-self:center;background:#18242d;color:#a8bbc6;text-align:center;font-size:.7rem}.chat-msg small{display:block;color:#7590a0;margin-bottom:2px}.quick-chat{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.quick-chat button{font-size:.67rem;border:1px solid #335066;background:#102434;color:#cce0ed;border-radius:999px;padding:6px 8px;cursor:pointer}.chat-form{display:grid;grid-template-columns:1fr 42px;gap:6px;margin-top:8px}.chat-form button{border:0;border-radius:10px;background:#173c57;color:#fff;cursor:pointer}.case-summary{padding:12px;border:1px solid #3b5260;border-radius:13px;background:#0c1f2b;margin-bottom:8px}.case-summary b{font-size:.68rem;color:var(--gold2)}.case-summary h3{font-family:Georgia,serif;margin:4px 0}.case-summary span{font-size:.68rem;color:#9eabb3}.case-progress{display:grid;gap:9px}.chapter-step{display:grid;grid-template-columns:28px 1fr;gap:8px;align-items:start;padding:10px;border:1px solid #2f4758;border-radius:12px;color:#90a5b2}.chapter-step.active{border-color:var(--gold);color:#fff}.chapter-step.done{border-color:#315e38;color:#9bd3a0}.chapter-step>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#172732}.chapter-step b,.chapter-step small{display:block}.chapter-step small{font-size:.7rem;margin-top:2px}
.result-view{width:min(950px,100%);margin:30px auto}.result-card{text-align:center;padding:35px;border:1px solid #355a3e;border-radius:24px;background:radial-gradient(circle at 50% 0,rgba(94,180,104,.15),transparent 30%),linear-gradient(#0d2118,#091710);box-shadow:var(--shadow)}.result-kicker{font-size:.72rem;color:#76c47e;font-weight:900;letter-spacing:.15em}.result-card h1{font-family:Georgia,serif;font-size:clamp(2rem,6vw,3.8rem);color:#8be091;margin:7px}.result-card>p{color:#bdd0c0;max-width:760px;margin:15px auto;line-height:1.7}.score-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:25px 0}.score-grid div{padding:17px;border:1px solid #31543a;border-radius:14px;background:#0c1c13}.score-grid b{display:block;font-size:1.7rem}.score-grid span{font-size:.7rem;color:#86a58a}.stars{font-size:2.1rem;color:var(--gold2);letter-spacing:.08em}.result-card blockquote{color:#d4dfd4;font-family:Georgia,serif;font-size:1.15rem}.secret-ending{max-width:700px;margin:20px auto;padding:15px;border:1px solid #6e4c8c;background:#21182c;border-radius:14px;text-align:left}.secret-ending b{color:#d7a9ef}.secret-ending p{color:#bba8c5;line-height:1.5;margin-bottom:0}.result-actions{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.74);z-index:50;display:grid;place-items:center;padding:18px}.modal-card{width:min(650px,100%);max-height:88vh;overflow:auto;position:relative;border:1px solid #466074;border-radius:20px;background:#0c1c28;padding:24px;box-shadow:var(--shadow)}.modal-close{position:absolute;right:10px;top:10px;width:38px;height:38px;border-radius:50%;border:1px solid #3b5364;background:#102331;color:#fff;font-size:1.4rem;cursor:pointer}.modal h2{font-family:Georgia,serif;font-size:2rem;margin:0 35px 10px 0}.modal p{color:#a8bac5;line-height:1.6}.modal-location{color:#d3b167!important;font-size:.78rem}.modal-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:15px}.secret{color:var(--purple)!important}.toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);z-index:80;background:#102531;border:1px solid #3d6074;color:#fff;border-radius:12px;padding:10px 14px;opacity:0;pointer-events:none;transition:.18s;box-shadow:var(--shadow);max-width:min(90vw,560px);text-align:center;font-size:.8rem}.toast.show{opacity:1;transform:translate(-50%,0)}
.install-card{padding:28px}.check-list{display:grid;gap:8px;margin:20px 0}.check-list div{display:flex;gap:9px;padding:11px;border:1px solid #2d4657;border-radius:10px}.steps{color:#b9c7cf;line-height:1.8}.narrow{max-width:760px}
@media(max-width:980px){.hero-card{grid-template-columns:1fr}.hero-art{min-height:330px;background:linear-gradient(180deg,transparent 65%,#07131c 100%),url('../img/rumya-cover.png') center/cover no-repeat}.hero-copy{padding:30px}.play-layout{grid-template-columns:1fr}.side-panel{min-height:480px}.scene-root,.scene{min-height:520px}.game-topbar{grid-template-columns:1fr auto}.room-chip{display:none}.top-actions{grid-column:2}.brand-mini span{display:none}.scene-character{opacity:.22}.chat-list{height:280px}}
@media(max-width:720px){.landing-shell{width:min(100% - 14px,1180px);padding-top:7px}.hero-card{border-radius:18px}.hero-art{min-height:260px}.hero-copy{padding:22px}.hero-copy h1{font-size:4.2rem}.play-grid,.case-grid{grid-template-columns:1fr}.season-strip{grid-template-columns:1fr}.season-stats{justify-content:start}.section-heading{display:block}.section-heading p{text-align:left}.role-picker{grid-template-columns:1fr}.game-shell{padding:5px}.duo-panel{grid-template-columns:1fr}.duo-link{display:none}.detective-card{grid-template-columns:60px 1fr auto}.detective-card img{width:60px;height:60px}.case-poster{padding:22px}.objective-bar{flex-wrap:wrap}.objective-bar strong{order:3;flex-basis:100%}.scene-root,.scene{min-height:480px}.scene{padding:18px}.scene-character{display:none}.hotspot-grid,.puzzle-grid{grid-template-columns:1fr}.hotspot{min-height:115px}.timeline-item{grid-template-columns:76px 1fr}.timeline-controls{grid-column:2;justify-content:flex-end}.score-grid{grid-template-columns:repeat(2,1fr)}.side-panel{min-height:440px}.chat-list{height:260px}.modal-card{padding:20px 16px}.site-footer{flex-direction:column;gap:6px}.status-pill{display:none}}
@media (orientation:landscape) and (max-height:600px){.game-topbar{position:static}.scene,.scene-root{min-height:410px}.side-panel{min-height:440px}.chat-list{height:220px}.lobby-view{margin-top:8px}.case-poster{padding:18px}.case-poster h1{font-size:2rem}.scene-character{display:none}}

/* ============================================================
   RUMYA v2.1.0 — VISUAL SCENE UPGRADE
   Full-image point & click presentation layer
   ============================================================ */
.visual-landing-v21{padding-top:0}.hero-v21{min-height:620px;border-color:#705a34;background:#050b10}.hero-v21 .hero-art{position:relative;min-height:620px;background:linear-gradient(90deg,transparent 58%,rgba(5,11,16,.94) 100%),linear-gradient(180deg,transparent 65%,rgba(5,11,16,.55) 100%),url('../img/rumya-cover.png') center/cover no-repeat}.hero-v21 .hero-art:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 40% 30%,rgba(232,182,78,.08),transparent 25%);pointer-events:none}.hero-cinema-lines{position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(255,255,255,.015) 0 1px,transparent 1px 4px);mix-blend-mode:screen;opacity:.5}.hero-case-stamp{position:absolute;left:24px;bottom:24px;padding:9px 12px;border:1px solid rgba(238,192,95,.55);border-radius:10px;background:rgba(4,12,18,.72);backdrop-filter:blur(8px);font-size:.68rem;letter-spacing:.16em;font-weight:900;color:#f0c66a}.hero-v21 .hero-copy{padding:52px 46px;background:linear-gradient(90deg,rgba(5,11,16,.65),#050b10 35%)}.hero-v21 .hero-copy h1{font-size:clamp(4.5rem,8vw,7.6rem);letter-spacing:.03em}.hero-lead{color:#9eb0b8;line-height:1.7;max-width:530px}.hero-play{align-self:flex-start;margin-top:22px;padding:13px 20px}.season-v21{border-color:#57482f;background:linear-gradient(135deg,rgba(23,31,37,.98),rgba(15,24,30,.98))}.visual-showcase{display:grid;grid-template-columns:1.4fr .8fr .8fr;gap:10px;margin:14px 0}.visual-shot{position:relative;min-height:210px;border:1px solid #344c58;border-radius:18px;overflow:hidden;background:#0a1720}.visual-shot-main{min-height:290px;grid-row:span 2}.visual-shot img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.visual-shot:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 50%,rgba(4,10,14,.9))}.visual-shot span{position:absolute;left:14px;bottom:12px;z-index:2;font-size:.68rem;letter-spacing:.13em;font-weight:900;color:#f1d28b}.play-panel-v21{border-color:#3e5662;background:linear-gradient(180deg,rgba(12,29,39,.98),rgba(7,17,24,.98))}.role-option span{position:relative;grid-template-columns:58px 1fr;min-height:78px}.role-option img{width:58px;height:58px}.role-option em{grid-column:2;color:#718b99;font-size:.66rem;font-style:normal;margin-top:2px}.join-visual{position:relative;overflow:hidden}.join-art{position:absolute;right:-20px;top:-18px;width:180px;height:245px;opacity:.18;transform:rotate(5deg);border-radius:14px;overflow:hidden;pointer-events:none}.join-art img{width:100%;height:100%;object-fit:cover}.join-visual>*:not(.join-art){position:relative;z-index:1}
.case-grid-v21{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.case-card-v21{position:relative;min-height:330px;padding:0;overflow:hidden;border-radius:18px;background:#07131c;isolation:isolate}.case-card-v21>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s ease,filter .35s ease}.case-card-v21 .case-card-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02) 28%,rgba(4,10,14,.92) 74%,rgba(4,10,14,.99));z-index:1}.case-card-copy{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:16px;display:grid;gap:5px}.case-card-v21 .case-no{color:#f0c66a}.case-card-v21 b{font-size:1.12rem;line-height:1.2}.case-card-v21 small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.7rem}.case-card-v21:hover>img,.case-card-v21.selected>img{transform:scale(1.045);filter:saturate(1.08) brightness(1.06)}.case-card-v21.selected{box-shadow:0 0 0 2px rgba(214,168,79,.8),0 18px 40px rgba(0,0,0,.32)}

/* Lobby poster receives a dynamic cover from app.js */
.case-poster{position:relative;overflow:hidden;isolation:isolate;background:#09141d}.case-poster:before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(6,15,22,.96) 0%,rgba(6,15,22,.82) 48%,rgba(6,15,22,.22) 100%),var(--case-poster,none);background-size:cover;background-position:center;z-index:-2}.case-poster:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(214,168,79,.06),transparent 40%);z-index:-1}.detective-card{overflow:hidden;position:relative}.detective-card:after{content:"";position:absolute;inset:auto 0 0;height:2px;background:linear-gradient(90deg,transparent,var(--gold),transparent);opacity:.3}.detective-card.mine:after{opacity:1}

/* Main full visual stage */
.scene-root{min-height:680px;background:#050d13}.visual-scene-v21{min-height:680px;padding:0;background:#050c12;display:grid;grid-template-columns:minmax(260px,36%) 1fr;align-items:stretch;position:relative}.visual-scene-v21 .scene-art-layer{position:absolute;inset:0;background-image:var(--scene-art);background-size:cover;background-position:center;filter:saturate(.94) contrast(1.03);transform:scale(1.01)}.visual-scene-v21 .scene-overlay{z-index:1;background:linear-gradient(90deg,rgba(3,9,13,.96) 0%,rgba(3,9,13,.74) 35%,rgba(3,9,13,.15) 68%,rgba(3,9,13,.38) 100%),linear-gradient(180deg,rgba(0,0,0,.10),rgba(0,0,0,.55))}.scene-story-panel{position:relative;z-index:3;align-self:stretch;padding:30px 24px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(90deg,rgba(5,13,19,.94),rgba(5,13,19,.66),transparent);min-width:0}.scene-story-panel .scene-title{font-family:Georgia,serif;font-size:clamp(2rem,4vw,3.4rem);line-height:1;margin:8px 0 12px;text-shadow:0 4px 22px rgba(0,0,0,.6)}.scene-story-panel .scene-sub{color:#b4c1c6;line-height:1.62;max-width:470px;margin:0}.scene-dialogue{display:grid;grid-template-columns:62px 1fr;gap:11px;align-items:center;margin-top:22px;padding:10px;border:1px solid rgba(214,168,79,.28);border-radius:15px;background:rgba(5,15,22,.76);backdrop-filter:blur(10px)}.scene-dialogue img{width:62px;height:62px;border-radius:12px;object-fit:cover;border:1px solid rgba(240,198,106,.6)}.scene-dialogue b,.scene-dialogue small{display:block}.scene-dialogue small{font-size:.62rem;letter-spacing:.10em;color:#d6a84f;margin-top:2px}.scene-dialogue p{margin:6px 0 0;color:#d9e0e2;font-family:Georgia,serif;font-size:.85rem;line-height:1.4}.scene-interaction-area{position:relative;z-index:4;min-height:680px;display:flex;align-items:flex-end;justify-content:flex-end;padding:22px;min-width:0}
.hotspot-layer{position:absolute;inset:0;pointer-events:none}.visual-hotspot{pointer-events:auto;position:absolute;width:min(220px,30%);min-height:76px;padding:9px 10px 9px 48px;border:1px solid rgba(238,195,99,.55);border-radius:14px;background:rgba(6,15,21,.79);backdrop-filter:blur(9px);color:#fff;text-align:left;cursor:pointer;box-shadow:0 10px 28px rgba(0,0,0,.28);transition:transform .16s ease,border-color .16s ease,background .16s ease}.visual-hotspot:hover{transform:translateY(-3px);border-color:#f0c66a;background:rgba(10,25,34,.93)}.visual-hotspot .big-icon{position:absolute;left:10px;top:13px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(214,168,79,.18);font-size:1.2rem}.hotspot-label b,.hotspot-label small,.hotspot-label em{display:block}.hotspot-label b{font-size:.78rem;line-height:1.2}.hotspot-label small{font-size:.62rem;color:#9fb0b8;margin-top:3px}.hotspot-label em{font-size:.60rem;color:#e4c477;margin-top:5px;font-style:normal;text-transform:uppercase;letter-spacing:.08em}.hotspot-pulse{position:absolute;left:20px;top:23px;width:10px;height:10px;border-radius:50%;border:1px solid #f0c66a;animation:rumyaPulse 2s infinite;opacity:.9}.visual-hotspot.found{border-color:rgba(118,196,126,.55);background:rgba(12,38,24,.82);opacity:.78}.visual-hotspot.found .hotspot-pulse{display:none}.visual-hotspot.slot-1{left:8%;top:24%}.visual-hotspot.slot-2{right:9%;top:18%}.visual-hotspot.slot-3{left:29%;top:49%}.visual-hotspot.slot-4{right:7%;top:56%}.visual-hotspot.slot-5{left:13%;bottom:13%}.visual-hotspot.slot-6{right:30%;bottom:8%}@keyframes rumyaPulse{0%{box-shadow:0 0 0 0 rgba(240,198,106,.55)}70%{box-shadow:0 0 0 14px rgba(240,198,106,0)}100%{box-shadow:0 0 0 0 rgba(240,198,106,0)}}

.visual-puzzle-v21{width:min(850px,100%);margin:0;align-self:flex-end}.visual-puzzle-v21 .puzzle-note,.visual-puzzle-v21 .puzzle-console{background:rgba(5,14,20,.9);backdrop-filter:blur(12px);border-color:rgba(214,168,79,.34);box-shadow:0 18px 42px rgba(0,0,0,.35)}.console-lights{display:flex;gap:5px;margin-bottom:10px}.console-lights i{width:8px;height:8px;border-radius:50%;background:#55717f}.console-lights i:nth-child(1){background:#ba6a5c}.console-lights i:nth-child(2){background:#d3a64f}.console-lights i:nth-child(3){background:#6cae72}.puzzle-visual{font-size:clamp(1.3rem,3vw,2rem);background:rgba(3,12,18,.9);box-shadow:inset 0 0 24px rgba(214,168,79,.06)}
.timeline-board-v21{width:min(900px,100%);margin-left:auto;padding:18px;border:1px solid rgba(214,168,79,.25);border-radius:18px;background:rgba(5,14,20,.82);backdrop-filter:blur(11px)}.timeline-board-v21 .timeline-list{margin-top:0}.timeline-item{grid-template-columns:32px 90px 1fr auto;background:rgba(8,22,31,.9);backdrop-filter:blur(8px)}.timeline-pin{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#d6a84f;color:#19130b;font-size:.68rem;font-weight:900}.theory-stage-v21{width:min(900px,100%);margin-left:auto;padding:18px;border-radius:18px;border:1px solid rgba(214,168,79,.24);background:rgba(5,14,20,.84);backdrop-filter:blur(12px)}.theory-stage-v21 .theory-options{max-width:none;margin-top:0}.theory-option{position:relative;padding-left:58px;min-height:78px;background:rgba(8,22,31,.91)}.theory-number{position:absolute;left:14px;top:18px;font-family:Georgia,serif;font-size:1.35rem;color:#d6a84f}.theory-lock{margin-top:12px}.theory-lock p{margin-top:0}

/* Evidence visual modal */
.modal-card{width:min(760px,100%);background:linear-gradient(145deg,#0c1c28,#08131b)}.clue-modal-v21{display:grid;grid-template-columns:minmax(210px,.75fr) 1.25fr;gap:20px;align-items:stretch}.clue-photo{position:relative;min-height:300px;border-radius:16px;overflow:hidden;border:1px solid #5d4d32;display:grid;place-items:center;isolation:isolate}.clue-photo-bg{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.06),rgba(3,9,13,.72)),url('../img/scenes/evidence-board.webp') center/cover;z-index:-1}.clue-photo>span{font-size:5.5rem;filter:drop-shadow(0 10px 22px rgba(0,0,0,.5))}.clue-photo>small{position:absolute;left:12px;bottom:10px;font-size:.62rem;letter-spacing:.11em;color:#efd18f}.clue-copy{padding:5px 0}.clue-copy h2{font-size:2.2rem}.clue-copy>p{font-size:.9rem}

/* Result with dynamic case cover */
.result-view{position:relative;padding:26px 0}.result-view:before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(5,15,11,.96),rgba(5,15,11,.74),rgba(5,15,11,.94)),var(--result-art);background-size:cover;background-position:center;border-radius:28px;filter:saturate(.82);opacity:.95}.result-card{position:relative;z-index:2;background:rgba(6,23,13,.82);backdrop-filter:blur(12px);border-color:rgba(118,196,126,.55)}

@media(max-width:1180px){.case-grid-v21{grid-template-columns:repeat(3,minmax(0,1fr))}.case-card-v21{min-height:360px}.visual-scene-v21{grid-template-columns:minmax(250px,40%) 1fr}.visual-hotspot{width:min(210px,34%)}}
@media(max-width:980px){.hero-v21{grid-template-columns:1fr;min-height:0}.hero-v21 .hero-art{min-height:430px}.hero-v21 .hero-copy{background:#050b10}.visual-showcase{grid-template-columns:1fr 1fr}.visual-shot-main{grid-column:1/-1;grid-row:auto}.case-grid-v21{grid-template-columns:repeat(2,minmax(0,1fr))}.visual-scene-v21{grid-template-columns:1fr;min-height:640px}.scene-story-panel{align-self:start;min-height:260px;justify-content:flex-start;background:linear-gradient(180deg,rgba(4,11,16,.95),rgba(4,11,16,.50),transparent)}.scene-interaction-area{min-height:640px;position:absolute;inset:0;padding-top:270px}.visual-hotspot.slot-1{left:6%;top:44%}.visual-hotspot.slot-2{right:6%;top:42%}.visual-hotspot.slot-3{left:19%;top:60%}.visual-hotspot.slot-4{right:6%;top:67%}.timeline-board-v21,.theory-stage-v21,.visual-puzzle-v21{margin:0 10px 10px;width:calc(100% - 20px);align-self:flex-end}}
@media(max-width:720px){.hero-v21 .hero-art{min-height:300px}.hero-v21 .hero-copy{padding:24px}.hero-case-stamp{left:12px;bottom:12px}.visual-showcase{grid-template-columns:1fr}.visual-shot,.visual-shot-main{min-height:190px}.case-grid-v21{grid-template-columns:1fr 1fr;gap:8px}.case-card-v21{min-height:300px;border-radius:14px}.case-card-copy{padding:11px}.case-card-v21 b{font-size:.95rem}.case-card-v21 small{display:none}.scene-root,.visual-scene-v21{min-height:620px}.scene-story-panel{padding:18px 14px;min-height:245px}.scene-story-panel .scene-title{font-size:2rem}.scene-dialogue{grid-template-columns:48px 1fr;margin-top:12px}.scene-dialogue img{width:48px;height:48px}.scene-dialogue p{font-size:.76rem}.scene-interaction-area{min-height:620px;padding:250px 10px 10px}.visual-hotspot{position:absolute;width:44%;min-height:64px;padding:8px 8px 8px 42px}.visual-hotspot .big-icon{left:8px;top:11px;width:28px;height:28px}.hotspot-pulse{left:17px;top:20px}.visual-hotspot.slot-1{left:4%;top:43%}.visual-hotspot.slot-2{right:4%;top:43%}.visual-hotspot.slot-3{left:4%;top:60%}.visual-hotspot.slot-4{right:4%;top:60%}.visual-hotspot.slot-5{left:4%;bottom:7%}.visual-hotspot.slot-6{right:4%;bottom:7%}.hotspot-label small{display:none}.puzzle-grid.visual-puzzle-v21{grid-template-columns:1fr}.timeline-item{grid-template-columns:28px 68px 1fr}.timeline-controls{grid-column:3}.clue-modal-v21{grid-template-columns:1fr}.clue-photo{min-height:200px}.clue-photo>span{font-size:4rem}.modal-card{padding:16px}.result-view{padding:10px}.result-view:before{border-radius:20px}}
@media(max-width:430px){.case-grid-v21{grid-template-columns:1fr}.case-card-v21{min-height:360px}.visual-hotspot{width:46%;padding-left:38px}.hotspot-label b{font-size:.70rem}.hero-v21 .hero-copy h1{font-size:3.8rem}}
@media(prefers-reduced-motion:reduce){.hotspot-pulse{animation:none}.case-card-v21>img,.visual-hotspot{transition:none}}

/* =========================================================
   RUMYA v2.2.0 — Gameplay Experience Overhaul
   Scene-first point-and-click layout
   ========================================================= */
body.notebook-open{overflow:hidden}
.gameplay-v22{width:min(1600px,100%);padding:8px 10px 20px}
.play-view-v22{margin-top:10px}
.immersive-stage{position:relative;border:1px solid #294858;border-radius:20px;overflow:hidden;background:#03090e;box-shadow:0 24px 70px rgba(0,0,0,.42)}
.scene-root-v22{position:relative;min-height:760px;background:#03090e;overflow:hidden}
.scene-v22{position:relative;min-height:760px;isolation:isolate;overflow:hidden;background:#061018}
.scene-photo-v22{position:absolute;inset:0;background-image:var(--scene-art);background-size:cover;background-position:center;filter:saturate(1.06) contrast(1.07) brightness(1.12);transform:scale(1.015);z-index:-4;animation:rumyaSceneDrift 18s ease-in-out infinite alternate}
.scene-light-v22{position:absolute;inset:0;z-index:-3;pointer-events:none;background:linear-gradient(180deg,rgba(2,7,11,.10),rgba(2,7,11,.02) 50%,rgba(2,7,11,.48)),radial-gradient(circle at 74% 34%,rgba(232,191,97,.11),transparent 28%),linear-gradient(90deg,rgba(3,9,13,.30),transparent 32%,transparent 72%,rgba(3,9,13,.20))}
.scene-focus-shade{position:absolute;inset:0;z-index:-3;background:linear-gradient(180deg,rgba(3,8,12,.45),rgba(3,8,12,.78)),radial-gradient(circle at 50% 42%,rgba(10,28,39,.10),rgba(2,6,10,.46) 65%);backdrop-filter:blur(1.2px)}
.ambient-dust{position:absolute;width:5px;height:5px;border-radius:50%;background:rgba(243,213,151,.48);box-shadow:110px 42px rgba(243,213,151,.18),205px 150px rgba(243,213,151,.12),480px 55px rgba(243,213,151,.18),780px 180px rgba(243,213,151,.12),1020px 95px rgba(243,213,151,.16);opacity:.55;animation:dustFloat 8s ease-in-out infinite alternate;pointer-events:none}.ambient-dust.d1{left:8%;top:20%}.ambient-dust.d2{right:18%;top:44%;animation-delay:-3s;transform:scale(.7)}
@keyframes dustFloat{from{translate:0 0;opacity:.25}to{translate:12px -14px;opacity:.65}}
@keyframes rumyaSceneDrift{from{transform:scale(1.015) translate3d(0,0,0)}to{transform:scale(1.045) translate3d(-.35%,.2%,0)}}

.mission-hud{position:absolute;z-index:8;top:16px;left:16px;display:flex;align-items:center;gap:10px;max-width:min(680px,calc(100% - 32px));padding:9px 13px;border:1px solid rgba(226,185,94,.36);border-radius:999px;background:rgba(4,12,18,.74);backdrop-filter:blur(14px);box-shadow:0 12px 34px rgba(0,0,0,.25)}
.mission-hud span{flex:0 0 auto;font-size:.63rem;font-weight:900;letter-spacing:.08em;color:#f0c66a}.mission-hud strong{font-size:.78rem;color:#e9eef0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scene-caption-v22{position:absolute;z-index:4;left:24px;top:78px;width:min(390px,45%);padding:15px 17px;border-left:2px solid rgba(240,198,106,.75);background:linear-gradient(90deg,rgba(3,10,15,.82),rgba(3,10,15,.32),transparent);text-shadow:0 2px 12px rgba(0,0,0,.7)}
.scene-caption-v22 span,.focus-heading>span{display:block;font-size:.62rem;letter-spacing:.13em;color:#efc76f;font-weight:900}.scene-caption-v22 h2,.focus-heading h2{font-family:Georgia,serif;margin:4px 0 5px;font-size:clamp(1.65rem,3vw,2.5rem);line-height:1.02}.scene-caption-v22 p,.focus-heading p{margin:0;color:#c4d0d4;font-size:.79rem;line-height:1.48;max-width:34rem}
.explore-tip{position:absolute;z-index:5;top:22px;right:22px;padding:8px 11px;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:rgba(3,10,15,.56);backdrop-filter:blur(10px);font-size:.68rem;color:#cbd7db}

.hotspot-field-v22{position:absolute;inset:0;z-index:5}
.scene-hotspot-v22{position:absolute;left:var(--x);top:var(--y);width:48px;height:48px;transform:translate(-50%,-50%);border:0;background:transparent;padding:0;cursor:pointer;overflow:visible;color:#111}
.hotspot-core{position:absolute;inset:6px;z-index:2;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(255,226,156,.88);background:radial-gradient(circle at 35% 30%,#f9df9b,#d6a84f 68%,#8c6826);box-shadow:0 4px 18px rgba(0,0,0,.45),0 0 0 4px rgba(214,168,79,.15);font-size:1rem;transition:transform .16s ease,filter .16s ease}
.hotspot-sonar,.hotspot-sonar:before{position:absolute;inset:0;border-radius:50%;border:1px solid rgba(240,198,106,.7);content:"";animation:sonarV22 2.1s infinite;pointer-events:none}.hotspot-sonar:before{inset:-9px;opacity:.45;animation-delay:.38s}
@keyframes sonarV22{0%{transform:scale(.5);opacity:.95}80%,100%{transform:scale(1.4);opacity:0}}
.scene-hotspot-v22:hover .hotspot-core,.scene-hotspot-v22:focus-visible .hotspot-core{transform:scale(1.12);filter:brightness(1.12)}
.scene-hotspot-v22:focus-visible{outline:2px solid #fff;outline-offset:7px;border-radius:50%}
.hotspot-tooltip{position:absolute;left:54px;top:50%;width:190px;transform:translateY(-50%) translateX(-4px);padding:9px 11px;border:1px solid rgba(240,198,106,.36);border-radius:11px;background:rgba(4,13,19,.92);backdrop-filter:blur(13px);color:#fff;text-align:left;box-shadow:0 16px 32px rgba(0,0,0,.34);opacity:0;visibility:hidden;transition:.16s ease;pointer-events:none}
.hotspot-tooltip:before{content:"";position:absolute;left:-5px;top:50%;width:9px;height:9px;transform:translateY(-50%) rotate(45deg);background:rgba(4,13,19,.94);border-left:1px solid rgba(240,198,106,.36);border-bottom:1px solid rgba(240,198,106,.36)}
.hotspot-tooltip b,.hotspot-tooltip small,.hotspot-tooltip em{display:block}.hotspot-tooltip b{font-size:.76rem}.hotspot-tooltip small{font-size:.63rem;color:#9fb0b8;margin-top:3px}.hotspot-tooltip em{font-style:normal;font-size:.58rem;letter-spacing:.07em;text-transform:uppercase;color:#e6c679;margin-top:7px}
.scene-hotspot-v22:hover .hotspot-tooltip,.scene-hotspot-v22:focus-visible .hotspot-tooltip{opacity:1;visibility:visible;transform:translateY(-50%) translateX(0)}
.scene-hotspot-v22.found{cursor:default}.scene-hotspot-v22.found .hotspot-core{background:radial-gradient(circle at 35% 30%,#c0e9c4,#67aa70 70%,#2f6437);border-color:#bcebc1}.scene-hotspot-v22.found .hotspot-sonar{display:none}.scene-hotspot-v22.found .hotspot-tooltip{border-color:rgba(118,196,126,.35)}

.scene-dialogue-v22{position:absolute;z-index:7;left:24px;bottom:94px;display:grid;grid-template-columns:62px minmax(0,1fr);gap:11px;align-items:center;width:min(520px,calc(100% - 48px));padding:10px 13px;border-radius:16px;border:1px solid rgba(240,198,106,.25);background:linear-gradient(90deg,rgba(4,12,18,.94),rgba(5,16,23,.78));backdrop-filter:blur(15px);box-shadow:0 18px 42px rgba(0,0,0,.34)}
.scene-dialogue-v22 img{width:62px;height:62px;border-radius:13px;object-fit:cover;border:1px solid rgba(240,198,106,.48)}
.scene-dialogue-v22 span{display:block;font-size:.55rem;letter-spacing:.12em;color:#d7af54}.scene-dialogue-v22 b{font-family:Georgia,serif;font-size:1.03rem}.scene-dialogue-v22 p{margin:3px 0 0;font-family:Georgia,serif;font-size:.82rem;line-height:1.35;color:#e1e7e8}
.scene-dialogue-v22.compact{left:24px;bottom:24px;width:min(430px,calc(100% - 48px));grid-template-columns:50px 1fr}.scene-dialogue-v22.compact img{width:50px;height:50px}.scene-dialogue-v22.compact p{font-size:.75rem}

.action-dock{position:absolute;z-index:10;right:18px;bottom:16px;display:flex;gap:8px;padding:7px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(3,11,17,.78);backdrop-filter:blur(15px);box-shadow:0 14px 36px rgba(0,0,0,.38)}
.dock-btn{min-width:90px;height:62px;display:grid;grid-template-columns:27px 1fr;grid-template-rows:auto auto;column-gap:7px;align-items:center;text-align:left;padding:8px 10px;border:1px solid transparent;border-radius:12px;background:transparent;color:#eef2f3;cursor:pointer;transition:.16s ease}
.dock-btn:hover{background:#102633;border-color:#345062;transform:translateY(-2px)}.dock-btn>span{grid-row:1/3;font-size:1.3rem}.dock-btn b{font-size:.71rem}.dock-btn small{font-size:.56rem;color:#8ea5b0}.dock-btn.hint{background:rgba(92,79,28,.20);border-color:rgba(214,168,79,.18)}

.focus-heading{position:absolute;left:24px;top:78px;z-index:4;width:min(480px,calc(100% - 48px));padding:12px 14px;border-left:2px solid rgba(240,198,106,.75);background:linear-gradient(90deg,rgba(3,10,15,.82),transparent)}
.focus-workbench{position:relative;z-index:5;display:flex;align-items:center;justify-content:center;min-height:760px;padding:170px 26px 110px}
.puzzle-v22{width:min(980px,100%);display:grid;grid-template-columns:1fr 1fr;gap:14px}
.puzzle-clue-v22,.puzzle-device-v22{min-height:330px;padding:23px;border:1px solid rgba(214,168,79,.32);border-radius:20px;background:linear-gradient(145deg,rgba(8,22,31,.94),rgba(4,12,18,.94));backdrop-filter:blur(18px);box-shadow:0 24px 55px rgba(0,0,0,.34)}
.workbench-label{font-size:.59rem;letter-spacing:.13em;color:#d8b35e;font-weight:900}.puzzle-v22 h3{font-family:Georgia,serif;font-size:1.7rem;margin:7px 0 10px}.puzzle-v22 p{font-size:.82rem;line-height:1.55;color:#b9c7cc}.puzzle-symbols-v22{margin:22px 0;padding:22px;border-radius:14px;border:1px solid #314957;background:#02090e;color:#f0cc79;text-align:center;font-family:Georgia,serif;font-size:clamp(1.45rem,4vw,2.55rem);letter-spacing:.12em;box-shadow:inset 0 0 30px rgba(214,168,79,.05)}
.partner-callout-v22{margin-top:18px;padding:11px;border-radius:11px;background:#0d2a3a;border:1px solid #315468;font-size:.72rem;line-height:1.45;color:#d7e5ea}.device-top{display:flex;align-items:center;gap:5px;font-size:.56rem;letter-spacing:.12em;color:#708995}.device-top i{width:7px;height:7px;border-radius:50%;background:#b65d55}.device-top i:nth-child(2){background:#cca94a}.device-top i:nth-child(3){background:#69a972}.device-top span{margin-left:auto}.code-form-v22{display:grid;grid-template-columns:1fr 130px;gap:8px;margin-top:25px}.code-form-v22 input{min-width:0;background:#02090e;color:#fff;border:1px solid #4c6470;border-radius:12px;padding:14px 15px;font-size:1.15rem;letter-spacing:.12em;outline:none}.code-form-v22 input:focus{border-color:#d6a84f;box-shadow:0 0 0 3px rgba(214,168,79,.1)}.code-form-v22 button,.big-action-v22{border:1px solid #f1ca73;border-radius:12px;background:linear-gradient(#e4b75f,#c78f32);color:#171109;font-weight:900;cursor:pointer;padding:13px 16px;box-shadow:0 10px 25px rgba(0,0,0,.24)}.waiting-box-v22,.success-box-v22{margin-top:25px;padding:26px 18px;border-radius:14px;text-align:center;font-size:.72rem;font-weight:900;letter-spacing:.08em}.waiting-box-v22{background:#0b202d;border:1px solid #315065;color:#cddde5}.success-box-v22{background:#12351d;border:1px solid #3f7949;color:#aee6b4}.waiting-box-v22 div,.success-box-v22 div{margin-top:6px;font-size:.7rem;font-weight:500;letter-spacing:0;color:#93abb7}

.timeline-v22{width:min(1050px,100%);padding:18px;border-radius:20px;border:1px solid rgba(214,168,79,.28);background:rgba(4,13,19,.88);backdrop-filter:blur(18px);box-shadow:0 24px 60px rgba(0,0,0,.38)}
.timeline-track-v22{display:grid;gap:9px}.timeline-card-v22{display:grid;grid-template-columns:38px 86px 1fr auto;gap:11px;align-items:center;min-height:64px;padding:9px 11px;border:1px solid #2f4958;border-radius:13px;background:rgba(9,25,34,.88);transition:.15s ease}.timeline-card-v22:hover{border-color:#765f33;background:#102632}.timeline-order{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#d6a84f;color:#19130b;font-weight:900}.timeline-card-v22 time{font-family:Georgia,serif;color:#efc66b;font-weight:700}.timeline-card-v22 p{margin:0;font-size:.76rem;line-height:1.4;color:#d1dcdf}.timeline-card-v22>div{display:flex;gap:5px}.timeline-card-v22 button{width:35px;height:35px;border-radius:9px;border:1px solid #395464;background:#0c1f2c;color:#fff;cursor:pointer}.timeline-card-v22 button:disabled{opacity:.25;cursor:default}.timeline-v22>.big-action-v22{display:block;margin:15px auto 0;min-width:230px}

.theory-v22{width:min(1000px,100%);display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;padding:16px;border:1px solid rgba(214,168,79,.28);border-radius:20px;background:rgba(4,13,19,.89);backdrop-filter:blur(18px);box-shadow:0 24px 60px rgba(0,0,0,.38)}
.theory-list-v22{display:grid;gap:9px}.theory-card-v22{display:grid;grid-template-columns:46px 1fr 26px;gap:10px;align-items:center;min-height:82px;padding:10px 12px;border:1px solid #324a58;border-radius:14px;background:#0b1e29;color:#fff;text-align:left;cursor:pointer}.theory-card-v22:hover{border-color:#92733d;background:#102734}.theory-card-v22.selected{border-color:#d6a84f;background:linear-gradient(90deg,#2a2417,#10232c);box-shadow:inset 0 0 0 1px rgba(214,168,79,.35)}.theory-card-v22>span{font-family:Georgia,serif;font-size:1.25rem;color:#d6a84f}.theory-card-v22 b,.theory-card-v22 small{display:block}.theory-card-v22 small{margin-top:4px;color:#91a6b0;line-height:1.4}.theory-card-v22>i{font-style:normal;font-size:1.25rem;color:#d6a84f}.theory-lock-v22{align-self:stretch;display:flex;flex-direction:column;gap:10px;padding:17px;border-radius:14px;border:1px solid #314957;background:#07151e}.theory-lock-v22 span{font-size:.74rem;color:#9eb0b8}.theory-lock-v22 span b{color:#fff}.theory-lock-v22 .big-action-v22{margin-top:auto}.theory-lock-v22 .big-action-v22:disabled{opacity:.42;cursor:not-allowed}.theory-warning-v22{grid-column:1/-1;display:grid;gap:3px;padding:11px;border-radius:11px;background:#351c1c;border:1px solid #744345;font-size:.7rem;color:#e8c8c5}.theory-warning-v22 b{color:#fff}

/* Notebook */
.notebook-drawer{position:fixed;inset:0;z-index:90}.notebook-backdrop{position:absolute;inset:0;background:rgba(1,5,8,.72);backdrop-filter:blur(5px)}.notebook-shell{position:absolute;right:14px;top:14px;bottom:14px;width:min(720px,calc(100% - 28px));display:grid;grid-template-rows:auto auto 1fr;border:1px solid #6d5731;border-radius:22px;background:linear-gradient(145deg,#0e1d27,#07131a);box-shadow:0 30px 90px rgba(0,0,0,.62);overflow:hidden;animation:notebookIn .18s ease-out}.notebook-shell:before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:linear-gradient(#8a682c,#d6a84f,#7d5f29)}
@keyframes notebookIn{from{transform:translateX(24px);opacity:.2}to{transform:none;opacity:1}}
.notebook-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 13px 26px;border-bottom:1px solid #2d4553;background:linear-gradient(90deg,#102431,#091821)}.notebook-head span{font-size:.57rem;letter-spacing:.15em;color:#d8b45d}.notebook-head h2{margin:3px 0 0;font-family:Georgia,serif;font-size:1.55rem}.notebook-head button{width:40px;height:40px;border-radius:50%;border:1px solid #405765;background:#0a1821;color:#fff;font-size:1.45rem;cursor:pointer}.notebook-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:8px 10px 0 16px;background:#08151d;border-bottom:1px solid #2b4351}.notebook-tabs button{padding:11px 8px;border:0;border-bottom:2px solid transparent;background:transparent;color:#91a5af;cursor:pointer}.notebook-tabs button.active{color:#f0c66a;border-color:#d6a84f;background:linear-gradient(180deg,transparent,rgba(214,168,79,.06))}.notebook-pages{min-height:0;overflow:hidden;padding:16px 18px 18px 24px}.notebook-pages .tab-pane{height:100%;overflow:auto;padding-right:5px}.notebook-page-title{margin-bottom:14px}.notebook-page-title>span{font-size:.57rem;letter-spacing:.14em;color:#d8b45d}.notebook-page-title h3{font-family:Georgia,serif;font-size:1.5rem;margin:3px 0}.notebook-page-title p{margin:0;color:#8ea4ae;font-size:.75rem}.evidence-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.evidence-card-v22{display:grid;grid-template-columns:60px 1fr;gap:10px;min-width:0;padding:10px;border:1px solid #2d4757;border-radius:13px;background:#0a1b25}.evidence-thumb-v22{width:60px;height:66px;display:grid;place-items:center;border-radius:10px;background:radial-gradient(circle at 35% 30%,#203d4c,#0b1a23);font-size:1.7rem;border:1px solid #365364}.evidence-card-v22 span{display:block;color:#c5a45d;font-size:.57rem;text-transform:uppercase}.evidence-card-v22 b{display:block;margin-top:2px;font-size:.78rem}.evidence-card-v22 p{font-size:.67rem;line-height:1.4;color:#8fa4ae;margin:5px 0}.notebook-empty{display:grid;place-items:center;min-height:250px}.notebook-empty span{font-size:2rem}.notebook-empty b{font-family:Georgia,serif;font-size:1.25rem}.notebook-empty p{margin-top:0}.notebook-pages .chat-list{height:calc(100% - 140px);min-height:250px}.case-summary-v22{position:relative;min-height:170px;padding:20px;border:1px solid #45533f;border-radius:16px;overflow:hidden;background:#10202a;isolation:isolate}.case-summary-v22:before{content:"";position:absolute;inset:0;z-index:-2;background-image:var(--case-cover);background-size:cover;background-position:center;opacity:.45}.case-summary-v22:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#07131a 20%,rgba(7,19,26,.62),rgba(7,19,26,.92))}.case-summary-v22 b{font-size:.63rem;color:#e2bb63}.case-summary-v22 h3{font-family:Georgia,serif;font-size:1.7rem;margin:7px 0}.case-summary-v22 span{font-size:.7rem;color:#c0ccd1}.chapter-road-v22{display:grid;gap:8px;margin-top:10px}.chapter-step-v22{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:center;padding:9px;border:1px solid #2c4554;border-radius:12px;color:#839aa6}.chapter-step-v22>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#162832}.chapter-step-v22 b,.chapter-step-v22 small{display:block}.chapter-step-v22 small{font-size:.64rem;margin-top:2px}.chapter-step-v22.active{border-color:#d6a84f;color:#fff;background:#1b211c}.chapter-step-v22.done{border-color:#3b6c43;color:#a9d9ae}

/* Investigation modal */
.clue-inspection-v22{display:grid;grid-template-columns:minmax(240px,.85fr) 1.15fr;gap:20px}.inspection-visual{position:relative;min-height:330px;border-radius:17px;overflow:hidden;border:1px solid #5c4b2f;background:#061019;display:grid;place-items:center}.inspection-scene{position:absolute;inset:0;background-image:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.72)),var(--inspection-art);background-size:cover;background-position:center;filter:blur(.4px) saturate(.88)}.inspection-icon{position:relative;z-index:2;width:105px;height:105px;border-radius:50%;display:grid;place-items:center;background:rgba(4,13,19,.78);border:1px solid rgba(240,198,106,.48);backdrop-filter:blur(12px);font-size:3.6rem;box-shadow:0 16px 35px rgba(0,0,0,.38)}.inspection-visual>span{position:absolute;z-index:2;left:13px;bottom:12px;font-size:.58rem;letter-spacing:.12em;color:#efcd85}.inspection-copy h2{font-family:Georgia,serif;font-size:2.2rem;margin:6px 0}.inspection-text{font-size:.9rem;line-height:1.65;color:#c3cfd3}.secret-card-v22{margin:14px 0;padding:11px;border:1px solid #755889;border-radius:12px;background:#21162b;color:#d8c4e5}.secret-card-v22 p{margin:4px 0 0;font-size:.75rem}.hint-note-v22{padding:6px 4px}.hint-note-v22>span{font-size:.58rem;letter-spacing:.13em;color:#d8b45d}.hint-note-v22 h2{font-family:Georgia,serif;font-size:2rem;margin:7px 0}.hint-note-v22 p{font-size:1rem;line-height:1.65}.hint-note-v22 small{color:#8fa3ad}

@media(max-width:980px){
  .scene-root-v22,.scene-v22,.focus-workbench{min-height:680px}.mission-hud{top:10px;left:10px;max-width:calc(100% - 20px)}.scene-caption-v22,.focus-heading{left:14px;top:68px;width:min(360px,60%)}.explore-tip{display:none}.scene-dialogue-v22{left:14px;bottom:92px;width:min(470px,calc(100% - 28px))}.action-dock{right:10px;bottom:10px}.dock-btn{min-width:72px}.dock-btn small{display:none}.focus-workbench{padding-left:15px;padding-right:15px}.puzzle-v22,.theory-v22{grid-template-columns:1fr}.theory-lock-v22{min-height:150px}.theory-warning-v22{grid-column:1}.evidence-list{grid-template-columns:1fr}
}
@media(max-width:720px){
  .gameplay-v22{padding:4px}.game-topbar{border-radius:12px}.scene-root-v22,.scene-v22,.focus-workbench{min-height:620px}.scene-photo-v22{background-position:center}.mission-hud{border-radius:12px;align-items:flex-start}.mission-hud strong{white-space:normal;line-height:1.35}.mission-hud span{padding-top:1px}.scene-caption-v22,.focus-heading{top:78px;left:10px;width:calc(100% - 20px);padding:10px 12px;background:linear-gradient(90deg,rgba(3,10,15,.76),rgba(3,10,15,.25),transparent)}.scene-caption-v22 p,.focus-heading p{display:none}.scene-caption-v22 h2,.focus-heading h2{font-size:1.55rem}.scene-dialogue-v22{left:9px;right:9px;bottom:80px;width:auto;grid-template-columns:48px 1fr;padding:8px 10px}.scene-dialogue-v22 img{width:48px;height:48px}.scene-dialogue-v22 p{font-size:.71rem}.scene-dialogue-v22.compact{left:9px;right:9px;bottom:78px;width:auto}.action-dock{left:8px;right:8px;bottom:7px;justify-content:space-between;padding:5px}.dock-btn{min-width:0;flex:1;height:58px;grid-template-columns:24px 1fr;padding:6px}.dock-btn>span{font-size:1.1rem}.dock-btn b{font-size:.63rem}.scene-hotspot-v22{width:44px;height:44px}.hotspot-tooltip{position:fixed;left:50%!important;top:auto!important;bottom:145px;width:min(280px,calc(100vw - 28px));transform:translateX(-50%) translateY(5px)!important}.hotspot-tooltip:before{display:none}.scene-hotspot-v22:hover .hotspot-tooltip,.scene-hotspot-v22:focus-visible .hotspot-tooltip{transform:translateX(-50%) translateY(0)!important}.focus-workbench{padding:150px 9px 160px;align-items:flex-start}.puzzle-v22{grid-template-columns:1fr;gap:8px}.puzzle-clue-v22,.puzzle-device-v22{min-height:0;padding:15px;border-radius:15px}.puzzle-v22 h3{font-size:1.35rem}.puzzle-symbols-v22{padding:14px;margin:12px 0}.code-form-v22{grid-template-columns:1fr}.timeline-v22{padding:9px}.timeline-card-v22{grid-template-columns:30px 64px 1fr;gap:7px}.timeline-card-v22>div{grid-column:3;justify-content:flex-end}.timeline-card-v22 p{font-size:.68rem}.theory-v22{padding:8px}.theory-card-v22{grid-template-columns:34px 1fr 22px;min-height:72px;padding:8px}.theory-card-v22 small{font-size:.65rem}.notebook-shell{inset:5px;width:auto;border-radius:17px}.notebook-head{padding:14px 14px 10px 20px}.notebook-tabs{padding-left:10px}.notebook-tabs span{display:none}.notebook-pages{padding:12px 10px 12px 16px}.clue-inspection-v22{grid-template-columns:1fr}.inspection-visual{min-height:190px}.inspection-icon{width:80px;height:80px;font-size:2.8rem}.inspection-copy h2{font-size:1.65rem}
}
@media(max-width:430px){.scene-root-v22,.scene-v22,.focus-workbench{min-height:590px}.scene-caption-v22 h2{font-size:1.3rem}.dock-btn b{font-size:.58rem}.scene-dialogue-v22 p{font-size:.67rem}.mission-hud strong{font-size:.69rem}.focus-workbench{padding-top:145px}}
@media(prefers-reduced-motion:reduce){.scene-photo-v22,.ambient-dust,.hotspot-sonar,.hotspot-sonar:before{animation:none!important}.dock-btn,.hotspot-core{transition:none}}

/* ============================================================
   RUMYA v2.2.1 — CASE #001 CINEMATIC ART INTEGRATION
   Full visual point-and-click treatment inspired by classic
   cooperative mystery games. Keeps the PHP/shared-hosting core.
   ============================================================ */
.game-shell.case001-cinematic .immersive-stage{border-color:rgba(205,151,55,.56);box-shadow:0 28px 85px rgba(0,0,0,.58),0 0 0 1px rgba(224,178,77,.08) inset;background:#080604}
.game-shell.case001-cinematic .scene-root-v22,.game-shell.case001-cinematic .scene-v22{min-height:min(820px,calc(100vh - 112px));background:#080604}
.game-shell.case001-cinematic .game-topbar{border-color:rgba(201,153,64,.4);background:linear-gradient(180deg,#090c0f,#071018);box-shadow:0 8px 28px rgba(0,0,0,.26)}
.game-shell.case001-cinematic .brand-mini b{font-family:Georgia,serif;color:#e8b95d;letter-spacing:.04em;font-size:1.35rem}
.game-shell.case001-cinematic .room-chip{border-color:rgba(218,171,76,.34);background:rgba(9,12,14,.88)}

.scene-v22.cinematic-v221 .scene-photo-v22{background-size:cover;background-position:center;filter:saturate(1.03) contrast(1.03) brightness(.92);transform:none;animation:rumyaCinematicBreath 20s ease-in-out infinite alternate}
@keyframes rumyaCinematicBreath{from{transform:scale(1.002)}to{transform:scale(1.018)}}
.scene-v22.cinematic-v221 .scene-light-v22{background:radial-gradient(circle at 54% 44%,transparent 0 34%,rgba(2,4,5,.08) 58%,rgba(1,3,4,.5) 100%)}
.scene-v22.cinematic-v221 .cinematic-mask-v221{position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(2,5,7,.78) 0,rgba(2,5,7,.07) 10%,transparent 22%,transparent 72%,rgba(2,5,7,.46) 86%,rgba(2,5,7,.94) 100%)}
.game-shell.case001-cinematic .mission-hud{top:17px;left:18px;border:1px solid rgba(218,168,62,.5);border-radius:13px;background:linear-gradient(135deg,rgba(15,12,8,.93),rgba(8,12,15,.86));box-shadow:0 12px 32px rgba(0,0,0,.36),inset 0 0 0 1px rgba(255,218,135,.04);max-width:min(640px,calc(100% - 38px))}
.game-shell.case001-cinematic .mission-hud span{color:#e6b34c}.game-shell.case001-cinematic .mission-hud strong{font-family:Georgia,serif;color:#f6efe0;font-size:.82rem}

.cinematic-hotspot{width:50px;height:50px;margin:-25px 0 0 -25px}.cinematic-hotspot .hotspot-sonar{border-color:rgba(255,196,75,.82);background:radial-gradient(circle,rgba(255,191,62,.2),transparent 62%);box-shadow:0 0 30px rgba(255,178,39,.28)}
.cinematic-hotspot .hotspot-core{width:38px;height:38px;background:radial-gradient(circle at 35% 28%,#ffe5a3,#d79424 58%,#6b3e08);border:2px solid #f2ca71;color:#171009;font-size:1.28rem;box-shadow:0 0 0 4px rgba(10,7,3,.58),0 0 25px rgba(255,190,57,.7)}
.cinematic-hotspot:hover:not(:disabled) .hotspot-core,.cinematic-hotspot:focus-visible .hotspot-core{transform:scale(1.12);box-shadow:0 0 0 4px rgba(10,7,3,.6),0 0 36px rgba(255,196,64,.95)}
.cinematic-hotspot .hotspot-tooltip{min-width:190px;border-color:rgba(220,170,71,.54);background:linear-gradient(180deg,rgba(13,11,8,.97),rgba(7,10,13,.97));box-shadow:0 18px 45px rgba(0,0,0,.5)}
.cinematic-hotspot .hotspot-tooltip b{color:#f1c76e;font-family:Georgia,serif}.cinematic-hotspot.found{opacity:.5}.cinematic-hotspot.found .hotspot-core{background:#183f26;color:#9af0ad;border-color:#68bd7a}

.scene-dialogue-v22.cinematic-dialogue-v221{left:24px;bottom:24px;width:min(520px,calc(100% - 470px));min-width:320px;border-color:rgba(213,158,59,.5);border-radius:11px;background:linear-gradient(90deg,rgba(8,8,7,.96),rgba(9,14,17,.91));box-shadow:0 16px 44px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,222,147,.035)}
.scene-dialogue-v22.cinematic-dialogue-v221 img{border-color:#a8792d;border-radius:8px}.scene-dialogue-v22.cinematic-dialogue-v221 span{color:#d7a64c}.scene-dialogue-v22.cinematic-dialogue-v221 b{color:#f3e8d2}.scene-dialogue-v22.cinematic-dialogue-v221 p{color:#f5efe4}
.game-shell.case001-cinematic .explore-tip{right:24px;top:22px;border-color:rgba(207,158,61,.36);background:rgba(8,10,10,.78);color:#dfc388}
.game-shell.case001-cinematic .action-dock{right:20px;bottom:20px;border-color:rgba(214,164,67,.44);border-radius:12px;background:linear-gradient(180deg,rgba(15,12,8,.95),rgba(6,9,11,.94));box-shadow:0 18px 48px rgba(0,0,0,.55)}
.game-shell.case001-cinematic .dock-btn{min-width:92px;border-radius:8px;border-color:rgba(215,165,68,.26);color:#ead6ad;background:linear-gradient(180deg,rgba(52,38,19,.36),rgba(10,12,13,.42))}.game-shell.case001-cinematic .dock-btn:hover{border-color:#d8a646;background:rgba(88,60,24,.42)}.game-shell.case001-cinematic .dock-btn span{filter:sepia(.5)}.game-shell.case001-cinematic .dock-btn small{color:#a99778}

/* Focus chapters use the generated art as atmosphere only; the live puzzle UI
   stays authoritative so answers baked into concept art cannot spoil gameplay. */
.scene-v22.cinematic-focus-v221 .scene-photo-v22{filter:saturate(.78) brightness(.3) contrast(1.05) blur(1.5px);transform:scale(1.02)}
.scene-v22.cinematic-focus-v221 .scene-focus-shade{background:radial-gradient(circle at 50% 48%,rgba(4,5,5,.18),rgba(2,4,5,.82) 74%,rgba(1,2,3,.94))}
.cinematic-workbench-v221{padding:92px 26px 115px;z-index:6}
.game-shell.case001-cinematic .puzzle-v22,.game-shell.case001-cinematic .timeline-v22,.game-shell.case001-cinematic .theory-v22{border:1px solid rgba(210,158,59,.46);background:linear-gradient(145deg,rgba(11,10,8,.96),rgba(7,12,15,.95));box-shadow:0 28px 70px rgba(0,0,0,.64),inset 0 0 0 1px rgba(255,221,145,.04)}
.game-shell.case001-cinematic .puzzle-clue-v22,.game-shell.case001-cinematic .puzzle-device-v22{border-color:rgba(209,158,62,.36);background:linear-gradient(180deg,rgba(32,24,12,.72),rgba(8,11,13,.86))}
.game-shell.case001-cinematic .puzzle-symbols-v22{font-family:Georgia,serif;color:#f0c76e;border-color:rgba(211,160,63,.36);background:#0a0b0b}
.game-shell.case001-cinematic .code-form-v22 input{border-color:#9e7129;background:#090b0d;color:#f2d79d;font-family:Georgia,serif;font-size:1.35rem;letter-spacing:.18em;text-align:center}.game-shell.case001-cinematic .code-form-v22 button,.game-shell.case001-cinematic .big-action-v22{background:linear-gradient(#c89539,#8a5e1f);border-color:#e7b95b;color:#171008;text-shadow:0 1px rgba(255,255,255,.18);font-weight:900}
.game-shell.case001-cinematic .timeline-card-v22,.game-shell.case001-cinematic .theory-card-v22{border-color:rgba(205,157,65,.28);background:rgba(27,21,13,.82)}
.game-shell.case001-cinematic .timeline-card-v22 time,.game-shell.case001-cinematic .theory-card-v22 b{color:#efc36d;font-family:Georgia,serif}
.game-shell.case001-cinematic .theory-card-v22.selected{border-color:#e1af4f;background:rgba(83,57,21,.6);box-shadow:0 0 0 1px rgba(229,181,85,.24) inset}

/* Case board */
.case-board-v221{min-height:520px}.visual-board-v221{position:relative;min-height:520px;border:1px solid rgba(196,145,55,.42);border-radius:17px;overflow:hidden;background:#171006}.visual-board-art-v221{position:absolute;inset:0;background-image:linear-gradient(180deg,rgba(7,7,6,.08),rgba(7,7,6,.24)),var(--board-art);background-size:cover;background-position:center;filter:saturate(.98) contrast(1.03)}
.visual-board-v221.locked .visual-board-art-v221{filter:blur(8px) brightness(.35);transform:scale(1.03)}.board-lock-v221{position:absolute;z-index:2;inset:0;display:grid;place-content:center;text-align:center;padding:25px;background:rgba(4,8,10,.44);backdrop-filter:blur(2px)}.board-lock-v221 span{font-size:2.6rem}.board-lock-v221 b{font-family:Georgia,serif;color:#e3ba65;font-size:1.3rem}.board-lock-v221 p{max-width:380px;color:#c1c7c8}.board-status-v221{position:absolute;z-index:2;right:16px;bottom:16px;display:flex;flex-direction:column;gap:3px;padding:10px 13px;border:1px solid rgba(215,166,70,.45);border-radius:10px;background:rgba(9,10,9,.9);box-shadow:0 12px 30px rgba(0,0,0,.35)}.board-status-v221 b{color:#e4b95e}.board-status-v221 span{font-size:.73rem;color:#c6c0b4}.generic-board-v221{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:15px;padding:20px;background:radial-gradient(circle at center,#6f5636,#2b2116);border-radius:18px}.generic-board-v221 article{min-height:130px;padding:15px;background:#e0c18b;color:#342316;transform:rotate(var(--r));box-shadow:0 10px 20px rgba(0,0,0,.25)}.generic-board-v221 article span{font-size:1.6rem}.generic-board-v221 article b,.generic-board-v221 article small{display:block;margin-top:5px}

/* Notebook feels like a detective folio in Case 001 */
.game-shell.case001-cinematic~.notebook-drawer .notebook-shell{border-color:rgba(194,145,55,.5)}
.notebook-tabs:has([data-tab="board"]){grid-template-columns:repeat(4,1fr)}

/* Result uses the generated Case Closed painting as a backdrop, while live
   score values remain real and readable in the foreground card. */
.result-view.cinematic-result-v221{width:min(1220px,100%);min-height:690px;padding:42px;display:flex;align-items:center;justify-content:flex-end;border:1px solid rgba(212,160,61,.4);border-radius:24px;overflow:hidden;background:#080806}
.result-view.cinematic-result-v221:before{inset:0;border-radius:0;background-image:linear-gradient(90deg,rgba(4,7,8,.05) 0,rgba(4,7,8,.2) 47%,rgba(4,7,8,.9) 68%,rgba(4,7,8,.97) 100%),var(--result-art);background-size:cover;background-position:center;filter:none;opacity:1}
.result-view.cinematic-result-v221 .result-card{width:min(560px,52%);margin:0;background:rgba(8,11,11,.9);border:1px solid rgba(221,170,65,.5);border-radius:15px;backdrop-filter:blur(12px);box-shadow:0 24px 60px rgba(0,0,0,.55)}
.result-view.cinematic-result-v221 .result-kicker{color:#e7b951}.result-view.cinematic-result-v221 .result-card h1{color:#f0c86f;font-family:Georgia,serif}.result-view.cinematic-result-v221 .score-grid div{background:rgba(23,20,12,.75);border-color:rgba(205,157,62,.34)}

@media(max-width:900px){
  .game-shell.case001-cinematic .scene-root-v22,.game-shell.case001-cinematic .scene-v22{min-height:620px}
  .scene-dialogue-v22.cinematic-dialogue-v221{width:min(390px,calc(100% - 240px));min-width:270px;grid-template-columns:48px 1fr;padding:8px 10px}.scene-dialogue-v22.cinematic-dialogue-v221 img{width:48px;height:48px}.scene-dialogue-v22.cinematic-dialogue-v221 p{font-size:.72rem}
  .game-shell.case001-cinematic .dock-btn{min-width:72px;padding:7px 8px}.game-shell.case001-cinematic .dock-btn small{display:none}
  .cinematic-workbench-v221{padding:82px 16px 105px}.case-board-v221,.visual-board-v221{min-height:420px}
  .result-view.cinematic-result-v221{padding:20px;justify-content:center}.result-view.cinematic-result-v221:before{background-image:linear-gradient(rgba(3,6,7,.58),rgba(3,6,7,.8)),var(--result-art)}.result-view.cinematic-result-v221 .result-card{width:min(620px,100%)}
}
@media(max-width:640px){
  .game-shell.case001-cinematic .scene-root-v22,.game-shell.case001-cinematic .scene-v22{min-height:560px}
  .game-shell.case001-cinematic .mission-hud{top:8px;left:8px;right:8px;max-width:none;padding:7px 9px}.game-shell.case001-cinematic .mission-hud strong{font-size:.69rem}
  .game-shell.case001-cinematic .action-dock{right:8px;bottom:8px;gap:3px;padding:4px}.game-shell.case001-cinematic .dock-btn{min-width:54px;padding:6px}.game-shell.case001-cinematic .dock-btn b{font-size:.58rem}.game-shell.case001-cinematic .dock-btn span{font-size:1.05rem}
  .scene-dialogue-v22.cinematic-dialogue-v221{left:8px;bottom:8px;width:calc(100% - 250px);min-width:220px;grid-template-columns:38px 1fr;padding:6px 8px}.scene-dialogue-v22.cinematic-dialogue-v221 img{width:38px;height:38px}.scene-dialogue-v22.cinematic-dialogue-v221 span{display:none}.scene-dialogue-v22.cinematic-dialogue-v221 b{font-size:.78rem}.scene-dialogue-v22.cinematic-dialogue-v221 p{font-size:.63rem;line-height:1.25}
  .cinematic-hotspot{width:44px;height:44px;margin:-22px 0 0 -22px}.cinematic-hotspot .hotspot-core{width:34px;height:34px}.game-shell.case001-cinematic .explore-tip{display:none}
  .notebook-tabs:has([data-tab="board"]){grid-template-columns:repeat(4,minmax(0,1fr))}.notebook-tabs button{font-size:.7rem;padding:9px 4px}.notebook-tabs button span{display:none}
}
@media(prefers-reduced-motion:reduce){.scene-v22.cinematic-v221 .scene-photo-v22{animation:none}}
.ambient-hotspot-v221{position:absolute;z-index:4;left:var(--x);top:var(--y);width:34px;height:34px;margin:-17px 0 0 -17px;border:1px solid rgba(241,192,84,.62);border-radius:50%;background:rgba(10,8,4,.72);color:#f3c96b;box-shadow:0 0 0 5px rgba(222,164,55,.08),0 0 22px rgba(245,185,63,.22);cursor:pointer;display:grid;place-items:center;transition:.18s ease}.ambient-hotspot-v221:hover,.ambient-hotspot-v221:focus-visible{transform:scale(1.12);background:#c78d2c;color:#160e04;box-shadow:0 0 0 5px rgba(222,164,55,.12),0 0 30px rgba(245,185,63,.6)}.ambient-hotspot-v221 span{font-size:1.05rem;font-weight:900}.flavor-inspection-v221{max-width:520px;padding:8px 4px 4px}.flavor-inspection-v221>span{display:block;color:#d2a24a;font-size:.68rem;font-weight:900;letter-spacing:.12em}.flavor-inspection-v221 h2{font-family:Georgia,serif;color:#f1d08c;font-size:2rem;margin:8px 0}.flavor-inspection-v221 p{color:#d3d6d6;line-height:1.65;margin:0 0 20px}
