/* Alpha 0.5 — Motisphone, display and navigation only. */
.a05-device{--a05-orange:#ff923d;--a05-dark:#163144;--a05-mint:#89efd9;border:4px solid var(--a05-dark);background:#ff923d;box-shadow:0 5px 0 #9b4933;padding:16px;position:relative;color:#142f3f;margin-bottom:20px}
.a05-device::before{content:'';position:absolute;top:-8px;left:24px;width:45px;height:8px;background:#163144;box-shadow:58px 0 #163144}
.a05-device h1,.a05-device h2,.a05-device h3{font-family:ProjectPixel,monospace;color:#173e50;text-shadow:none;letter-spacing:.02em}
.a05-device h1{font-size:2rem;margin:0}.a05-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.a05-kicker{font-size:.78rem;letter-spacing:.15em;font-weight:800;margin:0 0 5px}.a05-head p{margin-bottom:0}
.a05-screen{border:3px solid #224757;background:#e4f8ed;padding:16px;box-shadow:inset 0 0 0 3px #fff8;color:#163144;min-width:0}
.a05-grid{display:grid;grid-template-columns:minmax(260px,1.05fr) minmax(300px,1fr);gap:16px}.a05-stack{display:grid;gap:16px;align-content:start}
.a05-screen h2{margin:0 0 12px;font-size:1.2rem}.a05-screen h3{font-size:1rem;margin:8px 0}
.a05-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.a05-fields label,.a05-screen>label{display:flex;flex-direction:column;gap:5px;font-weight:650}.a05-wide{grid-column:1/-1}
.a05-device select,.a05-device input,.a05-device textarea{background:#fffdf0!important;border:2px solid #426370;color:#173743!important;border-radius:2px;min-height:42px;font:inherit;padding:8px;max-width:100%;width:100%}
dialog.a05-device{width:min(960px,calc(100vw - 24px));max-height:calc(100dvh - 30px);overflow:auto;margin:auto;box-sizing:border-box}dialog.a05-device::backdrop{background:#10242ddd}
.a05-device input[type=checkbox]{min-height:auto;width:20px;height:20px}.a05-check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;margin:8px 0}
.a05-device button,.a05-button{border:2px solid #1b3c4d;background:#245c70;color:#fff7e0;padding:9px 13px;border-radius:2px;font-weight:750;box-shadow:0 3px 0 #173743;min-height:42px;cursor:pointer;text-decoration:none}
.a05-device button:hover,.a05-button:hover{background:#347f89}.a05-device button:disabled{opacity:.5;box-shadow:none;cursor:default}.a05-device button.primary{background:#18675b}.a05-device button.danger{background:#924446}
.a05-device button:focus-visible,.a05-device input:focus-visible,.a05-device select:focus-visible{outline:3px solid #066fe4;outline-offset:3px}
.a05-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}.a05-muted{color:#3d6469;font-size:.88rem}.a05-status{min-height:1.4em;white-space:pre-wrap}.a05-status.error{color:#8b1b29}
.a05-row{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #a4c7bf;flex-wrap:wrap}.a05-row>div{flex:1;min-width:100px}.a05-row img{width:48px;height:48px;object-fit:contain;image-rendering:pixelated}.a05-row strong,.a05-row small{display:block}.a05-empty{padding:20px 4px;text-align:center;color:#49696b}
.a05-badge{background:#173e50;color:#ccffee;border:2px solid #a7ffed;padding:6px 9px;font-size:.78rem;font-weight:800}.a05-alert{background:#fff0b7;color:#634212;border:2px solid #977728;padding:10px;white-space:pre-wrap;margin-bottom:12px}
.a05-chat-log{max-height:230px;min-height:100px;overflow:auto;background:#f8fff9;padding:10px;border:1px solid #abcac3;overflow-wrap:anywhere}.a05-chat-log p{margin:5px 0}.a05-chat-form{display:flex;gap:8px;margin-top:8px}.a05-chat-form input{flex:1;min-width:0}
.a05-history{max-height:280px;overflow:auto}.a05-screen details summary{cursor:pointer;font-weight:700;padding:7px 0}
#a05-battle-tools{margin:10px 0}.a05-clocks{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;font-variant-numeric:tabular-nums;padding:10px;background:#173e50;color:#d9fff0;border:2px solid #6cc7b0}
#a05-watch-viewer{height:420px}#a05-admin-data{max-height:600px;overflow:auto}.a05-admin-section{padding:12px 0;border-bottom:2px solid #a4c7bf}
#builder-view .editor-heading{background:#ff923d;border:4px solid #163144;padding:16px;color:#173e50;margin-bottom:0;align-items:center}#builder-view .editor-heading h1{font-family:ProjectPixel,monospace;color:#173e50}#builder-view .editor-note{color:#173e50}
#builder-frame{border:4px solid #163144;border-top:0;border-radius:0;min-height:660px;height:calc(100vh - 230px)}
.alpha04-audio button[aria-pressed=true]{background:#d97823;color:#fff;border-color:#ffc674}.alpha04-audio select{max-width:230px;background:var(--bg-2);color:var(--ink);border:1px solid var(--line);padding:7px}
@media(max-width:760px){.a05-grid{grid-template-columns:1fr}.a05-device{padding:10px;border-width:3px}.a05-screen{padding:12px}.a05-head h1{font-size:1.65rem}.a05-fields{gap:9px}.a05-row{gap:8px}#builder-frame{height:calc(100dvh - 200px);min-height:640px}#a05-watch-viewer{height:350px}.a05-chat-form{flex-wrap:wrap}.a05-chat-form button{flex:0 0 auto}}
@media(max-width:400px){.a05-fields{grid-template-columns:1fr}.a05-wide{grid-column:auto}}
.a05-device [hidden],.a05-invite-banner[hidden]{display:none!important}
.a05-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
.a05-tabs button[aria-pressed=true]{background:#fff2b5;color:#173743;box-shadow:0 3px 0 #94522f}
.a05-preparation{margin-bottom:16px}.a05-secondary{margin-top:16px}.a05-secondary>summary,.a05-preparation summary{cursor:pointer;padding:12px 0;font-weight:700}
.a05-room-code{display:block;letter-spacing:.15em;font:700 2rem monospace;margin-bottom:12px}
#a05-room>button{margin:12px 8px 0 0}.a05-invite-banner{position:fixed;bottom:12px;right:12px;z-index:200;padding:8px;background:#ff923d;border:3px solid #173743;box-shadow:0 3px 12px #0007}
.a05-invite-banner button{min-height:48px;background:#173743;color:#fff;border:0;padding:10px;font:inherit;cursor:pointer}
#a05-invite-dialog{max-width:520px}#a05-invite-error{color:#8b1b29;white-space:pre-wrap}
@media(max-width:760px){
 .a05-tabs{gap:5px}.a05-tabs button{font-size:.88rem;padding:10px 5px;overflow-wrap:anywhere}
 .a05-device button,.a05-device input,.a05-device select{min-height:48px}.a05-device input,.a05-device select,.a05-device textarea{font-size:16px;box-sizing:border-box}
 .a05-row button{flex:0 0 auto}.a05-screen,.a05-device{overflow-wrap:anywhere}.a05-row>div{min-width:0}
 #a05-room-join{align-items:end}#a05-room-join label{flex:1;min-width:120px}
 .a05-actions>button{flex-grow:1}.a05-preparation{margin-bottom:12px}.a05-secondary{margin-top:12px}
 .a05-invite-banner{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.a05-invite-banner button{width:100%}
 dialog.a05-device{max-height:calc(100dvh - 24px);padding:8px}
 #builder-frame,#pve-editor-frame{height:calc(100dvh - 190px);min-height:420px;box-sizing:border-box}
}
