/* Full-screen stage with compact controls: every action leaves actors in view. */
#error{top:160px;bottom:auto!important;left:auto!important;right:12px;transform:none!important;width:min(470px,calc(100% - 24px));display:flex;align-items:center;justify-content:space-between;gap:15px}#error button{color:white;border-color:#fff9;min-height:40px;font-size:12px}
#conversation{position:absolute;z-index:6;top:190px;left:50%;transform:translateX(-50%);display:flex;gap:6px;max-width:95%;padding:5px;border-radius:8px;background:#172c3bde}#conversation:empty{display:none}#conversation button{background:#fff5de;font-size:12px;min-height:39px}.cinematic #conversation{display:none}@media(max-width:600px){#conversation{top:245px;width:290px}#conversation button{flex:1}}
.world-tools button{position:absolute;z-index:2;transform:translateX(-50%);font-size:11px;min-height:30px;padding:4px 9px;background:#062642d9;border:1px solid #f7efbc77;color:#fff9e9;border-radius:7px;white-space:nowrap}.world-tools button:hover{background:#0b3557}.speech{display:flex;align-items:center;gap:7px}.speech canvas{width:63px;height:67px;flex:none}.speech>div{min-width:90px}.cinematic .decision{opacity:0;pointer-events:none;transform:translateY(20px)}.decision{transition:opacity .25s,transform .25s}.cinematic .world-tools{visibility:hidden}
.rule-card p{font-size:12px!important;margin:2px 0!important;max-width:none!important}.rule-card b{display:inline-block;min-width:78px;color:#9b432d}.rule-card a{font-size:10px;color:#336588}.rule-card{border-left:3px solid #bd6344;padding-left:10px}
body{height:100dvh;overflow:hidden;padding:0;background:#132633}
.topbar{position:absolute;inset:0 0 auto;height:66px;z-index:4;border:0;padding:10px 24px;background:linear-gradient(#122330c9,transparent);color:#fff8e8;pointer-events:none}.topbar>*{pointer-events:auto}.brand{font-size:22px;text-shadow:0 2px 5px #172d3c}.brand span{font-size:12px;border-color:#ffffff66}.settings button{background:#062642df;border-color:#eff0d444;color:#fff8e8;border-radius:8px}
#game{display:block;position:relative;flex:1;width:100%;height:100%;min-height:0}.world{position:absolute;inset:0;height:100%;max-height:none;min-height:0}#scene{cursor:pointer}
.hud{inset:73px 22px auto;justify-content:flex-end;gap:7px;z-index:3}.hud>button{flex:none;width:165px;background:#f6f0e3ed;border-radius:9px!important;padding:9px 13px;box-shadow:0 3px 12px #06264233}.hud strong{font-size:23px}.hud span{font-size:11px;min-height:0}.meter{height:3px}
.decision{position:absolute;bottom:68px;left:24px;right:24px;z-index:5;border:1px solid #f9e9be69;background:#f8f1e5f5;border-radius:13px;padding:17px 22px;overflow:visible;min-height:0;box-shadow:0 8px 25px #11243240}.decision #content{display:flex;gap:22px;align-items:center}.task-copy{flex:1;min-width:0}.task-copy h1{font-size:24px;margin:0 0 6px;max-width:none}.task-copy p{font-size:14px;margin:0;line-height:1.4;max-width:55ch}.eyebrow{display:block;font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:#336588;margin-bottom:5px}.task-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end;max-width:44%}.task-actions .primary,.task-actions .secondary{width:auto;margin:0;min-height:44px;font-size:14px;padding:10px 16px}.primary{background:var(--coral);border-color:var(--coral);color:var(--ink)}.primary:hover{background:#ff9a80;border-color:#ff9a80}.text-btn{font-size:12px;padding:6px;min-height:36px}.task-actions>.note{width:100%;text-align:right;font-size:11px!important}.offers{display:flex;gap:7px;flex:1.15}.choice{border:1px solid #9eaa9580;border-radius:7px;padding:11px 12px;min-width:0;font-size:13px;line-height:1.35;min-height:68px;background:#fff8ea}.choice small{display:block;font-size:12px;color:inherit;margin-top:4px}.choice.selected{background:#dfe9d8;border:2px solid #305e7e;padding:10px 11px}.position-controls{margin:7px 0 0;gap:5px;align-items:center}.position-controls span{font-size:11px}.position-controls button{flex:none;padding:5px 10px;min-height:32px;font-size:12px}.stars{font-size:21px;letter-spacing:2px}
.bottom{position:absolute;bottom:0;left:0;right:0;min-height:60px;z-index:5;border:0;background:linear-gradient(transparent,#11222ef5);color:#fff9e9;gap:12px;padding:8px 18px max(8px,env(safe-area-inset-bottom))}.bottom button{font-size:13px;min-height:40px;padding:7px 17px;border-radius:6px}.bottom button:hover{background:#ffffff20}.bottom button[aria-current=page]{color:#fff9e9;border:0;background:#fff5d921}.bottom .more{display:block}
.scene-label{bottom:auto;top:152px;right:24px;left:auto}.scene-label span{display:none}.scene-label button{font-size:11px;padding:4px 9px;min-height:30px;background:#152836bc;color:white;border-color:#ffffff55}.art-status{top:80px;left:24px;right:auto;bottom:auto;border-radius:5px;background:#172d3d9c;color:#fff8e9;padding:6px 10px;font-size:11px}
.speech{position:absolute;transform:translate(-50%,-100%);width:max-content;max-width:320px;padding:12px 16px;background:#fff9e9f7;border:1px solid #fdf4d9;border-radius:13px;box-shadow:0 4px 15px #142d3740;font-size:17px;line-height:1.32;pointer-events:auto;cursor:pointer;z-index:2;min-height:66px}.speech::after{content:'';position:absolute;bottom:-10px;left:50%;border-width:10px 8px 0;border-style:solid;border-color:#fff9e9f7 transparent transparent}.speech b{font-size:10px;color:#326285;margin-bottom:4px;letter-spacing:.04em}.payment{top:152px;left:auto;right:380px;font-size:20px;z-index:4}.montage{top:160px;bottom:auto;left:50%;right:auto;transform:translateX(-50%);z-index:4;font-size:13px;background:#182f40e0;border-radius:8px;padding:5px 7px 5px 14px;white-space:nowrap}.montage button{min-height:33px;font-size:11px}.paused .world::after{content:'Пауза';position:absolute;inset:0;display:grid;place-items:center;background:#12243155;color:#fff9e9;font-size:30px;pointer-events:none;z-index:2}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#error{bottom:80px}
@media(max-width:900px){.brand span{display:none}.decision{left:12px;right:12px;padding:14px}.decision #content{gap:12px}.task-copy h1{font-size:20px}.task-copy p{font-size:12px}.task-actions{max-width:32%}.task-actions .primary{font-size:12px}.hud>button{width:140px}.offers{gap:4px}.choice{font-size:12px}}
@media(max-width:600px){.topbar{height:58px;padding:8px 12px}.brand{font-size:18px;max-width:190px}.settings button{font-size:10px;padding:6px;min-height:34px}.hud{inset:61px 10px auto;justify-content:stretch;gap:4px}.hud>button{width:auto;flex:1;padding:7px 9px}.hud strong{font-size:18px}.hud span{font-size:9px}.hud strong small{font-size:11px}.art-status{top:126px;left:12px;font-size:10px}.scene-label{top:123px;right:12px}.decision{bottom:59px;left:9px;right:9px;padding:12px;border-radius:11px}.decision #content{flex-wrap:wrap;gap:9px}.task-copy{flex:1 1 100%}.task-copy h1{font-size:19px;margin-bottom:4px}.task-copy p{font-size:12px;line-height:1.35}.eyebrow{display:none}.offers{flex:1 1 100%}.choice{min-height:54px;padding:8px 9px;font-size:12px}.choice.selected{padding:7px 8px}.choice small{font-size:11px;margin-top:3px}.task-actions{flex:1 1 100%;max-width:none;justify-content:flex-start;gap:5px}.task-actions .primary,.task-actions .secondary{font-size:12px;padding:8px 10px;min-height:39px}.task-actions>.note{width:auto;font-size:10px!important;text-align:left}.task-actions .text-btn{font-size:11px;min-height:32px}.position-controls{position:absolute;top:-40px;right:0;background:#f7f0e5ed;border-radius:7px;padding:3px 5px;box-shadow:0 3px 10px #06264222}.position-controls button{min-height:29px}.bottom{min-height:53px;gap:0;padding:4px 6px max(4px,env(safe-area-inset-bottom))}.bottom button{font-size:11px;padding:7px 8px}.speech{max-width:250px;font-size:14px;padding:10px 13px;min-height:54px}.speech b{font-size:9px}.montage{top:160px;font-size:11px;max-width:calc(100% - 20px);white-space:normal;gap:7px}.montage button{white-space:nowrap}.payment{top:122px;right:12px;font-size:17px;padding:7px 12px}dialog{--pad:20px}.dialog-head h2{font-size:23px}.dialog-head button{font-size:12px}}
@media(max-height:560px) and (min-width:601px){.topbar{height:48px}.hud{top:52px}.hud>button{padding:5px 10px}.hud strong{font-size:18px}.art-status{top:56px}.scene-label{top:121px}.decision{bottom:49px;padding:10px 15px}.task-copy h1{font-size:18px}.task-copy p{font-size:12px}.bottom{min-height:44px;padding:3px}.bottom button{min-height:36px}.montage{top:117px}.speech{font-size:14px;max-width:260px;padding:8px 12px}.position-controls{margin-top:4px}}

/* Review corrections: dialogue, answers and actors occupy separate regions. */
.montage{top:auto;bottom:76px;max-width:calc(100% - 28px)}
.conversing .decision #content{display:none}#conversation{position:static;transform:none;max-width:none;width:100%;padding:0;background:none;justify-content:center;gap:12px}#conversation button,#conversation button.primary{background:#062642;border-color:#062642;color:#fff9e9;min-height:44px;padding:10px 18px;font-size:14px}#conversation button.primary:hover{background:#0b3557;border-color:#0b3557}.rule-card{border:0;padding:0}.world-tools button{min-height:36px}.speech{max-width:350px}.decision{box-shadow:0 8px 25px #00000040}.speech{box-shadow:0 4px 15px #00000040}.meter i{transition:none}
@media(max-width:600px){.speech{max-width:calc(100vw - 24px);width:340px}.world-tools button{min-height:40px;font-size:11px;padding:6px 8px}#conversation button{flex:1;font-size:13px}.task-actions .primary,.task-actions .secondary{min-height:44px}}

/* The speaking portrait identifies the actor without a misleading scene pointer. */
.speech::after{display:none}
/* Clip caption (16.09): what is happening on the plot right now, above the montage bar while the camera holds the close-up. */
.clip-caption{position:absolute;left:50%;top:0;z-index:5;transform:translate(-50%,-100%);max-width:calc(100% - 32px);padding:8px 18px;border-radius:999px;background:#122330eb;color:#fff8e9;font-size:15px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;box-shadow:0 6px 18px #00000040}
@media(max-width:600px){.clip-caption{font-size:14px;padding:7px 14px}}
