/* Nightingale: shared typography and surfaces, 2026-11-23. Historical builds are untouched. */
:root{--ng-serif:"Songti SC","STSong","Noto Serif CJK SC","Source Han Serif SC",Georgia,serif;--sans:var(--ng-serif);--ui:var(--ng-serif);--nightingale-sans:var(--ng-serif);--ng-ivory:#eee3cc;--ng-secondary:#c6b795;--ng-brass:#c7a66a;--ng-line:rgba(199,166,106,.26)}
[hidden]{display:none!important}
body{font-family:var(--ng-serif);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
button,a,input,select,summary{font-family:var(--ng-serif)}
button{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--ng-brass);outline-offset:5px}
/* Context labels identify a different decision type, rather than repeating “your action”. */
.choice-instruction,.choice-prompt,.choice-panel::before,.door-choices::before,[data-prompt]::before,.channel-label,.memory>small,.selected-choice,.hud small,.heading small,.intro>small,.hero small,.topbar small,.chapter-heading small,.judgment>small,.ending>small,.object-dialog header small,.notebook small,.case-notebook small,.search-controls small,.search-controls summary,.move-pad>small,.search-move-pad>small,.hud nav button,.notebook-toggle,.sound-toggle{font-family:var(--ng-serif)!important;font-weight:400!important;font-size:.9375rem;line-height:1.65;letter-spacing:.035em!important}
.choice-instruction{font:400 .9375rem/1.65 var(--ng-serif)!important;color:var(--ng-secondary)!important;margin:22px 0 10px!important}
.choice-panel::before,.door-choices::before{font-size:.9375rem;color:var(--ng-secondary);margin-bottom:.4rem}
.actions button::after,.memory button::after{content:none!important}
.actions button,.door-choices button,.story-choice,.object-actions button{font-family:var(--ng-serif)!important;font-weight:400!important;font-size:1.0625rem;line-height:1.65;letter-spacing:.02em;min-height:52px}
.actions button,.door-choices button:not(.utility-choice),.story-choice{border:0!important;border-left:1px solid var(--ng-line)!important;border-radius:0!important;background:linear-gradient(90deg,rgba(102,80,44,.24),rgba(25,23,18,.1))!important;box-shadow:none!important;transition:background .2s,border-color .2s}
.actions button:hover,.door-choices button:not(.utility-choice):hover,.story-choice:hover{border-left-color:var(--ng-brass)!important;background:linear-gradient(90deg,rgba(141,109,58,.35),rgba(25,23,18,.12))!important;transform:none!important}
.actions button{padding:20px 24px}
.actions button b,.story-choice b,.evidence-item b,.flat-evidence b{font-weight:400}
.door-choices{max-height:none!important;gap:12px}
.utility-choice{border:0!important;border-bottom:1px solid var(--ng-line)!important;background:transparent!important;opacity:1!important;color:var(--ng-secondary);border-radius:0!important;box-shadow:none!important}
.story-card,.caption,.dialogue-layer,.scene-narration{border:0!important;border-top:1px solid var(--ng-line)!important;border-radius:0!important;background:linear-gradient(105deg,rgba(15,14,12,.96),rgba(20,18,14,.86) 75%,rgba(20,18,14,.64))!important;box-shadow:0 15px 50px rgba(0,0,0,.18)!important}
.speaker b,.speaker-line span,.caption>small{font-family:var(--ng-serif);font-weight:400;color:#d8ba7c;letter-spacing:.06em}
.story-card #storyText,.caption p,.dialogue-layer>p,.scene-narration p{font-family:var(--ng-serif);font-weight:400;line-height:1.9;color:var(--ng-ivory)}
.memory{border-left:1px solid var(--ng-brass)!important;background:rgba(124,96,49,.09)!important}
.memory button{color:#e3c993;font-family:var(--ng-serif)}
.notebook,.case-notebook,.ticket-drawer{border:0!important;border-left:1px solid var(--ng-line)!important;background:linear-gradient(115deg,#24251f,#171b18 78%)!important;box-shadow:-24px 0 90px #0008!important;color:var(--ng-ivory)}
.notebook h2,.case-notebook h2,.ticket-drawer h2,.object-dialog h2{font-weight:400;letter-spacing:.06em}
.notebook h3,.case-notebook h3{font-weight:400;color:#d6be8e}
.notebook p,.notebook details,.case-notebook p{font:400 1rem/1.85 var(--ng-serif)}
.notebook h3,.case-notebook h3{font-size:1rem}
.evidence-item small,.evidence-card small,.flat-evidence small{font:400 .875rem/1.65 var(--ng-serif)!important;letter-spacing:.025em}
.notebook summary,.case-notebook summary,.testimony-record summary{font:400 1rem/1.7 var(--ng-serif)!important;border:0!important;border-bottom:1px solid var(--ng-line)!important;background:transparent!important;padding:14px 0}
.notebook button,.case-notebook button,.object-dialog button{font-family:var(--ng-serif)!important;font-weight:400!important;font-size:1rem}
.evidence-item,.case-notebook .evidence-card,.evidence-table .evidence-card{border:0!important;border-bottom:1px solid var(--ng-line)!important;border-radius:0!important;background:rgba(177,145,85,.06)!important;box-shadow:none!important;text-align:left}
.evidence-item:hover,.case-notebook .evidence-card:hover,.evidence-table .evidence-card:hover{background:rgba(177,145,85,.14)!important}
.object-dialog,#dialog{border:0!important;border-top:1px solid #b59860!important;border-bottom:1px solid var(--ng-line)!important;border-radius:3px!important;background:radial-gradient(ellipse at 15% 0,rgba(143,115,62,.13),transparent 65%),#1b211e!important;color:var(--ng-ivory);box-shadow:0 30px 110px #000b!important}
dialog::backdrop{background:rgba(5,8,7,.72);backdrop-filter:blur(5px)}
.object-dialog header{border:0;border-bottom:1px solid var(--ng-line);padding-bottom:18px;margin-bottom:24px}
.object-dialog header button,.notebook header button,.case-notebook header button,#closeDialog{border:0!important;background:transparent!important;border-radius:0!important;min-width:44px;min-height:44px;color:var(--ng-secondary)}
.object-actions button,.save-record button,#dialog button{border:0!important;border-bottom:1px solid #a98b55!important;border-radius:2px!important;background:linear-gradient(100deg,#51442c,#303127)!important;color:var(--ng-ivory);padding:12px 20px}
.route-assist,.search-assist{border:0!important}
.route-assist summary,.search-assist summary{font:400 .9375rem/1.65 var(--ng-serif)!important;color:#d8c59f}
.route-assist nav button,.search-assist button{font-family:var(--ng-serif)!important;font-weight:400!important;border:0!important;border-bottom:1px solid var(--ng-line)!important;border-radius:0!important}
.hud nav button,.topbar>button:last-child,.notebook-toggle,.sound-toggle{border:0!important;border-bottom:1px solid var(--ng-line)!important;border-radius:0!important;background:rgba(19,20,16,.72)!important;box-shadow:none!important;min-height:44px}
.topbar strong,.brand b{font-weight:400}
.brand,.episode-brand{text-decoration:none}
.journey-menu{display:inline-block;margin-left:16px;padding:7px 10px;font:400 .9375rem var(--ng-serif);color:var(--ng-secondary);border:0;border-bottom:1px solid var(--ng-line);background:transparent;min-height:44px}
.judgment button,.disclosure button{font-family:var(--ng-serif)!important}
#conversation:not([hidden]){position:fixed;inset:86px 0 0;z-index:3;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:0 5% 24px;gap:16px;pointer-events:none}
#conversation .caption{position:relative;inset:auto;width:min(850px,72vw);max-height:36dvh;overflow:auto;pointer-events:auto;margin:0}
#conversation .door-choices{position:relative;inset:auto;width:min(850px,72vw);max-height:30dvh!important;overflow:auto;pointer-events:auto;padding:0;margin:0;flex-shrink:0}
@media(max-width:760px){#conversation:not([hidden]){inset:74px 0 0;padding:0 5% 18px;gap:12px}#conversation .caption,#conversation .door-choices{width:100%}.hud nav{gap:5px}.hud nav button{padding:8px 9px;font-size:.875rem}.hud .brand{font-size:0;gap:0}.hud .brand span{font-size:22px}}
@media(max-width:760px){.choice-instruction,.choice-panel::before,.door-choices::before{font-size:.9375rem!important}.actions button,.door-choices button,.object-actions button{font-size:1rem;width:100%;min-height:48px}.hud{gap:.5rem}.hud .chapter{font-size:.875rem}.object-dialog{max-width:calc(100vw - 24px);padding:22px 18px}}
@media(prefers-reduced-motion:reduce){.actions button,.door-choices button{transition:none}}

/* v20: browser-verified inspection labels and empty-state cleanup. */
.choice-panel:empty,.door-choices:empty{display:none!important}
.inspection-header .kicker,.discovery-label,.gesture-hint,.hotspot-copy small{font:400 .875rem/1.65 var(--ng-serif)!important;letter-spacing:.035em!important;color:var(--ng-secondary)!important}
.inspection-header h2{font-family:var(--ng-serif);font-weight:400;font-size:1.5rem}
.discovery-card .primary-button,#evidenceDone{font:400 1rem/1.65 var(--ng-serif)!important;min-height:48px;letter-spacing:.035em!important}
.inspection-shell{border:0!important;border-top:1px solid var(--ng-line)!important;border-bottom:1px solid var(--ng-line)!important}
.inspection-header{border-bottom-color:var(--ng-line)}
.round-close{min-width:44px;min-height:44px;border:0!important;background:transparent!important}
.story-choice b,.investigation-panel .story-choice b{font:400 1.0625rem/1.65 var(--ng-serif)!important}
.story-choice small,.investigation-panel .story-choice small{font:400 .9375rem/1.7 var(--ng-serif)!important}
@media(max-width:760px){.inspection-header h2{font-size:1.125rem}.inspection-header .kicker{font-size:.8125rem!important}.gesture-hint{padding:7px 12px!important}.discovery-card>p{font-size:1.0625rem;line-height:1.8}}

/* Keep the prompt out of the option row; dialogue and choices share a layout. */
.episode-conversation{position:absolute;left:5%;right:5%;bottom:32px;z-index:20;display:flex;flex-direction:column;align-items:flex-start;gap:14px;pointer-events:none;max-height:calc(100dvh - 190px)}
.episode-conversation #dialoguePanel{position:relative;inset:auto;width:min(750px,100%);margin:0;max-height:32dvh;flex-shrink:0;pointer-events:auto}
.episode-conversation #investigationPanel{position:relative;inset:auto;width:min(1050px,100%);max-height:36dvh;padding:0;margin:0;overflow-x:hidden;overflow-y:auto;pointer-events:auto;flex-shrink:1}
.episode-conversation #choicePanel:not(:empty){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:10px;overflow:visible}
.episode-conversation #choicePanel::before{grid-column:1/-1;margin:0;min-width:0}
.episode-conversation .story-choice{width:100%;min-width:0;max-width:none;min-height:72px;padding:14px 20px}
.inspection-header>div>p,.case-notebook header small{font:400 .8125rem/1.65 var(--ng-serif)!important;letter-spacing:.08em!important}
@media(max-width:760px),(max-height:650px){.episode-conversation{bottom:18px;max-height:calc(100dvh - 100px);gap:10px}.episode-conversation #dialoguePanel{max-height:26dvh;padding:16px 20px}.episode-conversation #investigationPanel{max-height:37dvh}.episode-conversation #choicePanel:not(:empty){grid-template-columns:minmax(0,1fr)}.episode-conversation .story-choice{min-height:56px;padding:10px 16px}}
.episode-conversation #choicePanel:not(:empty){grid-template-columns:repeat(2,minmax(0,1fr))}
.episode-conversation #choicePanel.is-deducing{grid-template-columns:repeat(3,minmax(0,1fr))}
.episode-conversation #choicePanel:has(>button:only-child){grid-template-columns:minmax(0,1fr);max-width:600px}
.episode-conversation .story-choice{background:linear-gradient(105deg,rgba(31,35,29,.97),rgba(22,27,24,.94))!important}
.episode-conversation .story-choice:hover{background:linear-gradient(105deg,#3e4030,#252d26)!important}
.episode-conversation #choicePanel::before{color:#eee3cc;text-shadow:0 2px 5px #000}
@media(max-width:760px),(max-height:650px){.episode-conversation #choicePanel:not(:empty),.episode-conversation #choicePanel.is-deducing{grid-template-columns:minmax(0,1fr)}}

/* WebGL fallback must expose real controls, not inert location labels. */
body.flat:has(#flatPlan) .move-pad,body.flat:has(#flatPlan) .route-assist{display:none!important}
.flat-plan button{font:400 1.125rem/1.65 var(--ng-serif);padding:24px;border:0;border-bottom:1px solid var(--ng-line);background:#1e261ff2;min-height:64px;text-align:center}
.flat-plan button:hover{background:#343d2e}
@media(max-width:760px){.flat-plan{flex-direction:column;inset:30% 6% 18%;gap:12px}.flat-plan button{width:min(360px,100%);font-size:1rem;padding:14px}.flat-plan i{display:none}}

.lock-gesture,.inspection-assist summary,.lock-engraving span{font:400 .875rem/1.65 var(--ng-serif)!important}
.object-dialog:has(.lock-study)>p{font-size:1rem;line-height:1.8}
