/* コード進行: 練習機材の操作面+指板。橙=今だけ、白い輪=次、青緑=手持ち。 */
:root {
  --main-w: 1240px;
  --bg: #26282c; --panel: #30333a; --panel2: #2b2e33; --line: #41454d;
  --text: #ece7de; --sub: #a9a59d;
  --now: #ff8a2a; --held: #4fc1b0; --err: #ff6b6b;
  --wood: #3a2f28; --fret: #8b8f96; --string: #cfc8bb;
  --d1: #f2cf4a; --d2: #f08bb5; --d3: #b493f0; --d4: #7fd18a; --d5: #6cc9ec; --d6: #6f95f2; --d7: #a3a3a3;
  --focus: #e6ecf5; --ad-line: #5a5f68; --ad-text: #a9a59d;
  color-scheme: dark;
}
html { background: var(--bg); }
body { margin: 0; color: var(--text); font: 15px/1.6 system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; font-variant-numeric: tabular-nums; }
a { color: #e6dccb; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "▸"; display: inline-block; width: 1.2em; color: var(--text); }
details[open] > summary::before { content: "▾"; }
button, select, input { font: inherit; color: inherit; }
.layout { padding: 0 20px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 18px; flex-wrap: wrap; }
.top h1 { margin: 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-size: 15px; font-weight: 400; }
.top .name { font-size: 28px; font-weight: 800; letter-spacing: .02em; }
.top .what { color: var(--sub); }

.seg-btns { display: inline-flex; background: #1f2125; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg-btns button { border: 0; background: transparent; border-radius: 7px; padding: 0 14px; cursor: pointer; color: var(--sub); }
.seg-btns button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px #5a5f68; font-weight: 700; }

.desk { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 24px; align-items: start; }
.face { background: var(--panel); border-radius: 8px; box-shadow: inset 0 1px 0 #ffffff0d, inset 0 -2px 6px #0003; padding: 20px; min-width: 0; }
.play-face { display: flex; flex-direction: column; gap: 12px; }

/* 表示窓 */
.windows { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.win { background: #1c1d20; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; display: flex; flex-direction: column; justify-content: center; min-width: 96px; }
.wl { font-size: 12px; color: var(--sub); display: flex; align-items: center; gap: 6px; }
.win select { background: transparent; border: 0; font-size: 24px; font-weight: 700; padding: 0 4px; min-height: 40px; }
.win select option { background: #1c1d20; }
.wv { font-size: 26px; font-weight: 700; line-height: 40px; }
.capo-row { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.win.count { margin-left: auto; flex-direction: row; align-items: center; gap: 12px; }
.segwrap { display: inline-block; height: 40px; min-width: 70px; }
.seg { height: 40px; width: auto; }
.seg .on { fill: var(--now); } .seg .off { fill: #3a2a1d; }
.q::after { content: ""; position: absolute; inset: -11px; }
.q { position: relative; min-height: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--sub); background: transparent; color: var(--sub); font-size: 12px; padding: 0; cursor: pointer; }
.qa { margin: 0; font-size: 13px; color: var(--sub); background: #1c1d20; border-radius: 6px; padding: 6px 10px; }
.msg { margin: 0; color: var(--text); font-size: 14px; border-left: 3px solid #8f949d; padding-left: 8px; }

/* 進行の帯 */
.strip-row { display: flex; gap: 8px; align-items: stretch; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; flex: 1; }
.card { position: relative; background: #1f2125; border: 1px solid var(--line); border-radius: 8px; min-height: 76px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; padding: 4px 6px; transition: box-shadow .08s, border-color .08s; }
.card .cn { font-size: 26px; font-weight: 800; line-height: 1.1; }
.card .cd { font-size: 12px; font-weight: 700; }
.card .cb { position: absolute; top: 4px; right: 7px; font-size: 11px; color: var(--sub); }
.card.miss .cn { color: var(--sub); text-decoration: underline dotted; }
.card.now { border-color: var(--now); box-shadow: 0 0 0 1px var(--now), 0 0 16px #ff8a2a55; }
.card.pulse { box-shadow: 0 0 0 2px var(--now), 0 0 26px #ff8a2a99; }
.card.sel { outline: 2px dashed #ffffff88; outline-offset: 2px; }
.d1 { color: var(--d1); } .d2 { color: var(--d2); } .d3 { color: var(--d3); } .d4 { color: var(--d4); } .d5 { color: var(--d5); } .d6 { color: var(--d6); } .d7, .d0 { color: var(--d7); }
.add { width: 52px; border-radius: 8px; border: 1px dashed #6a6f78; background: transparent; font-size: 24px; cursor: pointer; color: var(--sub); }
.beats { display: flex; gap: 10px; justify-content: center; min-height: 14px; }
.beats i { width: 12px; height: 12px; border-radius: 50%; background: #4a4e56; }
.beats i.on { background: var(--now); box-shadow: 0 0 8px var(--now); }

/* 指板・鍵盤 */
.board { background: #1c1d20; border-radius: 8px; padding: 10px 8px 4px; }
.fb, .kb { width: 100%; height: auto; display: block; }
.fb text, .kb text { font-family: inherit; text-anchor: middle; }
.fb .wood { fill: var(--wood); }
.fb .fret { stroke: var(--fret); stroke-width: 2; }
.fb .nut { fill: #d9d2c4; } .fb .capo { fill: #8b8f96; }
.fb .capo-t { fill: var(--text); font-size: 15px; text-anchor: end; }
.fb .str { stroke: var(--string); }
.fb .fno, .kb .fno { fill: var(--sub); font-size: 16px; }
.fb .sname { fill: var(--sub); font-size: 17px; font-weight: 700; }
.fb .inlay { fill: #6b5a4c; }
.fb .dot { fill: var(--now); stroke-width: 3; }
.fb .dot.d1 { stroke: var(--d1); } .fb .dot.d2 { stroke: var(--d2); } .fb .dot.d3 { stroke: var(--d3); } .fb .dot.d4 { stroke: var(--d4); } .fb .dot.d5 { stroke: var(--d5); } .fb .dot.d6 { stroke: var(--d6); } .fb .dot.d7, .fb .dot.d0 { stroke: var(--d7); }
.fb .fing { fill: #241a12; font-size: 16px; font-weight: 800; }
.fb .barre { fill: #ff8a2a66; }
.fb .open { fill: none; stroke: var(--text); stroke-width: 2.5; }
.fb .mute { fill: var(--sub); font-size: 20px; font-weight: 700; }
.fb .next, .kb .next { fill: none; stroke: #fff; stroke-width: 2.5; opacity: .9; }
/* 次の形は破線の輪(開放弦の ○ と分ける) */
.fb .next { stroke-dasharray: 6 4; }
.fb .nofig { fill: var(--text); font-size: 18px; }
.board.flash .dot { filter: brightness(1.25); }
.kb .wk { fill: #ebe6dc; } .kb .bk { fill: #15161a; }
.kb .wk.on, .kb .bk.on { fill: var(--now); }
.kb .next { stroke: #26282c; }
.kb .bk + .next { stroke: #fff; }
.legend { margin: 0; font-size: 13px; color: var(--sub); }
.lg.now { color: var(--now); } .lg.nx { color: #fff; }
.sounding { margin-left: 10px; color: var(--text); }

/* 小窓(コードを直す) */
.editor { background: #23252a; border: 1px solid #5a5f68; border-radius: 8px; padding: 12px 14px; }
.ed-head { display: flex; justify-content: space-between; align-items: center; }
.ed-l { margin: 8px 0 4px; font-size: 12px; color: var(--sub); display: flex; gap: 6px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-width: 52px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #1c1d20; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: #fff; font-weight: 700; }
.chip .hm { color: var(--held); margin-left: 4px; font-size: 11px; }
.ed-other { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.ed-other select { background: #1c1d20; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.ed-ops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.btn { border: 1px solid var(--line); background: #1f2125; border-radius: 8px; padding: 0 14px; cursor: pointer; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.danger { color: #ffb0a8; }
.btn.small { padding: 0 10px; }
.link { background: none; border: 0; color: #e6dccb; text-decoration: underline; cursor: pointer; }

/* 再生の列 */
.transport { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.play { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--now); color: #241a12; font-size: 24px; cursor: pointer; padding: 0; flex: none; box-shadow: 0 2px 10px #0006; }
.play[aria-pressed="true"] { background: #ffa65a; }
.play .ring { position: absolute; inset: -6px; width: 76px; height: 76px; transform: rotate(-90deg); pointer-events: none; }
.ring-bg { fill: none; stroke: transparent; stroke-width: 3; }
.ring-fg { fill: none; stroke: var(--now); stroke-width: 3; stroke-dasharray: 182.2; stroke-dashoffset: 182.2; }
.tempo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* 赤字は再生の列の下に取っておいた1行に出す(列の並びを動かさず、ほかのボタンにも重ねない) */
.transport { position: relative; padding-bottom: 28px; }
.tempo .err { position: absolute; left: 0; bottom: 4px; margin: 0; width: max-content; max-width: calc(100% - 8px); font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tempo .wl { margin-right: 4px; }
.nudge { width: 44px; border-radius: 8px; border: 1px solid var(--line); background: #1f2125; cursor: pointer; font-size: 20px; }
#tempo { width: 72px; text-align: center; font-size: 22px; font-weight: 700; background: #1c1d20; border: 1px solid var(--line); border-radius: 8px; }
.u { font-size: 12px; color: var(--sub); }
.check { display: flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; accent-color: #9aa0a8; }
.hist { display: flex; gap: 6px; }
.err { color: var(--err); margin: 0; font-size: 14px; }
.hint { color: var(--sub); font-size: 12px; margin: 0; }

/* 探す面 */
.find-face { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 40px); overflow-y: auto; position: sticky; top: 20px; }
.fh { margin: 0; font-size: 17px; font-weight: 800; }
.held { display: flex; flex-wrap: wrap; gap: 6px; }
.hchip { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; background: #1f2125; overflow: hidden; }
.hchip .hn { border: 0; background: transparent; padding: 0 10px; min-width: 52px; cursor: pointer; font-weight: 700; }
.hchip .hp { border: 0; border-left: 1px solid var(--line); background: transparent; width: 34px; cursor: pointer; color: var(--sub); font-size: 13px; padding: 0; }
.hchip.on { border-color: var(--held); background: #1d3532; }
.hchip.on .hn { color: #bff0e8; }
.hchip.on .hn::before { content: "✓ "; color: var(--held); }
.more-held summary, .basis summary { cursor: pointer; color: var(--sub); min-height: 44px; display: flex; align-items: center; }
.more-held .held { margin-top: 6px; }
.next-best { margin: 0; font-size: 14px; }
.next-best button { margin-left: 6px; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13px; color: var(--sub); }
.fcell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fcell label { display: flex; align-items: center; gap: 4px; min-height: 24px; }
.fcell label .btn.small { min-height: 28px; min-width: 28px; padding: 0 6px; }
.fcell select { width: 100%; background: #1c1d20; border: 1px solid var(--line); border-radius: 6px; color: var(--text); padding: 0 6px; }
.omakase { align-self: flex-start; }
.shelf h3 { margin: 14px 0 6px; font-size: 13px; color: var(--sub); border-left: 3px solid #6a6f78; padding-left: 8px; font-weight: 700; }
.shelf details > summary { cursor: pointer; color: var(--sub); min-height: 44px; display: flex; align-items: center; font-size: 13px; }
.pcard { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; background: #1f2125; margin-bottom: 6px; }
.pcard.cur { border-color: #8f949d; background: #262a30; }
.pcard .pin { flex: 1; text-align: left; border: 0; background: transparent; cursor: pointer; padding: 8px 10px; min-width: 0; }
.pcard .pn { font-weight: 700; display: block; font-size: 14px; }
.pcard .ps { display: block; font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.pcard .ps .mi { color: var(--sub); text-decoration: underline dotted; }
.pcard .pm { display: block; font-size: 12px; color: var(--text); }
.pcard .pr { display: block; font-size: 11px; color: var(--sub); }
.pcard .pe { display: block; font-size: 11px; color: #d8c9b4; }
.pcard .pplay { border: 0; border-left: 1px solid var(--line); background: transparent; width: 48px; cursor: pointer; color: var(--text); font-size: 16px; }

.out { margin-top: 24px; background: var(--panel2); border-radius: 8px; padding: 16px 20px; }
.out-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.note { color: var(--sub); font-size: 13px; margin: 0; }
.reads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.reads a { display: block; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; text-decoration: none; color: var(--text); }
.reads a span { display: block; color: var(--sub); font-size: 13px; }
.basis { margin-top: 16px; color: var(--sub); font-size: 13px; }
.basis li { margin: 4px 0; }
.foot { margin: 32px 0 40px; color: var(--sub); font-size: 12px; }

/* ボタンの共通の形(2026-11-24 決定者「ボタンのデザインが変わっていない」)。
   主な操作=明るい塗りの丸い札、ほかの操作=縁取りの丸い札、選ぶ札=押した物が明るく沈む。一覧ページと同じ形。 */
.btn, .nudge, .chip, .seg-btns button, .hchip, .pcard .pplay, .fcell select, .ed-other select, #tempo { transition: background-color .1s, border-color .1s, color .1s; }
.btn { border-radius: 22px; border-color: #5a5f68; background: transparent; color: var(--text); padding: 0 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:hover:not(:disabled) { border-color: var(--text); background: #ffffff0a; }
.btn.small { padding: 0 12px; }
.btn.pri { background: var(--text); color: #1c1d20; border-color: var(--text); font-weight: 700; }
.btn.pri:hover:not(:disabled) { background: #fff; border-color: #fff; }
.btn.danger { border-color: #7a4a46; }
.btn.danger:hover:not(:disabled) { border-color: #ffb0a8; background: #ff6b6b14; }
.nudge, .capo-row .btn.small { width: 44px; padding: 0; border-radius: 50%; border: 1px solid #5a5f68; background: #1f2125; color: var(--text); font-size: 20px; font-weight: 600; }
.nudge:hover, .capo-row .btn.small:hover:not(:disabled) { border-color: var(--text); background: #2c2f35; }
.seg-btns button:hover:not([aria-pressed="true"]) { color: var(--text); }
.seg-btns button[aria-pressed="true"] { background: #3a3e46; box-shadow: inset 0 0 0 1px #8f949d, inset 0 -2px 0 #8f949d; }
.chip { color: var(--sub); font-weight: 600; }
.chip:hover { color: var(--text); border-color: #5a5f68; }
.chip[aria-pressed="true"] { background: #3a3e46; color: var(--text); border-color: #8f949d; box-shadow: inset 0 -2px 0 #8f949d; font-weight: 800; }
.hchip:hover { border-color: #5a5f68; }
.hchip.on:hover { border-color: #7fe0d2; }
.hchip .hp:hover { color: var(--text); background: #ffffff0a; }
.pcard { align-items: center; }
.pcard:hover { border-color: #5a5f68; }
.pcard .pin { align-self: stretch; }
.pcard .pplay { border: 0; width: 44px; height: 44px; margin: 0 10px; border-radius: 50%; background: var(--text); color: #1c1d20; font-size: 13px; flex: none; }
.pcard .pplay:hover { background: #fff; }
.fcell select, .ed-other select { min-height: 44px; border-radius: 8px; border-color: #5a5f68; }
.fcell select:hover, .ed-other select:hover { border-color: var(--text); }

/* 記事 */
.article { max-width: 760px; margin: 0 auto; padding: 24px 20px 60px; }
.article h1 { font-size: 26px; }
.article table { border-collapse: collapse; width: 100%; font-size: 14px; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.article td.nw { white-space: nowrap; }

/* 定番の一覧: キーの札 → 進行のカード(コードの札+聞く/ツールで弾く) */
.list-page { max-width: 1120px; margin: 0 auto; padding: 20px 20px 60px; }
.list-page .back { margin: 0 0 8px; font-size: 14px; }
.list-page h1 { font-size: 28px; font-weight: 800; margin: 0 0 4px; }
.list-page .lead { color: var(--sub); margin: 0 0 16px; }
.tools { background: var(--panel); border-radius: 8px; box-shadow: inset 0 1px 0 #ffffff0d, inset 0 -2px 6px #0003; padding: 14px 16px; display: grid; gap: 10px; }
.tool-row { display: flex; align-items: center; gap: 12px; }
.tool-row .tl { flex: 0 0 5.5em; font-size: 13px; color: var(--sub); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.list-page .chips button { min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #1f2125; color: var(--sub); cursor: pointer; font-weight: 600; }
.list-page .chips button:hover { color: var(--text); border-color: #5a5f68; }
.list-page .chips button[aria-pressed="true"] { background: #3a3e46; color: var(--text); border-color: #8f949d; box-shadow: inset 0 -2px 0 #8f949d; font-weight: 800; }
.list-page .chips.keys button { padding: 0; width: 48px; font-size: 16px; }
.list-page .count { color: var(--sub); font-size: 13px; margin: 14px 0 8px; }
.tgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; transition: border-color .1s, box-shadow .1s; }
.tcard.playing { border-color: var(--now); box-shadow: 0 0 0 1px var(--now); }
.thead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.thead h2 { margin: 0; font-size: 17px; font-weight: 800; }
.thead .tr { font-size: 12px; color: var(--sub); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tiles li { background: #1f2125; border: 1px solid var(--line); border-radius: 7px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px 4px; }
.tiles .tn { font-size: 19px; font-weight: 800; line-height: 1.15; }
.tiles .cd { font-size: 11px; font-weight: 700; }
.tex { margin: 0; font-size: 12px; color: #d8c9b4; }
.tact { display: flex; gap: 8px; margin-top: auto; }
.tbtn { min-height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 14px; }
.tbtn.listen { background: var(--text); color: #1c1d20; border: 0; min-width: 104px; }
.tbtn.listen:hover { background: #fff; }
.tbtn.listen .ic { font-size: 12px; }
.tbtn.listen.on { background: var(--now); color: #1c1d20; }
.tbtn.go { flex: 1; background: transparent; color: var(--text); border: 1px solid #5a5f68; }
.tbtn.go:hover { border-color: var(--text); background: #ffffff0a; }
.list-page .basis { margin-top: 20px; }
.list-page .basis p { margin: 6px 0 0; max-width: 46em; }
.list-page .next { margin-top: 16px; }
@media (max-width: 600px) {
  .list-page { padding: 14px 12px 48px; }
  .list-page h1 { font-size: 24px; }
  .tool-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .tool-row .tl { flex: none; }
  .list-page .chips.keys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; }
  .list-page .chips.keys button { width: auto; }
  .tgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tcard { transition: none; } }

/* パソコン: 表示窓 → 指板 → 帯 → 操作 */
@media (min-width: 901px) {
  .play-face > .windows { order: 1; } .play-face > #qa-capo { order: 2; } .play-face > .msg { order: 3; }
  .play-face > .board { order: 4; } .play-face > .legend { order: 5; }
  .play-face > .strip-row { order: 6; } .play-face > .beats { order: 7; } 
  .play-face > .transport { order: 8; } .play-face > .editor { order: 9; } .play-face > .hint { order: 11; }
}
@media (min-width: 1624px) { .ad-slot.rail { display: flex; } .ad-slot.inline { display: none; } }

/* スマホ */
@media (max-width: 900px) {
  .desk { grid-template-columns: 1fr; }
  .find-face { max-height: none; position: static; overflow: visible; }
}
@media (max-width: 600px) {
  .layout { padding: 0 12px; }
  .top { padding: 14px 0 12px; }
  .top .name { font-size: 24px; }
  .top .what { font-size: 13px; }
  .face { padding: 14px 12px; }
  /* キーとカポを1段目、数えを2段目の横長に(3つ並べると選択欄が切れる) */
  .windows { flex-wrap: wrap; gap: 8px; }
  .win { min-width: 0; padding: 4px 10px; flex: 1 1 auto; }
  .win select { width: 100%; }
  .win.count { margin-left: 0; flex: 1 1 100%; gap: 10px; justify-content: center; }
  .wl { white-space: nowrap; }
  .segwrap, .seg { height: 30px; min-width: 50px; }
  .card .cb { position: static; order: 3; font-size: 11px; line-height: 1.2; }
  .fb .fno, .fb .fing, .fb .sname { font-size: 19px; }
  .fb .capo-t { font-size: 18px; }
  .kb .fno { font-size: 20px; }
  .win select { font-size: 20px; }
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .card { min-height: 64px; }
  .card .cn { font-size: 21px; }
  .play { position: fixed; bottom: 16px; right: 16px; width: 56px; height: 56px; z-index: 5; }
  .transport { padding-right: 76px; }
  .tempo .err { max-width: calc(100% - 84px); white-space: normal; }
  .play-face > .hint { padding-right: 76px; } /* 固定の再生の丸の下に隠れない */
  .hist { flex-wrap: wrap; }
  .play .ring { width: 68px; height: 68px; }
  .transport { padding-top: 10px; }
  .main { padding-bottom: 84px; }
  .reads { grid-template-columns: 1fr; }
  .style button { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .card.pulse { box-shadow: 0 0 0 1px var(--now); } }
