.sim-screen-bar,.sim-teacher-screen{display:none}.simulation-mode:not(.solo-mode) .sim-screen-bar{position:fixed;inset:0 0 auto;height:42px;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:#1d3038;border-bottom:1px solid #4b626d;color:#dcebef;gap:12px}.sim-screen-bar strong{font-size:12px}.sim-view-buttons{display:flex;gap:4px}.sim-view-buttons button{font:inherit;min-height:31px;border:1px solid #516b77;background:#263e48;color:#b8ced6;border-radius:5px;padding:5px 13px;font-size:11px}.sim-view-buttons button[aria-pressed=true]{background:#416d7b;color:#eff9fa}.simulation-mode:not(.solo-mode) #worldStage{position:absolute;inset:42px 0 0 36%;width:64%;height:calc(100dvh - 42px)}.simulation-mode:not(.solo-mode) .sim-teacher-screen{display:flex;flex-direction:column;position:fixed;inset:42px 64% 0 0;background:#182b34;border-right:1px solid #4b626d;color:#e4f1f4;z-index:30;padding:12px;gap:10px}.sim-teacher-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.sim-teacher-heading strong{font-size:13px}.sim-teacher-heading small{display:block;color:#a4bbc5;font-size:10px;margin-top:5px}.sim-teacher-heading button{background:#416d7b;border:1px solid #7fabb8;color:#fff;border-radius:6px;min-height:38px;padding:7px 12px;font-size:12px}.sim-teacher-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:8px}.sim-teacher-card{min-height:0;min-width:0;display:flex;flex-direction:column;gap:4px;padding:8px;border:1px solid #405e6b;border-radius:8px;background:#263e48;color:#dbeef2;text-align:left;cursor:pointer}.sim-teacher-card[aria-pressed=true]{border-color:#8fcddd;box-shadow:inset 0 0 0 1px #8fcddd}.sim-teacher-card strong{font-size:11px}.sim-teacher-card small{font-size:9px;color:#adc8d2}.sim-teacher-map{position:relative;width:100%;flex:1;min-height:60px;overflow:hidden;border-radius:4px;background:#acc2c9;pointer-events:none}.sim-teacher-card p{font-size:9px;line-height:1.4;min-height:24px;margin:0;color:#a7bfc9;overflow:hidden}.sim-teacher-note{font-size:10px;margin:0;color:#9cb7c3}.sim-student-label{position:absolute;z-index:8;right:12px;top:62px;color:#d2e7ed;background:#253b44dc;border-radius:4px;font-size:10px;padding:5px 8px}.simulation-mode:not(.solo-mode) .game-hud{gap:8px;padding-inline:9px}.simulation-mode:not(.solo-mode) .game-hud .hud-brand{font-size:12px}.simulation-mode:not(.solo-mode) .game-hud .hud-population{font-size:12px}body[data-sim-screen=teacher] #worldStage{display:none}body[data-sim-screen=teacher] .sim-teacher-screen{right:0}body[data-sim-screen=teacher] .sim-teacher-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}body[data-sim-screen=student] .sim-teacher-screen{display:none}body[data-sim-screen=student] #worldStage{left:0;width:100%}@media(max-width:800px){.simulation-mode:not(.solo-mode) #worldStage{inset:42px 0 36% 0;width:100%;height:calc(64dvh - 42px)}.simulation-mode:not(.solo-mode) .sim-teacher-screen{inset:64% 0 0;padding:7px;gap:5px;border-top:1px solid #4b626d}.sim-teacher-grid{grid-template-columns:repeat(6,minmax(100px,1fr));grid-template-rows:1fr;overflow:auto}.sim-teacher-note{display:none}.sim-teacher-card p{display:none}.sim-screen-bar strong{font-size:10px}.sim-view-buttons button{padding:5px 9px}body[data-sim-screen=teacher] .sim-teacher-screen{top:42px}body[data-sim-screen=teacher] .sim-teacher-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));overflow:hidden}body[data-sim-screen=student] #worldStage{height:calc(100dvh - 42px)}}
/* Keep the chosen role exclusive at every viewport size. */
body.simulation-mode:not(.solo-mode)[data-sim-screen=student] .sim-teacher-screen{display:none}
body.simulation-mode:not(.solo-mode)[data-sim-screen=student] #worldStage{inset:42px 0 0;width:100%;height:calc(100dvh - 42px)}
body.simulation-mode:not(.solo-mode)[data-sim-screen=teacher] #worldStage{display:none}
body.simulation-mode:not(.solo-mode)[data-sim-screen=teacher] .sim-teacher-screen{inset:42px 0 0;display:flex}
