@font-face{font-family:"Crossroad Latin";src:url("../assets/fonts/barlow-condensed-500.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Crossroad Latin";src:url("../assets/fonts/barlow-condensed-700.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Klee One";src:url("./assets/fonts/KleeOne-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:block}
@font-face{font-family:"Zen Kurenaido";src:url("./assets/fonts/ZenKurenaido-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:block}
@font-face{font-family:"Caveat";src:url("./assets/fonts/Caveat.ttf") format("truetype");font-style:normal;font-weight:400;font-display:block}
@font-face{font-family:"Shippori Mincho";src:url("./assets/fonts/ShipporiMincho-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:block}
:root{color-scheme:dark;--ink:#28241c;--paper:#eee2c8;--cream:#f5ecd8;--desk:#071521;--navy:#061827;--cyan:#55dcff;--line:rgba(192,225,235,.25);font-family:"Yu Gothic UI","Yu Gothic",sans-serif;background:#05131e;color:#f2eee5}
*{box-sizing:border-box}html{min-height:100%;background:#05131e}body{margin:0;min-height:100vh;background:#071521;overflow-x:hidden}button,textarea{font:inherit}button{color:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
.module-nav{position:fixed;top:0;left:0;right:0;z-index:80;min-height:64px;padding:10px clamp(14px,3.4vw,50px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;pointer-events:none;transition:background .2s ease,border-color .2s ease,color .2s ease}.module-nav button{pointer-events:auto}.module-exit,.back-to-scenes,.case-files-link{min-height:42px;border:0;background:transparent;color:inherit;font:700 11px "Crossroad Latin",sans-serif;letter-spacing:.12em;cursor:pointer}.module-exit{justify-self:start;display:flex;align-items:center;gap:9px}.module-exit span{display:grid;place-items:center;width:28px;height:28px;border:1px solid currentColor;border-radius:50%;font:400 20px/1 sans-serif}.back-to-scenes{justify-self:center;display:flex;align-items:center;gap:8px}.back-to-scenes span{font-size:20px}.module-name{grid-column:2;grid-row:1;font:700 11px "Crossroad Latin",sans-serif;letter-spacing:.2em;opacity:.72}.back-to-scenes:not([hidden])+.module-name{display:none}.case-files-link{justify-self:end}.case-files-link b{color:var(--cyan);margin-left:5px}.module-exit:focus-visible,.back-to-scenes:focus-visible,.case-files-link:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}main{min-height:100vh}.eyebrow{margin:0 0 10px;font:700 12px "Crossroad Latin",sans-serif;letter-spacing:.24em;color:var(--cyan)}
body[data-module-screen="scene-select"] .module-nav{min-height:0;padding:0;color:#d9edf0;background:transparent;border-color:transparent}body[data-module-screen="scene-select"] .module-name{display:none}body[data-module-screen="scene-select"] .module-exit{position:fixed;right:18px;top:12px;width:44px;height:44px;min-height:44px;padding:0;justify-content:center;border:1px solid rgba(158,216,225,.28);border-radius:50%;background:rgba(2,13,21,.82);backdrop-filter:blur(12px);box-shadow:0 8px 24px rgba(0,0,0,.28)}body[data-module-screen="scene-select"] .module-exit span{width:30px;height:30px}body[data-module-screen="scene-select"] .module-exit strong{display:none}body[data-module-screen="scene-select"] .case-files-link{position:fixed;right:78px;top:15px;padding:0 10px;background:rgba(2,13,21,.52);text-shadow:0 2px 8px #000}body[data-module-screen="investigation"] .module-nav{position:sticky;color:#f2eee5;background:rgba(4,13,19,.92);backdrop-filter:blur(18px);border-bottom:1px solid rgba(206,184,145,.25)}body[data-module-screen="my-view"] .module-nav{position:sticky;color:#3a3024;background:rgba(238,226,200,.94);border-bottom:1px solid rgba(83,65,39,.24);box-shadow:0 8px 24px rgba(25,18,10,.12)}body[data-module-screen="my-view"] .case-files-link b{color:#9a4d39}body[data-module-screen="my-view"] .module-exit span{border-color:#a15a47}
.scene-select{position:relative;isolation:isolate;min-height:100vh;padding:72px 24px 80px;background:#081016;overflow:hidden}.office-backdrop{position:absolute;z-index:-2;inset:-10px;background:url("./assets/detective-office-desk-v1.png") center/cover no-repeat;filter:blur(2px) brightness(.7) saturate(.74);transform:scale(1.018)}.scene-select:after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(2,8,12,.48),rgba(2,8,12,.08) 42%,rgba(2,8,12,.55)),radial-gradient(circle at 50% 48%,transparent 18%,rgba(2,8,12,.32) 78%)}.scene-select-copy{position:relative;z-index:4;text-align:center;pointer-events:none}.scene-select h1{margin:0;font:700 clamp(50px,6.5vw,88px)/.9 "Crossroad Latin",sans-serif;letter-spacing:-.025em;color:#f5f0e4;text-shadow:0 5px 22px rgba(0,0,0,.75)}.scene-select h1 em{font-style:normal;color:#8ed9dc}.scene-select-tagline{margin:15px 0 0;font:400 clamp(18px,2vw,26px)/1.2 Georgia,serif;color:#ddd5c4}.scene-select-copy>p:last-child{margin:14px 0 0;font-weight:600;font-size:clamp(15px,1.6vw,21px);color:#f2eee5}.scene-select-artboard{position:relative;width:min(100%,1160px);margin:52px auto 0}.evidence-desk{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:clamp(16px,2vw,30px);touch-action:pan-y}.evidence-photo{position:relative;padding:11px 11px 42px;border:0;background:#e8deca;cursor:pointer;color:#443b30;box-shadow:0 24px 52px rgba(0,0,0,.55),0 0 0 1px rgba(92,73,45,.3);transition:transform .2s ease,filter .2s ease,box-shadow .2s ease}.evidence-photo img{display:block;width:100%;aspect-ratio:739/416;object-fit:contain;background:#17140f}.evidence-photo span{position:absolute;left:20px;bottom:12px;font:italic 600 20px "Segoe Print",cursive;color:#51483c}.photo-01{transform:rotate(-2deg) translateY(8px)}.photo-02{transform:rotate(.7deg) translateY(-10px)}.photo-03{transform:rotate(2.2deg) translateY(9px)}.evidence-photo:before{content:"";position:absolute;left:38%;top:-17px;width:84px;height:30px;background:rgba(215,201,169,.76);box-shadow:0 2px 6px rgba(40,31,19,.22);transform:rotate(-1deg);clip-path:polygon(3% 8%,98% 0,100% 88%,0 100%)}.evidence-photo:hover,.evidence-photo:focus-visible{outline:none;filter:brightness(1.08);box-shadow:0 30px 62px rgba(0,0,0,.62),0 0 0 2px rgba(123,215,220,.72)}.photo-01:hover,.photo-01:focus-visible{transform:rotate(-1deg) translateY(0)}.photo-02:hover,.photo-02:focus-visible{transform:rotate(0) translateY(-16px)}.photo-03:hover,.photo-03:focus-visible{transform:rotate(1deg) translateY(0)}.evidence-desk.is-selecting .evidence-photo{opacity:.25}.evidence-desk.is-selecting .evidence-photo.is-selected{opacity:1}.deck-hint{position:relative;z-index:5;margin:46px 0 0;text-align:center;color:rgba(214,225,222,.68);font:500 10px "Crossroad Latin",sans-serif;letter-spacing:.25em}
.investigate{position:relative;isolation:isolate;min-height:calc(100vh - 64px);padding:34px clamp(14px,4vw,58px) 80px;background:#081016;overflow:hidden}.investigation-art-backdrop{position:absolute;z-index:-2;inset:-10px;background:url("./assets/detective-office-desk-v1.png") center top/cover no-repeat;filter:blur(3px) brightness(.62) saturate(.7);transform:scale(1.02);opacity:.82}.investigate:after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(3,10,14,.32),rgba(3,10,14,.72)),radial-gradient(circle at 42% 30%,transparent 0 25%,rgba(1,7,10,.24) 70%)}.intro{max-width:1240px;margin:0 auto 24px}.intro h1{margin:0;font-size:clamp(20px,3vw,34px);font-weight:600;letter-spacing:.02em}.maker{max-width:1240px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(310px,.72fr);gap:clamp(24px,4vw,52px);align-items:start}.observe,.compose{min-width:0}.observe{position:relative;padding:22px 18px 18px;background:#e9ddc3;color:#252218;box-shadow:0 35px 80px rgba(0,0,0,.55),inset 0 0 0 1px rgba(90,67,33,.2);transform:rotate(-.18deg)}.observe:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.4;background:repeating-linear-gradient(0deg,rgba(80,58,28,.018) 0 1px,transparent 1px 5px)}.evidence-tape{position:absolute;z-index:8;left:42%;top:-17px;width:126px;height:36px;background:rgba(216,203,171,.83);box-shadow:0 2px 8px rgba(54,43,24,.25);transform:rotate(2deg);clip-path:polygon(2% 8%,97% 0,100% 86%,4% 100%)}.evidence-number{position:relative;margin:0 0 10px;font:italic 600 14px "Segoe Print",cursive;color:#635b4b;letter-spacing:.08em}.image-stage{position:relative;background:#19160f;padding:8px;border:1px solid rgba(57,44,24,.45);box-shadow:0 18px 34px rgba(52,38,18,.28)}.image-frame{position:relative;overflow:hidden;background:#060706;isolation:isolate}.image-frame>img{width:100%;height:auto;display:block;object-fit:contain;user-select:none}.selection-layer,.lens-layer{position:absolute;inset:0}.selection-layer{z-index:5;touch-action:none;cursor:crosshair}.selection-layer.is-inspecting{cursor:none}.selection-box{position:absolute;box-sizing:border-box;border:3px solid rgba(255,253,244,.97);box-shadow:0 0 0 1px rgba(18,16,11,.7),0 0 16px rgba(255,249,222,.26);cursor:move}.selection-box:after{content:"";position:absolute;inset:-3px;border:1px dashed rgba(255,255,255,.38);transform:rotate(.35deg)}.selection-corner{position:absolute;width:14px;height:14px;border:2px solid #fff;background:#242117;border-radius:50%;z-index:2}.corner-nw{left:-8px;top:-8px;cursor:nwse-resize}.corner-ne{right:-8px;top:-8px;cursor:nesw-resize}.corner-se{right:-8px;bottom:-8px;cursor:nwse-resize}.corner-sw{left:-8px;bottom:-8px;cursor:nesw-resize}
.lens-layer{z-index:4;pointer-events:none;opacity:0;transition:opacity .12s}.image-frame.is-lens-active .lens-layer{opacity:1}.magnifier{position:absolute;width:184px;height:184px;border-radius:50%;overflow:visible;border:7px solid rgba(225,242,244,.72);box-shadow:0 16px 38px rgba(0,0,0,.52),inset 0 0 0 4px rgba(255,255,255,.4),inset 18px 12px 24px rgba(255,255,255,.12),0 0 0 2px rgba(66,214,255,.22);background-repeat:no-repeat;backdrop-filter:brightness(1.12) saturate(1.1);transform:translate(-50%,-58%)}.magnifier:before{content:"";position:absolute;inset:3px;border-radius:50%;border-top:3px solid rgba(255,255,255,.9);border-left:2px solid rgba(115,223,255,.7);box-shadow:inset -8px -8px 18px rgba(254,196,113,.12)}.magnifier:after{content:"";position:absolute;width:83px;height:25px;right:-69px;bottom:2px;border-radius:0 18px 18px 0;border:3px solid rgba(222,237,239,.65);background:linear-gradient(180deg,rgba(235,247,247,.58),rgba(90,123,133,.32));transform:rotate(42deg);transform-origin:left center;box-shadow:0 9px 20px rgba(0,0,0,.38)}.magnifier span{position:absolute;z-index:2;left:22px;top:17px;width:42px;height:15px;border-radius:50%;background:rgba(255,255,255,.33);transform:rotate(-28deg);filter:blur(2px)}.here-note{position:absolute;z-index:7;pointer-events:none;color:#fff9ea;filter:drop-shadow(0 2px 4px rgba(0,0,0,.9));animation:here-in .32s ease-out}.here-note b{font:italic 600 28px "Segoe Print","Bradley Hand",cursive;white-space:nowrap}.here-note i{position:absolute;display:block;height:0;border-top:2px solid currentColor;transform-origin:0 50%}.here-note i:after{content:"";position:absolute;right:-1px;top:-5px;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}@keyframes here-in{from{opacity:0;transform:translateY(5px) rotate(-2deg)}to{opacity:1;transform:none}}
.image-tools{position:relative;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.image-tools p{margin:0;color:#5c5548;font-size:12px;font-weight:600}.image-tools>div{display:flex;gap:7px}.source-line{position:relative;margin:12px 0 0;font:600 10px "Crossroad Latin",sans-serif;letter-spacing:.08em}.source-line a{color:#6c6252;text-decoration:none}.investigation-steps{position:relative;margin-top:16px;padding:11px 14px;display:flex;align-items:center;justify-content:center;gap:18px;border-top:1px solid rgba(66,54,34,.22);border-bottom:1px solid rgba(66,54,34,.13);font-family:"Crossroad Latin",sans-serif}.investigation-steps span{display:flex;align-items:center;gap:8px}.investigation-steps b{display:grid;place-items:center;width:25px;height:25px;border:1px solid #3d8799;border-radius:50%;color:#167894}.investigation-steps i{font-size:25px;color:#267f93;font-style:normal}.investigation-steps strong{color:#3c382f;letter-spacing:.08em}.investigation-steps em{color:#8d826d;font-style:normal}.primary-button,.quiet-button,.after-actions button{border:1px solid rgba(255,255,255,.24);min-height:44px;padding:0 20px;background:rgba(255,255,255,.07);cursor:pointer}.primary-button{background:#e9dfc8;color:#262118;border-color:#e9dfc8;font-weight:700}.primary-button:disabled{opacity:.32;cursor:not-allowed}.primary-button.compact{min-height:34px;padding:0 13px;font-size:11px}.primary-button.paper{background:#83d8d4;border-color:#83d8d4}.quiet-button{color:#eee6d7;background:rgba(5,18,27,.8)}
.compose{min-height:390px;padding:26px 24px;color:#f1ede4;background:rgba(3,13,19,.86);border:1px solid rgba(198,181,145,.22);box-shadow:0 24px 64px rgba(0,0,0,.34);backdrop-filter:blur(15px)}.compose:has(.observer-exchange[hidden]){min-height:150px;padding:18px 2px;background:transparent;border:0;box-shadow:none;backdrop-filter:none}.observer-exchange{padding-bottom:24px;border-bottom:1px solid rgba(198,181,145,.22)}.observer-label{margin:0 0 14px;color:#8ed9dc;font:700 10px "Crossroad Latin",sans-serif;letter-spacing:.22em}.observer-message{font-size:clamp(17px,1.9vw,23px);line-height:1.72;min-height:88px}.observer-segment{position:relative;margin:.55em 0}.observer-text-reserve{visibility:hidden;white-space:pre-wrap}.observer-text-typed{position:absolute;inset:0;white-space:pre-wrap}.observer-reaction{color:#fff}.observer-observation{color:#dce4df}.observer-question{margin-top:1.15em;color:#fff}.latest-character-block{background:rgba(76,220,255,.42);box-shadow:inset 0 0 0 1px rgba(126,235,255,.9),0 0 6px rgba(76,220,255,.25)}.skip-message{margin-top:10px;border:0;background:transparent;padding:0;color:#83949a;font-size:10px}.question-panel{margin-top:24px;padding-top:0}.question-panel h2{margin:0 0 12px;font-size:30px}.take-field textarea{width:100%;min-height:120px;resize:vertical;padding:14px 15px;color:#f2ecdf;background:rgba(255,255,255,.045);border:1px solid rgba(198,181,145,.24);outline:none}.take-field textarea:focus{border-color:#8ed9dc}.writing-tools{display:flex;justify-content:flex-end;margin:6px 0 16px;color:#7d9297;font-size:10px}.empty-compose{min-height:110px;display:flex;align-items:flex-end;color:rgba(211,220,214,.48);font-size:12px;line-height:1.65}.empty-compose p{margin:0;max-width:28ch}.empty-corners{display:none}
.preview{position:relative;max-width:1180px;margin:72px auto 0;padding:38px 0 0;border-top:1px solid rgba(91,218,247,.2);scroll-margin-top:72px}.preview-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px}.preview-heading h2{margin:0;font-size:clamp(24px,3vw,38px)}.card-shell{width:min(100%,500px);margin:auto;padding:0;background:#e7dcc4;box-shadow:0 38px 100px rgba(0,0,0,.64),0 0 0 1px rgba(238,226,201,.18);transform:rotate(-.18deg)}.card-shell canvas{display:block;width:100%;height:auto;background:#e7dcc4}.export-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:25px}.export-status{text-align:center;min-height:1.5em;color:#8ce5df;font-size:12px}.after-actions{display:flex;justify-content:center;gap:8px}.after-actions button{background:rgba(3,15,24,.72);font-size:12px}.another-take{display:block;text-align:center;color:#c5d7d9;margin-top:20px;font-size:12px}
body[data-module-screen="my-view"] .investigate{padding-top:42px;background:#081016}body[data-module-screen="my-view"] .investigation-art-backdrop{opacity:.72;filter:blur(4px) brightness(.54) saturate(.66);background-position:center 34%}body[data-module-screen="my-view"] .investigate:after{background:linear-gradient(180deg,rgba(3,9,12,.36),rgba(3,9,12,.78)),radial-gradient(circle at 50% 36%,transparent 0 22%,rgba(2,7,9,.32) 76%)}body[data-module-screen="my-view"] .preview{margin-top:0;padding:28px clamp(4px,3vw,28px) 72px;border-top:0}body[data-module-screen="my-view"] .preview-heading{max-width:760px;margin:0 auto 28px;color:#f1e6d3}body[data-module-screen="my-view"] .preview-heading .eyebrow{color:#d6a988}
.case-dialog{width:min(1020px,calc(100vw - 24px));max-height:calc(100vh - 24px);padding:0;border:1px solid rgba(62,49,29,.3);background:#171611;color:#282620}.case-dialog::backdrop{background:rgba(4,9,12,.82);backdrop-filter:blur(8px)}.case-dialog-paper{min-height:420px;padding:clamp(20px,4vw,44px);background-color:#eee2c8;background-image:repeating-linear-gradient(0deg,rgba(85,63,31,.025) 0 1px,transparent 1px 5px)}.case-dialog header{display:flex;justify-content:space-between;border-bottom:1px solid rgba(45,39,29,.2);padding-bottom:15px}.case-dialog header p{margin:0;font:700 10px "Crossroad Latin",sans-serif;letter-spacing:.2em}.case-dialog h2{margin:2px 0 0;font:700 42px "Crossroad Latin",sans-serif;letter-spacing:.03em}.case-dialog header button{border:0;background:transparent;color:#353129;font-size:28px}.case-empty{text-align:center;margin:90px 0;color:#817866}.case-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:20px;margin-top:25px}.case-item{border:0;padding:7px 7px 13px;background:#f7f1e3;color:#292720;box-shadow:0 10px 28px rgba(49,40,25,.16);text-align:left}.case-item img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover}.case-item strong{display:block;padding:10px 5px 3px;line-height:1.35}.case-item small{padding:0 5px;color:#877f70}.case-actions{display:flex;flex-wrap:wrap;gap:5px;padding:9px 5px 0}.case-actions button,.case-actions a{border:1px solid rgba(40,36,28,.2);background:transparent;color:#39352d;text-decoration:none;padding:6px 8px;font-size:10px}
@media(max-width:760px){.module-nav{min-height:56px;padding:7px 10px;gap:6px}.module-exit,.back-to-scenes,.case-files-link{font-size:9px;letter-spacing:.08em}.module-exit{gap:6px}.module-exit span{width:26px;height:26px}.module-name{font-size:9px}.scene-select{min-height:100vh;padding:64px 14px 86px}.scene-select-copy{padding:0 40px}.scene-select h1{font-size:52px}.scene-select-tagline{font-size:17px;margin-top:10px}.scene-select-copy>p:last-child{font-size:16px;margin-top:10px}.scene-select-artboard{width:min(100%,390px);margin-top:38px}.evidence-desk{display:grid;grid-template-columns:1fr;gap:26px;padding:0 12px}.evidence-photo{padding:8px 8px 34px}.evidence-photo span{left:16px;bottom:8px;font-size:17px}.photo-01,.photo-02,.photo-03{transform:none}.photo-01:hover,.photo-01:focus-visible,.photo-02:hover,.photo-02:focus-visible,.photo-03:hover,.photo-03:focus-visible{transform:translateY(-4px)}.deck-hint{margin-top:34px}.office-backdrop{position:fixed;background-position:44% center}.investigate{padding:25px 10px 62px}.investigation-art-backdrop{position:fixed;background-position:38% top;opacity:.74}.intro{padding:0 4px}.maker{display:block}.observe{padding:18px 8px 13px;margin-bottom:18px;transform:none}.evidence-tape{left:35%;width:105px}.image-stage{padding:5px}.magnifier{width:142px;height:142px;border-width:5px;transform:translate(-50%,-70%)}.magnifier:after{width:62px;height:20px;right:-53px}.here-note b{font-size:22px}.image-tools{align-items:flex-start}.image-tools p{font-size:11px;line-height:1.55}.investigation-steps{gap:10px;padding-inline:6px}.investigation-steps strong{font-size:12px}.compose{padding:20px 14px;min-height:190px}.preview{margin-top:48px}.preview-heading{align-items:start}.preview-heading .quiet-button{padding:0 12px;min-height:38px}.card-shell{width:100%}.export-actions>*{flex:1 1 42%}.export-actions .quiet-button{flex-basis:100%}.case-dialog{width:calc(100vw - 14px)}.case-dialog-paper{padding:18px 12px}.case-dialog h2{font-size:34px}}
@media(max-width:360px){.scene-select h1{font-size:46px}.investigation-steps{gap:6px}.investigation-steps i{font-size:20px}.investigation-steps b{width:22px;height:22px}.case-files-link{font-size:10px}}
.image-tools .quiet-button{min-width:88px;white-space:nowrap}
@media(max-width:760px){.magnifier{transform:translate(-50%,-50%)}}
@media(max-width:760px){.investigation-art-backdrop{opacity:.72}}
@media(max-width:760px){body[data-module-screen="my-view"] .investigation-art-backdrop{background-position:22% center;filter:blur(4px) brightness(.62) saturate(.66)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


/* Investigation Phase 1 */

body[data-module-screen="investigation"] .investigate{
  min-height:calc(100vh - 64px);
  padding:28px clamp(16px,3.2vw,52px) 64px;
  background:#081016;
}
body[data-module-screen="investigation"] .investigation-art-backdrop{
  opacity:1;
  filter:blur(2px) brightness(.7) saturate(.74);
  background-position:center center;
  transform:scale(1.018);
}
body[data-module-screen="investigation"] .investigate:after{
  background:
    linear-gradient(180deg,rgba(2,8,12,.48),rgba(2,8,12,.08) 42%,rgba(2,8,12,.55)),
    radial-gradient(circle at 50% 48%,transparent 18%,rgba(2,8,12,.32) 78%);
}
body[data-module-screen="investigation"] .module-nav{
  position:fixed;
}
body[data-module-screen="scene-select"] .office-backdrop,
body[data-module-screen="investigation"] .investigation-art-backdrop{
  position:fixed;
  inset:-10px;
  background-position:center center;
  transform:scale(1.018);
}
body[data-module-screen="scene-select"] .office-backdrop{
  filter:blur(2px) brightness(.76) saturate(.74);
}
body[data-module-screen="investigation"] .intro{
  max-width:1420px;
  margin:0 auto 14px;
}
body[data-module-screen="investigation"] .intro .eyebrow{color:#72d9e8}
body[data-module-screen="investigation"] .intro h1{
  font-size:clamp(21px,2.45vw,32px);
  text-shadow:0 3px 20px rgba(0,0,0,.74);
}
body[data-module-screen="investigation"] .maker{
  max-width:1420px;
  grid-template-columns:minmax(0,1.82fr) minmax(286px,.62fr);
  gap:clamp(24px,3vw,42px);
}
body[data-module-screen="investigation"] .observe{
  padding:15px 13px 11px;
  background:linear-gradient(135deg,#f3e7cb,#dfcfad);
  box-shadow:0 28px 72px rgba(0,0,0,.48),0 0 52px rgba(255,211,127,.11),inset 0 0 0 1px rgba(90,67,33,.2);
}
body[data-module-screen="investigation"] .evidence-tape{
  top:-14px;
  width:112px;
  height:30px;
}
body[data-module-screen="investigation"] .evidence-number{
  margin-bottom:6px;
  font-size:11px;
  opacity:.68;
}
body[data-module-screen="investigation"] .image-stage{
  padding:5px;
  box-shadow:0 15px 30px rgba(52,38,18,.24);
}
body[data-module-screen="investigation"] .image-tools{
  margin-top:9px;
}
body[data-module-screen="investigation"] .image-tools p{
  max-width:56ch;
  font-size:10px;
  opacity:.72;
}
body[data-module-screen="investigation"] .source-line{
  margin-top:7px;
  font-size:8px;
  opacity:.62;
}
body[data-module-screen="investigation"] .investigation-steps{
  margin-top:10px;
  padding:8px 10px;
  gap:12px;
}
body[data-module-screen="investigation"] .investigation-steps span{
  gap:6px;
  opacity:.38;
  transform:scale(.94);
  transition:opacity .22s,transform .22s,color .22s;
}
body[data-module-screen="investigation"] .investigation-steps b{
  width:22px;
  height:22px;
  border-color:#6d756e;
  color:#696c63;
  transition:background .22s,border-color .22s,color .22s,box-shadow .22s;
}
body[data-module-screen="investigation"] .investigation-steps i{font-size:19px;color:#696c63}
body[data-module-screen="investigation"] .investigation-steps strong{font-size:11px;color:#5b554a}
body[data-module-screen="investigation"] .investigation-steps em{font-size:12px;opacity:.42}
body[data-module-screen="investigation"][data-investigation-state="look"] [data-step="look"],
body[data-module-screen="investigation"][data-investigation-state="mark"] [data-step="mark"],
body[data-module-screen="investigation"][data-investigation-state="respond"] [data-step="respond"],
body[data-module-screen="investigation"][data-investigation-state="write"] [data-step="respond"],
body[data-module-screen="investigation"][data-investigation-state="ready"] [data-step="respond"]{
  opacity:1;
  transform:none;
}
body[data-module-screen="investigation"][data-investigation-state="look"] [data-step="look"] b,
body[data-module-screen="investigation"][data-investigation-state="mark"] [data-step="mark"] b,
body[data-module-screen="investigation"][data-investigation-state="respond"] [data-step="respond"] b,
body[data-module-screen="investigation"][data-investigation-state="write"] [data-step="respond"] b,
body[data-module-screen="investigation"][data-investigation-state="ready"] [data-step="respond"] b{
  color:#f8eed8;
  border-color:#197f96;
  background:#197f96;
  box-shadow:0 0 0 4px rgba(25,127,150,.12);
}
body[data-module-screen="investigation"][data-investigation-state="look"] [data-step="look"] i,
body[data-module-screen="investigation"][data-investigation-state="mark"] [data-step="mark"] i,
body[data-module-screen="investigation"][data-investigation-state="respond"] [data-step="respond"] i,
body[data-module-screen="investigation"][data-investigation-state="write"] [data-step="respond"] i,
body[data-module-screen="investigation"][data-investigation-state="ready"] [data-step="respond"] i{color:#167f98}
body[data-module-screen="investigation"] .compose{
  position:relative;
  min-height:330px;
  padding:20px 6px 24px 27px;
  color:#f4eee2;
  background:linear-gradient(135deg,rgba(226,207,166,.09),rgba(3,14,20,.34) 60%,rgba(3,14,20,.12));
  border:0;
  border-left:1px solid rgba(133,213,218,.28);
  box-shadow:none;
  backdrop-filter:blur(5px);
  transition:opacity .28s,transform .28s,background .28s;
}
body[data-module-screen="investigation"] .compose:before{
  content:"";
  position:absolute;
  left:-5px;
  top:18px;
  width:9px;
  height:9px;
  border:1px solid rgba(132,218,224,.72);
  border-radius:50%;
  background:#0b171c;
}
body[data-module-screen="investigation"][data-investigation-state="look"] .compose{
  min-height:90px;
  opacity:.22;
  transform:translateY(8px);
  background:transparent;
  border-left-color:rgba(133,213,218,.12);
  backdrop-filter:none;
}
body[data-module-screen="investigation"][data-investigation-state="look"] .empty-compose{visibility:hidden}
body[data-module-screen="investigation"][data-investigation-state="mark"] .compose{
  opacity:.24;
  transform:translateY(7px);
  background:transparent;
}
body[data-module-screen="investigation"] .observer-exchange{
  padding:0 0 18px;
  border-bottom:1px dashed rgba(208,188,148,.24);
}
body[data-module-screen="investigation"] .observer-label{margin-bottom:12px;color:#8fe4e7}
body[data-module-screen="investigation"] .observer-message{
  min-height:74px;
  font-size:clamp(16px,1.55vw,21px);
  line-height:1.72;
}
body[data-module-screen="investigation"] .question-panel{
  margin-top:18px;
  padding-top:0;
}
body[data-module-screen="investigation"] .question-panel.is-ready{
  animation:reply-note-in .22s ease-out both;
}
body[data-module-screen="investigation"] .question-panel .eyebrow{color:#8fe4e7}
body[data-module-screen="investigation"] .question-panel h2{
  margin-bottom:8px;
  font-size:24px;
  font-weight:560;
}
body[data-module-screen="investigation"] .take-field textarea{
  min-height:92px;
  padding:11px 2px 9px;
  resize:vertical;
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(224,207,170,.32);
  border-radius:0;
  line-height:1.7;
}
body[data-module-screen="investigation"] .take-field textarea:focus{
  border-color:#8ed9dc;
  box-shadow:0 8px 18px -16px rgba(105,226,232,.9);
}
body[data-module-screen="investigation"] .writing-tools{margin:5px 0 10px}
body[data-module-screen="investigation"] #build-card{
  min-height:40px;
  padding:0 17px;
  background:transparent;
  color:#d9d0bd;
  border-color:rgba(220,205,170,.28);
  transition:background .2s,color .2s,border-color .2s,box-shadow .2s,transform .2s;
}
body[data-module-screen="investigation"][data-investigation-state="ready"] #build-card:not(:disabled){
  color:#08202a;
  background:#91e1dd;
  border-color:#a6efeb;
  box-shadow:0 0 0 4px rgba(99,218,218,.11),0 10px 24px rgba(0,0,0,.24);
  transform:translateY(-1px);
}
body[data-module-screen="investigation"] .selection-box{
  border-width:2px;
  border-color:rgba(255,247,222,.96);
  box-shadow:0 0 0 1px rgba(44,35,19,.56),0 0 18px rgba(255,221,150,.2);
}
body[data-module-screen="investigation"] .selection-box:after{
  inset:-4px;
  border-color:rgba(255,245,216,.3);
  transform:rotate(.22deg);
}
body[data-module-screen="investigation"] .selection-corner{
  width:20px;
  height:20px;
  border:0;
  background:transparent;
}
body[data-module-screen="investigation"] .selection-corner:after{
  content:"";
  position:absolute;
  left:6px;
  top:6px;
  width:7px;
  height:7px;
  border:1px solid rgba(255,250,232,.8);
  border-radius:50%;
  background:rgba(42,35,22,.58);
  transition:width .15s,height .15s,left .15s,top .15s,background .15s;
}
body[data-module-screen="investigation"] .corner-nw{left:-11px;top:-11px}
body[data-module-screen="investigation"] .corner-ne{right:-11px;top:-11px}
body[data-module-screen="investigation"] .corner-se{right:-11px;bottom:-11px}
body[data-module-screen="investigation"] .corner-sw{left:-11px;bottom:-11px}
body[data-module-screen="investigation"] .selection-box:hover .selection-corner:after,
body[data-module-screen="investigation"] .selection-layer.is-moving .selection-corner:after{
  left:4px;
  top:4px;
  width:11px;
  height:11px;
  background:rgba(32,28,20,.9);
}
@keyframes reply-note-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* Transition Pass */

body.is-scene-transitioning main,
body.is-scene-transitioning .module-nav{
  pointer-events:none;
}
body.is-scene-transitioning .module-nav{
  opacity:0;
  transition:opacity .14s ease;
}
body.is-scene-transitioning .evidence-desk .evidence-photo{
  filter:brightness(.48) saturate(.72);
  transform:scale(.975);
}
body.is-scene-transitioning .evidence-desk .evidence-photo.is-selected{
  opacity:1;
  filter:brightness(1.06) saturate(1);
  transform:translateY(-10px) rotate(0deg) scale(1.015);
  box-shadow:0 34px 72px rgba(0,0,0,.62),0 0 0 2px rgba(132,220,224,.58);
  transition-duration:.1s;
}
.evidence-photo.is-transition-source{
  visibility:hidden;
}
.scene-select{
  transition:opacity .18s ease;
}
.scene-select.is-transition-out{
  opacity:0;
}
.scene-transition-photo{
  position:fixed;
  z-index:160;
  display:block;
  margin:0;
  pointer-events:none;
  object-fit:contain;
  background:#17140f;
  box-shadow:0 24px 58px rgba(0,0,0,.55),0 0 0 1px rgba(232,222,202,.42);
  transform:translateZ(0);
  will-change:left,top,width,height,box-shadow;
}
.scene-transition-photo.is-moving{
  transition:left .46s cubic-bezier(.2,.76,.18,1),top .46s cubic-bezier(.2,.76,.18,1),width .46s cubic-bezier(.2,.76,.18,1),height .46s cubic-bezier(.2,.76,.18,1),box-shadow .3s ease;
  box-shadow:0 16px 38px rgba(0,0,0,.38),0 0 0 1px rgba(232,222,202,.28);
}
.investigate.is-transition-measuring{
  position:fixed!important;
  z-index:-20!important;
  inset:0!important;
  width:100%!important;
  height:100vh!important;
  overflow:hidden!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
body.is-investigation-arriving .module-nav{
  animation:transition-ui-in .18s .04s ease-out both;
}
body.is-investigation-arriving .intro .eyebrow{
  animation:transition-ui-in .18s .04s ease-out both;
}
body.is-investigation-arriving .intro h1{
  animation:transition-ui-in .2s .075s ease-out both;
}
body.is-investigation-arriving .investigation-steps{
  animation:transition-ui-in .2s .115s ease-out both;
}
body.is-investigation-arriving .image-tools,
body.is-investigation-arriving .source-line{
  animation:transition-ui-in .2s .145s ease-out both;
}
body.is-investigation-arriving .compose{
  animation:transition-ui-in .22s .17s ease-out both;
}
body[data-module-screen="investigation"] .here-note{
  animation:here-in .16s ease-out;
}
body[data-module-screen="investigation"] .observer-exchange:not([hidden]) .observer-label{
  animation:transition-ui-in .16s ease-out both;
}
body[data-module-screen="investigation"][data-investigation-state="mark"] .lens-layer{
  opacity:0;
}
.lens-connector{position:absolute;inset:0;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 4px rgba(96,222,236,.5))}
.lens-connector path{fill:none;stroke:rgba(183,247,249,.9);stroke-width:1.4;vector-effect:non-scaling-stroke}
.lens-focus{position:absolute;box-sizing:border-box;border:1px solid rgba(166,245,249,.54);border-radius:8px;background:rgba(87,211,224,.06);box-shadow:inset 0 0 17px rgba(100,231,238,.14),0 0 16px rgba(81,205,222,.17)}
.lens-focus:before{content:"";position:absolute;inset:-2px;border:3px solid #b2fbff;border-radius:8px;clip-path:polygon(0 0,15% 0,15% 7%,7% 7%,7% 18%,0 18%,0 82%,7% 82%,7% 93%,15% 93%,15% 100%,0 100%,0 0,100% 0,85% 0,85% 7%,93% 7%,93% 18%,100% 18%,100% 82%,93% 82%,93% 93%,85% 93%,85% 100%,100% 100%);filter:drop-shadow(0 0 5px #78e8f1)}
.lens-focus span{position:absolute;left:50%;top:50%;width:9px;height:9px;border:2px solid #d8ffff;border-radius:50%;background:#77dce5;box-shadow:0 0 0 4px rgba(116,223,232,.32),0 0 10px #94f3f6;transform:translate(-50%,-50%)}
.lens-layer .magnifier{box-sizing:border-box;border:2px solid rgba(191,248,249,.96);border-radius:17px;overflow:hidden;transform:none;box-shadow:0 14px 34px rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,255,255,.4),0 0 14px rgba(98,224,234,.36);background-repeat:no-repeat;background-color:#101e1e;backdrop-filter:none}
.lens-layer .magnifier:before{inset:0;border:0;border-radius:15px;background:linear-gradient(145deg,rgba(193,251,251,.16),transparent 28%,transparent 72%,rgba(96,219,226,.08));box-shadow:inset 0 0 22px rgba(39,107,111,.33)}
.lens-layer .magnifier:after{content:none}
.image-frame.is-arrival-lens .lens-layer{
  opacity:1;
}
.image-frame.is-arrival-lens .magnifier{
  animation:arrival-lens-in .18s ease-out both;
}
body.is-returning-to-scenes .investigate{
  opacity:0;
  transform:scale(.992);
  transition:opacity .16s ease,transform .16s ease;
  pointer-events:none;
}
body.is-scene-select-arriving .scene-select{
  animation:scene-select-return .24s ease-out both;
}
body.is-reduced-arrival .investigate{
  animation:reduced-arrival .12s ease-out both;
}
@keyframes case-note-land{from{opacity:0}to{opacity:1}}
@keyframes transition-ui-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes arrival-lens-in{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
@keyframes scene-select-return{from{opacity:0}to{opacity:1}}
@keyframes reduced-arrival{from{opacity:0}to{opacity:1}}

@media(max-width:760px){
  body[data-module-screen="investigation"] .investigate{padding:18px 8px 54px}
  body[data-module-screen="investigation"] .investigation-art-backdrop{opacity:1;filter:blur(2px) brightness(.7) saturate(.74)}
  body[data-module-screen="investigation"] .investigate:after{background:linear-gradient(180deg,rgba(2,8,12,.48),rgba(2,8,12,.08) 42%,rgba(2,8,12,.55)),radial-gradient(circle at 50% 48%,transparent 18%,rgba(2,8,12,.32) 78%)}
  body[data-module-screen="investigation"] .intro{margin-bottom:12px;padding:0 6px}
  body[data-module-screen="investigation"] .intro h1{font-size:23px}
  body[data-module-screen="investigation"] .observe{padding:13px 6px 9px;margin-bottom:14px}
  body[data-module-screen="investigation"] .evidence-number{margin-left:4px}
  body[data-module-screen="investigation"] .image-stage{padding:4px}
  body[data-module-screen="investigation"] .image-tools{padding-inline:4px}
  body[data-module-screen="investigation"] .investigation-steps{gap:5px;padding-inline:3px}
  body[data-module-screen="investigation"] .investigation-steps span{gap:3px}
  body[data-module-screen="investigation"] .investigation-steps strong{font-size:10px;letter-spacing:.03em}
  body[data-module-screen="investigation"] .investigation-steps i{font-size:16px}
  body[data-module-screen="investigation"] .investigation-steps b{width:20px;height:20px;font-size:10px}
  body[data-module-screen="investigation"] .source-line{margin-left:4px}
  body[data-module-screen="investigation"] .compose{min-height:220px;margin:4px 8px 0;padding:18px 4px 22px 20px}
  body[data-module-screen="investigation"][data-investigation-state="look"] .compose{display:none}
  body[data-module-screen="investigation"] .observer-message{font-size:18px;line-height:1.66}
  body[data-module-screen="investigation"] .question-panel h2{font-size:23px}
  body[data-module-screen="investigation"] .take-field textarea{min-height:84px}
  body[data-module-screen="investigation"] .selection-corner{width:24px;height:24px}
  body[data-module-screen="investigation"] .selection-corner:after{left:7px;top:7px;width:9px;height:9px}
  body[data-module-screen="investigation"] .corner-nw{left:-13px;top:-13px}
  body[data-module-screen="investigation"] .corner-ne{right:-13px;top:-13px}
  body[data-module-screen="investigation"] .corner-se{right:-13px;bottom:-13px}
  body[data-module-screen="investigation"] .corner-sw{left:-13px;bottom:-13px}
}

@media(max-width:760px){
  body[data-module-screen="investigation"] .investigate{
    padding-top:18px;
  }
  .investigate.is-transition-measuring{
    inset:0!important;
    height:100vh!important;
  }
  body[data-module-screen="scene-select"] .office-backdrop,
  body[data-module-screen="investigation"] .investigation-art-backdrop{
    background-position:44% center;
  }
  .scene-transition-photo{
    max-width:calc(100vw - 16px);
    box-shadow:0 20px 48px rgba(0,0,0,.58),0 0 0 1px rgba(92,73,45,.28);
  }
  body.is-scene-transitioning .evidence-desk .evidence-photo.is-selected{
    transform:translateY(-6px) rotate(0deg) scale(1.01);
  }
  @keyframes case-note-land{from{opacity:0}to{opacity:1}}
  @keyframes arrival-lens-in{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
}

.card-shell{position:relative}
.card-shell .card-reveal-cover,.card-shell .card-stamp-overlay{position:absolute;z-index:3;display:block;background:transparent;pointer-events:none}
.card-shell #card-stamp-cover{z-index:4}
.card-shell .card-stamp-overlay{z-index:5;transform-origin:50% 50%}
.card-shell .card-stamp-overlay[hidden]{display:none}
.card-stamp-overlay.is-stamping{will-change:transform,opacity;animation:filed-stamp-impact var(--stamp-press-duration,600ms) linear both}
@keyframes filed-stamp-impact{
  0%{opacity:0;transform:translate3d(0,-52%,0) scale(1.85) rotate(-8deg);animation-timing-function:ease-out}
  12%{opacity:1;transform:translate3d(0,-44%,0) scale(1.72) rotate(-7deg);animation-timing-function:cubic-bezier(.82,0,.98,.28)}
  40%,49%{opacity:1;transform:translate3d(0,3%,0) scale(.94,.91) rotate(1.2deg);animation-timing-function:ease-out}
  70%{opacity:1;transform:translate3d(0,0,0) scale(1.025) rotate(-.3deg);animation-timing-function:ease-in-out}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1) rotate(0)}
}

body[data-module-screen="investigation"] .module-nav,
body[data-module-screen="my-view"] .module-nav{
  position:sticky;
  display:flex;
  justify-content:space-between;
  min-height:72px;
  padding:9px clamp(14px,3.4vw,50px);
  gap:8px;
  color:#d9edf0;
  background:rgba(2,13,21,.94);
  border-bottom:1px solid rgba(158,216,225,.2);
  backdrop-filter:blur(12px);
  box-shadow:none;
}
body[data-module-screen="investigation"] .back-to-scenes,
body[data-module-screen="my-view"] .back-to-scenes{
  order:0;
  justify-self:auto;
  align-items:center;
  gap:8px;
  color:inherit;
}
body[data-module-screen="investigation"] .case-files-link,
body[data-module-screen="my-view"] .case-files-link{
  order:1;
  position:static;
  justify-self:auto;
  margin-left:auto;
  padding:0 10px;
  color:inherit;
  background:rgba(2,13,21,.52);
  text-shadow:0 2px 8px #000;
}
body[data-module-screen="investigation"] .case-files-link b,
body[data-module-screen="my-view"] .case-files-link b{color:#55dcff}
body[data-module-screen="investigation"] .module-exit,
body[data-module-screen="my-view"] .module-exit{
  order:2;
  position:static;
  flex:0 0 44px;
  width:44px;
  height:44px;
  min-height:44px;
  padding:0;
  justify-content:center;
  border:1px solid rgba(158,216,225,.28);
  border-radius:50%;
  background:rgba(2,13,21,.82);
  backdrop-filter:blur(12px);
  box-shadow:0 8px 24px rgba(0,0,0,.28);
}
body[data-module-screen="investigation"] .module-exit strong,
body[data-module-screen="my-view"] .module-exit strong{display:none}
body[data-module-screen="investigation"] .module-exit span,
body[data-module-screen="my-view"] .module-exit span{width:30px;height:30px}
body[data-module-screen="investigation"] .module-name,
body[data-module-screen="my-view"] .module-name{display:none}

@media(max-width:760px){
  body[data-module-screen="investigation"] .module-nav,
  body[data-module-screen="my-view"] .module-nav{min-height:60px;padding:7px 10px;gap:6px}
  body[data-module-screen="investigation"] .back-to-scenes,
  body[data-module-screen="my-view"] .back-to-scenes,
  body[data-module-screen="investigation"] .case-files-link,
  body[data-module-screen="my-view"] .case-files-link{font-size:9px;letter-spacing:.08em}
  body[data-module-screen="investigation"] .back-to-scenes,
  body[data-module-screen="my-view"] .back-to-scenes{gap:6px}
  body[data-module-screen="investigation"] .module-exit,
  body[data-module-screen="my-view"] .module-exit{flex-basis:40px;width:40px;height:40px;min-height:40px}
  body[data-module-screen="investigation"] .module-exit span,
  body[data-module-screen="my-view"] .module-exit span{width:28px;height:28px}
}

body[data-module-screen="investigation"] .observer-label{font-size:12px}

body[data-module-screen="my-view"] .export-actions{flex-wrap:nowrap}
@media(max-width:760px){
  body[data-module-screen="my-view"] .export-actions{gap:5px}
  body[data-module-screen="my-view"] .export-actions>*{flex:1 1 0;min-width:0;padding-inline:4px;font-size:clamp(8px,2.5vw,11px);white-space:nowrap}
  body[data-module-screen="my-view"] .export-actions .quiet-button{flex-basis:0}
}

body[data-module-screen="my-view"]{overflow:hidden}
body[data-module-screen="my-view"] main{
  height:calc(100vh - 72px);
  height:calc(100svh - 72px);
  min-height:0;
  overflow:hidden;
}
body[data-module-screen="my-view"] .investigate{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
  padding:8px clamp(14px,4vw,58px);
}
body[data-module-screen="my-view"] .preview{
  --my-view-card-width:min(100%,840px,calc((100svh - 215px)*.8));
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-height:0;
  width:100%;
  margin:0 auto;
  padding:0 clamp(4px,3vw,28px);
  scroll-margin-top:0;
}
body[data-module-screen="my-view"] .preview-heading{
  display:none;
}
body[data-module-screen="my-view"] .preview-heading .eyebrow{margin:0;color:var(--cyan)}
body[data-module-screen="my-view"] .card-shell{
  flex:0 1 auto;
  width:var(--my-view-card-width);
  margin:auto;
  background:#EFE6D2;
  transform:none;
}
body[data-module-screen="my-view"] .card-shell #card-canvas{position:relative;z-index:2}
body[data-module-screen="my-view"] .card-shell #card-zoom-cover{opacity:0;transition:opacity .32s ease-out;will-change:opacity}
body[data-module-screen="my-view"] .card-shell[data-reveal-phase="base"] #card-zoom-cover{opacity:1;transition:none}
body[data-module-screen="my-view"] .export-actions{transition:opacity .24s ease-out}
body[data-module-screen="my-view"] .preview:has(.card-shell[data-reveal-phase="base"]) .export-actions,
body[data-module-screen="my-view"] .preview:has(.card-shell[data-reveal-phase="zoom"]) .export-actions{opacity:0;pointer-events:none}
body[data-module-screen="my-view"] .export-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  flex:0 0 auto;
  width:var(--my-view-card-width);
  margin:10px auto 0;
}
body[data-module-screen="my-view"] .export-actions > button{width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
body[data-module-screen="my-view"] .export-status{flex:0 0 auto;min-height:1em;margin:4px 0 0}
@media(max-width:760px){
  body[data-module-screen="my-view"] main{height:calc(100vh - 60px);height:calc(100svh - 60px)}
  body[data-module-screen="my-view"] .preview{--my-view-card-width:min(100%,840px,calc((100svh - 230px)*.8));padding-inline:0}
}

body[data-module-screen="my-view"] .investigation-art-backdrop{
  position:fixed;
  inset:0;
  opacity:.72;
  filter:blur(4px) brightness(.54) saturate(.66);
  background-position:center 34%;
}
.my-view-harbor-backdrop{display:none}
body[data-module-screen="my-view"] .my-view-harbor-backdrop{
  display:block;
  position:fixed;
  z-index:-2;
  inset:0;
  background:linear-gradient(90deg,rgba(4,9,11,.2),rgba(4,9,11,.03) 52%,rgba(4,9,11,0)),linear-gradient(180deg,rgba(4,9,11,.16),rgba(4,9,11,0) 26%,rgba(4,9,11,0) 70%,rgba(4,9,11,.2)),url("./assets/my-view-harbor-terrace-background.png") 82% center/cover no-repeat;
  filter:brightness(.97) saturate(1.04);
  opacity:0;
  will-change:opacity;
  pointer-events:none;
}
body[data-module-screen="my-view"].is-my-view-revealed .my-view-harbor-backdrop{
  animation:my-view-harbor-reveal 1.1s cubic-bezier(.2,.65,.2,1) both;
}
body[data-module-screen="my-view"] .investigate:after{
  position:fixed;
  inset:0;
  opacity:1;
  transition:opacity 1.1s ease-out;
}
body[data-module-screen="my-view"].is-my-view-revealed .investigate:after{opacity:0}
@keyframes my-view-harbor-reveal{
  from{opacity:0}
  to{opacity:1}
}
@keyframes my-view-filed-copy{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}
@media(max-width:760px){
  body[data-module-screen="my-view"] .my-view-harbor-backdrop{background-position:90% center}
}
@media(prefers-reduced-motion:reduce){
  body[data-module-screen="my-view"].is-my-view-revealed .my-view-harbor-backdrop{opacity:1;filter:none;transform:none}
  body[data-module-screen="my-view"].is-my-view-revealed .investigate:after{opacity:0}
  body[data-module-screen="my-view"] .card-shell #card-zoom-cover{transition:none}
}

.case-actions{flex-wrap:nowrap;gap:4px}
.case-actions button{padding:6px 5px;white-space:nowrap}
.case-action-status{min-height:1.3em;margin:12px 0 0;color:#5a564c;font-size:12px}
.case-file-viewer{position:fixed;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);padding:24px 12px 12px;border:1px solid #cfc3a3;background:#efe6d2;box-shadow:0 24px 70px rgba(0,0,0,.55)}
.case-file-viewer::backdrop{background:rgba(4,9,12,.86)}
.case-file-viewer img{display:block;max-width:min(720px,calc(100vw - 48px));max-height:calc(100vh - 60px);width:auto;height:auto}
.case-file-viewer button{position:absolute;right:2px;top:0;border:0;background:transparent;color:#2b2a26;font-size:22px;cursor:pointer}

.case-files-link,
body[data-module-screen="scene-select"] .case-files-link,
body[data-module-screen="investigation"] .case-files-link,
body[data-module-screen="my-view"] .case-files-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:52px;
  padding:0 17px;
  border:1px solid #b0f0ee;
  background:#83d8d4;
  color:#082830;
  box-shadow:0 8px 24px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.28);
  font-size:15px;
  letter-spacing:.12em;
  text-shadow:none;
  white-space:nowrap;
}
.case-files-link b,
body[data-module-screen="investigation"] .case-files-link b,
body[data-module-screen="my-view"] .case-files-link b{
  margin:0;
  color:#07505d;
  font-size:16px;
}
.case-files-link:hover,
body[data-module-screen="scene-select"] .case-files-link:hover,
body[data-module-screen="investigation"] .case-files-link:hover,
body[data-module-screen="my-view"] .case-files-link:hover{background:#a4edeb;border-color:#e0ffff}
.case-files-link:focus-visible{outline-color:#fff}
.case-files-link:active{transform:translateY(1px)}
body[data-module-screen="scene-select"] .case-files-link{right:78px;top:12px}
@media(max-width:760px){
  body[data-module-screen="scene-select"] .case-files-link,
  body[data-module-screen="investigation"] .case-files-link,
  body[data-module-screen="my-view"] .case-files-link{min-height:44px;padding:0 9px;gap:6px;font-size:11px;letter-spacing:.07em}
  .case-files-link b,
  body[data-module-screen="investigation"] .case-files-link b,
  body[data-module-screen="my-view"] .case-files-link b{font-size:12px}
  body[data-module-screen="scene-select"] .case-files-link{right:68px;top:10px}
}

/* Keep the investigation photo and its controls within the viewport. */
body[data-module-screen="investigation"]{height:100svh;min-height:0;overflow:hidden}
body[data-module-screen="investigation"] main{height:calc(100svh - 72px);min-height:0;overflow:hidden}
body[data-module-screen="investigation"] .investigate{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
  padding:10px clamp(16px,3.2vw,52px) 12px;
}
body[data-module-screen="investigation"] .intro{width:100%;margin:0 auto 9px}
body[data-module-screen="investigation"] .intro .eyebrow{margin:0}
body[data-module-screen="investigation"] .maker{width:100%;min-height:0}
body[data-module-screen="investigation"] .image-frame{
  width:min(100%,calc((100svh - 226px) * 1.77644));
  max-width:100%;
  aspect-ratio:739/416;
  margin-inline:auto;
}
body[data-module-screen="investigation"] .image-frame>img{
  width:100%;
  height:100%;
  max-height:none;
}
body[data-module-screen="investigation"][data-investigation-state="look"] .compose,
body[data-module-screen="investigation"][data-investigation-state="mark"] .compose{
  opacity:1;
  transform:none;
  background:linear-gradient(135deg,rgba(226,207,166,.09),rgba(3,14,20,.34) 60%,rgba(3,14,20,.12));
  border-left-color:rgba(133,213,218,.28);
  backdrop-filter:blur(5px);
}
body[data-module-screen="investigation"] .compose.is-opening{animation:investigation-opening .3s ease-out both}
body[data-module-screen="investigation"] .take-field textarea:disabled{opacity:.52;cursor:default}
@keyframes investigation-opening{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:760px){
  body[data-module-screen="investigation"] main{height:calc(100svh - 60px)}
  body[data-module-screen="investigation"] .investigate{padding:6px 8px 6px}
  body[data-module-screen="investigation"] .intro{margin-bottom:4px;padding:0 4px}
  body[data-module-screen="investigation"] .maker{display:flex;flex-direction:column;gap:4px}
  body[data-module-screen="investigation"] .observe{width:100%;margin:0;padding:7px 6px 5px}
  body[data-module-screen="investigation"] .evidence-tape{top:0}
  body[data-module-screen="investigation"] .evidence-number{margin-bottom:3px}
  body[data-module-screen="investigation"] .image-stage{padding:3px}
  body[data-module-screen="investigation"] .image-frame{width:min(100%,calc(26svh * 1.77644))}
  body[data-module-screen="investigation"][data-investigation-state="respond"] .image-frame,
  body[data-module-screen="investigation"][data-investigation-state="write"] .image-frame,
  body[data-module-screen="investigation"][data-investigation-state="ready"] .image-frame{width:min(100%,calc(min(22svh,180px) * 1.77644))}
  body[data-module-screen="investigation"] .image-tools{margin-top:3px}
  body[data-module-screen="investigation"] .image-tools p{font-size:9px;line-height:1.2}
  body[data-module-screen="investigation"] .investigation-steps{margin-top:3px;padding-block:3px}
  body[data-module-screen="investigation"] .source-line{margin-top:3px}
  body[data-module-screen="investigation"] .compose{width:calc(100% - 16px);min-height:0;margin:0 8px;padding:6px 4px 5px 14px}
  body[data-module-screen="investigation"][data-investigation-state="look"] .compose{display:block}
  body[data-module-screen="investigation"] .observer-exchange{padding-bottom:6px}
  body[data-module-screen="investigation"] .observer-label{margin-bottom:4px;font-size:10px}
  body[data-module-screen="investigation"] .observer-message{min-height:0;font-size:clamp(12px,3.6vw,15px);line-height:1.34}
  body[data-module-screen="investigation"] .observer-segment{margin:.22em 0}
  body[data-module-screen="investigation"] .observer-question{margin-top:.35em}
  body[data-module-screen="investigation"] .question-panel{margin-top:6px}
  body[data-module-screen="investigation"] .question-panel .eyebrow{margin-bottom:2px;font-size:10px}
  body[data-module-screen="investigation"] .question-panel h2{margin-bottom:3px;font-size:18px}
  body[data-module-screen="investigation"] .take-field textarea{min-height:48px;height:48px;padding:4px 2px;resize:none;line-height:1.4}
  body[data-module-screen="investigation"] .writing-tools{margin:2px 0 4px}
  body[data-module-screen="investigation"] #build-card{min-height:34px}
}
@media(max-width:760px) and (max-height:620px){
  body[data-module-screen="investigation"][data-investigation-state="respond"] .image-frame,
  body[data-module-screen="investigation"][data-investigation-state="write"] .image-frame,
  body[data-module-screen="investigation"][data-investigation-state="ready"] .image-frame{width:min(100%,calc(14svh * 1.77644))}
}

/* Floating navigation controls keep the scene visible behind them. */
body[data-module-screen="investigation"] .module-nav,
body[data-module-screen="my-view"] .module-nav{
  position:fixed;
  height:72px;
  min-height:0;
  background:transparent;
  border:0;
  backdrop-filter:none;
  box-shadow:none;
}
body[data-module-screen="investigation"] .back-to-scenes,
body[data-module-screen="my-view"] .back-to-scenes{
  min-height:44px;
  padding:0 4px;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  font-size:15px;
  line-height:1;
  letter-spacing:.12em;
  text-shadow:0 2px 8px rgba(0,0,0,.95),0 0 18px rgba(0,0,0,.72);
}
body[data-module-screen="investigation"] .back-to-scenes span,
body[data-module-screen="my-view"] .back-to-scenes span{font-size:24px;line-height:1}
body[data-module-screen="investigation"] .case-files-link b,
body[data-module-screen="my-view"] .case-files-link b{font-size:15px;line-height:1}
.case-files-icon{display:block;flex:none;width:18px;height:18px;color:#07505d}
.module-exit span,
body[data-module-screen="scene-select"] .module-exit span,
body[data-module-screen="investigation"] .module-exit span,
body[data-module-screen="my-view"] .module-exit span{border:0;width:auto;height:auto;font-size:27px;line-height:1}
body[data-module-screen="investigation"] main,
body[data-module-screen="my-view"] main{height:100svh}
body[data-module-screen="investigation"] .investigate{padding-top:82px}
body[data-module-screen="my-view"] .investigate{padding-top:80px}
@media(max-width:760px){
  body[data-module-screen="investigation"] .module-nav,
  body[data-module-screen="my-view"] .module-nav{height:60px}
  body[data-module-screen="investigation"] .investigate{padding-top:66px}
  body[data-module-screen="my-view"] .investigate{padding-top:68px}
  body[data-module-screen="investigation"] .back-to-scenes,
  body[data-module-screen="my-view"] .back-to-scenes{min-height:40px;padding:0 8px;font-size:11px;letter-spacing:.07em}
  body[data-module-screen="investigation"] .case-files-link b,
  body[data-module-screen="my-view"] .case-files-link b{font-size:11px}
  .case-files-icon{width:15px;height:15px}
}

/* Give the scene-select prompt the presence of a game start cue. */
.scene-select .deck-hint{
  color:#e8f5f3;
  font-size:clamp(17px,2vw,25px);
  font-weight:500;
  letter-spacing:.18em;
  text-shadow:0 0 18px rgba(125,227,232,.4),0 2px 12px #000;
  animation:deck-hint-breathe 3.6s ease-in-out infinite;
}
@keyframes deck-hint-breathe{
  0%,100%{opacity:.52;text-shadow:0 0 8px rgba(125,227,232,.12),0 2px 12px #000}
  50%{opacity:1;text-shadow:0 0 25px rgba(125,227,232,.65),0 2px 12px #000}
}
@media(max-width:760px){
  .scene-select{display:flex;flex-direction:column}
  .scene-select .deck-hint{order:1;margin:28px 0 0;font-size:clamp(15px,4.4vw,19px);letter-spacing:.12em}
  .scene-select-artboard{order:2;margin-top:36px}
}
@media(prefers-reduced-motion:reduce){
  .scene-select .deck-hint{animation:none;opacity:1}
}
/* Disclaimer and content use: a quiet entrance under Case Select and a shared card, read on paper like Case Files. */
.content-use-link{position:relative;z-index:5;display:block;margin:18px auto 0;padding:6px 4px;border:0;background:transparent;color:rgba(214,225,222,.62);font:500 11px/1.4 "Yu Gothic UI","Yu Gothic",sans-serif;letter-spacing:.06em;cursor:pointer}
.content-use-link:hover,.content-use-link:focus-visible{color:#f2eee5}
.content-use-dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100vh - 24px);padding:0;border:1px solid rgba(62,49,29,.3);background:#eee2c8;color:#282620}
.content-use-dialog::backdrop{background:rgba(4,9,12,.82);backdrop-filter:blur(8px)}
.content-use-paper{display:grid;gap:16px;padding:clamp(20px,4vw,40px);background-image:repeating-linear-gradient(0deg,rgba(85,63,31,.025) 0 1px,transparent 1px 5px)}
.content-use-paper header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid rgba(45,39,29,.2);padding-bottom:12px}
.content-use-paper h2{margin:0;font:700 18px/1.2 "Yu Gothic UI","Yu Gothic",sans-serif;letter-spacing:.12em}
.content-use-paper header button{border:0;background:transparent;color:#353129;font-size:28px;line-height:1;cursor:pointer}
.content-use-body{display:grid;gap:10px;font-size:13px;line-height:1.8}
.content-use-body p{margin:0}
.content-use-body section{display:grid;gap:10px;margin-top:8px;padding-top:16px;border-top:1px solid rgba(45,39,29,.2)}
.content-use-body h3{margin:0;font-size:14px;letter-spacing:.06em}
.content-use-action{justify-self:end;min-width:120px;padding:10px 18px;border:1px solid rgba(40,36,28,.35);background:transparent;color:#282620;font:700 13px/1 "Yu Gothic UI","Yu Gothic",sans-serif;letter-spacing:.12em;cursor:pointer}
.content-use-action:hover,.content-use-paper header button:hover{background:rgba(40,36,28,.08)}
@media(max-width:760px){
  .scene-select .content-use-link{order:3;margin-top:28px}
}
