:root{font-family:DM Mono,monospace;color:#e8eddd;background:#0c1b1c;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #f2bf65;outline-offset:2px}.shell{height:100dvh;min-height:560px;display:flex;flex-direction:column;padding:0 24px}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:13px}.brand-icon{background:#edb554;color:#172a28;width:39px;height:39px;display:grid;place-items:center;font-size:30px;font-weight:700}.brand small,.brand strong{display:block}.brand small,.panel-title small{font-size:10px;letter-spacing:2px;color:#9cae9d}.brand strong{font:800 25px Barlow Condensed,sans-serif;letter-spacing:2px}.header-actions{display:flex;gap:10px}.subtle{border:1px solid #39504e;background:transparent;color:#bfccc0;padding:10px 14px;font-size:11px;letter-spacing:1px}.subtle:hover{background:#243c3a}kbd{font-size:10px;color:#efbc6d}.stage{position:relative;flex:1;min-height:0;overflow:hidden;background:#496e56;border:1px solid #577267;box-shadow:0 16px 50px #050d0e}canvas{width:100%;height:100%;display:block}.top-overlay,.bottom-overlay{position:absolute;left:22px;right:22px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.top-overlay{top:20px}.bottom-overlay{bottom:20px;align-items:flex-end}.top-overlay button,.bottom-overlay button{pointer-events:auto}.mode-switch{background:#0d1e1eed;padding:4px;display:flex;gap:3px;box-shadow:0 4px 20px #13252566}.mode-switch button{background:none;border:0;color:#a6b6ad;font:700 16px Barlow Condensed,sans-serif;letter-spacing:1px;padding:10px 17px;text-align:left}.mode-switch button span{display:block;font:400 10px DM Mono,monospace;letter-spacing:0}.mode-switch button.active{background:#eebc69;color:#172c29}.status-pill{background:#122d2bbf;border:1px solid #80a092;padding:9px 13px;font-size:10px;letter-spacing:2px;color:#c7dece}.status-pill:before{content:"●";color:#9ed794;margin-right:8px}.readout{background:#0d1e1ef2;min-width:188px;padding:14px 17px;box-shadow:0 4px 20px #13252566}.readout small{color:#97b3a9;letter-spacing:1.3px;font-size:10px}.readout div:nth-child(2){display:flex;align-items:baseline;justify-content:space-between;gap:15px}.readout strong{font:800 54px Barlow Condensed,sans-serif;line-height:1}.readout span{font-size:11px;color:#eebc69}.meter{background:#44605a;height:3px;margin-top:7px}.meter i{display:block;height:100%;width:0;background:#eebc69}.quick-actions{display:flex;gap:8px}.quick-actions button{background:#e7dfc7;color:#1b2e2c;border:0;padding:13px 15px;font-size:19px;display:flex;align-items:center;gap:9px;min-width:110px;justify-content:center}.quick-actions span{font-size:11px;letter-spacing:1px}footer{height:44px;display:flex;justify-content:space-between;align-items:center;color:#83a097;font-size:10px;letter-spacing:.5px;gap:15px}footer span:last-child{color:#edb554}.touch{display:none}.panel,.story{position:fixed;z-index:10;right:20px;top:95px;bottom:65px;width:min(390px,calc(100vw - 40px));background:#112625;border:1px solid #55736d;box-shadow:0 12px 45px #061213bd;padding:20px;overflow:auto}.hidden{display:none}.panel-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.panel-title h2{font:800 32px Barlow Condensed,sans-serif;letter-spacing:1px;margin:2px 0}.panel-title button{border:0;background:none;color:#e7dfc7;font-size:30px}.panel label{display:block;font-size:12px;margin:12px 0;color:#c2d0c6}.panel select,.panel input[type=number]{background:#263e3a;color:#fff;border:1px solid #658074;padding:5px}.fine{color:#91a99f;font-size:11px;line-height:1.6}.panel pre{background:#0b1b1c;color:#cfdbd1;padding:14px;font-size:11px;line-height:1.5;overflow:auto}.panel h3{font:700 20px Barlow Condensed,sans-serif}.tuning-row{border-top:1px solid #344b47;padding:8px 0}.tuning-row strong{text-transform:uppercase;color:#edbd70}.tuning-row label{display:inline-block;margin:5px}.tuning-row input{width:62px}.tuning-row small{display:block;color:#8eaaa0}.story{height:max-content;max-height:calc(100dvh - 160px);bottom:auto;line-height:1.65;font-size:13px}.story-links{display:flex;flex-direction:column;gap:9px;margin:20px 0}.story a{color:#edbd70;text-decoration:none;font-weight:700}@media(max-width:760px){.shell{padding:0;min-height:0}.topbar{height:61px;padding:0 12px}.brand-icon{width:31px;height:31px;font-size:24px}.brand strong{font-size:20px}.brand small{font-size:8px}.header-actions{gap:5px}.subtle{padding:8px;font-size:9px}.subtle kbd,#helpBtn{display:none}.stage{border:0}.top-overlay,.bottom-overlay{left:10px;right:10px}.top-overlay{top:10px}.bottom-overlay{bottom:118px}.mode-switch button{font-size:13px;padding:8px 10px}.readout{min-width:128px;padding:9px 10px}.readout strong{font-size:35px}.readout small{font-size:8px}.readout span{font-size:9px}.quick-actions button{min-width:70px;padding:8px;font-size:16px}.quick-actions span{font-size:9px}.touch{display:flex;position:absolute;bottom:10px;left:10px;right:10px;justify-content:space-between;align-items:flex-end;pointer-events:none}.touch>div{display:flex;gap:8px;pointer-events:auto}.touch button{width:62px;height:62px;background:#e8e3cecc;color:#19302e;border:1px solid #fff8;font-size:29px;touch-action:none;-webkit-user-select:none;user-select:none}.touch .hand{width:92px;font-size:10px;font-weight:700;background:#eab765dd}.touch>div:last-child{flex-direction:column}.touch>div:last-child button{height:45px}footer{display:none}.panel,.story{top:67px;bottom:10px;right:10px;width:min(370px,calc(100vw - 20px))}}@media(max-width:390px){.brand small{display:none}.brand strong{font-size:17px}.touch button{width:50px}.touch .hand{width:75px}}
