/* Ink-cut gothic game interface, not a rounded dashboard. */
:root{--head:65px;--rail:200px;--chat:300px;--ink:#060504;--blood:#951c16;--bone:#eee0b7}
body[data-theme=iron]{--bg:#080706;--dark:#0b0a08;--panel:#12100d;--panel2:#211b13;--soft:#39291b;--line:#4e3b26;--gold:#d5ae63;--text:#efe0bd;--muted:#ad9c79;--accent:#8c6135;--red:#e06142}
body{background:var(--bg)}header.top{background:#090807;border-bottom:3px solid var(--accent);box-shadow:0 3px #000}.brand b{font-family:Georgia,'Batang',serif;font-weight:900;letter-spacing:.07em;font-size:27px;color:var(--bone);text-shadow:2px 2px #000,3px 3px #4f321d}.brand img{filter:drop-shadow(2px 3px #000);object-fit:contain}.header-inscription{display:none}button{border-radius:0;background:#18140e;border:1px solid var(--line);box-shadow:inset 0 0 0 2px #080706;color:var(--text);font-weight:600}button.primary{background:linear-gradient(110deg,#541510,#8a2518 60%,#3e100a);border:1px solid #b58b4e;color:#f9e9c8;box-shadow:inset 0 0 0 2px #130905,2px 3px 0 #000;text-shadow:1px 2px #000}button:hover:not(:disabled){border-color:var(--gold);color:#ffedc4}button:disabled{opacity:.42;filter:grayscale(.6)}.sidebar,.chat,.workspace{border:0;border-radius:0;box-shadow:none;background:var(--bg)}body[data-layout] .shell{gap:8px;padding:8px}.sidebar{border-right:1px solid var(--line);padding:12px 8px}.sidebar nav button{font-size:14px;min-height:40px;padding:8px 11px;color:var(--text);border:0;border-left:3px solid transparent}.sidebar nav button.active{background:linear-gradient(90deg,#7b1a13,#35120c 60%,transparent);border-left-color:var(--gold);color:#f7e4bb;text-shadow:1px 2px #000}.rail-heading h2,.chat-heading h2,.page h1,.section-title h2{color:var(--bone);font-weight:900}.rail-heading{border-bottom:1px solid var(--accent)}.chat{background:#0c0a08;border-left:1px solid var(--line);padding:9px}.chat-heading{border-bottom:1px solid var(--accent)}.log{background:transparent;border-bottom:1px solid #35291b;border-left:0}.chat #chatTabs button.active{background:#5a2117;color:var(--bone)}.settings-card,.item,.room-row,.home-card{border:1px solid var(--line);background:linear-gradient(140deg,#1a150f,#100d0a);box-shadow:2px 3px #000}.hero{min-height:450px;border:0;background:linear-gradient(90deg,#080605f4,#120a06c4 35%,#160a060d 100%),url('battlefield.svg') center/cover;box-shadow:0 5px #000}.hero:after{inset:0;border:0;background:linear-gradient(0deg,#060504 0%,transparent 20%),linear-gradient(180deg,#060504 0%,transparent 18%)}.hero-content{position:relative;z-index:2}.hero h1{font-size:clamp(48px,7vw,98px);font-family:Georgia,'Batang',serif;font-weight:900;color:#f1dfae;letter-spacing:-.035em;text-shadow:4px 4px #000,6px 6px #4e1a11}.hero h1 span{color:#d5b776;letter-spacing:.12em}.home-card{border-left:3px solid #873220;border-top:1px solid var(--line)}.home-symbol{color:#d9b36c!important}.statstrip{display:none}.hero-seal{filter:drop-shadow(0 3px #000);opacity:.5}
/* Battle stage: characters share a ground plane, not individually boxed cards. */
body[data-mode=battle] .workspace{background:#080604;overflow:auto}body[data-mode=battle] #view{display:flex;flex-direction:column;min-height:0} .battle-top{padding:12px 16px;background:#100c08;border:0;border-bottom:1px solid var(--accent)}.battle-top h2{font-family:var(--serif);font-weight:900;font-size:24px;letter-spacing:.02em;color:var(--bone)}.arena{position:relative;min-height:420px;isolation:isolate;background:#18120c url('battlefield.svg') center/cover;align-items:stretch;justify-content:flex-end;overflow:auto;border:0;border-bottom:3px solid #000}.arena:before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,#0008,transparent 24%,transparent 55%,#000c 91%,#000)}.arena:after{background:radial-gradient(ellipse at center,transparent 40%,#0007 100%);pointer-events:none;z-index:1}.arena>.bg{object-fit:cover;z-index:0}.teams{position:relative;z-index:2;display:flex;flex:1 0 auto;align-items:end;justify-content:center;padding:14px 12px 12px;gap:20px;min-width:610px;min-height:100%;width:100%;margin-top:auto}.team{flex:1 1 0;min-width:0;display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:2px;align-items:end}.unit,.unit.current,.unit.selected,.unit.target,.unit.empty{position:relative;background:none;border:0;box-shadow:none;padding:0 3px;min-width:0;min-height:0;overflow:visible;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch}.figure{height:clamp(185px,33vh,340px);position:relative;display:flex;align-items:flex-end;justify-content:center;isolation:isolate;overflow:visible}.figure .portrait{position:relative;z-index:2;width:100%;height:100%;object-fit:contain;object-position:bottom;transform-origin:center bottom;filter:drop-shadow(3px 4px 0 #000) drop-shadow(0 4px 4px #000);pointer-events:none;max-width:none}.ground-shadow{position:absolute;left:5%;right:5%;height:12%;bottom:0;background:radial-gradient(ellipse,#000e 25%,#0008 55%,transparent 74%);z-index:0}.unit.current .ground-shadow,.unit.selected .ground-shadow{background:radial-gradient(ellipse,#ab7d3b80 0%,#bfa15c 30%,#0009 43%,transparent 70%);height:15%}.unit.current .figure:after,.unit.target .figure:after{content:'';position:absolute;bottom:0;left:12%;right:12%;height:5px;background:#cfae68;clip-path:polygon(0 0,90% 0,100% 100%,6% 100%);z-index:3;box-shadow:0 0 9px #d4a553}.unit.target .figure:after{background:#d23b23}.unit.target .portrait{filter:drop-shadow(0 0 5px #b02b1d) drop-shadow(3px 4px #000)}.unit-hud{position:relative;z-index:4;min-height:80px;padding:2px 1px;background:linear-gradient(180deg,#090605cc,#060504f4);display:flex;flex-direction:column;gap:2px}.unitname{font-family:var(--serif);font-weight:800;font-size:11px;line-height:1.2;color:#f2e6c5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.hpbar{height:8px;border:1px solid #a38a56;box-shadow:0 0 0 1px #000;background:#220c09}.hpbar span{background:linear-gradient(180deg,#b72e1c 0%,#862216 50%,#4d0e09 100%);border:0}.hptext{font-size:10px;font-weight:800;text-align:center}.stress{display:flex;gap:2px;min-height:4px}.stress i{height:4px}.stress.enemy-placeholder{visibility:hidden}.tokens{min-height:25px;gap:2px;justify-content:center;flex-wrap:wrap}.token{width:23px;height:23px;padding:1px;border:1px solid #a2ae6d;background:#121a0c;color:#dbe2a7;box-shadow:1px 2px #000}.token.bad{background:#290e09;border-color:#ce5a37;color:#f1a87a}.token svg{width:16px;height:16px}.token b{font-size:10px;bottom:-2px;right:0}.rank{font-size:9px;text-align:center;color:#907d5a}.unit.empty{align-self:end;height:80px;opacity:.4;cursor:pointer}.empty-mark{font-size:20px}.expanded .figure{height:clamp(88px,17vh,174px)}.expanded .unit-hud{min-height:69px}.unit.dead .portrait{opacity:.35;filter:grayscale(1)}body[data-layout=cinema] .arena{min-height:300px}body[data-layout=cinema] .figure{height:clamp(150px,27vh,250px)}body[data-layout=cinema] .expanded .figure{height:clamp(80px,12vh,125px)}body[data-layout=cinema] .figure .portrait{height:100%}#inspector{background:#0d0a07;border-top:2px solid var(--accent);padding:10px 14px}.skill{background:linear-gradient(150deg,#302518,#0a0805);border:1px solid #a37e43;min-width:66px;min-height:63px;font-size:11px}.skill .symbol{color:#e7c678;font-size:23px}.skill.active{background:#6e2114;box-shadow:0 0 0 2px #000,0 0 0 3px #dcb56c}.portrait-preview-box{height:200px;overflow:hidden;display:flex;flex-direction:column;align-items:center;background:#080706 url('battlefield.svg') center/cover;position:relative}.portrait-preview-box img{width:150px;height:165px;object-fit:contain;transform-origin:center bottom}.portrait-preview-box span{z-index:2;background:#000b;padding:2px 10px}
/* Player's published stage. No editor rails or battlefield controls. */
body.player-view .sidebar,body.player-view #undo,body.player-view .combat-controls,body.player-view .rail-bottom,body.player-view .chat-note,body.player-view .header-inscription{display:none!important}body.player-view[data-layout] .shell{display:grid!important;grid-template-columns:minmax(0,1fr) var(--chat)!important;grid-template-areas:'work chat'!important;grid-template-rows:minmax(0,1fr)!important;gap:0!important;padding:0!important;height:calc(100dvh - var(--head))}body.player-view[data-mode=home] .shell,body.player-view[data-mode=settings] .shell,body.player-view[data-mode=story]:not(.spectator) .shell{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'work'!important}body.player-view[data-mode=home] .chat,body.player-view[data-mode=settings] .chat,body.player-view[data-mode=story]:not(.spectator) .chat{display:none!important}body.player-view.chat-collapsed[data-layout][data-mode=story].spectator .shell{grid-template-columns:minmax(0,1fr) 42px!important;grid-template-areas:'work chat'!important}body.player-view[data-mode=story].spectator .chat{display:flex!important}body.player-view.chat-collapsed[data-mode=story].spectator .chat{display:block!important}body.player-view #inspector:empty{display:none}body.player-view .workspace{padding:0;border:0;overflow:auto}body.player-view .home{max-width:1500px;margin:auto;padding:20px}.player-home .hero{min-height:min(75vh,640px)}.player-account{max-width:680px;margin:0 auto;width:100%}.player-stage-wrap{display:flex;flex-direction:column;min-height:100%;width:100%;background:#080605}.scene-stage{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:16/9;width:100%;background:#090705;min-height:0}.player-stage-wrap .scene-stage{flex:1 0 auto;max-height:calc(100dvh - var(--head) - 5px)}.stage-plane{position:absolute;inset:0;overflow:hidden;transform-origin:center;isolation:isolate}.stage-bg,.stage-default{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;pointer-events:none}.stage-default{background:#0c0906 url('battlefield.svg') center/cover}.stage-shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse,transparent 48%,#0008 100%),linear-gradient(180deg,#0008,transparent 20%,transparent 75%,#000c)}.stage-title{position:absolute;top:3%;left:4%;z-index:105;pointer-events:none;text-shadow:2px 2px #000,3px 3px #000}.stage-title span{color:#d6ae68;font-size:12px;letter-spacing:.13em}.stage-title h2{font-family:var(--serif);font-size:clamp(20px,3vw,42px);color:#f3dfb2;font-weight:900}.stage-object{position:absolute;display:grid;place-items:center;transform-origin:center;user-select:none}.stage-object img{width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(2px 3px 2px #0008)}.stage-text{white-space:pre-wrap;text-shadow:2px 2px #000;color:var(--bone);font-weight:bold;text-align:center;overflow-wrap:anywhere}.narrative{position:absolute;z-index:106;bottom:3%;left:4%;right:4%;padding:12px 24px 20px;background:linear-gradient(105deg,#080605f5,#140d08ee);border-top:2px solid #c6a66a;border-bottom:1px solid #71502c;box-shadow:0 4px #000;pointer-events:none;max-height:40%;overflow:auto}.narrative-speaker{font-family:var(--serif);font-size:15px;color:#d6af64;font-weight:900;margin-bottom:3px}.narrative-body{font-size:clamp(14px,1.55vw,20px);line-height:1.65;color:#f3e6c8;white-space:pre-wrap}.clue-board{padding:12px 18px;background:#0b0906;border-top:1px solid var(--accent)}.clue-board h3{color:#dbbd82;font-size:16px}.clue{padding:7px 10px;border-bottom:1px solid var(--line);color:var(--text)}.clue summary{cursor:pointer;color:#e1c58e;font-weight:bold}.clue img{max-width:100%;max-height:320px;object-fit:contain}.clue p{white-space:pre-wrap}
/* Director workspace */
.director{display:flex;flex-direction:column;min-height:0;gap:7px;padding:5px}.director-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px;border-bottom:1px solid var(--accent)}.director-top h2{font-family:var(--serif);font-weight:900;font-size:24px}.director-tools{display:flex;flex-wrap:wrap;align-items:center;gap:5px}.director-tools select{min-width:150px;flex:1}.director .scene-stage{border:1px solid var(--line)}.stage-edit .stage-object{cursor:grab;border:1px dashed transparent;touch-action:none}.stage-edit .stage-object:hover,.stage-edit .stage-object.picked{outline:1px solid #d8ba72;border-color:#d8ba72}.stage-edit .stage-object.locked{cursor:not-allowed}.resize-grip{position:absolute;right:0;bottom:0;width:12px;height:12px;background:#d8ba72;cursor:nwse-resize;display:none}.stage-object.picked .resize-grip,.stage-object:hover .resize-grip{display:block}.empty-stage{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--line);background:linear-gradient(#080605b8,#080605e8),url('battlefield.svg') center/cover;text-align:center;padding:20px}.director-bottom{display:grid;grid-template-columns:1fr 1fr;gap:12px}.director-bottom section{min-width:0}.layer-list{display:flex;gap:5px;flex-wrap:wrap;max-height:170px;overflow:auto;margin-top:6px}.clue-row{display:flex;gap:4px;align-items:center}.clue-row button{min-height:30px}.story-bottom{display:flex;gap:12px;align-items:center}.mapstage .mapobj{touch-action:none}.mapstage .mapobj img{pointer-events:none}.mapstage .mapobj:not(.selected):not(:hover){border-color:transparent}.mapstage .mapobj:not(.selected):not(:hover) span{opacity:0}
@media(max-width:820px){body.player-view[data-layout] .shell,body.player-view[data-layout][data-mode=story].spectator .shell{display:flex!important;flex-direction:column!important;height:auto!important;min-height:calc(100dvh - 65px)}body.player-view[data-layout] .workspace{min-height:0!important;width:100%;overflow:visible}.player-stage-wrap .scene-stage{min-height:240px;max-height:none;flex:none}.narrative{padding:8px 12px}.director-bottom{grid-template-columns:1fr}.figure{height:150px}.expanded .figure{height:90px}.arena{min-height:280px}.teams{min-width:580px}.director-top{flex-wrap:wrap}.player-home .hero{min-height:420px}.player-view .header-right #appearance{display:none}}
/* Override legacy nav visibility even if global site settings refresh in the background. */
#nav [data-mode=battle],#nav [data-mode=map],.home-card[data-go=battle],.home-card[data-go=map]{display:none!important}body.player-view #nav [data-mode=admin],body.player-view #nav [data-mode=library]{display:none!important}.stage-object.secret-object{outline:1px dashed #c44c38;opacity:.45!important}.stage-edit .stage-plane{touch-action:none;cursor:grab}.stage-edit .stage-object{cursor:move}.narrative{pointer-events:auto}.stage-edit .narrative{pointer-events:none}.test-label{font-family:var(--serif);color:#d6aa65;font-size:10px;letter-spacing:.16em;background:#37150e;padding:4px 8px;white-space:nowrap}.battle-top{flex-wrap:wrap;gap:8px}.initiative-strip{display:flex;align-items:center;gap:3px;overflow:auto;max-width:100%;flex:1 0 100%;padding:2px 3px 4px;background:#090705;border-top:1px solid #4c3925}.initiative-unit{min-width:48px;width:72px;padding:2px;display:grid;grid-template-rows:31px auto;place-items:center;flex-shrink:0;border:1px solid #584d36;box-shadow:none;background:#16130e;gap:2px}.initiative-unit img{height:31px;width:45px;object-fit:cover;object-position:center top;filter:drop-shadow(1px 1px #000)}.initiative-unit span{max-width:65px;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.initiative-unit.foe{border-color:#7d3022}.initiative-unit.acting{background:#7e2519;border-color:#d5b168}.initiative-unit.acting:after{content:'';height:2px;width:100%;background:#e4c784}.arena .unit .portrait{max-height:none}.director-view[data-layout=left] .shell{grid-template-columns:var(--rail) minmax(0,1fr) var(--chat)!important;grid-template-areas:'rail work chat'}.director-view[data-layout=right] .shell{grid-template-columns:var(--chat) minmax(0,1fr) var(--rail)!important;grid-template-areas:'chat work rail'}.director-view[data-layout=top] .shell{grid-template-columns:minmax(0,1fr) var(--chat)!important;grid-template-areas:'rail rail' 'work chat';grid-template-rows:auto minmax(0,1fr)}.director-view[data-layout=cinema] .shell{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'rail' 'work' 'chat';grid-template-rows:auto minmax(420px,1fr) 190px}.director-view .chat{display:flex!important}body.director-view.chat-collapsed[data-layout=left] .shell{grid-template-columns:var(--rail) minmax(0,1fr) 42px!important}body.director-view.chat-collapsed[data-layout=right] .shell{grid-template-columns:42px minmax(0,1fr) var(--rail)!important}body.director-view.chat-collapsed[data-layout=top] .shell{grid-template-columns:minmax(0,1fr) 42px!important}body.director-view.chat-collapsed[data-layout=cinema] .shell{grid-template-rows:auto minmax(420px,1fr) 42px}body.director-view.chat-collapsed .chat{display:block!important}.player-view[data-layout=cinema][data-mode=story].spectator .chat{display:flex!important;flex-direction:column}.player-view[data-layout=cinema][data-mode=story].spectator #chatTabs{display:flex}.player-view[data-layout=cinema][data-mode=story].spectator #chatForm{display:flex;flex-direction:column}.player-view[data-layout=cinema][data-mode=story].spectator #logs{flex:1}.player-view[data-layout=right][data-mode=story].spectator .shell{grid-template-columns:var(--chat) minmax(0,1fr)!important;grid-template-areas:'chat work'!important}.player-view[data-layout=right][data-mode=story].spectator.chat-collapsed .shell{grid-template-columns:42px minmax(0,1fr)!important}.player-view[data-layout=cinema][data-mode=story].spectator .shell{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'work' 'chat'!important;grid-template-rows:minmax(0,1fr) 205px!important}.player-view[data-layout=cinema][data-mode=story].spectator.chat-collapsed .shell{grid-template-rows:minmax(0,1fr) 42px!important}.player-view[data-layout=cinema][data-mode=story].spectator .scene-stage{max-height:none}.player-view[data-layout=cinema][data-mode=story].spectator .chat{overflow:auto}.player-view[data-layout=cinema][data-mode=story].spectator #logs{min-height:55px}.player-view[data-layout=cinema][data-mode=story].spectator #chatForm textarea{min-height:35px}.player-view[data-layout=cinema][data-mode=story].spectator .chat-heading{padding:0}.player-view[data-layout=cinema][data-mode=story].spectator .chat{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(180px,28%);grid-template-rows:auto auto minmax(0,1fr)}.player-view[data-layout=cinema][data-mode=story].spectator .chat #chatForm{grid-column:2;grid-row:2/4}.player-view[data-layout=cinema][data-mode=story].spectator .chat #logs{grid-column:1;grid-row:3}.player-view[data-layout=cinema][data-mode=story].spectator .chat #chatTabs{grid-column:1;grid-row:2}.player-view[data-layout=cinema][data-mode=story].spectator.chat-collapsed .chat{display:block!important}.player-view .scene-stage:focus-visible{outline:2px solid var(--gold)}
@media(max-width:820px){body.director-view[data-layout] .shell,body.player-view[data-layout][data-mode=story].spectator .shell{display:flex!important;flex-direction:column!important;height:auto!important}.player-view[data-layout=cinema][data-mode=story].spectator .chat{display:flex!important;flex-direction:column}.initiative-strip{max-width:calc(100vw - 30px)}.director .scene-stage{min-height:240px}}
/* The actual encounter workbench has its own optional wide game HUD. */
body.combat-focus[data-layout] .shell{grid-template-columns:minmax(0,1fr) var(--chat)!important;grid-template-areas:'work chat'!important;grid-template-rows:minmax(0,1fr)!important;padding:0!important;gap:0!important}body.combat-focus[data-layout] .sidebar{display:none!important}body.combat-focus[data-layout=right] .shell{grid-template-columns:var(--chat) minmax(0,1fr)!important;grid-template-areas:'chat work'!important}body.combat-focus.chat-collapsed[data-layout] .shell{grid-template-columns:minmax(0,1fr) 42px!important}body.combat-focus.chat-collapsed[data-layout=right] .shell{grid-template-columns:42px minmax(0,1fr)!important}body.combat-focus[data-layout=cinema] .shell{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'work' 'chat'!important;grid-template-rows:minmax(460px,1fr) 185px!important}body.combat-focus.chat-collapsed[data-layout=cinema] .shell{grid-template-rows:minmax(460px,1fr) 42px!important}body.combat-focus .arena .teams{padding:4px 18px 6px;gap:24px}body.combat-focus .figure{height:clamp(150px,35vh,350px)}body.combat-focus .expanded .figure{height:clamp(90px,15vh,175px)}body.combat-focus .battle-top{padding:8px 16px;justify-content:space-between}.battle-command{display:flex;gap:4px;flex-wrap:wrap;flex-basis:100%;justify-content:flex-start;border-top:1px solid #5a4027;padding-top:5px}.battle-command button{min-height:27px;font-size:11px;padding:4px 10px}.battle-top .initiative-strip{background:linear-gradient(90deg,#2b180f,#100b07 40%,#0a0806);clip-path:polygon(0 0,100% 0,100% 87%,98% 100%,0 100%)}body.combat-focus .unit-hud{background:linear-gradient(180deg,#0a0705dd,#070503f5);clip-path:polygon(0 0,97% 0,100% 10%,100% 100%,5% 100%,0 89%);padding:5px 4px}.initiative-unit.acting{border:1px solid #e0c17b;box-shadow:inset 0 0 0 2px #31150d}.unit.current .unitname{color:#ffd18b}.figure .portrait{filter:drop-shadow(3px 3px 0 #000) drop-shadow(-1px -1px 0 #000) drop-shadow(2px 7px 3px #000)}.unit.target .figure .portrait{filter:drop-shadow(0 0 3px #a82b14) drop-shadow(3px 3px #000)}.battle-top h2{letter-spacing:-.05em;text-shadow:2px 3px #000,3px 4px #542b17}.skill .symbol{font-size:25px}.skill{clip-path:polygon(0 0,94% 0,100% 7%,100% 100%,6% 100%,0 92%);min-width:74px}.skill.active{background:linear-gradient(160deg,#96291b,#27100b)}body.preview-view[data-layout] .shell{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'work'!important;grid-template-rows:minmax(0,1fr)!important;padding:0!important;gap:0!important}body.preview-view .sidebar,body.preview-view .chat{display:none!important}.preview-view .workspace{overflow:auto}.preview-view .player-stage-wrap .scene-stage{max-height:calc(100dvh - 125px)}.preview-view .story-bottom{justify-content:center}.director .scene-stage{cursor:grab}.director .narrative{pointer-events:none}.player-view .header-right #undo{display:none!important}.player-view .header-right{gap:5px}
@media(max-width:820px){body.combat-focus[data-layout] .shell{display:flex!important;flex-direction:column!important;min-height:calc(100dvh - 65px);height:auto!important}body.combat-focus .figure{height:180px}body.combat-focus .expanded .figure{height:95px}.battle-command{max-width:100%}.battle-command button{flex:1 0 auto}.preview-view .player-stage-wrap .scene-stage{max-height:none}}
/* Keep scene coordinates consistent across GM and player viewport sizes. */
.player-stage-wrap{justify-content:center;align-items:center}.player-stage-wrap .scene-stage{width:min(100%,calc((100dvh - var(--head) - 5px) * 1.777778));aspect-ratio:16/9;flex:none;max-height:none;min-height:0}.player-stage-wrap .clue-board{width:100%}.player-stage-wrap .scene-stage:has(+.clue-board){margin-top:0}.stage-object[data-clue-link]{cursor:pointer}.stage-object[data-clue-link]:hover,.stage-object[data-clue-link]:focus-visible{outline:2px solid #d6b06c;outline-offset:3px}.stage-object[data-clue-link]:after{content:'◇';position:absolute;right:4px;bottom:4px;background:#080605b8;border:1px solid #9c7640;padding:0 7px;color:#e3bc75;text-shadow:1px 2px #000}.preview-view .player-stage-wrap .scene-stage{width:min(100%,calc((100dvh - 125px) * 1.777778));max-height:none}body.player-view[data-layout=cinema][data-mode=story].spectator:not(.chat-collapsed) .scene-stage{width:min(100%,calc((100dvh - var(--head) - 210px) * 1.777778));max-height:none}
@media(max-width:820px){.player-stage-wrap .scene-stage,.preview-view .player-stage-wrap .scene-stage,body.player-view[data-layout=cinema][data-mode=story].spectator:not(.chat-collapsed) .scene-stage{width:100%;min-height:0;aspect-ratio:16/9;max-height:none}.director .scene-stage{min-height:0}}
.published-battle{display:flex;flex-direction:column;min-height:0;width:100%;height:100%;background:#090705}.published-battle .arena{flex:1;min-height:380px}.published-battle .figure{height:clamp(130px,32vh,340px)}.published-battle .expanded .figure{height:clamp(80px,15vh,175px)}.published-battle .unit{cursor:default}.published-battle .unit-hud{background:#0a0705dd}.published-battle .unit:hover{background:transparent;outline:0}.published-battle .empty{opacity:0}.published-battle .published-status{padding:10px 16px;color:var(--muted);background:#100c08;border-top:1px solid var(--line);font-size:12px}.published-battle .initiative-strip{padding:4px 10px}.published-battle .battle-top{display:flex;justify-content:space-between;align-items:center}.published-battle .teams{padding:12px 20px 8px}
/* Keep the director's controls within reach rather than below a full-height illustration. */
body.director-view .combat-controls{display:none!important}body.director-view .director .scene-stage{width:min(100%,calc(52vh * 1.777778));height:auto;aspect-ratio:16/9;min-height:0;max-height:52vh;align-self:center;flex:none}body.director-view .director-bottom{max-height:26vh;overflow:auto}body.director-view .workspace{overflow:auto}body.director-view .director .clue-board{max-height:100px;overflow:auto}body.director-view .narrative-body{font-size:clamp(14px,1.25vw,19px)}@media(max-width:820px){body.director-view .director .scene-stage{width:100%;max-height:none}body.director-view .director-bottom{max-height:none}}
