body{margin:0;background:var(--bg,#f5f3ff);color:var(--text,#202030);font-family:system-ui}main{max-width:680px;margin:auto;padding:12px;text-align:center}h1{font-size:1.5rem;margin:8px}.crew{width:180px;height:85px;object-fit:contain}p{margin:8px}#play>svg{display:block;width:min(100%,360px);max-height:32vh;margin:auto}#plates{display:flex;gap:6px;justify-content:center}button{font:inherit;min-height:48px;padding:8px;border:2px solid #54546c;border-radius:12px;background:white;color:#202030;cursor:pointer}#plates button{flex:1;max-width:180px;min-height:56px}button svg{display:block;width:48px;height:30px;margin:auto}button[aria-pressed=true]{border:3px solid #202030;background:#e7e7f5}button:focus-visible,a:focus-visible{outline:4px solid #6140be;outline-offset:3px}dialog{border-radius:16px;max-width:80%;color:#202030;background:white}dialog::backdrop{background:#0008}small{display:block;margin:8px}a{display:inline-block;min-height:32px} @media(max-height:450px){.crew{height:40px}h1,p{margin:2px}main{padding:4px}#play>svg{max-height:35vh}}

#demo[hidden]{display:none}.demo-cue{outline:4px solid #a65d00;outline-offset:2px}#demo{border:2px solid #54546c;padding:4px}#demo h2{font-size:16px;margin:2px}#demo p{margin:2px}main{padding:8px}h1{margin:4px}.crew{height:65px}main>p{margin:4px}#play>svg{height:180px;width:100%;max-height:32vh;min-height:0}#status{min-height:24px}small{margin:4px}@media(max-height:450px){main{max-width:900px}h1,main>a{display:inline-block}.crew{float:left;width:30%;height:80px}#play{display:grid;grid-template-columns:1fr 1fr;gap:6px}#play>svg{grid-column:1;grid-row:1/5;height:170px;max-height:170px}#plates,#status,#reset,#show{grid-column:2}#plates{min-width:0}#plates button{min-width:48px;font-size:14px}#demo{clear:both}}
@media(max-width:600px){.crew{height:45px}main>p{display:none}h1{margin:2px}#play>svg{height:145px;max-height:145px}#plates button{padding:4px}#demo h2{display:none}#demo p{font-size:14px}small{font-size:12px}p{margin:4px}}
a{min-height:48px;display:inline-flex;align-items:center}@media(min-width:700px) and (max-height:450px){main{position:relative;padding-bottom:90px}#demo{position:absolute;left:8px;top:260px;width:calc(50% - 20px);background:var(--paper,#fff8e8)}#demo h2{display:none}#demo p{font-size:14px;margin:2px}#demo button{min-height:48px}small,#save{font-size:12px;margin:2px}}
@media(min-width:700px) and (max-height:450px){#demo{top:300px}}
