
:root{--story-ink:#3d352c;--story-paper:#f6edda;--story-teal:#416e68;}
.screen--title{background:linear-gradient(90deg,#1f1b16f0,#1f1b16ba 42%,#1f1b1622 85%),url('/assets/scenes/case-loan.jpg') center/cover;}
.title-inner{padding-top:clamp(38px,7vh,80px);padding-bottom:24px;max-width:690px;}
.title-main{font-size:clamp(56px,6vw,86px);line-height:1.14;letter-spacing:.12em;}
.title-sub{font-size:20px;letter-spacing:.25em;margin-top:16px;}
.title-edition{color:#e6c78e;font-size:11px;letter-spacing:.12em;}
.brand{margin-bottom:22px;}
.title-desc{margin-top:22px;font-size:15px;line-height:2;}
.title-actions{gap:12px;align-items:center;margin-top:22px;}
.title-actions .link-btn{padding:10px;}
.title-meta{margin-top:24px;font-size:11px;}
.scene-caption{background:#1b1712b3;padding:9px 12px;border-radius:3px;}
.voice-strip{display:flex;gap:16px;align-items:center;font-size:10px;min-height:28px;margin-top:6px;}
.voice-strip #voice-status{margin-right:auto;color:#c0b39d;line-height:1.5;}
.voice-strip .link-btn{font-size:11px;white-space:nowrap;}
.story-mode .prof{display:none;}
.story-mode .hud-case{max-width:230px;}
.story-mode .dialogue{background:linear-gradient(160deg,#faf4e6fa,#f0e5d0fc);border:1px solid #d7c39d;border-top:3px solid #b8914e;color:#3d352c;box-shadow:0 18px 60px #1b17104d;}
.story-mode .dl-name{color:#4e685f;}
.story-mode .dl-role{color:#8c7450;border-color:#c9b68f;}
.story-mode .dl-text{color:#3c342b;line-height:1.95;font-family:var(--sans);font-size:16px;}
.story-mode .dl-next,.story-mode .voice-strip .link-btn{color:#67583f;}
.story-mode .dl-next kbd{color:#76674f;border-color:#b5a383;}
.story-mode .voice-strip #voice-status{color:#7f715c;}
.story-mode #speaker-tag{display:none!important;}
.story-mode .camera-dock{right:auto;left:24px;top:auto;bottom:245px;max-width:130px;background:#241e16d9;}
.story-mode .docket{background:#28251fdf;border-color:#bdb08a5c;}
.story-mode .task{background:linear-gradient(160deg,#fbf4e4,#efe4ce);color:#3c3328;border-color:#c7ae7f;}
.story-mode .task-title{color:#44382b;}
.story-mode .task-kicker,.story-mode .task-points{color:#87734c;}
.story-mode .opt{background:#fffaf0;color:#46392c;border-color:#d4c29f;}
.story-mode .opt:hover{background:#eee3c9;}
.story-mode .opt.is-selected{background:#e6dbc1;border-color:#a88d54;}
.story-mode .opt.is-correct{background:#dfeadd;color:#2b4d37;border-color:#779b77;}
.story-mode .opt.is-wrong{background:#efd9ce;color:#754c3c;}
.story-mode .opt-feedback{color:#796747;}
.story-mode .task-explain,.story-mode .task-hint-text{color:#574c39;background:#e7dcc5;border-color:#c2ac81;}
.story-mode .task-explain b{color:#446a56;}
.story-mode .task-foot .btn--ghost{color:#766343;border-color:#baa57e;}
.story-choice{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);width:min(850px,calc(100vw - 60px));z-index:18;background:#f7efdf;border:1px solid #d0b991;border-top:3px solid #b79252;padding:22px 28px;box-shadow:0 20px 70px #0007;max-height:65dvh;overflow:auto;border-radius:4px;color:#3d3429;}
.story-kicker{font-size:11px;color:#8b7448;letter-spacing:.12em;}
.story-choice h3,.story-board h3{font-family:var(--serif);font-weight:500;font-size:22px;line-height:1.6;color:#40382c;margin:8px 0 18px;}
#story-choice-options{display:flex;flex-direction:column;gap:10px;}
.story-option{display:grid;grid-template-columns:32px 1fr 24px;align-items:center;gap:12px;border:1px solid #d6c49f;border-radius:3px;background:#fffaf1;padding:14px 17px;text-align:left;color:#473b2d;cursor:pointer;font-family:var(--sans);}
.story-option:hover,.story-option:focus-visible{background:#e6eddf;border-color:#71917c;transform:translateX(3px);}
.story-option b{font-size:14px;line-height:1.7;font-weight:500;display:block;}
.story-option small{font-size:11px;color:#8c7d65;display:block;margin-top:3px;}
.choice-index{font-family:var(--serif);font-size:23px;color:#a39372;}
.story-choice-note{font-size:10px;color:#96876d;line-height:1.7;margin:12px 0 0;}
.story-board{position:fixed;inset:0;z-index:25;background:#161510b8;overflow-y:auto;display:grid;align-items:center;justify-items:center;padding:34px 20px;}
.story-board-inner{width:min(900px,100%);background:#f4e9d4;border:1px solid #c2aa7e;border-radius:6px;color:#493d2d;padding:26px 32px;box-shadow:0 25px 80px #0007;}
.story-board-inner>p{font-size:13px;color:#897353;line-height:1.8;}
.story-board-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:25px;margin:22px 0;}
.clue-slot{background:#fffaf0;border:1px dashed #b7a079;padding:15px;margin-bottom:13px;border-radius:4px;}
.clue-slot label{display:block;font-size:13px;line-height:1.7;color:#51432e;margin:4px 0 12px;}
.clue-number{font:22px var(--serif);color:#b09a70;}
.clue-slot select{width:100%;padding:9px;background:#faf5e9;border:1px solid #c9b68e;color:#4d422f;font:12px var(--sans);}
.clue-result{font-size:11px;line-height:1.8;color:#577457;margin:10px 0 0;}
.clue-slot.is-correct{border:1px solid #789b73;background:#ebf1df;}
.clue-slot.is-wrong{border-color:#bb8166;}
.clue-slot.is-wrong .clue-result{color:#a16a4c;}
.clue-material{background:#e8dcc4;border:1px solid #d5c49f;padding:12px 15px;margin-bottom:9px;}
.clue-material summary{cursor:pointer;font-size:12px;line-height:1.8;color:#645337;}
.clue-material p{font-size:12px;line-height:1.9;color:#655941;}
.clue-material small{font-size:11px;line-height:1.8;color:#8b7354;}
.story-phone{position:fixed;right:25px;top:110px;z-index:11;width:245px;background:#f0eee4;border:6px solid #292d2b;border-radius:22px;box-shadow:0 15px 45px #0004;color:#394539;padding:13px 12px 17px;transform:rotate(1.5deg);}
.phone-notch{width:62px;height:7px;border-radius:8px;background:#292d2b;margin:-7px auto 15px;}
.phone-title{font-size:12px;text-align:center;font-weight:600;color:#53645a;padding-bottom:12px;border-bottom:1px solid #d4d6c9;}
.phone-message p{font-size:12px;line-height:1.8;padding:9px 11px;margin:12px 0;background:white;border-radius:8px;}
.phone-message.from-me p{background:#cedfbd;margin-left:16px;}
.phone-message.from-other p{margin-right:16px;}
.phone-message small{display:block;text-align:center;color:#969b8b;font-size:10px;margin:13px 0;}
.story-phone>small{font-size:8px;display:block;text-align:center;color:#9ca08f;margin-top:15px;}
.story-chapter{position:fixed;top:130px;left:50%;transform:translateX(-50%);z-index:15;text-align:center;pointer-events:none;padding:22px 40px;background:linear-gradient(90deg,transparent,#221c14c9 25%,#221c14c9 75%,transparent);color:#f5e9d0;animation:chapterReveal 2.4s ease both;min-width:min(650px,90vw);}
.story-chapter span{font-size:11px;letter-spacing:.2em;color:#d7be86;}
.story-chapter h2{font:500 30px/1.6 var(--serif);margin:8px 0;}
.story-chapter p{font-size:12px;color:#d4c9b3;line-height:1.8;margin:0;}
@keyframes chapterReveal{0%{opacity:0;translate:0 7px}15%,75%{opacity:1;translate:0 0}100%{opacity:0}}
.audio-mixer{display:flex;flex-direction:column;gap:20px;margin:24px 0;}
.audio-mixer label{display:flex;align-items:center;gap:16px;font-size:13px;color:#dfceb2;}
.audio-mixer input{flex:1;accent-color:#b99a62;min-height:28px;}
#btn-sound.is-muted{opacity:.45;border-style:dashed;}
.story-ending{background:#2c3526;border:1px solid #899b613a;padding:20px;margin-bottom:20px;}
.story-ending b{color:#d1dcb6;font-size:16px;font-family:var(--serif);font-weight:400;}
.story-ending p{font-size:13px;color:#c5cbb1;line-height:1.9;}
.story-ending small{font-size:11px;color:#9caa84;line-height:1.8;}
@media(max-width:900px){
 .story-mode .camera-dock{top:111px;bottom:auto;left:14px;right:14px;max-width:none;}
 .story-phone{top:162px;right:14px;left:14px;width:auto;max-height:125px;overflow:auto;transform:none;border:2px solid #d2c9b6;border-radius:6px;padding:9px 13px;}
 .phone-notch,.story-phone>small{display:none;}
 .phone-title{font-size:10px;padding-bottom:5px;}
 #story-phone-messages{display:flex;gap:10px;align-items:flex-start;}
 .phone-message{flex:1;min-width:0;}
 .phone-message p{font-size:10px;padding:7px;margin:6px 0!important;line-height:1.7;}
 .phone-message small{font-size:8px;margin:5px 0;}
 .story-chapter{top:315px;min-width:95vw;padding:15px 20px;}
 .story-chapter h2{font-size:24px;}
 .story-chapter p{font-size:10px;}
 .story-choice{width:calc(100vw - 28px);bottom:14px;padding:17px;}
 .story-choice h3{font-size:19px;}
 .story-option{grid-template-columns:24px 1fr 15px;padding:11px;gap:8px;}
 .story-option b{font-size:12px;}
 .story-option small{font-size:10px;}
 .choice-index{font-size:19px;}
 .story-mode .dl-text{font-size:14px;}
 .voice-strip{gap:12px;flex-wrap:wrap;}
 .voice-strip #voice-status{font-size:9px;}
 .voice-strip .link-btn{font-size:10px;}
 .story-board{padding:20px 14px;}
 .story-board-inner{padding:20px 16px;}
 .story-board-grid{grid-template-columns:1fr;gap:10px;}
 #story-board-materials{max-height:200px;overflow:auto;}
 .title-main{font-size:60px;}
 .title-inner{padding-top:35px;}
 .title-desc{font-size:13px;}
}
@media(prefers-reduced-motion:reduce){.story-chapter{animation:none}.story-option:hover{transform:none}}

.board-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.board-actions .btn--ghost{color:#806c45;border-color:#bba57b}

.story-board{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;}
.story-board-inner{margin-top:auto;margin-bottom:auto;flex-shrink:0;}
.story-mode .screen--review{background:linear-gradient(120deg,#171710f7,#282318ed);}
.story-mode .rcard{background:#251f18f5;}
