*{box-sizing:border-box;margin:0;padding:0}:root{--orientation-bg:#171311;--orientation-surface:#211b18;--orientation-text:#f4efe6;--orientation-muted:#cbbfb0;--orientation-accent:#c96a3d;--orientation-border:#4c3a30}html,body{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;overscroll-behavior:none;background:#0a0a1a;width:100%;height:100%;font-family:monospace;transition:background .3s;overflow:hidden}html.light-theme,html.light-theme body{background:#e8e8f0}#game-container{background:#0a0a1a;justify-content:center;align-items:center;width:100%;height:100%;transition:background .3s;display:flex;position:relative}.custom-editor{z-index:20;background:color-mix(in srgb, var(--orientation-bg) 92%, transparent);color:var(--orientation-text);touch-action:manipulation;place-items:center;padding:8px;font-family:monospace;display:grid;position:absolute;inset:0}.custom-editor[hidden]{display:none}.custom-editor__panel{border:1px solid var(--orientation-border);background:var(--orientation-bg);width:min(760px,100vw - 16px);max-height:calc(100vh - 16px);box-shadow:0 16px 48px color-mix(in srgb, var(--orientation-bg) 75%, transparent);border-radius:14px;grid-template-rows:auto minmax(0,1fr) auto;display:grid;overflow:hidden}.custom-editor__header,.custom-editor__footer,.custom-editor__sequence-head,.custom-editor__actions,.custom-editor__note{align-items:center;display:flex}.custom-editor__header{border-bottom:1px solid var(--orientation-border);background:var(--orientation-surface);justify-content:space-between;gap:16px;padding:14px 18px}.custom-editor__eyebrow{color:var(--orientation-accent);letter-spacing:.14em;margin:0 0 3px;font-size:11px;font-weight:700}.custom-editor h1{color:var(--orientation-text);margin:0;font-size:clamp(17px,3vw,23px);line-height:1.1}.custom-editor__close,.custom-editor__remove,.custom-editor__add,.custom-editor__primary,.custom-editor__secondary{border:1px solid var(--orientation-border);background:var(--orientation-surface);min-height:44px;color:var(--orientation-text);cursor:pointer;border-radius:8px;font:700 12px/1 monospace}.custom-editor__close{width:44px;color:var(--orientation-accent);flex:0 0 44px;font-size:26px}.custom-editor__body{grid-template-columns:minmax(210px,.8fr) minmax(330px,1.5fr);min-height:0;display:grid}.custom-editor__setup,.custom-editor__sequence{min-height:0;padding:14px 18px}.custom-editor__setup{border-right:1px solid var(--orientation-border)}.custom-editor label{color:var(--orientation-muted);letter-spacing:.04em;gap:6px;margin-bottom:12px;font-size:11px;font-weight:700;display:grid}.custom-editor input,.custom-editor select{border:1px solid var(--orientation-border);background:var(--orientation-surface);width:100%;min-height:44px;color:var(--orientation-text);-webkit-user-select:auto;user-select:auto;border-radius:7px;padding:0 10px;font:700 14px/1 monospace}.custom-editor input:focus,.custom-editor select:focus,.custom-editor button:focus-visible{outline:2px solid var(--orientation-accent);outline-offset:2px}.custom-editor__bpm-field{grid-template-columns:1fr auto;align-items:center;gap:8px;display:grid}.custom-editor__help{color:var(--orientation-muted);margin:0 0 12px;font-size:11px;line-height:1.45}.custom-editor__secondary,.custom-editor__primary{padding:0 14px}.custom-editor__primary{border-color:var(--orientation-accent);background:var(--orientation-accent);color:var(--orientation-bg)}.custom-editor__sequence{grid-template-rows:auto minmax(0,1fr);display:grid}.custom-editor__sequence-head{justify-content:space-between;gap:12px;margin-bottom:10px}.custom-editor__sequence-head strong,.custom-editor__sequence-head span{display:block}.custom-editor__sequence-head span{color:var(--orientation-muted);margin-top:3px;font-size:10px}.custom-editor__add{color:var(--orientation-accent);padding:0 12px}.custom-editor__notes{align-content:start;gap:7px;min-height:0;padding:2px 4px 2px 2px;display:grid;overflow-y:auto}.custom-editor__note{grid-template-columns:28px minmax(82px,1fr) minmax(96px,1fr) 76px;gap:7px;display:grid}.custom-editor__note-number{color:var(--orientation-muted);font-size:11px}.custom-editor__remove{min-height:44px;color:var(--orientation-muted);font-size:10px}.custom-editor button:disabled{cursor:default;opacity:.45}.custom-editor__footer{border-top:1px solid var(--orientation-border);background:var(--orientation-surface);justify-content:space-between;gap:14px;min-height:64px;padding:10px 18px}.custom-editor__message{min-width:0;color:var(--orientation-muted);margin:0;font-size:11px}.custom-editor__message--error{color:var(--orientation-accent)}.custom-editor__actions{flex:none;gap:8px}@media (width<=700px){.custom-editor__body{grid-template-columns:1fr;overflow-y:auto}.custom-editor__setup{border-right:0;border-bottom:1px solid var(--orientation-border)}}@media (height<=450px) and (orientation:landscape){.custom-editor__header,.custom-editor__setup,.custom-editor__sequence{padding-block:9px}.custom-editor__footer{min-height:54px;padding-block:5px}}html.light-theme #game-container{background:#e8e8f0}#gameCanvas{touch-action:none;background:#0a0a1a;border:1px solid #336;border-radius:4px;width:min(100vw,133.333vh);max-width:100vw;height:min(100vh,75vw);max-height:100vh;transition:background .3s,border-color .3s}#orientation-panel{display:none}html.light-theme #gameCanvas{background:#e8e8f0;border-color:#99b}@media (width<=820px){#gameCanvas{border:none;border-radius:0}}@media (height<=620px){#gameCanvas{border:none;border-radius:0}}@media (width<=900px) and (orientation:landscape){#gameCanvas{border:none;border-radius:0}}@media (width<=540px) and (orientation:portrait){#gameCanvas{opacity:.08;pointer-events:none}#orientation-panel{background:var(--orientation-bg);color:var(--orientation-text);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:36px;display:flex;position:absolute;inset:0}.orientation-panel__icon{border:2px solid var(--orientation-accent);background:var(--orientation-surface);width:72px;height:72px;color:var(--orientation-accent);border-radius:18px;place-items:center;font:700 42px/1 monospace;display:grid}#orientation-panel h1{margin:8px 0 0;font:700 28px/1.1 monospace}#orientation-panel p{max-width:320px;color:var(--orientation-muted);margin:0;font:16px/1.5 monospace}#orientation-panel .orientation-panel__hint{border-top:1px solid var(--orientation-border);color:var(--orientation-text);margin-top:8px;padding-top:16px;font-weight:700}}
