:root{color-scheme:dark;--ivory:#f3f0e8;--muted:#b8bcb3;--gold:#e1c39a;--green:#82917c;--line:rgba(238,238,218,.18);--surface:#1b211edb;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:#151b19;color:var(--ivory);font-size:14px;-webkit-font-smoothing:antialiased}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}button,a{-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.35}button:focus-visible{outline:2px solid var(--gold);outline-offset:5px}button{touch-action:manipulation}button:not(:disabled){transition:background .2s,color .2s,border-color .2s,transform .2s}button:active:not(:disabled){transform:translateY(1px)}h1,h2,h3,p{margin:0}button[hidden]{display:none!important}button:hover:not(:disabled){color:#fff}#scene-backdrop,#scene-video,.scene-shade,.grain{position:fixed;inset:0;width:100%;height:100%;pointer-events:none}#scene-backdrop{background-size:cover;background-position:center}#scene-video{object-fit:cover;opacity:1;transition:opacity .75s}#scene-video.loading{opacity:0}.scene-shade{background:linear-gradient(90deg,rgba(12,21,18,.89) 0%,rgba(14,22,19,.74) 24%,rgba(14,22,19,.12) 64%,rgba(11,17,16,.22) 100%),linear-gradient(0deg,rgba(11,19,16,.97) 0%,rgba(13,20,18,.72) 18%,transparent 47%,rgba(8,16,14,.25) 100%)}.grain{opacity:.035;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.7' filter='url(%23n)'/%3E%3C/svg%3E");z-index:1}.topbar{position:relative;z-index:5;height:108px;padding:0 4.3%;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid rgba(255,255,255,.08)}.brand{display:flex;gap:12px;align-items:center;text-align:left;padding:0;min-width:176px}.brand>span:last-child{font-size:20px;font-weight:600;letter-spacing:3px}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:5px;margin-top:5px;color:#c8cec3}.brand-mark{position:relative;font-family:Georgia,serif;font-size:53px;line-height:.8;width:37px;transform:rotate(-6deg)}.brand-mark>span{position:absolute;right:-5px;top:-8px;font-size:26px;font-weight:normal}.top-caption{font-size:9px;letter-spacing:3.4px;color:#c2c9be;opacity:.7}.utilities{display:flex;gap:25px;align-items:center}.icon-button{display:flex;align-items:center;gap:9px;font-size:12px;color:#d2d7ca;padding:12px 0}.icon-button>span:first-child{font-size:20px;line-height:1}.icon-button i{font-size:9px;border:1px solid var(--line);border-radius:50%;font-style:normal;min-width:18px;height:18px;display:grid;place-items:center}.help-button{border:1px solid #adb5a766;color:#c9d1c2;width:23px;height:23px;border-radius:50%;font-family:Georgia,serif;font-size:14px}.icon-button:hover,.text-button:hover{color:var(--gold)!important}#app{position:relative;z-index:2;min-height:calc(100svh - 108px)}.landing-copy{padding:clamp(50px,8vh,100px) 0 36px 7.1%;width:58%;animation:rise-in .9s both}.eyebrow{font-size:11px;letter-spacing:2px;display:flex;gap:13px;align-items:center;color:#d3c2a7}.tiny-line{width:24px;height:1px;background:var(--gold);display:inline-block}.landing-copy h1{font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;font-size:clamp(65px,6.6vw,108px);letter-spacing:.1em;font-weight:400;line-height:1.4;margin:24px 0 27px;white-space:nowrap}.landing-copy h1>span{color:#e4d6ba}.landing-copy h1 i{font-family:Georgia,"Times New Roman",serif;display:block;font-size:clamp(18px,1.8vw,28px);letter-spacing:.02em;color:#c2c7b5;font-weight:400;line-height:1.4;margin:5px 0 0}.landing-description{font-size:14px;color:#c5cbbf;line-height:2;letter-spacing:1px}.start-actions{display:flex;align-items:center;gap:22px;margin-top:35px}.primary-button{background:#e6d1ad;color:#252c23!important;min-height:52px;display:inline-flex;align-items:center;justify-content:center;gap:40px;padding:15px 26px;letter-spacing:1px;font-size:13px;border:1px solid #e6d1ad;border-radius:3px;font-weight:500}.primary-button:hover:not(:disabled){background:#f6e3c1;border-color:#f6e3c1;box-shadow:0 5px 35px #ead3a21a}.primary-button>span{font-size:21px;font-weight:300}.playtime{font-size:10px;color:#a6afa0;letter-spacing:1px}.landing-meta{display:flex;gap:8px;align-items:center;color:#9ea897;font-size:10px;letter-spacing:1px;margin-top:24px}.status-dot{display:inline-block;width:5px;height:5px;border-radius:100%;background:#bac99d;box-shadow:0 0 8px #b6c99a44}.scene-caption{position:absolute;right:5.7%;top:44%;display:flex;align-items:center;gap:12px;text-shadow:0 2px 10px #000}.caption-line{width:30px;height:1px;background:#e8dfcb66}.scene-caption small{font-size:10px;color:#dedccc;letter-spacing:2px;display:block;margin-bottom:10px}.scene-caption div>span{font-size:12px;letter-spacing:2px}.scene-caption i{font-size:10px;margin:0 8px;opacity:.5}.landing-bottom{margin:28px 4.3% 0;padding-bottom:20px}.section-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px;color:#aeb6a7;font-size:10px;letter-spacing:1.5px}.section-label small{font-size:8px;letter-spacing:2px}.section-label small>span{margin-left:15px;font-size:14px}.preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.preview-card{min-height:108px;display:flex;align-items:center;text-align:left;padding:12px;background:#2a34264d;border:1px solid var(--line);border-radius:4px;gap:16px;position:relative;overflow:hidden}.preview-card.selected{border-color:#b7bba065;background:#3c46334a}.preview-card:hover{border-color:#c2cab58c;background:#3c46336b}.preview-card img{width:116px;height:78px;object-fit:cover;border-radius:2px;filter:saturate(.68);opacity:.78}.preview-card.selected img,.preview-card:hover img{opacity:1;filter:saturate(.9)}.preview-card>div{padding-right:12px}.preview-card small{font-family:Georgia,serif;color:#d9c19e;font-size:11px;letter-spacing:.5px;display:flex;gap:9px;align-items:center}.preview-card small span{font-family:Arial,sans-serif;font-size:7px;color:#9ea694;letter-spacing:1.3px}.preview-card strong{font-size:13px;font-weight:500;letter-spacing:2px;margin:9px 0 7px;display:block}.preview-card p{font-size:9px;color:#a6ae9d;line-height:1.7}.card-arrow{position:absolute;right:13px;top:15px;font-size:15px;color:#9fa991}.landing-bottom footer{display:flex;justify-content:space-between;margin-top:25px;font-size:9px;color:#778471;letter-spacing:1px}.landing-bottom footer b,.game-footer b{font-weight:normal;margin:0 9px}.landing-bottom footer i{font-style:normal;margin:0 18px;color:#b7c29e}
/* The playable room */
body[data-view="game"] .scene-shade{background:linear-gradient(90deg,#0c1513c9,rgba(14,22,19,.45) 29%,rgba(14,22,19,.02) 63%),linear-gradient(0deg,#0c1614ed,transparent 40%,#07110e66)}body[data-view="game"] #app{height:calc(100svh - 108px);min-height:590px}.scene-tabs{position:absolute;left:50%;top:22px;transform:translateX(-50%);display:flex;gap:4px;padding:5px;background:#18221da6;backdrop-filter:blur(18px);border:1px solid var(--line);border-radius:5px;z-index:3;white-space:nowrap}.scene-tabs button{padding:12px 19px;font-size:11px;color:#b5bfac;display:flex;align-items:center;gap:12px;border:1px solid transparent;border-radius:3px}.scene-tabs button.active{background:#e3d3b319;border-color:#c8c5a935;color:#e8dcc7}.scene-tabs small{font-family:Georgia,serif;font-size:10px;opacity:.65}.tab-check{font-size:9px;color:#c2d2ab}.chapter-copy{position:absolute;left:4.3%;top:110px;pointer-events:none;max-width:360px}.chapter-copy .eyebrow{font-size:10px}.chapter-copy h1{font-family:"Songti SC",STSong,serif;font-size:clamp(25px,2.45vw,38px);font-weight:400;letter-spacing:2px;line-height:1.7;margin:20px 0 16px}.chapter-copy>p{color:#bdc6b6;font-size:11px;line-height:2.1;letter-spacing:1px}.objective{margin-top:30px;max-width:280px}.objective>div:first-child{display:flex;align-items:center;gap:9px}.objective-symbol{color:var(--gold);font-size:21px}.objective strong{font-weight:400;font-size:11px}.objective>div>span:last-child{font-family:Georgia,serif;font-size:16px;margin-left:auto;color:var(--gold)}.objective em{font-size:12px;font-style:normal;color:#9aaa90;margin-left:5px}.progress-track{height:2px;background:#d2dbba20;margin:11px 0}.progress-track span{display:block;height:100%;background:var(--gold);transition:width .4s}.objective>small{color:#9ba88e;font-size:9px;letter-spacing:1px}.time-display{position:absolute;right:4.3%;top:112px;text-align:right}.time-display .sun-icon{font-size:22px;color:#e4c699;margin-right:12px;vertical-align:7px}.time-display strong{font-family:Georgia,serif;font-size:40px;font-weight:400;letter-spacing:1px}.time-display small{display:block;margin-top:9px;color:#bac3b0;font-size:9px;letter-spacing:1px}.hotspots{position:fixed;inset:0;pointer-events:none}.hotspot{pointer-events:auto;position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:flex;align-items:center;padding:8px;z-index:2;gap:11px;text-shadow:0 2px 10px #000}.hotspot:active:not(:disabled){transform:translate(-50%,-50%) scale(.97)}.hotspot-ring{width:36px;height:36px;border-radius:50%;border:1px solid #f5e7c68c;background:#1c231b94;display:grid;place-items:center;font-size:16px;color:#f0d8aa;box-shadow:0 0 0 6px #edce9220,0 2px 14px #0004;backdrop-filter:blur(5px);transition:all .3s}.clue-hotspot:not(.discovered) .hotspot-ring{animation:beacon 3s infinite}.hotspot-label{text-align:left;font-size:11px;letter-spacing:.8px;border-radius:3px;background:#152019ad;backdrop-filter:blur(7px);padding:9px 12px;line-height:1.4;opacity:.8}.hotspot-label small{display:block;color:#d4c09a;font-size:8px;margin-top:4px;letter-spacing:1px}.hotspot:hover .hotspot-ring,.hotspot:focus-visible .hotspot-ring{background:#d9c49d;color:#202b20;box-shadow:0 0 0 8px #edce9226}.hotspot:hover .hotspot-label,.hotspot:focus-visible .hotspot-label{opacity:1}.observation .hotspot-ring{width:28px;height:28px;color:#f2ebd9;background:#18221b99;box-shadow:0 0 0 4px #eeeecc10;font-size:19px}.observation .hotspot-label{opacity:0;transition:opacity .3s}.observation:hover .hotspot-label,.observation:focus-visible .hotspot-label{opacity:1}.discovered .hotspot-ring{color:#cfdfb3;border-color:#becfa166;box-shadow:none;background:#253320a8}.game-bottom{position:absolute;bottom:70px;left:4.3%;right:4.3%;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:22px;gap:24px;pointer-events:none}.game-bottom button{pointer-events:auto}.current-location{display:flex;align-items:center;gap:15px}.location-icon{font-size:31px;color:#adb99e;font-weight:200}.current-location small{display:block;font-size:8px;color:#b3bba5;letter-spacing:2px;margin-bottom:8px}.current-location strong{font-size:14px;font-weight:400;letter-spacing:2px}.location-description{font-size:10px;color:#a7b39b;margin-left:28px;letter-spacing:1px}.compose-button{display:flex;align-items:center;gap:17px;text-align:left;background:#a5b19718;border:1px solid #c1ceb030;padding:14px 22px;min-width:230px;border-radius:3px}.compose-button>span{font-size:26px;color:var(--gold)}.compose-button strong{font-size:12px;font-weight:500;letter-spacing:1px}.compose-button small{font-size:9px;display:block;margin-top:7px;color:#b1bca4}.compose-button.ready{background:#e6d1ad;color:#252c23;border-color:#e6d1ad;box-shadow:0 0 30px #ecd1a315}.compose-button.ready>span{color:#475640}.compose-button.ready small{color:#64705a}.compose-button.ready:hover{color:#1c2719;background:#f6e3c1}.game-footer{position:absolute;bottom:27px;left:4.3%;right:4.3%;display:flex;align-items:center;justify-content:space-between;color:#96a38a;font-size:9px}.chapter-dots{display:flex;align-items:center;gap:10px}.chapter-dots>span{opacity:.5;font-family:Georgia,serif}.chapter-dots>span.current{opacity:1;color:#ead3ac}.chapter-dots>span.current:before{content:'';display:inline-block;width:4px;height:4px;border-radius:50%;background:#dfc497;margin:0 6px 2px 0}.chapter-dots>span.done{color:#c9d8ad;opacity:.8}.chapter-dots i{height:1px;width:23px;background:#a3b08d55}.save-status{display:flex;align-items:center;gap:8px}
/* Dialogue, journal and musical interaction */
.modal-overlay{position:fixed;inset:0;background:#08110dc9;backdrop-filter:blur(9px);z-index:20;display:flex;align-items:center;justify-content:center;padding:24px;animation:fade-in .25s}.modal{width:520px;max-width:100%;max-height:90svh;overflow:auto;padding:37px;background:linear-gradient(145deg,#29312b,#18231e);border:1px solid #d5d3b62e;box-shadow:0 25px 100px #0005;position:relative;border-radius:8px;scrollbar-width:thin;scrollbar-color:#69745e transparent}.modal.wide{width:770px;padding:38px 44px}.modal-close{position:absolute;right:18px;top:13px;font-size:27px;color:#9eac93;font-weight:200;width:32px;height:32px}.modal-close:hover{background:#d9dfcc15;border-radius:50%}.modal-kicker{font-size:9px;letter-spacing:2px;color:#c6b393;margin-bottom:18px;padding-right:15px}.modal h2{font-family:"Songti SC",STSong,serif;font-weight:400;font-size:30px;letter-spacing:2px;margin-bottom:20px}.story-text{font-size:13px;color:#c7cebf;line-height:2.1;letter-spacing:.5px}.speaker-avatar{width:45px;height:45px;border:1px solid #b5b99644;border-radius:50%;display:grid;place-items:center;font-family:serif;font-size:19px;background:#e2c89d10;margin:26px 0 22px;color:#dac29c}.speaker-name{font-size:12px;color:#dbc59f;margin:20px 0 26px}.speaker-name span{font-size:10px;color:#939f8a;margin-left:10px}.full{width:100%;margin-top:20px;justify-content:space-between}.full.text-button{text-align:center;display:block}.secondary-button{padding:14px 22px;min-height:47px;border:1px solid #a9b69d50;border-radius:3px;font-size:12px;letter-spacing:1px;display:inline-flex;justify-content:center;gap:20px;align-items:center}.secondary-button:hover{background:#d4dfc314}.text-button{font-size:11px;color:#c9d1bd;padding:12px 0;letter-spacing:.5px}.fragment-illustration{font-family:Georgia,serif;font-size:57px;color:#d4bd90;line-height:1;margin:25px 0 22px;text-shadow:0 0 32px #d7bd9244}.fragment-illustration.small{font-size:36px}.modal blockquote{margin:24px 0;padding:15px 18px;border-left:2px solid #c8b18b7a;background:#d7dfc208;font-size:12px;color:#dce0d1;line-height:2}.modal blockquote>span{display:block;font-size:9px;color:#baa686;letter-spacing:2px;margin-bottom:4px}.choice-caption{font-size:10px;color:#abbaa0;display:flex;justify-content:space-between;margin-bottom:11px}.choice-caption>span{font-size:9px;color:#7f8e77}.choices{display:flex;flex-direction:column;gap:9px}.choices button{display:flex;align-items:center;gap:13px;text-align:left;padding:15px 14px;border:1px solid #a5b2933a;border-radius:3px;line-height:1.7;font-size:12px}.choices button:hover{border-color:#d7c09d;background:#d7c09d14}.choices button>span{font-family:Georgia,serif;color:#aeaf91;font-size:11px}.choices button>i{font-size:15px;font-style:normal;margin-left:auto;color:#b7b99a}.chosen-response{color:#d7c49f;font-size:12px;line-height:1.8}.title-count{font-size:16px;float:right;font-family:Georgia,serif;color:#a9b49b;margin-top:12px}.journal-description{font-size:11px;color:#a4b099;margin-top:-5px}.journal-chapter{margin-top:25px}.journal-chapter h3{display:flex;align-items:center;font-size:12px;font-weight:500;gap:12px;margin-bottom:13px;letter-spacing:1px}.journal-chapter h3>span{font-family:Georgia,serif;color:#c4b088;font-size:10px}.journal-chapter h3 small{font-family:Georgia,serif;font-size:10px;color:#8fa181;margin-left:auto}.journal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}.journal-entry{padding:16px;background:#cbd8b807;border:1px solid #cbd8b819;border-radius:3px}.entry-note{font-size:22px;color:#d7c29b;display:block;margin-bottom:12px}.journal-entry strong{font-size:11px;font-weight:500;display:block;margin-bottom:5px}.journal-entry small{font-size:8px;color:#9cab8b;letter-spacing:1px}.journal-entry p{font-size:10px;color:#a5b29a;line-height:1.9;margin-top:12px;white-space:pre-line}.journal-entry blockquote{font-size:9px;margin:12px 0 0;padding:9px;color:#c9bd9b}.journal-entry.locked{opacity:.45}.help-steps{padding:0;margin:25px 0;list-style:none}.help-steps li{display:flex;gap:17px;margin-bottom:20px}.help-steps li>span{font-family:Georgia,serif;color:#c6b18c;font-size:12px;padding-top:4px}.help-steps strong{font-size:12px;font-weight:500}.help-steps p{font-size:11px;line-height:1.9;color:#a4b099;margin-top:6px}.help-shortcuts{font-size:9px;color:#7e8f74;line-height:2}.puzzle-description{font-size:12px;color:#b1bea5;line-height:1.8}.melody-hint{display:flex;align-items:center;gap:14px;margin:22px 0;background:#e0c99d0a;border:1px solid #d5c39d26;border-radius:4px;font-size:11px;color:#d3c29e;padding:15px;line-height:1.9}.melody-hint>span{font-size:25px}.sequence-slots{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:27px 0}.sequence-slot{width:30%;min-height:116px;border:1px dashed #a5b49340;border-radius:5px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:10px;background:#14201933}.sequence-slot small{font-size:9px;font-family:Georgia,serif;color:#6e8264}.sequence-slot strong{font-family:Georgia,serif;font-size:26px;color:#718365;font-weight:400}.sequence-slot>span{font-size:9px;color:#6e8264}.sequence-slot.filled{border:1px solid #ccb68d66;background:#e0caa00a}.sequence-slot.filled strong{color:#e1c59c}.sequence-slot.filled>span{color:#bdc2ac}.slot-connector{font-size:9px;color:#7f8f71;white-space:nowrap}.note-pads{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.note-pad{display:flex;flex-direction:column;align-items:center;gap:9px;border:1px solid #ddcfaa45;border-radius:4px;padding:18px 10px;background:linear-gradient(#b8c3a61a,#b8c3a604);min-height:119px}.note-pad:hover:not(:disabled){border-color:#e8c89a;background:#e8c89a1c}.note-pad>span{font-size:22px;color:#d4c29d}.note-pad strong{font-size:17px;font-family:Georgia,serif;font-weight:400}.note-pad small{font-size:9px;color:#a8b69a;line-height:1.6}.puzzle-tools{display:flex;gap:22px;justify-content:center;align-items:center;margin:11px 0}.puzzle-tools button{font-size:10px}.puzzle-feedback{font-size:10px;color:#c8bb9d;text-align:center;min-height:22px;line-height:1.8}.transition-overlay{background:#0c171447;backdrop-filter:none;pointer-events:auto}.transition-overlay .modal{background:none;box-shadow:none;border:0;text-align:center;text-shadow:0 3px 25px #000;padding-top:20vh}.transition-copy h2{font-size:38px}.transition-copy p{font-size:12px;color:#d3d9c9;letter-spacing:2px;margin-bottom:28px}.transition-copy .secondary-button{background:#15221988;backdrop-filter:blur(5px)}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);border:1px solid #c8bf9b44;border-radius:6px;z-index:30;background:#243025ee;color:#e2d2b2;padding:13px 22px;width:max-content;max-width:calc(100vw - 32px);font-size:12px;line-height:1.7;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;box-shadow:0 6px 25px #0004;backdrop-filter:blur(12px)}#toast.visible{opacity:1;transform:translate(-50%,0)}
/* A record to remember */
body[data-view="ending"] .scene-shade{background:linear-gradient(90deg,#0a1512ee,#0a1512a6 60%,#0a151248),linear-gradient(0deg,#101c17,transparent 80%)}.ending-content{max-width:820px;padding:45px 0 70px 8%;animation:rise-in 1.2s both}.ending-record{width:92px;height:92px;border-radius:50%;background:repeating-radial-gradient(#303730 0px,#303730 1px,#18231c 2px,#18231c 4px);display:grid;place-items:center;margin:28px 0 22px;border:1px solid #6f7d5e55;box-shadow:0 15px 35px #0004;position:relative}.ending-record span{border-radius:50%;width:34px;height:34px;display:grid;place-items:center;background:#c6ad85;color:#22341f;font-family:Georgia,serif;font-size:17px}.ending-record i{position:absolute;width:5px;height:5px;background:#1b261b;top:44px;left:44px;border-radius:50%}.ending-content h1{font-family:"Songti SC",STSong,serif;font-size:55px;font-weight:400;letter-spacing:5px;margin-bottom:18px}.ending-content h2{font-size:13px;letter-spacing:2px;font-weight:400;color:#d8c8a8;margin-bottom:23px}.ending-content>p{font-size:12px;color:#b5c3aa;line-height:2;letter-spacing:.7px;max-width:510px}.ending-actions{display:flex;align-items:center;gap:13px;margin:25px 0 20px;flex-wrap:wrap}.ending-actions .primary-button{gap:12px;font-size:11px}.ending-actions .secondary-button{font-size:11px;min-height:52px}.ending-collection{font-size:9px;color:#97a68a;letter-spacing:1px;line-height:1.8;display:block}.ending-footer{border-top:1px solid var(--line);margin:0 4.3%;padding:21px 0 28px;font-size:10px;letter-spacing:2px;color:#a4b192;display:flex;justify-content:space-between}.ending-footer span{font-size:9px}
@keyframes rise-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes beacon{0%,100%{box-shadow:0 0 0 5px #edce9218,0 0 25px #e9d0a20a}50%{box-shadow:0 0 0 10px #edce9225,0 0 30px #e9d0a230}}
@media(min-width:1500px){.landing-bottom{margin-top:45px}.preview-card{padding:16px;min-height:128px;gap:23px}.preview-card img{width:140px;height:90px}.preview-card strong{font-size:15px}.preview-card p{font-size:10px}.landing-description{font-size:16px}.landing-copy{padding-top:9vh}.landing-bottom footer{margin-top:30px}.chapter-copy{top:150px}.time-display{top:150px}}
@media(max-width:1100px){.top-caption{display:none}.landing-copy{width:70%;padding-left:5%;padding-top:65px}.landing-copy h1{font-size:76px}.preview-card{gap:10px;padding:9px}.preview-card img{width:83px;height:80px}.preview-card small span{display:none}.preview-card p{font-size:8px}.preview-card strong{font-size:12px}.location-description{display:none}.chapter-copy{max-width:295px}.chapter-copy h1{font-size:28px}.scene-tabs button{padding:10px 14px}.time-display strong{font-size:32px}.time-display small{max-width:130px;line-height:1.8}.scene-caption{right:4.3%}.keyboard-tip{display:none}.landing-bottom{margin-top:45px}.scene-tabs{left:4.3%;transform:none}.objective{max-width:248px}}
@media(max-width:700px){.topbar{height:80px;padding:0 6%;gap:8px}.brand{min-width:132px;gap:9px}.brand-mark{font-size:42px;width:28px}.brand-mark>span{font-size:20px;right:-6px;top:-7px}.brand>span:last-child{font-size:16px}.brand small{font-size:8px;letter-spacing:4px}.utilities{gap:17px}.icon-button{gap:5px}.utility-label{display:none}.help-button{width:21px;height:21px}.icon-button i{width:16px;min-width:16px;height:16px;font-size:8px}#app{min-height:calc(100svh - 80px)}.scene-shade{background:linear-gradient(90deg,#0c1714cf,#0c17145c 75%),linear-gradient(0deg,#0c1714 0%,#0c1714d9 28%,transparent 70%)}.landing-copy{width:100%;padding:62px 7% 15px}.eyebrow{font-size:9px;letter-spacing:1px;gap:9px}.landing-copy h1{font-size:64px;letter-spacing:4px;margin:24px 0}.landing-copy h1 i{font-size:20px;margin-top:9px}.landing-description{font-size:12px;line-height:2;letter-spacing:.5px}.start-actions{gap:17px;margin-top:27px}.primary-button{padding:13px 19px;min-height:48px;font-size:12px;gap:30px}.playtime{font-size:8px;letter-spacing:0}.landing-meta{font-size:9px;margin-top:20px}.scene-caption{display:none}.landing-bottom{margin:42px 6% 0;padding-bottom:24px}.section-label{font-size:9px;letter-spacing:1px}.section-label small{font-size:6px;letter-spacing:1px}.section-label small>span{margin-left:6px}.preview-grid{gap:8px}.preview-card{display:block;padding:7px;min-height:145px}.preview-card img{width:100%;height:64px;display:block}.preview-card>div{padding:0 3px}.preview-card small{font-size:8px;margin-top:9px}.preview-card strong{font-size:10px;letter-spacing:.8px;margin:5px 0}.preview-card p{display:none}.card-arrow{top:auto;bottom:12px;right:9px;font-size:12px}.landing-bottom footer{font-size:8px;letter-spacing:.5px;line-height:1.8;gap:12px;margin-top:20px}.landing-bottom footer>span:last-child{max-width:145px;text-align:right}.landing-bottom footer i{margin:0 4px}.landing-bottom footer b{margin:0 3px}
body[data-view="game"] #app{height:calc(100svh - 80px);min-height:680px}body[data-view="game"] .scene-shade{background:linear-gradient(0deg,#101a16 0%,#101a1640 40%,#101a16a6 83%),linear-gradient(90deg,#101a1666,transparent)}.scene-tabs{top:17px;left:6%;right:6%;transform:none;justify-content:space-between;gap:0;padding:4px}.scene-tabs button{gap:7px;font-size:10px;padding:10px 9px}.scene-tabs small{font-size:8px}.tab-check{font-size:8px}.chapter-copy{top:91px;left:7%;max-width:75%}.chapter-copy h1{font-size:25px;line-height:1.6;letter-spacing:1px;margin:14px 0 10px}.chapter-copy>p{font-size:10px;line-height:1.9}.objective{margin-top:18px;width:240px;max-width:100%}.objective strong{font-size:10px}.objective>small{font-size:8px}.objective-symbol{font-size:18px}.objective>div>span:last-child{font-size:14px}.progress-track{margin:8px 0}.time-display{right:7%;top:89px}.time-display strong{font-size:25px}.time-display .sun-icon{font-size:15px;margin-right:6px;vertical-align:3px}.time-display small{display:none}.hotspots{position:absolute;top:326px;bottom:180px;left:5%;right:5%;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:14px;pointer-events:none}.hotspot{position:relative;left:auto;top:auto;transform:none!important;gap:8px;padding:6px;min-height:48px}.hotspot-label{opacity:1!important;font-size:10px;background:#14231ad9;padding:8px 11px}.clue-hotspot{flex-basis:100%;justify-content:center}.hotspot-ring{width:32px;height:32px;font-size:14px}.observation .hotspot-ring{width:25px;height:25px}.observation .hotspot-label{font-size:9px}.game-bottom{left:6%;right:6%;bottom:60px;gap:15px;padding-top:16px;align-items:stretch}.current-location{gap:9px}.current-location small{font-size:7px;letter-spacing:1px}.current-location strong{font-size:11px;letter-spacing:1px}.location-icon{font-size:25px}.compose-button{min-width:0;gap:10px;padding:11px 12px;max-width:53%}.compose-button>span{font-size:22px}.compose-button strong{font-size:10px;letter-spacing:.3px}.compose-button small{font-size:8px;line-height:1.5}.game-footer{bottom:23px;left:6%;right:6%;font-size:8px}.chapter-dots{gap:6px}.chapter-dots i{width:14px}.save-status{font-size:7px;gap:5px}.chapter-dots>span.current:before{margin-right:4px}.modal-overlay{padding:14px}.modal,.modal.wide{padding:30px 22px 25px;max-height:92svh;border-radius:6px}.modal h2{font-size:25px;letter-spacing:1px}.modal-kicker{font-size:8px;letter-spacing:1px}.story-text{font-size:12px;line-height:2}.speaker-name span{font-size:8px;margin-left:4px}.modal blockquote{font-size:11px;margin:20px 0;padding:13px 14px}.choices button{font-size:11px;padding:13px 10px;gap:10px}.choice-caption{font-size:9px}.fragment-illustration{font-size:45px;margin:20px 0}.journal-grid{grid-template-columns:1fr}.journal-entry{padding:15px}.entry-note{float:left;margin-right:13px;margin-bottom:0}.journal-entry p{font-size:11px;line-height:1.8}.journal-entry.locked{padding:13px}.journal-entry.locked p{display:none}.journal-entry blockquote{margin-bottom:0}.journal-description{font-size:10px}.journal-chapter h3{font-size:11px}.sequence-slots{gap:6px;margin:21px 0}.sequence-slot{width:31%;min-height:99px}.sequence-slot strong{font-size:22px}.sequence-slot>span{font-size:8px}.slot-connector{font-size:6px;letter-spacing:-1px}.note-pads{gap:8px}.note-pad{min-height:103px;padding:13px 7px;gap:7px}.note-pad small{font-size:8px;line-height:1.6}.note-pad>span{font-size:19px}.note-pad strong{font-size:16px}.puzzle-description{font-size:11px}.melody-hint{font-size:10px;gap:10px;margin:18px 0;padding:11px}.puzzle-tools{gap:13px;justify-content:space-between}.puzzle-tools button{font-size:9px}.puzzle-feedback{font-size:9px;min-height:28px}.transition-copy h2{font-size:29px}.transition-copy p{font-size:11px;line-height:1.9}.ending-content{padding:35px 7% 45px}.ending-content h1{font-size:42px;letter-spacing:3px}.ending-content h2{font-size:11px;line-height:1.9;letter-spacing:1px}.ending-content>p{font-size:11px;line-height:2}.ending-record{width:75px;height:75px;margin:24px 0}.ending-record i{top:35px;left:35px}.ending-actions{gap:10px}.ending-actions .primary-button,.ending-actions .secondary-button{font-size:10px;padding:13px;min-height:47px}.ending-actions .text-button{font-size:10px}.ending-footer{font-size:9px}.ending-footer span{font-size:8px}.ending-collection{font-size:8px}}
@media(max-height:780px) and (min-width:701px){.topbar{height:86px}#app{min-height:calc(100svh - 86px)}.landing-copy{padding-top:40px;padding-bottom:16px}.landing-copy h1{font-size:73px;margin:18px 0}.landing-copy h1 i{font-size:22px}.start-actions{margin-top:24px}.landing-bottom{margin-top:23px}.preview-card{min-height:94px}.preview-card img{height:65px}.landing-bottom footer{margin-top:17px}.landing-meta{margin-top:16px}body[data-view="game"] #app{height:calc(100svh - 86px);min-height:560px}.chapter-copy{top:97px}.chapter-copy h1{font-size:29px}.objective{margin-top:20px}.time-display{top:99px}.modal{padding:28px 34px}.modal.wide{padding:30px 38px}.sequence-slots{margin:20px 0}.sequence-slot{min-height:93px}.note-pad{min-height:99px;padding:13px}.modal blockquote{margin:18px 0}.fragment-illustration{font-size:40px;margin:18px 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.hotspot-ring{animation:none!important}}

/* The B-side: evidence, arrangement and duet */
.investigation-launch{pointer-events:auto;display:flex;align-items:center;gap:12px;margin-top:20px;padding:13px 15px;border:1px solid #c9b89344;border-radius:4px;background:#17251dde;backdrop-filter:blur(12px);width:280px;max-width:100%;text-align:left}.investigation-launch>span{font-size:25px;color:var(--gold)}.investigation-launch strong{font-size:11px;letter-spacing:.5px;font-weight:400}.investigation-launch small{display:block;font-size:9px;color:#a9b69a;margin-top:6px}.investigation-launch i{font-style:normal;color:var(--gold);margin-left:auto}.investigation-launch:hover{background:#34412be6;border-color:#c9b89388}.evidence-tag{font-size:11px;letter-spacing:1px;color:#d2bd96;padding:15px 0;margin-top:12px;border-bottom:1px solid var(--line)}
.challenge-level{float:right;color:#acb797;letter-spacing:1px}.challenge-overview{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#8e9f80;padding:17px 0 16px;margin-bottom:7px;border-bottom:1px solid var(--line)}.extended-slots{display:flex;gap:8px;margin:22px 0}.mini-slot{border:1px dashed #b3c09e40;background:#101d1833;border-radius:5px;text-align:center;flex:1;min-width:0;padding:14px 5px}.mini-slot small{display:block;color:#8b9d78;font:10px Georgia,serif;margin-bottom:10px}.mini-slot strong{font:24px Georgia,serif;color:#869777}.mini-slot.filled{background:#dfc79a0a;border:1px solid #d5bc9270}.mini-slot.filled strong{color:#e9d0a6}.music-actions{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:15px 0}.music-actions .secondary-button{font-size:11px;min-height:42px;padding:11px 17px}.music-actions .text-button{font-size:10px}.music-status{padding:17px 0 4px;min-height:49px;font-size:11px;line-height:1.8;color:#d9cba9;text-align:center}.hint-toggle{font-size:10px;display:block;width:100%;text-align:center;color:#abb49e}.notation-hint{border:1px solid #d5bd8d35;background:#d5bd8d0a;border-radius:4px;padding:15px;margin-top:15px;text-align:center}.notation-hint small{display:block;font-size:9px;line-height:1.8;color:#aeba9e;margin-bottom:10px}.notation-hint strong{font:17px Georgia,serif;letter-spacing:2px;word-spacing:2px;color:#e3cba2;line-height:1.8}.note-pad.sounding{background:#ead5af!important;color:#203021!important;box-shadow:0 0 25px #e1c29355;border-color:#ead5af;opacity:1!important;transform:translateY(2px)}.note-pad.sounding>span{color:#6e6e4c}.note-pad.sounding small{color:#566444}kbd{font:8px inherit;border:1px solid #c2c8ae44;border-radius:3px;padding:2px 5px;color:#bcc6a7;margin-left:6px}.rhythm-measures{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:19px;font-size:9px;letter-spacing:1px;color:#8f9f7d}.rhythm-measures span{border-top:1px solid #a3b18d44;padding-top:9px}.rhythm-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:7px;margin:12px 0 22px}.rhythm-step{display:flex;flex-direction:column;align-items:center;gap:15px;padding:13px 5px;border:1px solid #b2c09b40;border-radius:4px;background:#0c1a1444;min-width:0;transition:none!important}.rhythm-step small{font:11px Georgia,serif;color:#98aa83}.rhythm-step strong{font-size:20px;color:#718462}.rhythm-step>span{font-size:9px;color:#82966f}.rhythm-step.on{background:#d9c2951c;border-color:#d9c29588}.rhythm-step.on strong{color:#e1c496}.rhythm-step.on>span{color:#c6c6aa}.rhythm-step.sounding{opacity:1;outline:2px solid #d8d8b7;outline-offset:3px;background:#536342}.rhythm-step.sounded-hit{background:#e4c99c;outline-color:#e4c99c}.rhythm-step.sounded-hit strong,.rhythm-step.sounded-hit small,.rhythm-step.sounded-hit>span{color:#22311b}.record-controls{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.record-controls .secondary-button{font-size:10px;padding:11px 15px;min-height:42px}.tap-button{font-size:11px;min-width:115px;min-height:43px;background:#d9c49f;color:#25351e;border-radius:4px}.tap-button kbd{color:#25351e;border-color:#25351e55}.record-controls>span{font-size:9px;color:#8fa17d;line-height:1.7}.tap-button:active:not(:disabled){background:#f4dfbd;transform:translateY(2px)}
.board-tabs{display:flex;gap:8px;margin:24px 0}.board-tabs button{flex:1;font-size:11px;border-bottom:1px solid var(--line);padding:10px 5px;color:#aeb9a1}.board-tabs button.active{border-color:#d9c29b;color:#eed5aa;background:#e3c99a0a}.case-title{margin:20px 0}.case-title>small{font-size:9px;letter-spacing:2px;color:#d0b98d}.case-title h3{font-family:"Songti SC",STSong,serif;font-size:24px;font-weight:400;margin:10px 0 9px;line-height:1.5}.case-title p{font-size:11px;color:#a3b398;line-height:1.8}.evidence-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.evidence-card{min-width:0;text-align:left;padding:16px 13px;border:1px solid #b8c19f2e;border-radius:5px;background:#d5dbc707;min-height:195px;position:relative}.evidence-card>small{display:flex;justify-content:space-between;gap:6px;font-size:8px;line-height:1.8;color:#8ea17d}.evidence-card>small span{color:#c9b389;white-space:nowrap}.evidence-card>strong{display:block;font-size:11px;line-height:1.8;font-weight:500;margin:11px 0 8px;letter-spacing:.2px}.evidence-card>p{font-size:10px;line-height:1.95;color:#aeb9a1}.evidence-card.unknown{background:#13221a66;opacity:.6}.evidence-card.unknown:hover{opacity:1}.evidence-card:hover{border-color:#d6c09866}.evidence-card.selected{background:#d3bf9920;border-color:#e0c79b;box-shadow:inset 0 0 0 1px #e0c79b30}.evidence-card.selected>strong{color:#edd3a7}.evidence-selection{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#d6c39c;margin:18px 0 13px}.evidence-selection span{color:#7f9574;font-size:9px}.deduction-options{display:flex;flex-direction:column;gap:8px}.deduction-options button{display:flex;align-items:center;text-align:left;gap:12px;padding:14px;border:1px solid var(--line);border-radius:4px;font-size:11px;line-height:1.8}.deduction-options button>span{color:#cfbd92}.deduction-options button.selected{border-color:#d8c39b88;background:#d8c39b13}.board-feedback{font-size:11px;color:#d7c49b;line-height:1.9;margin-top:16px}.board-footer{font-size:9px;color:#8f9f7e;line-height:1.9;margin-top:21px}.deduction-reveal{padding:18px;border:1px solid #d7c19755;background:#d7c1970c;border-radius:5px;margin-bottom:20px}.deduction-reveal>span{font-size:10px;color:#e1c89c;letter-spacing:1px}.deduction-reveal>p{font-size:12px;line-height:2;color:#d3dac7;margin-top:13px}.performance-report{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:28px;max-width:580px}.performance-report>div{border-top:1px solid #c1c5a844;padding-top:13px}.performance-report small{display:block;font-size:10px;color:#b1bf9f}.performance-report strong{display:block;margin:9px 0;color:#dfc49a;letter-spacing:4px;font-size:19px;font-weight:400}.performance-report span{font-size:9px;color:#8ca078}.resonance-result{font-size:10px!important;color:#a2b28f!important;margin-top:20px}.ending-map{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:21px;max-width:670px}.ending-map article{border:1px solid #b5c09b24;padding:12px;border-radius:4px;opacity:.68;background:#17251b66}.ending-map article.unlocked{opacity:1;border-color:#c3b18b55}.ending-map small{font-size:8px;color:#9aac84}.ending-map strong{font-size:11px;line-height:1.7;color:#d4c199;display:block;margin:9px 0;font-weight:400}.ending-map p{font-size:9px;line-height:1.8;color:#93a581}.ending-content{max-width:925px}
@media(max-width:700px){.investigation-launch{width:240px;min-height:57px;margin-top:15px;padding:10px 12px}.investigation-launch strong{font-size:10px}.investigation-launch small{font-size:8px}.investigation-launch>span{font-size:21px}body[data-view="game"] #app{min-height:720px}.hotspots{top:400px;bottom:150px;gap:7px}.observation .hotspot-label{max-width:140px;font-size:9px;white-space:normal}.extended-slots{gap:5px;margin:20px 0}.mini-slot{padding:12px 2px}.mini-slot strong{font-size:19px}.mini-slot small{font-size:8px;margin-bottom:9px}.challenge-overview{font-size:8px;gap:10px}.challenge-level{font-size:8px}.music-actions{gap:10px;flex-wrap:wrap}.music-actions .secondary-button{font-size:10px;padding:10px 12px}.music-actions .text-button{font-size:9px}.music-status{font-size:10px;padding-top:15px;min-height:49px}.hint-toggle{font-size:9px;line-height:1.8}.notation-hint{padding:11px}.notation-hint strong{font-size:13px;letter-spacing:1px;word-spacing:0}.note-pad kbd{display:none}.rhythm-grid{gap:5px;margin-bottom:17px}.rhythm-step{padding:11px 1px;gap:12px}.rhythm-step strong{font-size:14px}.rhythm-step small{font-size:9px}.rhythm-step>span{font-size:8px;writing-mode:vertical-rl;letter-spacing:2px}.rhythm-measures{font-size:8px}.record-controls{gap:12px}.record-controls>span{font-size:8px;width:100%;margin-top:-4px}.tap-button{min-width:100px;font-size:10px}.record-controls .secondary-button{font-size:10px}.evidence-grid{grid-template-columns:repeat(2,1fr);gap:8px}.evidence-card{padding:13px 10px;min-height:200px}.evidence-card>small{font-size:7px;gap:4px;flex-wrap:wrap}.evidence-card>strong{font-size:10px;margin:9px 0}.evidence-card>p{font-size:10px;line-height:1.8}.case-title h3{font-size:22px}.case-title p{font-size:10px}.board-tabs{margin:19px 0;gap:5px}.board-tabs button{font-size:10px}.deduction-options button{font-size:10px;padding:12px 10px;gap:8px}.evidence-selection{font-size:9px;gap:8px}.evidence-selection span{font-size:8px}.board-feedback{font-size:10px}.board-footer{font-size:8px}.deduction-reveal>p{font-size:11px}.performance-report{gap:9px}.performance-report strong{font-size:17px;letter-spacing:2px}.performance-report small{font-size:9px}.performance-report span{font-size:8px;line-height:1.8;display:block}.ending-map{grid-template-columns:repeat(2,1fr);gap:8px}.ending-map article{padding:11px}.ending-map strong{font-size:10px}.ending-map p{font-size:8px}.ending-content{padding-bottom:30px}}
@media(min-width:701px) and (max-height:780px){.investigation-launch{margin-top:15px;padding:10px 12px}.chapter-copy h1{margin:15px 0}.objective{margin-top:16px}.challenge-overview{padding:12px 0}.extended-slots{margin:17px 0}.music-status{padding-top:12px;min-height:42px}}
.challenge-level{margin-right:25px}

/* Viewport-aware play surfaces: reading may scroll; primary actions stay visible. */
body.modal-open{overflow:hidden}
.modal-overlay{padding:20px}
.modal{display:flex;flex-direction:column;max-height:calc(100dvh - 40px);overflow:hidden;padding:28px;gap:18px}
.modal.wide{padding:28px}
.modal-close{z-index:2;flex:none}
.dialog-heading{flex:none;min-width:0;padding-right:24px}
.dialog-heading .modal-kicker{margin-bottom:10px}
.dialog-heading h2{margin-bottom:10px}
.dialog-heading h2:last-child{margin-bottom:0}
.dialog-reading,[data-scroll-region]{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#69745e transparent}
.dialog-reading{padding:0 5px 2px 0}
.dialog-controls{flex:none;border-top:1px solid var(--line);padding-top:14px}
.dialog-controls>.full:first-child{margin-top:0}
.dialog-controls .choices{gap:8px}
.dialog-controls .choices button{padding:11px 14px}
.dialog-reading .speaker-avatar,.dialog-reading .fragment-illustration{margin:8px 0 16px}
.dialog-reading .speaker-name{margin-bottom:0}
.dialog-reading .journal-chapter:first-child{margin-top:12px}
.modal[data-dialog="transition"]{display:block;overflow:auto}
.modal[data-dialog="compose"]{width:1040px}
.challenge-workspace{overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:26px;min-height:0}
.performance-area{padding:0 5px 0 0}
.score-area{border-left:1px solid var(--line);padding:16px 0 0 22px}
.score-area h3{font-size:12px;font-weight:500;color:var(--gold);margin-bottom:18px}
.score-area p{font-size:12px;line-height:1.9;color:var(--muted)}
.score-area>small{display:block;font-size:10px;line-height:1.8;color:#93a581;margin-top:14px}
.score-area .hint-toggle{text-align:left;line-height:1.8;margin-top:16px;font-size:12px}
.score-area .notation-hint{margin:0;padding:12px;text-align:left}
.score-area .notation-hint strong{font-size:16px;letter-spacing:1px;line-height:2.2;overflow-wrap:anywhere}
.challenge-overview{padding:8px 0 12px;margin:0}
.extended-slots{margin:16px 0}
.music-status{min-height:48px;padding:14px 0 0;text-align:left}
.challenge-controls{display:flex;align-items:center;justify-content:space-between;gap:24px;flex:none;border-top:1px solid var(--line);padding-top:16px}
.challenge-controls .music-actions{margin:0;gap:18px;flex-wrap:wrap}
.challenge-controls>.full{width:auto;min-width:190px;margin:0;gap:25px}
.modal[data-dialog="board"]{width:1180px;height:min(780px,calc(100dvh - 40px))}
.board-tabs{margin:14px 0 0}
.board-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:26px;min-height:0;flex:1}
.board-evidence{padding:0 8px 2px 0}
.board-evidence .evidence-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.board-evidence .evidence-card{min-height:175px;padding:14px 12px;vertical-align:top}
.board-evidence .evidence-card>p{font-size:12px;line-height:1.8}
.board-evidence .evidence-card>strong{font-size:12px}
.board-evidence .evidence-card>small{flex-wrap:wrap;font-size:9px}
.board-reasoning{display:flex;flex-direction:column;min-height:0;min-width:0;border-left:1px solid var(--line);padding-left:24px}
.reasoning-content{padding-right:5px;flex:1}
.case-title{margin:0 0 14px}
.case-title h3{font-size:23px;margin:8px 0}
.evidence-selection{margin:12px 0;flex-wrap:wrap}
.deduction-options button{font-size:12px;padding:11px;line-height:1.7}
.board-feedback{margin-top:12px}
.board-controls{flex:none;border-top:1px solid var(--line);padding-top:14px;margin-top:12px}
.board-controls>.full{margin-top:0;min-height:46px;padding:11px 16px;font-size:12px;gap:12px}
.board-footer{margin-top:10px;line-height:1.7}
.reasoning-content .melody-hint{margin:8px 0;padding:10px;font-size:11px}

@media(min-width:701px){
  :root{--header-height:72px}
  .topbar{height:var(--header-height)}
  #app{min-height:calc(100dvh - var(--header-height))}
  body[data-view="landing"] #app{height:calc(100dvh - var(--header-height));min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;padding:22px 0 18px;gap:20px}
  .landing-copy{padding:0 0 0 7.1%;align-self:center;width:70%;min-height:0}
  .landing-copy h1{font-size:clamp(48px,9dvh,94px);margin:15px 0;line-height:1.25}
  .landing-copy h1 i{font-size:clamp(18px,2.6dvh,25px)}
  .landing-description{font-size:13px;line-height:1.9}
  .start-actions{margin-top:22px}
  .landing-meta{margin-top:16px}
  .landing-bottom{margin:0 4.3%;padding:0}
  .section-label{margin-bottom:12px}
  .preview-card{min-height:88px;padding:10px;gap:14px}
  .preview-card img{height:62px;width:100px}
  .landing-bottom footer{margin-top:14px}
  body[data-view="game"] #app{height:calc(100dvh - var(--header-height));min-height:0}
  .scene-tabs{top:16px}
  .chapter-copy{top:95px;max-width:300px}
  .chapter-copy h1{font-size:29px;line-height:1.5;margin:14px 0}
  .chapter-copy>p{font-size:11px;line-height:1.9}
  .objective{margin-top:20px}
  .time-display{top:96px}
  .game-bottom{bottom:53px;padding-top:14px}
  .game-footer{bottom:19px}
  .investigation-launch{margin-top:16px}
}
@media(min-width:701px) and (max-height:700px){
  :root{--header-height:64px}
  .brand-mark{font-size:43px}
  .brand>span:last-child{font-size:17px}
  .brand small{font-size:8px}
  body[data-view="landing"] #app{gap:14px;padding:14px 0}
  .landing-copy h1{margin:10px 0}
  .start-actions{margin-top:16px}
  .landing-meta{margin-top:12px}
  .landing-bottom footer{margin-top:10px}
  .chapter-copy{top:79px}
  .chapter-copy h1{font-size:25px;margin:10px 0}
  .chapter-copy>p{line-height:1.8}
  .objective{margin-top:13px}
  .investigation-launch{margin-top:12px;padding:10px 12px}
  .time-display{top:80px}
  .time-display strong{font-size:30px}
  .modal,.modal.wide{padding:22px;gap:14px}
  .dialog-heading h2{font-size:26px}
  .challenge-overview{padding-top:4px}
  .mini-slot{padding:10px 5px}
  .mini-slot small{margin-bottom:6px}
  .note-pad{min-height:86px;padding:10px;gap:7px}
  .rhythm-step{gap:11px;padding:10px 4px}
  .challenge-controls{padding-top:12px}
}
@media(min-width:701px) and (max-width:1000px){
  .challenge-workspace{grid-template-columns:minmax(0,1fr) 190px;gap:18px}
  .score-area{padding-left:16px}
  .board-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
  .board-evidence .evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .board-reasoning{padding-left:16px}
  .challenge-controls{gap:14px}
  .challenge-controls .music-actions{gap:10px}
  .challenge-controls>.full{min-width:160px;padding:12px;font-size:12px}
  .record-controls{gap:10px}
  .record-controls>span{width:100%}
}
@media(max-width:700px){
  .modal-overlay{padding:12px}
  .modal,.modal.wide{padding:24px 18px 18px;max-height:calc(100dvh - 24px);gap:14px}
  .dialog-heading h2{font-size:24px}
  .dialog-controls .choices button{padding:10px;font-size:11px}
  .modal[data-dialog="compose"],.modal[data-dialog="board"]{height:calc(100dvh - 24px)}
  .challenge-workspace{display:block;overflow:auto;overscroll-behavior:contain}
  .performance-area,.score-area{overflow:visible}
  .score-area{padding:16px 0 0;border:0;border-top:1px solid var(--line);margin-top:12px}
  .score-area h3{margin-bottom:10px}
  .score-area>p,.score-area>small{font-size:11px}
  .score-area .hint-toggle{margin-top:8px}
  .score-area .notation-hint strong{font-size:14px;line-height:1.8}
  .challenge-controls{display:block;padding-top:12px}
  .challenge-controls .music-actions{justify-content:space-between;gap:8px;flex-wrap:nowrap;margin-bottom:10px}
  .challenge-controls>.full{width:100%;min-height:44px}
  .board-tabs{margin-top:12px}
  .board-workspace{display:flex;flex-direction:column;gap:14px}
  .board-evidence{flex:1;min-height:120px;padding-right:4px}
  .board-evidence .evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .board-evidence .evidence-card{min-height:0;padding:12px}
  .board-evidence .evidence-card>p{font-size:11px}
  .board-reasoning{border-left:0;border-top:1px solid var(--line);padding:12px 0 0;flex:1.2;min-height:210px}
  .case-title h3{font-size:20px}
  .board-controls{padding-top:10px;margin-top:10px}
  .board-footer{display:none}
}
/* At extreme zoom or very short windows, keep content reachable rather than clipping it. */
@media(min-width:701px) and (max-height:540px){
  body[data-view="landing"] #app{height:auto;min-height:calc(100dvh - var(--header-height))}
  body[data-view="game"] #app{min-height:476px}
}
.ending-story>p{font-size:12px;color:#b5c3aa;line-height:2;letter-spacing:.7px;max-width:510px}
@media(min-width:701px){
  body[data-view="ending"] #app{height:calc(100dvh - var(--header-height));min-height:0;display:flex;flex-direction:column}
  .ending-content{width:100%;max-width:1400px;min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:14px 40px;padding:30px 6% 18px;margin:auto}
  .ending-story,.ending-details{padding-right:10px}
  .ending-content h1{font-size:clamp(32px,4vw,50px);margin-bottom:14px}
  .ending-content h2{margin-bottom:16px;line-height:1.8}
  .ending-record{width:70px;height:70px;margin:20px 0}
  .ending-record i{top:33px;left:33px}
  .ending-actions{grid-column:1/-1;margin:0;padding-top:14px;border-top:1px solid var(--line)}
  .ending-collection{grid-column:1/-1}
  .ending-details .performance-report{margin-top:0}
  .ending-map{grid-template-columns:repeat(2,1fr)}
  .ending-footer{flex:none;padding:14px 0}
}
@media(max-width:700px){.ending-story,.ending-details{overflow:visible}.ending-story>p{font-size:11px}}
@media(min-width:701px){
  .game-bottom{gap:18px}
  .game-bottom .current-location{margin-right:auto}
  .game-bottom .investigation-launch{margin:0;width:245px;flex-shrink:0}
  .game-bottom .location-description{display:none}
}
@media(max-width:700px){
  .game-bottom{flex-wrap:wrap;gap:10px}
  .game-bottom .current-location{width:100%}
  .game-bottom .investigation-launch{margin:0;flex:1;width:auto;min-width:0;padding:10px 8px;gap:6px}
  .game-bottom .investigation-launch>span,.game-bottom .investigation-launch i{display:none}
  .game-bottom .compose-button{flex:1}
  .hotspots{top:335px;bottom:205px}
}
@media(min-width:701px){.hotspot{top:clamp(170px,var(--y),calc(100dvh - 170px))}}

/* The English entry tells players that the story stays in Chinese. */
.bside-xgc-language{color:#c2c9be;font-size:11px;line-height:1.2;text-align:center}
@media(max-width:700px){.bside-xgc-language{font-size:10px}}
@media(max-width:335px){
  .topbar{padding-inline:4%}
  .brand{min-width:106px}
  .utilities{gap:10px}
}
