.scene-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:20px;margin:18px 0}.scene-heading h2{margin:4px 0}.scene-description{max-width:85ch;white-space:pre-wrap}.scene-map{display:block;width:100%;padding:0;overflow:hidden;background:#17221d;border:1px solid #6e7054;border-radius:10px}.scene-map svg{display:block;width:100%;height:auto;max-height:560px;object-fit:contain}.scene-map+.toolbar{margin-top:12px}.scene-next{background:linear-gradient(145deg,#23382f,#19241f);border:1px solid #746947;border-radius:10px;padding:20px}.scene-next h3{font-size:24px}.scene-next li{color:#a9b5a8}.scene-next li[aria-current]{color:#f3d596;font-weight:700}.scene-actors,.scene-offers,.scene-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:12px}.scene-actor{display:flex;align-items:center;gap:10px;text-align:left;min-width:0;background:#182820;border-color:#53624c}.scene-actor>span:last-child{display:grid;min-width:0}.scene-actor strong{overflow-wrap:anywhere}.scene-actor .player-identity{flex-shrink:0}.scene-dialog{width:min(920px,95vw);max-height:90dvh;padding:24px;overflow:auto;background:#19271f;color:#e9e2d0;border:1px solid #a38a55;border-radius:12px}.scene-dialog::backdrop{background:#08130edb}.scene-dialog form{padding:12px 0;border-top:1px solid #40503f}.scene-dialog textarea{width:100%;min-height:70px;resize:vertical;background:#101c14;color:inherit;border:1px solid #55644b;border-radius:5px;font:inherit;padding:8px}.scene-dialog h4{margin:0;color:#e2c68b}.scene-mini-card{padding:14px;background:#152219;border:1px solid #475441;border-radius:7px;margin:8px 0;overflow-wrap:anywhere}.scene-mini-card button{margin:5px 5px 0 0}.scene-callout{border-left:3px solid #cfb575;background:#253328;padding:14px;border-radius:5px}.scene-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.exploration-bar{padding:10px 0}.exploration-bar [aria-pressed=true]{background:#c9af70;color:#172019}.exploration-bar [data-measure-result]{max-width:70ch;font-size:13px}.result-card{display:flex;gap:12px;padding:12px;border:1px solid #465342;background:#1a2a22;border-radius:8px;min-width:0}.result-card strong{display:block}.result-card p{margin:3px 0;font-size:13px;overflow-wrap:anywhere}.result-card small{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#c9b985}.result-card[data-kind=damage],.result-card[data-kind=gear]{border-left:3px solid #c77d65}.result-card[data-kind=heal],.result-card[data-kind=repair]{border-left:3px solid #9cbd88}.result-art{width:64px;height:76px;flex:0 0 64px;display:grid;place-items:center;background:radial-gradient(ellipse,#58725255,transparent 70%)}.result-art img,.result-art svg{width:64px;height:76px;object-fit:contain}.result-flash{animation:result-pulse .65s ease-out}.result-flash[data-result-kind=damage],.result-flash[data-result-kind=gear]{animation:result-hit .55s ease-out}.result-flash[data-result-kind=heal]{animation:result-heal .9s ease-out}#scene-feedback-feed{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:12px}#scene-panel{padding:20px;background:#17221d;border:1px solid #394b3e;border-radius:12px}#scene-panel>h3{margin-top:25px}.portrait-presets{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.portrait-presets button{width:78px;padding:5px;font-size:10px}.portrait-presets img{display:block;width:66px;height:70px;object-fit:contain}@keyframes result-pulse{0%{filter:brightness(1.7)}100%{filter:brightness(1)}}@keyframes result-hit{15%,45%{transform:translateX(-3px);filter:sepia(.5) saturate(1.7)}30%,60%{transform:translateX(3px)}100%{transform:translateX(0)}}@keyframes result-heal{0%{filter:brightness(1.9) drop-shadow(0 0 7px #aada8b)}100%{filter:none}}html[data-reduced-motion=true] *,html[data-reduced-motion=true] *::before,html[data-reduced-motion=true] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){html:not([data-reduced-motion=false]) .result-flash{animation:none}}@media(max-width:850px){.scene-layout{grid-template-columns:1fr}.scene-map svg{max-height:400px}.scene-dialog{padding:16px}#scene-panel{padding:12px}.scene-heading h2{font-size:24px}}@media(max-width:420px){.scene-actors,.scene-offers{grid-template-columns:1fr}}

body[data-active-view=scene] #session-flow,body[data-active-view=scene] #session-roster{display:none}.scene-next{align-self:start}@media(max-width:650px){.workspace-nav{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;max-width:100%;gap:6px!important;padding:8px!important;scroll-snap-type:x proximity}.workspace-nav>button{flex:0 0 auto!important;white-space:nowrap;scroll-snap-align:start}.scene-layout{display:flex;flex-direction:column}.scene-next{width:100%}}

.player-entry{width:min(640px,calc(100vw - 32px));max-height:85dvh;overflow:auto}.entry-choices{display:grid;gap:12px}.entry-choices article{padding:14px;border:1px solid #897752;border-radius:8px}.player-entry .toolbar{flex-wrap:wrap}

@media(max-width:850px){.scene-next{grid-row:1;order:-1}}
