/* EASY 8BIT EDITOR II */
:root {
  --bg: #0a0b16;
  --bg2: #0e1020;
  --panel: #13152b;
  --panel2: #1a1d39;
  --line: #2a2e57;
  --line2: #3c4178;
  --ink: #f2ede0;
  --sub: #a9a6cb;
  --dim: #6d6b96;
  --yel: #ffd23f;
  --yel-d: #6e5200;
  --red: #ff5b6a;
  --grn: #52de8a;
  --blu: #62b6ff;
  --pur: #b48cff;
  --lead: #ffd23f;
  --harm: #ff6f8e;
  --bass: #52de8a;
  --noise: #c9d3e6;
  --drum: #ff9a5a;
  --px: 'Press Start 2P', monospace;
  --jp: 'DotGothic16', "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "BIZ UDGothic", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--jp); font-size: 14px; line-height: 1.6;
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(98, 182, 255, .07), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(180, 140, 255, .06), transparent 60%);
  min-height: 100vh;
}
button, select, input { font: inherit; color: inherit; }
a { color: var(--blu); }
a:hover { color: var(--yel); }
.px { font-family: var(--px); letter-spacing: .02em; }

/* ---------- ボタン ---------- */
.btn {
  appearance: none; border: 2px solid var(--line2); background: var(--panel2); color: var(--ink);
  padding: 8px 14px; cursor: pointer; font-size: 13px; line-height: 1.3; white-space: nowrap;
  box-shadow: 3px 3px 0 #000; transition: transform .05s, background .15s;
  touch-action: manipulation;
}
.btn:hover { background: #24284d; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.btn.yel { background: var(--yel); color: #14110a; border-color: #000; font-weight: 700; }
.btn.yel:hover { background: #ffe06e; }
.btn.ghost { background: transparent; box-shadow: none; border-color: var(--line); color: var(--sub); }
.btn.ghost:hover { color: var(--ink); border-color: var(--line2); }
.btn.line { background: transparent; }
.btn.icon { width: 36px; padding: 8px 0; text-align: center; }
.btn.wide { width: 100%; }
.btn.big { padding: 12px 18px; font-size: 14px; }
.btn small { display: block; font-size: 11px; font-weight: 400; opacity: .75; margin-top: 2px; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- ヘッダー ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 20px; background: rgba(10, 11, 22, .92); backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { display: block; line-height: 0; }
.brand-mark svg { display: block; image-rendering: pixelated; }
.brand-name { font-size: 12px; }
.brand-name b { color: var(--yel); margin-left: 8px; font-size: 14px; }
.world-pill { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); padding: 4px 10px; font-size: 13px; }
.world-pill .px { font-size: 8px; color: var(--dim); }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- レイアウト ---------- */
.layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; padding: 16px 20px 8px; max-width: 1560px; margin: 0 auto; }
.side, .main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel { background: var(--panel); border: 2px solid var(--line); padding: 14px; position: relative; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.panel-h .px { font-size: 10px; color: var(--yel); }
.panel-h .sub { font-size: 12px; color: var(--dim); }
.note { font-family: var(--body); font-size: 12px; color: var(--sub); margin: 0 0 10px; line-height: 1.7; }
.row { display: flex; gap: 8px; }
.row .btn { flex: 1; }

/* ---------- サウンドテスト ---------- */
.soundtest { background: linear-gradient(180deg, #121530, var(--panel)); }
.cues { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cue {
  display: grid; grid-template-columns: 22px 30px minmax(0, 1fr) auto; align-items: center; gap: 6px;
  padding: 8px 8px; cursor: pointer; border: 2px solid transparent; user-select: none;
}
.cue:hover { background: rgba(255, 255, 255, .03); }
.cue.on { border-color: var(--yel); background: rgba(255, 210, 63, .07); }
.cue .cur { font-family: var(--px); font-size: 10px; color: var(--yel); visibility: hidden; }
.cue.on .cur { visibility: visible; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cue .no { font-family: var(--px); font-size: 10px; color: var(--dim); }
.cue .nm { min-width: 0; }
.cue .nm b { display: block; font-weight: 400; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cue .nm span { display: block; font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cue .eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; opacity: 0; }
.cue.playing .eq { opacity: 1; }
.cue .eq i { width: 3px; background: var(--grn); height: 4px; }
.cue.playing .eq i { animation: eq .5s steps(4) infinite alternate; }
.cue.playing .eq i:nth-child(2) { animation-delay: -.2s; }
.cue.playing .eq i:nth-child(3) { animation-delay: -.35s; }
@keyframes eq { to { height: 14px; } }
.cue .del { visibility: hidden; }

/* ---------- モチーフ ---------- */
.motif-roll { border: 2px solid var(--line); background: var(--bg2); height: 132px; position: relative; }
.motif-roll canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.motif-names { font-size: 12px; color: var(--sub); margin: 8px 0 10px; min-height: 1.6em; letter-spacing: .04em; word-break: keep-all; }
.motif-names b { color: var(--lead); font-weight: 400; }
#btnMotifApply { margin-top: 10px; }

/* ---------- 効果音 ---------- */
.sfx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sfx-grid button { border: 2px solid var(--line); background: var(--bg2); color: var(--ink); padding: 8px 4px; cursor: pointer; font-size: 12px; touch-action: manipulation; }
.sfx-grid button:hover { border-color: var(--line2); }
.sfx-grid button:active, .sfx-grid button.hit { border-color: var(--yel); color: var(--yel); }

/* ---------- 曲の見出し ---------- */
.cue-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.cue-title { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 280px; }
.cue-no { font-size: 18px; color: var(--yel); }
.cue-name { background: transparent; border: 2px solid transparent; font-size: 22px; padding: 2px 6px; min-width: 0; flex: 1; font-family: var(--jp); }
.cue-name:hover, .cue-name:focus { border-color: var(--line); outline: none; }
.cue-role { font-size: 8px; color: var(--dim); white-space: nowrap; }
.cue-props { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--sub); }
.field select { background: var(--bg2); border: 2px solid var(--line2); padding: 6px 8px; font-size: 13px; color: var(--ink); min-width: 96px; }
.field.check { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); cursor: pointer; }
.field.check input { width: 18px; height: 18px; accent-color: var(--yel); }

/* ---------- 再生 ---------- */
.transport { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.play {
  width: 56px; height: 56px; border: 2px solid #000; background: var(--grn); cursor: pointer; box-shadow: 3px 3px 0 #000;
  display: grid; place-items: center; flex: none; touch-action: manipulation;
}
.play:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.play .tri { width: 0; height: 0; border-left: 18px solid #0a1a10; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.play.on { background: var(--red); }
.play.on .tri { border: 0; width: 18px; height: 18px; background: #2a0a0e; margin: 0; }
.pos { min-width: 120px; }
.pos-bar { font-size: 14px; color: var(--ink); }
.pos-sub { font-size: 12px; color: var(--dim); margin-top: 4px; }
.sliders { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 6px 14px; flex: 1 1 420px; }
.sl { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--sub); }
.sl .lab { display: flex; justify-content: space-between; }
.sl .lab em { font-style: normal; color: var(--dim); font-size: 10px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; background: var(--line); }
input[type=range]::-moz-range-track { height: 6px; background: var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 18px; background: var(--yel); border: 2px solid #000; margin-top: -6px; }
input[type=range]::-moz-range-thumb { width: 10px; height: 16px; background: var(--yel); border: 2px solid #000; border-radius: 0; }
.shuf { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.remake { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; }
.remake .px { font-size: 11px; }
.super { font-size: 12px; }
.remake.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 3px 3px 0 #000, 0 0 0 4px rgba(255, 210, 63, .35); } }
.dice { width: 16px; height: 16px; background: #14110a; display: inline-block; position: relative;
  -webkit-mask: radial-gradient(circle at 30% 30%, #000 2px, transparent 2.5px), radial-gradient(circle at 70% 70%, #000 2px, transparent 2.5px), linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* ---------- オシロスコープ ---------- */
.scopes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scope { background: #070812; border: 2px solid var(--line); position: relative; cursor: pointer; height: 64px; }
.scope canvas { width: 100%; height: 100%; display: block; }
.scope .lab { position: absolute; left: 6px; top: 4px; font-family: var(--px); font-size: 7px; color: var(--dim); pointer-events: none; }
.scope .st { position: absolute; right: 6px; top: 4px; font-family: var(--px); font-size: 7px; color: var(--red); pointer-events: none; }
.scope.muted { opacity: .45; }

/* ---------- エディタ ---------- */
.ed-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { border: 2px solid var(--line); background: transparent; padding: 6px 12px; cursor: pointer; font-size: 13px; color: var(--sub); touch-action: manipulation; }
.tab:hover { color: var(--ink); }
.tab.on { color: #111; border-color: #000; background: var(--c, var(--yel)); }
.tab i { display: inline-block; width: 8px; height: 8px; background: var(--c); margin-right: 6px; vertical-align: 1px; }
.tab.on i { background: #111; }
.tools { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.tool { white-space: nowrap; border: 2px solid var(--line); background: transparent; padding: 5px 10px; cursor: pointer; font-size: 12px; color: var(--sub); min-width: 34px; touch-action: manipulation; }
.tool:hover { color: var(--ink); }
.tool.on { border-color: var(--yel); color: var(--yel); }
.tool:disabled { opacity: .35; cursor: default; }
.sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.sel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -2px 0 10px; padding: 8px 10px; border: 2px solid #2b4a74; background: rgba(98, 182, 255, .06); }
.sel-info { font-size: 12px; color: var(--blu); margin-right: auto; }
.roll-wrap { overflow-x: auto; overflow-y: hidden; border: 2px solid var(--line); background: #090a16; -webkit-overflow-scrolling: touch; }
.roll-inner { position: relative; }
.roll-inner canvas { position: sticky; left: 0; top: 0; display: block; touch-action: pan-x pan-y; cursor: crosshair; }
.ed-hint { font-family: var(--body); font-size: 12px; color: var(--dim); margin: 8px 0 0; }

/* ---------- ミキサー ---------- */
.mix-body { display: grid; gap: 10px; }
.mix-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ch { border: 2px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.ch-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.ch-h b { font-weight: 400; display: flex; align-items: center; gap: 6px; }
.ch-h b i { width: 10px; height: 10px; background: var(--c); display: inline-block; }
.ms { display: flex; gap: 4px; }
.ms button { border: 2px solid var(--line); background: transparent; width: 26px; height: 24px; font-family: var(--px); font-size: 8px; cursor: pointer; color: var(--sub); padding: 0; }
.ms button.on.m { background: var(--red); color: #111; border-color: #000; }
.ms button.on.s { background: var(--yel); color: #111; border-color: #000; }
.voices { display: flex; gap: 3px; flex-wrap: wrap; }
.voices button { border: 2px solid var(--line); background: transparent; min-width: 26px; padding: 2px 4px; cursor: pointer; font-family: var(--px); font-size: 8px; color: var(--sub); height: 24px; }
.voices button.on { background: var(--c, var(--yel)); color: #111; border-color: #000; }
.vname { font-size: 11px; color: var(--dim); min-height: 1.4em; }
.mix-glob { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; }
.sys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sys button { text-align: left; border: 2px solid var(--line); background: transparent; padding: 10px; cursor: pointer; color: var(--ink); }
.sys button b { display: block; font-weight: 400; font-size: 14px; }
.sys button span { display: block; font-size: 11px; color: var(--dim); margin-top: 4px; font-family: var(--body); line-height: 1.5; }
.sys button.on { border-color: var(--yel); background: rgba(255, 210, 63, .06); }
.toggles { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.seg { display: inline-flex; border: 2px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 4px 8px; font-size: 11px; cursor: pointer; color: var(--sub); }
.seg button.on { background: var(--yel); color: #111; }

/* ---------- モーダル ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(4, 4, 10, .78); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal-box { background: var(--panel); border: 3px solid var(--yel); box-shadow: 6px 6px 0 #000; width: min(560px, 100%); padding: 24px; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-box.wide-box { width: min(920px, 100%); }
.kicker { font-size: 9px; color: var(--yel); margin-bottom: 8px; }
.modal h2 { font-size: 22px; margin: 0 0 8px; font-weight: 400; }
.lead-p { font-family: var(--body); font-size: 14px; color: var(--sub); margin: 0 0 16px; line-height: 1.8; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.worlds-h { grid-column: 1 / -1; font-size: 13px; color: var(--yel); margin: 6px 0 -2px; }
.worlds-h:first-child { margin-top: 0; }
.world {
  text-align: left; border: 2px solid var(--line); background: var(--bg2); padding: 14px; cursor: pointer; color: var(--ink);
  display: flex; flex-direction: column; gap: 8px; min-height: 132px; position: relative; overflow: hidden;
}
.world:hover { border-color: var(--line2); }
.world.on { border-color: var(--yel); background: rgba(255, 210, 63, .06); }
.world b { font-weight: 400; font-size: 17px; }
.world span { font-family: var(--body); font-size: 12px; color: var(--sub); line-height: 1.6; }
.world .scene { height: 34px; display: block; image-rendering: pixelated; }
.ex-opts { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 10px 0 14px; }
.ex-btns { display: grid; gap: 8px; }
.ex-progress { margin-top: 14px; font-size: 12px; color: var(--sub); }
.ex-progress .bar { height: 10px; border: 2px solid var(--line); margin-bottom: 6px; }
.ex-progress .bar i { display: block; height: 100%; width: 0; background: var(--grn); transition: width .2s; }
.help { padding-left: 1.4em; margin: 10px 0; font-family: var(--body); font-size: 14px; line-height: 1.8; color: var(--sub); display: grid; gap: 6px; }
.help b { color: var(--ink); }

/* 和音のポップアップ */
.pop { position: fixed; z-index: 70; background: var(--panel); border: 2px solid var(--yel); box-shadow: 4px 4px 0 #000; padding: 8px; display: grid; grid-template-columns: repeat(4, auto); gap: 4px; max-width: 320px; }
.pop button { border: 2px solid var(--line); background: transparent; color: var(--ink); padding: 6px 8px; cursor: pointer; font-size: 13px; text-align: center; }
.pop button small { display: block; font-size: 9px; color: var(--dim); font-family: var(--px); margin-top: 2px; }
.pop button.on { border-color: var(--yel); color: var(--yel); }
.pop button:hover { background: var(--panel2); }

/* スマホの下の再生バー */
.mini { display: none !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; gap: 10px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: rgba(13, 15, 34, .97); border-top: 2px solid var(--line2); }
.mini .play { width: 44px; height: 44px; box-shadow: 2px 2px 0 #000; }
.mini .play .tri { border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; margin-left: 4px; }
.mini .play.on .tri { width: 14px; height: 14px; }
.mini-t { min-width: 0; flex: 1; }
.mini-t b { display: block; font-weight: 400; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-t span { display: block; font-family: var(--px); font-size: 8px; color: var(--dim); margin-top: 3px; }
.mini .btn { padding: 10px 12px; }
.mini .btn .px { font-size: 9px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--ink); color: #111; padding: 10px 16px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; box-shadow: 3px 3px 0 #000; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- フッター ---------- */
/* ---------- 姉妹ツール ---------- */
.family { max-width: 1560px; margin: 20px auto 0; padding: 0 20px; box-sizing: border-box; }
.family-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.family-h .px { font-size: 9px; color: var(--dim); letter-spacing: 2px; }
.family-h b { font-family: var(--body); font-size: 15px; color: var(--ink); }
.family-list { display: flex; gap: 12px; flex-wrap: wrap; }
.fam { flex: 1 1 220px; display: flex; flex-direction: column; gap: 9px; background: var(--panel); border: 2px solid var(--line2); padding: 16px 18px; text-decoration: none; }
.fam:hover, .fam:focus-visible { filter: brightness(1.2); }
.fam-tag { font-family: var(--body); font-size: 11px; color: var(--dim); border: 1px solid var(--line2); padding: 2px 8px; align-self: flex-start; }
.fam-name { font-family: var(--px); font-size: 11px; line-height: 1.6; }
.fam-name-jp { font-family: var(--body); font-size: 14px; font-weight: 700; }
.fam-desc { font-family: var(--body); font-size: 13px; color: var(--sub); line-height: 1.8; }
.fam-go { font-family: var(--body); font-size: 13px; font-weight: 700; margin-top: auto; }
.foot { padding: 16px 20px 28px; text-align: center; font-size: 12px; color: var(--dim); }
.foot p { margin: 4px 0; }
.foot .small { font-family: var(--body); font-size: 11px; }

/* ---------- 画面幅 ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
  .mix-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mix-glob, .sys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 13px; }
  /* スマホ：曲リスト → 再生 → 波形 → マス目 → モチーフ → ミキサー の順に並べ、再生の操作は上に貼り付ける */
  .layout { display: flex; flex-direction: column; }
  .side, .main { display: contents; }
  .soundtest { order: 1; }
  .cue-head { order: 2; }
  .transport { order: 3; }
  body { padding-bottom: 72px; }
  .mini { display: flex !important; }
  .scopes { order: 4; }
  .editor { order: 5; }
  .motif { order: 6; }
  .sfx { order: 7; }
  .mixer { order: 8; }
  .sfx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .top { position: static; padding: 10px 16px; gap: 10px; }
  .brand-name { font-size: 10px; }
  .top-actions { width: 100%; margin-left: 0; }
  .top-actions .btn { padding: 7px 10px; font-size: 12px; }
  .world-pill { display: none !important; }
  .layout { padding: 12px 16px 6px; gap: 12px; }
  .cues { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .cue { grid-template-columns: 1fr; min-width: 112px; padding: 8px; border-color: var(--line); scroll-snap-align: start; gap: 2px; }
  .cue .cur, .cue .eq { display: none; }
  .cue.playing { border-color: var(--grn); }
  .cue.on { border-color: var(--yel); }
  .sliders { grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: 100%; order: 3; }
  .transport .play { width: 48px; height: 48px; }
  .toast { bottom: 84px; }
  .transport { gap: 12px; }
  .shuf { margin-left: auto; }
  .scopes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .scope { height: 44px; }
  .scope .lab { font-size: 6px; left: 4px; }
  .mix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mix-glob, .sys { grid-template-columns: 1fr; }
  .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world { min-height: 0; }
  .cue-name { font-size: 18px; }
  .field select { min-width: 0; }
  .cue-props { width: 100%; }
  .cue-props .field:not(.check) { flex: 1 1 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .cue.on .cur, .cue.playing .eq i { animation: none; }
}
