@font-face{font-family:Notebook Mincho;src:url("./assets/notebook-serif.woff") format("woff");font-style:normal;font-weight:700;font-display:swap}
:root{
  color-scheme:light;
  --ink:#3f3036;--muted:#77696a;--wine:#884057;--wine-dark:#6d3047;--rose:#bd8690;--sea:#3e6c6b;--border:#d9cbbd;--gold:#ad8a50;--cream:#fcf8ef;
  --serif:"Notebook Mincho","Hiragino Mincho ProN","Yu Mincho","Noto Serif CJK JP",serif;
  --sans:"Hiragino Sans","Yu Gothic","Noto Sans CJK JP","Meiryo",sans-serif;
  --latin:Georgia,"Times New Roman",serif;
}
*{box-sizing:border-box}
html{min-height:100%;scroll-behavior:smooth}
body{margin:0;min-width:280px;min-height:100vh;color:var(--ink);font:400 1rem/1.65 var(--sans);background-color:#faf6ee;background-image:radial-gradient(ellipse at 0 22%,#eacac438,transparent 38%),radial-gradient(ellipse at 100% 83%,#d5e4d648,transparent 40%),radial-gradient(#bda58b50 .75px,transparent .9px);background-size:auto,auto,17px 17px}
button,a{font:inherit;-webkit-tap-highlight-color:transparent}
button{color:inherit;cursor:pointer;background:none;border:0}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #287778;outline-offset:4px}
button:disabled{cursor:default}
button svg,[data-icon] svg,.save-note svg{display:block;width:1.16em;height:1.16em;flex:none}
button{touch-action:manipulation}
a{color:var(--wine)}
h1,h2,h3,p{margin:0}
.visually-hidden,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}
.skip:focus{position:fixed;left:1rem;top:1rem;z-index:30;background:white;padding:.6rem}
.masthead{position:relative;background:#fffcf6f5;border-top:4px solid var(--wine);border-bottom:1px solid #cbb9ab;box-shadow:0 3px 0 #fffaf0,0 4px 0 #e3d8c9}
.mast-inner,.desk{width:min(92%,1320px);margin-inline:auto}
.mast-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:1.2rem}
.wordmark{display:flex;align-items:center;gap:10px;line-height:1}
.wordmark img{width:48px;height:48px}
.wordmark-name{font:700 clamp(1.18rem,1.62vw,1.52rem)/1.35 var(--serif);letter-spacing:.055em;white-space:nowrap}
.wordmark-sub{display:block;font:700 .72rem/1.45 var(--latin);color:var(--wine);letter-spacing:.2em;margin-top:.21rem}
.wordmark-sub i{font-weight:400;letter-spacing:.15em;text-transform:none}
.top-nav{display:flex;align-items:center;gap:clamp(.25rem,1.7vw,1.5rem)}
.top-nav button{display:inline-flex;align-items:center;justify-content:center;gap:.5em;padding:.48rem .43rem;min-height:44px;font-weight:600;font-size:.9rem;border-radius:5px;white-space:nowrap}
.top-nav button:hover,.swap-button:hover,.hint-button:hover,.game-footer button:hover{color:var(--wine-dark);background-color:#efe3daaa}
.top-nav svg{color:#805e60;width:19px;height:19px}
.top-nav .mode-link{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:.42em;padding:.4rem .6rem;border-radius:5px;color:#884057;font-size:.9rem;font-weight:700;text-decoration:none;white-space:nowrap}
.top-nav .mode-link:hover{background:#f4e2e5}
.top-nav .mode-link svg{color:#93546b}
@media(max-width:550px){.top-nav .mode-link{gap:.08rem;min-width:36px;flex-direction:column;font-size:.66rem;padding:.28rem .2rem}.mast-inner:has(.mode-link){width:96%}}
@media(max-width:350px){.mast-inner:has(.mode-link){flex-wrap:wrap;justify-content:center;gap:0}.mast-inner:has(.mode-link) .top-nav{margin-inline:auto}}
.nav-divider{width:1px;height:20px;background:#d6c8bc}
.top-nav .sound{min-width:72px}
.sound-text{font-size:.82rem;font-weight:600;letter-spacing:.03em}
.desk{padding:clamp(1.7rem,3vw,2.9rem) 0 1.1rem}
.case-intro{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 2px clamp(1.45rem,2.25vw,2rem)}
.file-line{display:flex;align-items:center;gap:.85rem;margin-bottom:.45rem}
.file-ribbon{position:relative;display:inline-block;font:700 .76rem/1 var(--latin);letter-spacing:.16em;background:var(--wine);color:#fff9ef;padding:.44rem .83rem .41rem .72rem;clip-path:polygon(0 0,100% 0,calc(100% - 5px) 50%,100% 100%,0 100%)}
.file-city{display:inline-flex;align-items:center;gap:.44rem;color:#71655c;font-size:.8rem;letter-spacing:.06em}
.file-city svg{width:12px;height:12px;color:#a88855;fill:#ead4aa}
h1{font:700 clamp(2.15rem,3.55vw,3.4rem)/1.36 var(--serif);letter-spacing:.06em;color:#3f2b35;font-feature-settings:"palt"}
h1:focus{outline:none}
.deck{color:#695e5c;font-size:clamp(.95rem,1.15vw,1.06rem);line-height:1.8;letter-spacing:.02em;margin-top:.35rem}
.case-stamp{transform:rotate(-7deg);color:#9a5a6b;border:3px double #b47b87;border-radius:6px;padding:.1rem .5rem .13rem;display:inline-flex;align-items:center;gap:.35em;font:700 1.13rem/1.4 var(--serif);letter-spacing:.12em;margin-right:.8rem;white-space:nowrap;box-shadow:inset 0 0 0 2px #fff8ee;background:repeating-linear-gradient(-28deg,transparent 0 3px,#ba87900a 3px 4px)}
.case-stamp.solved{color:#41706b;border-color:#84a59a}
.stamp-flourish{font:400 .77rem var(--latin)}
.workspace{display:grid;grid-template-columns:minmax(0,2.18fr) minmax(285px,.98fr);gap:clamp(1.4rem,2.4vw,2.4rem);align-items:start}
.left-column{min-width:0}
.scene-frame{position:relative;margin:0;padding:7px 7px 0;border:1px solid #cbbdad;background:#fffcf6;border-radius:12px;box-shadow:0 4px 0 -1px #f4ebe0,0 5px 0 -1px #cfc2b4,0 9px 22px #5e3e3311}
.scene-frame::before{content:"";position:absolute;z-index:2;pointer-events:none;width:65px;height:20px;top:-6px;left:-10px;transform:rotate(-22deg);background:repeating-linear-gradient(100deg,#e9d5acb5 0 3px,#ecdab9b0 3px 5px);clip-path:polygon(0 0,100% 3%,98% 21%,100% 35%,97% 52%,100% 73%,98% 100%,0 98%,2% 70%,0 50%,2% 31%)}
.board{position:relative;width:100%;isolation:isolate;overflow:hidden;background:#dac7b5;border-radius:6px}
.scene-art{display:block;width:100%;height:auto;aspect-ratio:var(--scene-ratio,16/9);object-fit:cover}
.board::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;border-radius:inherit;box-shadow:inset 0 0 0 1px #6a49472b}
.scene-tag{position:absolute;z-index:2;top:15px;left:16px;display:inline-flex;align-items:center;gap:.5rem;max-width:calc(100% - 75px);background:#fff9edee;border:1px solid #c5ac82;color:#62494a;font-weight:700;font-size:clamp(.76rem,1.02vw,.95rem);line-height:1.45;letter-spacing:.025em;padding:.39rem .65rem;border-radius:5px;box-shadow:0 2px 5px #4e333224;pointer-events:none}
.scene-tag svg{width:1em;height:1em;color:#9a5568;flex:none}
.scene-tag .tag-time{font:600 .83rem var(--latin);letter-spacing:.04em;border-left:1px solid #cdbdae;padding-left:.5rem;color:#725d57}
.expand-button{position:absolute;right:12px;top:10px;display:grid;place-items:center;z-index:3;width:44px;height:44px;padding:0;border-radius:6px;color:#5d4846;background:transparent}
.expand-button::before{content:"";position:absolute;inset:5px;background:#fff9eeee;border:1px solid #c6b198;border-radius:5px;z-index:-1}
.expand-button svg{width:19px;height:19px}
.expand-button:hover::before{background:#fff}
.hotspot{position:absolute;z-index:3;transform:translate(-50%,-50%);width:clamp(43px,4vw,55px);height:clamp(43px,4vw,55px);display:grid;place-items:center;padding:0;border:1.5px dashed #fff9df;border-radius:50%;background:#60462c44;color:#714553;filter:drop-shadow(0 2px 3px #3629205b);transition:scale .15s ease,filter .15s ease}
.pin-core{display:grid;place-items:center;width:78%;height:78%;border-radius:50%;background:#fffae8f8;border:2px solid #b99653;box-shadow:0 0 0 2px #fff9e6be}
.pin-core svg{height:53%;width:53%;stroke-width:2}
.pin-glint{position:absolute;right:-1px;top:-4px;color:#ffe5a2;font-size:clamp(1.05rem,1.6vw,1.45rem);line-height:1;text-shadow:0 1px 2px #8b582c}
.hotspot:hover,.hotspot:focus-visible{scale:1.10;filter:drop-shadow(0 2px 6px #52342688);z-index:4}
.hotspot.found .pin-core{background:#dceddf;border-color:#81a592;color:#376952}
.hotspot.found .pin-glint{display:none}
.photo-caption{min-height:43px;display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.42rem .65rem .5rem;color:#73635c}
.caption-body{display:flex;align-items:center;gap:.5rem;font-size:.86rem}
.caption-body svg{color:#a47c53}
.photo-count{display:flex;align-items:center;gap:7px;padding:0 .3rem}
.photo-count i{width:7px;height:7px;transform:rotate(45deg);border:1px solid #b69c81;border-radius:1px;background:#f1e8d6}
.photo-count i.on{background:#9f6473;border-color:#9f6473}
.dialogue-card{position:relative;margin-top:1.1rem;display:grid;align-items:center;grid-template-columns:auto 1fr auto;gap:clamp(.65rem,1.4vw,1.25rem);padding:1rem 1.2rem;background:#fffbf3;border:1px solid #d6c7b7;border-left:4px solid #87aeb0;border-radius:9px;box-shadow:0 3px 8px #74584c0c;min-height:103px}
.dialogue-card.is-luluka{border-left-color:#b09aae}
.portrait{flex:none;background-color:#d8ebe7;background-image:var(--photo);background-position:50% 12%;background-size:178% auto;width:64px;height:64px;border-radius:50%;border:3px solid #fff9ec;box-shadow:0 0 0 1px #a9b7a9,0 2px 3px #6b514315}
.portrait.is-luluka{background-color:#f1dce3;background-position:51% 19%;box-shadow:0 0 0 1px #b99cae,0 2px 3px #6b514315}
.dialogue-copy{min-width:0}
.speaker-line{display:flex;align-items:center;gap:.45rem;margin-bottom:.2rem}
.speaker-dot{display:block;width:6px;height:6px;background:#719fa2;transform:rotate(45deg)}
.is-luluka .speaker-dot{background:#a387a0}
.speaker-name{font:700 .98rem/1.4 var(--serif);letter-spacing:.09em;color:#416b69}
.is-luluka .speaker-name{color:#76556e}
.speech{font-size:1rem;line-height:1.72;letter-spacing:.014em}
.swap-button{display:inline-flex;align-items:center;justify-content:center;align-self:center;gap:.35rem;color:#755c60;border:1px solid #d9c9bd;border-radius:5px;background:#fcf5ec;min-height:38px;font-size:.8rem;white-space:nowrap;padding:.38rem .55rem}
.swap-button svg{width:17px;height:17px}
.notebook{margin:3px 4px 3px 0;padding:0 5px 5px 0;position:relative;border-radius:9px 12px 13px 11px;background:#c99199;border:1px solid #bb8a91;box-shadow:1px 3px 0 #bb8990,4px 6px 0 #e5d9cb,3px 9px 20px #74584c1c}
.notebook-sheet{position:relative;z-index:0;border:1px solid #c7b59f;border-radius:8px 8px 9px 8px;background-color:#fff9eb;background-image:linear-gradient(90deg,#f7ecd8b8 0,transparent 4.5%,transparent 97%,#f3e7ce 100%);box-shadow:1px 2px 0 #f4e8d4,2px 3px 0 #cdbcaa;min-height:100%}
.notebook-rings{position:absolute;top:-13px;left:11%;right:17%;display:flex;justify-content:space-between;pointer-events:none}
.notebook-rings i{position:relative;width:8px;height:22px;border-radius:6px;background:linear-gradient(90deg,#66503d 0%,#9e8162 20%,#e6cfab 43%,#91714f 76%,#67503b);border:1px solid #806449;box-shadow:1px 1px 1px #9876564d;transform:rotate(-6deg)}
.notebook-rings i::after{content:"";position:absolute;z-index:-1;left:-2px;bottom:-3px;width:9px;height:8px;border-radius:50%;background:#836d55;box-shadow:0 1px 0 #f7e5c4}
.bookmark{position:absolute;right:7%;top:-2px;width:17px;height:39px;clip-path:polygon(0 0,100% 0,100% 100%,50% 79%,0 100%);background:linear-gradient(to right,#ad6577 0 12%,#c88895 12% 77%,#b77584 77%);box-shadow:2px 2px 4px #593b3b36}
.notebook-inner{padding:clamp(1.45rem,2.2vw,2.1rem) clamp(1.05rem,1.9vw,1.8rem) .85rem}
.notebook-heading{display:flex;gap:.6rem;align-items:center;color:#513b41}
.notebook-heading h2{font:700 clamp(1.5rem,2vw,2rem)/1.45 var(--serif);letter-spacing:.08em}
.notebook-icon{transform:rotate(-7deg);color:var(--wine)}
.notebook-icon svg{width:28px;height:28px;stroke-width:1.5}
.notebook-rule{display:flex;align-items:center;gap:.42rem;color:#ba9963;margin:.65rem 0 1rem}
.notebook-rule i{height:1px;background:#d6c29f;flex:1}
.notebook-rule b{font:400 .72rem/.7 var(--latin)}
.evidence-count{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:.9rem;font-weight:700;color:#66564f}
.count-pill{font:700 .95rem var(--latin);letter-spacing:.13em;color:var(--wine);background:#f1e4df;border:1px solid #debdba;border-radius:20px;padding:.19rem .53rem}
.evidence-list{list-style:none;margin:.46rem 0 1.2rem;padding:0}
.evidence-list li{border-bottom:1px dashed #cfc0ac}
.evidence{display:flex;align-items:center;gap:clamp(.55rem,1.05vw,.9rem);width:100%;text-align:left;padding:.64rem .04rem;border-radius:5px}
.evidence:hover{background:#f3ead99c}
.prop-tile{position:relative;display:grid;place-items:center;flex:none;border:1px solid #d8c4aa;border-radius:6px;width:54px;height:50px;background:linear-gradient(145deg,#fff8e9,#f1e4cf);box-shadow:inset 0 0 0 2px #fff8e7}
.prop-tile svg{width:92%;height:auto}
.evidence.archive .prop-tile{background:linear-gradient(145deg,#f8f4df,#e6eadb);border-color:#b8c4af}
.evidence-text{display:flex;flex-direction:column;gap:.09rem}
.evidence-text strong{font:700 clamp(1rem,1.27vw,1.14rem)/1.5 var(--serif);letter-spacing:.035em}
.evidence-text small{font-size:.78rem;line-height:1.5;color:#766a60}
.evidence-tail{margin-left:auto;color:#907d6b;border:1px dashed #c6b399;border-radius:50%;display:grid;place-items:center;width:23px;height:23px;flex:none}
.evidence-tail svg{width:13px;height:13px}
.evidence.archive .evidence-tail{border:1px solid #aabfa8;background:#e8efdf;color:#446f57}
.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:.54rem;min-height:46px;padding:.58rem 1.1rem;border-radius:6px;font-weight:700;letter-spacing:.05em;text-align:center;text-decoration:none;line-height:1.6}
.primary{background:#884559;background-image:linear-gradient(115deg,#924c60,#7e3b52);border:1px solid #70354a;color:#fffaf1;box-shadow:inset 0 0 0 2px #ffffff0c,0 2px 0 #6335462c}
.primary:hover{background:#723449;box-shadow:0 3px 7px #85465830}
.primary:active,.secondary:active{transform:translateY(1px)}
.primary svg,.secondary svg{width:19px;height:19px}
.secondary{background:#fcf6eb;border:1px solid #cdbbab;color:#674d50}
.secondary:hover{background:#f3e8d8}
.notebook-cta{width:100%;min-height:47px}
.hint-button{margin:.44rem auto 0;display:flex;align-items:center;justify-content:center;gap:.4rem;padding:.38rem .65rem;font-size:.85rem;color:#79685b;min-height:36px;border-radius:5px}
.hint-button svg{height:16px;width:16px;color:#a17c47}
.game-footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;border-top:1px solid #d6c9bb;margin-top:clamp(1.6rem,2.5vw,2.5rem);padding:.63rem 0 0;color:#796e68}
.game-footer button{color:inherit;padding:.25rem .18rem;font-size:.78rem;border-radius:4px}
.save-note{display:flex;align-items:center;gap:.4rem;font-size:.78rem}
.save-note svg{width:15px;height:15px;color:#7c8a75}
.toast{position:fixed;z-index:12;bottom:max(1rem,env(safe-area-inset-bottom));left:50%;transform:translate(-50%,6px);display:flex;align-items:center;gap:.5rem;padding:.55rem .9rem;max-width:90%;width:max-content;background:#48373e;color:#fff9ed;border:1px solid #eedfc6;border-radius:6px;box-shadow:0 3px 12px #41302b33;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;font-size:.88rem}
.toast.visible{opacity:1;transform:translate(-50%,0)}
.toast svg{width:17px;height:17px;flex:none}
dialog{padding:0;border:none;position:fixed;inset:0;margin:auto;width:min(92vw,540px);max-width:none;max-height:min(88vh,88dvh);color:var(--ink);background:#fffbf2;border-radius:12px;box-shadow:0 22px 85px #382c3370,0 0 0 1px #bdb09b;overscroll-behavior:contain}
dialog::backdrop{background:#30252d80;backdrop-filter:blur(3px)}
body:has(dialog[open]){overflow:hidden}
dialog[open]{animation:appear .16s ease-out}
.modal-box{padding:clamp(1.3rem,3.4vw,2rem);background-color:#fffaf0;background-image:radial-gradient(#c7b49438 .72px,transparent .8px);background-size:15px 15px}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.modal-kicker{display:flex;align-items:center;gap:.42rem;font-size:.8rem;font-weight:700;color:var(--wine);letter-spacing:.08em;margin-bottom:.3rem}
.modal-kicker svg{width:15px;height:15px}
.modal-head h2{font:700 clamp(1.45rem,4vw,1.85rem)/1.5 var(--serif);letter-spacing:.04em}
.modal-head h2:focus{outline:none}
.icon-button{flex:none;width:40px;height:40px;display:grid;place-items:center;background:#f4eade;border:1px solid #d8c7b5;border-radius:50%;color:#74595b}
.icon-button:hover{background:#eaddcf}
.fields-row{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.2rem}
.fields-row .primary,.fields-row .secondary{flex:1 1 auto}
.modal-lead{color:#655555;line-height:1.8;margin:.2rem 0 1rem}
.clue-detail{display:flex;align-items:center;gap:1rem;padding:.95rem;border:1px solid #d7c6ad;border-radius:7px;background:#fff7e8}
.clue-detail .prop-tile{width:78px;height:71px}
.clue-detail p{font-size:1rem;line-height:1.8}
.quote-panel{display:flex;align-items:flex-start;gap:.75rem;background:#eef1e6bd;border-left:3px solid #8ba9a0;padding:.85rem .95rem;border-radius:4px;margin-top:1rem}
.quote-panel.is-luluka{background:#f2e8edc4;border-color:#ba99af}
.quote-panel .portrait{width:43px;height:43px;margin-top:2px}
.quote-panel .speaker-name{font-size:.88rem;display:block;margin-bottom:.2rem}
.quote-panel p{line-height:1.72}
.partner-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin:.95rem 0 -.35rem}
.partner-tabs button{font-size:.86rem;padding:.4rem .8rem;min-height:40px;border:1px solid #cebeab;border-radius:20px;color:#746453;background:#fbf5e9}
.partner-tabs button[aria-pressed="true"]{border-color:#8fa99a;color:#365e59;background:#e5eee4;font-weight:700}
.partner-tabs button[data-id="luluka"][aria-pressed="true"]{color:#77556b;background:#f0e3e9;border-color:#b998a9}
.case-choices{display:grid;gap:.8rem}
.case-option{width:100%;display:grid;grid-template-columns:108px 1fr;gap:1rem;align-items:center;text-align:left;border:1px solid #cdbfac;border-radius:8px;background:#fff8e9;padding:.55rem}
.case-option:hover{background:#f6eadc}
.case-option img{width:100%;height:84px;object-fit:cover;border-radius:4px}
.case-option strong{display:block;font:700 1.2rem/1.55 var(--serif)}
.case-option small,.case-option em{display:block;font-size:.78rem;line-height:1.6;font-style:normal;color:#74625e}
.case-option em{font-weight:700;color:var(--wine);margin-top:.15rem}
.guide-list{padding:0;margin:.25rem 0 1rem;list-style:none;display:grid;gap:.78rem}
.guide-list li{display:grid;grid-template-columns:38px 1fr;align-items:start;gap:.75rem}
.guide-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#eee2cc;color:#8d6350}
.guide-icon svg{width:19px;height:19px}
.guide-list strong{font:700 1.06rem/1.5 var(--serif)}
.guide-list p{font-size:.93rem;color:#635855}
.small-print{font-size:.85rem;color:#76675e;line-height:1.75}
.credits-links{display:grid;gap:.5rem;padding:0;list-style:none}
.credits-links a{text-underline-offset:.22em}
.question-prompt{font-size:.93rem;color:#6e5e58;margin:-.3rem 0 .9rem}
.answers{display:grid;gap:.58rem}
.answer-btn{display:flex;align-items:center;gap:.7rem;text-align:left;border:1px solid #cfbeab;background:#fff9ee;padding:.68rem .8rem;border-radius:6px;min-height:48px;font-size:.97rem;line-height:1.55}
.answer-btn:hover:not(:disabled){background:#f2e4d6;border-color:#b58983}
.answer-letter{font:700 .85rem var(--latin);width:25px;height:25px;display:grid;place-items:center;flex:none;border:1px solid #c9b79c;background:#f4e8d2;border-radius:50%;color:#7b5f53}
.answer-btn.chosen{border-color:#82a18f;background:#e9f0e1}
.answer-btn.missed{border-color:#c2928e;background:#f9e9e1}
.proofs{margin-top:1rem;border-top:1px dashed #cbbba5;padding-top:.65rem}
.proofs summary{cursor:pointer;color:#635952;font-weight:700;font-size:.9rem;padding:.25rem 0}
.proofs dl{margin:.35rem 0 0}
.proofs dt{font:700 .96rem var(--serif);margin-top:.6rem}
.proofs dd{font-size:.92rem;line-height:1.75;margin:.15rem 0 .55rem}
.feedback{margin-top:.8rem}
.feedback .quote-panel{margin-top:0}
.flower-cards,.word-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}
.flower-card{position:relative;min-width:0;display:flex;align-items:center;flex-direction:column;border:1px solid #c0ae8d;border-radius:7px;background:#fcf3db;padding:.35rem .35rem .45rem;color:#4e5146;box-shadow:inset 0 0 0 2px #fffbed,0 2px 3px #77695515}
.flower-card:hover:not(:disabled){border-color:#779888;background:#edf0df}
.flower-card svg{width:100%;height:auto;aspect-ratio:1.4;object-fit:cover;border-radius:3px}
.flower-card strong{font:700 1.02rem/1.5 var(--serif);margin-top:.27rem}
.flower-card small,.word-slot small{font-size:.76rem;color:#6c6153}
.flower-card.picked{border-color:#9aab92;background:#e4ecde;box-shadow:inset 0 0 0 2px #fff9e6}
.flower-card.picked svg{opacity:.65}
.word-slots{margin:.9rem auto 0}
.word-slot{display:flex;align-items:center;justify-content:center;gap:.35rem;min-height:43px;border:1px dashed #c8b59c;border-radius:5px;background:#fbf4e7}
.word-slot.filled{background:#f0e4db;border-style:solid}
.word-slot b{font:700 1.25rem var(--serif);color:var(--wine)}
.fields-row button:disabled{opacity:.48;box-shadow:none;transform:none}
.end-banner{border:3px double #b5945d;background:linear-gradient(125deg,#f5eacf,#fff9e6 50%,#eee1c1);color:#87643f;border-radius:6px;display:flex;justify-content:center;align-items:center;gap:.85rem;margin:.1rem 0 1rem;padding:.65rem;letter-spacing:.25em;font:700 1.42rem var(--serif)}
.end-banner svg{width:20px;height:20px}
dialog.ending-dialog{width:min(93vw,655px)}
.ending-picture{display:block;position:relative;width:100%;padding:4px;margin:.35rem 0 .85rem;background:#fffaf0;border:1px solid #d2bd9e;border-radius:6px;box-shadow:0 2px 4px #735f4317}
.ending-picture img,.ending-full img{display:block;width:100%;height:auto;border-radius:3px}
.ending-picture span{position:absolute;bottom:.65rem;right:.65rem;display:grid;place-items:center;width:33px;height:33px;border:1px solid #ceb997;border-radius:4px;background:#fff6e4ed;color:#694951}
.ending-full img{max-height:70vh;max-height:70dvh;object-fit:contain}
.replay-link{display:flex;align-items:center;justify-content:center;gap:.4rem;color:#795b62;text-decoration:underline;text-underline-offset:.24em;margin:.8rem auto 0;padding:.45rem;font-size:.86rem}
.replay-link svg{width:15px;height:15px}
dialog.wide{width:min(95vw,1120px)}
dialog.wide .modal-box{padding:clamp(.65rem,2vw,1.15rem)}
dialog.wide .modal-head{margin:0 0 .45rem;align-items:center}
dialog.wide h2{font-size:1.2rem}
.zoom-scroll{width:100%;max-height:64vh;max-height:64dvh;overflow:auto;overscroll-behavior:contain;background:#e9dfcb;border:1px solid #d6c7b6;border-radius:6px}
dialog.wide .scene-art{width:100%;height:auto}
dialog.wide .zoom-holder{margin:auto}
.zoom-controls{display:flex;align-items:center;justify-content:center;gap:.4rem;margin:.6rem 0 0;font-size:.85rem}
.zoom-controls>span{margin-right:.2rem;color:#726357}
.zoom-controls button{border:1px solid #d2c1a9;background:#faf1e1;border-radius:5px;padding:.18rem .6rem;min-height:36px}
.zoom-controls button[aria-pressed="true"]{color:#fff8e7;background:#845265;border-color:#845265}
@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1450px){.mast-inner,.desk{width:min(91.5%,1380px)}.notebook-inner{padding-bottom:1rem}.evidence{padding:.83rem .05rem}.prop-tile{width:61px;height:56px}.speaker-name{font-size:1.08rem}}
@media(max-width:1070px){.mast-inner,.desk{width:94%}.workspace{grid-template-columns:minmax(0,1.9fr) minmax(268px,.98fr);gap:1.05rem}.notebook-inner{padding-inline:1rem}.dialogue-card{grid-template-columns:auto 1fr;padding:.8rem .9rem;column-gap:.8rem;row-gap:.15rem}.dialogue-card>.portrait{grid-row:1/3}.swap-button{justify-self:end;min-height:34px}.scene-tag{top:10px;left:12px}.evidence{padding:.59rem 0}.deck{max-width:64ch}}
@media(max-width:790px){.mast-inner,.desk{width:min(92%,660px)}.mast-inner{min-height:65px}.wordmark img{width:41px;height:41px}.wordmark{gap:6px}.top-nav{gap:.3rem}.desk{padding-top:1.6rem}.workspace{grid-template-columns:1fr;gap:1.55rem}.case-intro{margin-bottom:1.2rem}.case-stamp{margin-right:.22rem;align-self:flex-start;margin-top:1.95rem;font-size:.96rem}.deck{font-size:.96rem}.dialogue-card{grid-template-columns:auto 1fr auto;gap:.7rem}.dialogue-card>.portrait{grid-row:auto}.portrait{width:52px;height:52px}.notebook{margin-right:4px}.notebook-inner{padding:1.7rem 1.25rem .6rem}.notebook-rings{left:9%;right:26%}.notebook-rule{margin:.5rem 0 .85rem}.evidence{padding:.6rem 0}.notebook-heading h2{font-size:1.65rem}.notebook-cta{min-height:46px}.bookmark{width:19px}.speech{font-size:1rem}.game-footer{margin-top:1.4rem}.notebook-heading svg{width:26px;height:26px}.hotspot{width:44px;height:44px}.photo-caption{min-height:40px}}
@media(max-width:550px){.mast-inner,.desk{width:93%}.mast-inner{min-height:62px;gap:5px}.wordmark-name{font-size:clamp(.97rem,4.3vw,1.24rem)}.wordmark-sub{font-size:.62rem;letter-spacing:.14em}.wordmark img{width:35px;height:35px}.wordmark{gap:3px}.top-nav{gap:1px}.top-nav button{min-width:40px;min-height:44px;flex-direction:column;gap:.08rem;font-size:.66rem;padding:.28rem .28rem}.top-nav svg{width:17px;height:17px}.top-nav .sound{min-width:36px}.sound-text{font-size:.63rem}.nav-divider{margin:0 .1rem;height:17px}.case-intro{display:block;position:relative;margin-inline:1px}.case-stamp{position:absolute;top:-.05rem;right:0;font-size:.76rem;gap:.18rem;margin:0;padding:.1rem .27rem}.stamp-flourish{font-size:.55rem}.desk{padding-top:1.35rem}.file-line{gap:.6rem}.file-city{font-size:.73rem}.file-ribbon{font-size:.65rem}.deck{font-size:.92rem;line-height:1.72;margin-top:.2rem}.scene-frame{padding:4px 4px 0;border-radius:8px}.scene-frame::before{width:43px;height:14px;left:-6px;top:-4px}.scene-tag{top:7px;left:7px;gap:.27rem;font-size:.71rem;padding:.25rem .4rem;max-width:calc(100% - 49px)}.scene-tag .tag-time{font-size:.7rem;padding-left:.36rem}.expand-button{top:0;right:0}.expand-button::before{inset:6px}.expand-button svg{width:16px;height:16px}.hotspot{width:44px;height:44px;border:0;background:transparent}.pin-core{width:33px;height:33px;border-width:1.5px;box-shadow:0 0 0 2px #fff9e3c9,0 0 0 3px #a67d4ca6}.pin-glint{right:2px;top:-1px;font-size:1rem}.photo-caption{padding:.32rem .4rem .36rem;min-height:37px}.caption-body{font-size:.76rem;gap:.35rem}.photo-count{gap:5px}.photo-count i{width:6px;height:6px}.dialogue-card{margin-top:.75rem;padding:.65rem .72rem;grid-template-columns:43px 1fr;gap:.1rem .65rem;min-height:auto;align-items:start}.dialogue-card>.portrait{width:43px;height:43px;grid-column:1;grid-row:1/3;align-self:start;margin-top:3px}.dialogue-copy{grid-column:2}.speaker-name{font-size:.9rem}.speech{font-size:.94rem;line-height:1.7}.swap-button{grid-column:2;justify-self:end;min-height:36px;font-size:.77rem;padding:.2rem .5rem;margin-top:.23rem}.game-footer{align-items:flex-start;gap:.35rem;flex-direction:column}.game-footer button,.save-note{font-size:.72rem}.clue-detail{align-items:flex-start;gap:.65rem;padding:.7rem}.clue-detail .prop-tile{width:55px;height:52px}.clue-detail p{font-size:.94rem}.case-option{grid-template-columns:80px 1fr;gap:.6rem}.case-option img{height:76px}.modal-head{gap:.6rem}.modal-box{padding:1.2rem}.fields-row .primary,.fields-row .secondary{font-size:.92rem}.portrait.is-luluka{background-position:51% 19%}.hint-button{min-height:44px}.top-nav button:focus-visible{outline-offset:0}}
@media(max-width:355px){.top-nav button{min-width:34px}.nav-divider{display:none}.wordmark img{width:30px;height:30px}.deck{font-size:.88rem}.scene-tag .tag-time{display:none}.photo-count{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.transfer-box [hidden]{display:none!important}
.transfer-intro,.transfer-rule{line-height:1.75;color:#69565a}
.transfer-sub,.transfer-preview h3{font:700 1.07rem/1.55 var(--serif);margin:1rem 0 .5rem}
.transfer-stats{margin:.3rem 0 1.1rem;display:grid;grid-template-columns:1fr 1fr;gap:.4rem .7rem}
.transfer-stats>div{display:flex;align-items:center;justify-content:space-between;gap:.3rem;padding:.39rem .5rem;border-bottom:1px dashed #cfbca9}
.transfer-stats dt{font-size:.88rem;color:#695750}
.transfer-stats dd{margin:0;color:var(--wine);font:700 1.13rem var(--latin)}
.transfer-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.transfer-actions>button{flex:1 1 11rem;font-size:.94rem}
.transfer-preview{border-top:1px solid #d1bba8;margin-top:.7rem}
#transfer-file-info{font-size:.83rem;overflow-wrap:anywhere;color:#75626a}
.transfer-rule{font-size:.91rem}
#transfer-message:not(:empty){margin:.85rem 0 .15rem;padding:.53rem .7rem;border-left:3px solid #73948c;color:#355f58;background:#eff4ed;font-size:.93rem;line-height:1.65}
#transfer-message.transfer-error{color:#87394d;border-color:#ac6175;background:#f8e8ea}
#transfer-resume{margin-top:1rem;width:100%}
@media(max-width:550px){.top-nav:has([data-save-open]){gap:.08rem}.top-nav [data-save-open]{min-width:36px}.transfer-stats{gap:.18rem .4rem}.transfer-stats>div{padding:.31rem .15rem}.transfer-box{padding:1rem}.transfer-box .modal-head{margin-bottom:.55rem}}
