.roboluz{
 --world:#a0dcd0;
 --office-scene-height:clamp(96px,18dvh,160px);
 max-width:1180px;margin:3rem auto;padding:18px;
 border:1px solid #8dc2b45c;border-radius:18px;
 background:linear-gradient(145deg,#122b34,#08171d);color:#edf8f3;
}
.luz-heading h2{font-size:clamp(2rem,5vw,3.6rem);margin:8px 0}
.luz-heading p{font-size:1.1rem;line-height:1.5}
.luz-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0;font-size:.86rem}
.luz-toolbar>span{white-space:nowrap}
.luz-toolbar b{font-size:1.4rem;color:#bdf3d5}
.roboluz button{border:1px solid #91c6b673;border-radius:9px;background:#1b3944;color:#f5fffa;cursor:pointer;min-height:44px;padding:10px 14px}
.roboluz button:disabled{opacity:.45;cursor:default}
.roboluz :is(button,input,a):focus-visible{outline:3px solid #f6d88c;outline-offset:3px}
.roboluz [data-luz-action=start]{background:#b7efd0;color:#112b31;font-weight:800}

/* The shared frame moves this whole playfield: scene and both original desks. */
.luz-stage{display:flex;flex-direction:column;min-width:0;border:1px solid #7dafae5c;border-radius:12px;background:#0a1c25}
.luz-stage,.luz-stage *{box-sizing:border-box}
.luz-scene{flex:0 1 var(--office-scene-height);height:var(--office-scene-height);min-height:48px;overflow:hidden}
.luz-scene>canvas{display:block;width:100%;height:100%;object-fit:contain}
.luz-desks{flex:1 0 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:10px;margin:0;padding:10px}
.luz-desk{display:flex;flex-direction:column;gap:6px;min-width:0;padding:10px;background:#15303a;border:2px solid #709c9d;border-radius:12px}
.luz-desk[data-state=service]{border-color:#b1efd0}
.luz-desk[data-state=closed]{border-color:#db9393}
.luz-desk-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;position:static;padding:0;background:none;box-shadow:none;backdrop-filter:none}
.luz-desk-heading h3{font-size:.9rem;line-height:1.2;letter-spacing:.04em;margin:0;color:#c4f4d7}
.luz-desk-heading>span{font-size:.65rem;line-height:1.2;white-space:nowrap}
.luz-customer{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:7px;align-items:center;margin:0}
.luz-customer canvas{width:38px;height:48px;object-fit:contain;background:#0d2029;border-radius:6px}
.luz-customer>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.luz-assignment{font-size:.6rem;line-height:1.2;letter-spacing:.04em;color:#9fc5c8}
.luz-customer strong{font-size:.95rem;line-height:1.2;overflow-wrap:anywhere}
.luz-channel{font-size:.65rem;line-height:1.2;color:#ffe6a5;font-weight:800;overflow-wrap:anywhere}
.luz-deadline{font-size:1.05rem;line-height:1.2;color:#f8e6b2;font-variant-numeric:tabular-nums;white-space:nowrap}
.luz-desk>progress{flex:none;display:block;width:100%;height:5px;accent-color:#b7efd0}
/* Requests keep their complete natural text height; empty status rows reserve none. */
.luz-request{flex:1 0 auto;font-size:1rem;font-weight:600;line-height:1.35;color:#fff9df;margin:0;padding:8px 10px;background:#071923;border-left:3px solid #eccb80;border-radius:7px;overflow-wrap:anywhere}
.luz-step{flex:none;font-size:.78rem;line-height:1.3;color:#cde1dd;margin:0}
.luz-choices{flex:none;display:grid;grid-template-columns:repeat(3,minmax(44px,1fr));gap:6px;margin-top:auto}
.luz-choices button{min-width:44px;min-height:44px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:6px 4px;touch-action:manipulation;user-select:none}
.luz-choices strong{font-size:.75rem;line-height:1.2;overflow-wrap:anywhere}
.luz-choices kbd{font:700 .78rem monospace;padding:1px 5px;border:1px solid #bbd7caa1;border-radius:4px}
.luz-feedback{flex:none;font-size:.76rem;line-height:1.3;margin:0;color:#d0e8da;overflow-wrap:anywhere}
.luz-step:empty,.luz-feedback:empty{display:none}
.luz-footer{text-align:center;font-size:.9rem;line-height:1.5}
.luz-footer>button{background:#b7efd0;color:#112b31;font-weight:800;min-width:200px}
.luz-footer details{text-align:left;padding:12px;background:#10232b;border-radius:12px}
.luz-keys{display:flex;gap:16px;flex-wrap:wrap;margin:12px 0}
.luz-keys label{display:flex;align-items:center;gap:9px}
.luz-keys input{width:90px;min-height:44px;text-align:center;color:#effbf4;background:#172f3a;border:1px solid #87b7aa;border-radius:6px}

/* The frame owns expanded height; the scene yields space before customer text. */
.roboluz:is(:fullscreen,.game-fullscreen){margin:0;max-width:none;width:100vw;height:100dvh;box-sizing:border-box;overflow:auto;position:fixed;inset:0;z-index:10000;padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));flex-direction:column;gap:6px}
.roboluz:is(:fullscreen,.game-fullscreen) :is(.luz-heading,.runner-account,.arcade-rank-guide){display:none!important}
.roboluz:is(:fullscreen,.game-fullscreen) .luz-toolbar{flex:none;margin:0;gap:6px}
.roboluz:is(:fullscreen,.game-fullscreen) .game-frame{min-height:min-content}
.roboluz:is(:fullscreen,.game-fullscreen) .luz-stage{flex:1 0 auto}
.roboluz:is(:fullscreen,.game-fullscreen) .luz-footer{flex:none;font-size:.8rem;line-height:1.2}
.roboluz:is(:fullscreen,.game-fullscreen) .luz-footer>p,.roboluz:is(:fullscreen,.game-fullscreen) .luz-footer>details{display:none}
.roboluz:is(:fullscreen,.game-fullscreen) [data-luz=status]:is([data-status-state=loading],[data-status-state=error],[data-status-state=ended],[data-status-state=instruction]){display:block;margin:0 0 4px}

@media(max-width:600px){
 .roboluz{--office-scene-height:clamp(64px,12dvh,100px);margin:1rem 6px;padding:8px}
 .luz-heading h2{font-size:2rem}
 .luz-toolbar{gap:6px;margin:8px 0}
 .luz-toolbar button{padding:8px;font-size:.76rem}
 .luz-desks{gap:6px;padding:6px}
 .luz-desk{gap:5px;padding:6px;border-radius:9px}
 .luz-desk-heading h3{font-size:.75rem;letter-spacing:0}
 .luz-desk-heading>span{font-size:.625rem}
 .luz-desk-heading>span>[data-luz-copy=team]{display:none}
 .luz-customer{grid-template-columns:28px minmax(0,1fr) auto;gap:4px}
 .luz-customer canvas{width:28px;height:36px}
 .luz-assignment{display:none}
 .luz-customer strong{font-size:.8rem}
 .luz-channel{font-size:.6rem}
 .luz-deadline{font-size:.9rem}
 .luz-request{font-size:.875rem;line-height:1.3;padding:6px}
 .luz-step{display:none}
 .luz-choices{gap:4px}
 .luz-choices strong{font-size:.6875rem}
 .luz-feedback{font-size:.75rem;line-height:1.25}
 .luz-footer{font-size:.85rem}
}
@media(max-width:360px){
 .roboluz{--office-scene-height:56px;margin:1rem 3px;padding:5px}
 .luz-desks{gap:4px;padding:4px}
 .luz-desk{padding:5px;gap:4px}
 .luz-request{font-size:.8125rem;padding:5px}
 /* Two columns keep every choice at least 44px wide in both narrow desks. */
 .luz-choices{grid-template-columns:repeat(2,minmax(44px,1fr))}
 .luz-choices button:last-child{grid-column:1/-1}
}
@media(max-height:500px) and (orientation:landscape){
 .roboluz{--office-scene-height:48px}
 .luz-desks{gap:6px;padding:4px}
 .luz-desk{gap:3px;padding:6px}
 .luz-desk-heading h3{font-size:.8rem}
 .luz-desk-heading>span{font-size:.625rem}
 .luz-desk-heading>span>[data-luz-copy=team]{display:none}
 .luz-customer{grid-template-columns:24px minmax(0,1fr) auto;gap:5px}
 .luz-customer canvas{width:24px;height:30px}
 .luz-customer>div{flex-direction:row;align-items:center;gap:6px}
 .luz-assignment{display:none}
 .luz-customer strong{font-size:.8rem}
 .luz-channel{font-size:.65rem}
 .luz-deadline{font-size:.95rem}
 .luz-request{font-size:.875rem;line-height:1.25;padding:5px 7px}
 .luz-step{display:none}
 .luz-choices button{min-height:44px;flex-direction:row;gap:5px;padding:4px}
 .luz-feedback{font-size:.72rem;line-height:1.2}
 .roboluz:is(:fullscreen,.game-fullscreen){padding:4px;gap:4px}
}
@media(prefers-reduced-motion:reduce){.roboluz *{animation:none;transition:none}}
