.modes { display: grid; gap: 18px; }
.m-page { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-col); gap: var(--col-gap); align-items: start; }
@media (max-width: 980px) { .m-page { grid-template-columns: minmax(0, 1fr); } }
.m-main { container: m-main / inline-size; gap: 14px; padding: 18px clamp(12px, 2.5vw, 22px); border-radius: 22px; }
.m-intro { max-width: 75ch; font-size: 13.5px; color: var(--ink-2); }
@media (min-width: 1241px), (min-width: 800px) and (max-width: 980px) {
  .m-main { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; align-items: start; }
  .m-main > * { grid-column: 1 / -1; }
  .m-main > .m-intro, .m-main > .m-rule { grid-column: auto; }
  .m-main:not(:has(> .m-intro)) > .m-rule, .m-main:has(> .m-rule[hidden]) > .m-intro { grid-column: 1 / -1; }
}
.m-stage { position: relative; display: grid; justify-items: center; align-content: center; gap: 10px; min-width: 0; min-height: 232px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--stage); overflow: hidden; }
.m-canvas { display: block; width: 100%; }
.m-center { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: color-mix(in srgb, var(--stage) 90%, transparent); font-family: var(--f-display); font-weight: 800; font-size: clamp(64px, 11vw, 112px); line-height: 1; pointer-events: none; }
.m-page[data-phase="paused"] .m-center { font-size: clamp(34px, 6vw, 56px); letter-spacing: .06em; text-transform: uppercase; }
.m-cause { position: absolute; inset: auto 0 14%; z-index: 2; padding-inline: 14px; text-align: center; font-size: 15px; font-weight: 600; color: var(--warn); pointer-events: none; }
.m-prefer { position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .6); }
.m-prefer::before { content: ""; flex: none; box-sizing: border-box; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; }
.m-prefer[aria-pressed="true"] { border-color: var(--accent-fg); }
.m-prefer[aria-pressed="true"]::before { border-color: var(--accent-fg); background: var(--accent-fg); }
.m-prefer:disabled { opacity: .5; cursor: not-allowed; }
@media (forced-colors: active) { .m-prefer[aria-pressed="true"]::before { background: ButtonText; } }
.m-feedback { min-height: 1.3em; text-align: center; font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: .04em; color: var(--ink-2); }
.m-bar { width: min(420px, 100%); height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.m-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ring); }
.m-cue-icon { flex: none; width: 64px; height: 64px; }
.m-cue-icon .ico { display: block; width: 100%; height: 100%; }
#mRange .m-stage { padding: 0; }
#mRange .m-canvas { height: clamp(240px, 46vh, 520px); }
#mHeartbeat .m-stage { padding: 0 0 14px; }
#mHeartbeat .m-canvas { height: 150px; }
.m-cue { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; min-height: 64px; padding-inline: 14px; }
.m-sequence-memory-seq { min-height: 18px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.m-sequence-memory-row { --cell: 72px; --cell-gap: clamp(4px, 1vw, 10px); display: flex; justify-content: center; align-items: center; align-content: center; gap: var(--cell-gap); width: 100%; min-height: calc(var(--cell) + 16px); padding: 0 8px 8px; }
.m-sequence-memory-cell { position: relative; flex: 0 1 var(--cell); min-width: 0; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--line-2); border-radius: 22%; background: var(--panel); }
@media (max-width: 600px) {
  .m-sequence-memory-row { --cell: 60px; --per: 4; flex-wrap: wrap; row-gap: 10px; max-width: calc(var(--per) * (var(--cell) + var(--cell-gap)) + 16px); min-height: calc(2 * var(--cell) + 18px); }
  .m-sequence-memory-row[data-n="5"], .m-sequence-memory-row[data-n="6"] { --per: 3; }
  .m-sequence-memory-cell { flex-basis: min(var(--cell), calc((100% - (var(--per) - 1) * var(--cell-gap)) / var(--per) - .5px)); }
}
.m-sequence-memory-cell .ico { display: block; width: 88%; height: 88%; }
.m-sequence-memory-cell[data-state="covered"], .m-sequence-memory-cell[data-state="open"] { border-style: dashed; }
.m-sequence-memory-cell[data-state="now"] { border-color: var(--ring); }
.m-sequence-memory-cell[data-state="entered"]::after { content: ""; width: 26%; aspect-ratio: 1; border-radius: 50%; background: var(--ink-2); }
.m-sequence-memory-cell[data-state="right"] { border-color: var(--good); }
.m-sequence-memory-cell[data-state="wrong"] { border-color: var(--bad); }
.m-sequence-memory-cell .si { position: absolute; right: -7px; bottom: -7px; width: 22px; height: 22px; padding: 2px; border: 2px solid currentColor; border-radius: 50%; background: var(--panel); }
.m-sequence-memory-cell[data-state="right"] .si { color: var(--good); }
.m-sequence-memory-cell[data-state="wrong"] .si { color: var(--bad); }
#mSequenceMemory .m-feedback { line-height: 1.3; }
#mTapping .m-cue-icon { width: 104px; height: 104px; }
.m-count { font-family: var(--f-display); font-weight: 700; font-size: clamp(72px, 12vw, 120px); line-height: .9; font-variant-numeric: tabular-nums; }
#mDual .m-stage { padding: 14px; }
.m-dual-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px clamp(12px, 3vw, 28px); width: 100%; }
.m-dual-area { display: grid; justify-items: center; gap: 8px; min-width: 0; padding: 10px; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--panel); }
.m-dual-area[data-state="on"] { border-style: solid; border-color: var(--good); }
.m-dual-area[data-state="none"] { border-style: dotted; border-color: var(--warn); }
#mDual .m-canvas { width: min(100%, 320px, 44vh); aspect-ratio: 1; border-radius: 10px; }
.m-dual-state { min-height: 1.3em; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.m-dual-area[data-state="on"] .m-dual-state { color: var(--ink); }
#mDual .m-feedback { line-height: 1.3; }
@media (max-width: 600px) {
  .m-dual-areas { grid-template-columns: minmax(0, 1fr); }
  #mDual .m-canvas { width: min(100%, 30vh); }
}
#mTracking .m-stage { padding: 14px; }
.m-track-field { display: grid; justify-items: center; gap: 8px; width: 100%; min-width: 0; padding: 10px; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--panel); }
.m-track-field[data-state="on"] { border-style: solid; border-color: var(--good); }
.m-track-field[data-state="none"] { border-style: dotted; border-color: var(--warn); }
#mTracking .m-canvas { width: min(100%, calc(52vh * 5 / 3)); aspect-ratio: 5 / 3; border-radius: 10px; }
.m-track-state { min-height: 1.3em; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.m-track-field[data-state="on"] .m-track-state { color: var(--ink); }
@media (max-width: 600px) {
  #mTracking .m-stage { padding: 6px; }
  .m-track-field { padding: 6px; }
}
#mGoNoGo .m-stage { --sign: min(300px, 44vh, 68vw); }
.m-gng-sign { position: relative; display: grid; align-content: center; justify-items: center; width: var(--sign); max-width: 100%; aspect-ratio: 1; }
.m-gng-outline { display: contents; }
.m-gng-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.m-gng-face { fill: var(--panel); }
.m-gng-track { stroke: var(--line-2); stroke-width: 2; stroke-dasharray: none; }
.m-gng-fill { stroke: var(--ink-2); stroke-width: 5; }
.m-gng-sign[data-cue="go"] .m-gng-fill, .m-gng-mini[data-cue="go"] .m-gng-fill { stroke: var(--good); }
.m-gng-sign[data-cue="stop"] .m-gng-fill, .m-gng-mini[data-cue="stop"] .m-gng-fill { stroke: var(--bad); }
.m-gng-sign[data-cue="go"] .m-gng-face, .m-gng-mini[data-cue="go"] .m-gng-face { fill: color-mix(in srgb, var(--good) 30%, var(--panel)); }
.m-gng-sign[data-cue="stop"] .m-gng-face, .m-gng-mini[data-cue="stop"] .m-gng-face { fill: color-mix(in srgb, var(--bad) 30%, var(--panel)); }
.m-gng-sign[data-cue="go"] .m-gng-fill, .m-gng-sign[data-cue="stop"] .m-gng-fill { stroke-width: 7; stroke-dasharray: none; }
.m-gng-sign[data-mark="bar"] .m-gng-fill, .m-gng-mini[data-mark="bar"] .m-gng-fill { stroke-dasharray: 5 3.3333; }
.m-gng-mark { position: absolute; top: 9%; left: 39%; width: 22%; height: 22%; color: var(--ink); }
.m-gng-mark:empty { display: none; }
.m-gng-mark .si { display: block; width: 100%; height: 100%; }
.m-gng-do { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--sign) * .03); max-width: 70%; text-align: center; font-size: clamp(15px, calc(var(--sign) * .07), 21px); font-weight: 600; line-height: 1.2; color: var(--ink); }
.m-gng-ico .ico { display: block; width: calc(var(--sign) * .26); height: calc(var(--sign) * .26); }
#mGoNoGo .m-feedback { line-height: 1.3; }
.m-gng-mini { position: relative; }
.m-gng-mini .m-gng-fill { stroke-width: 9; stroke-dasharray: none; }
.m-gng-mini .si { position: absolute; inset: 22%; width: 56%; height: 56%; color: var(--ink); }
#mRelease .m-stage { gap: 12px; padding: 16px clamp(14px, 4vw, 34px); }
.m-rt-prompt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; min-height: 64px; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 4.4vw, 32px); line-height: 1.1; letter-spacing: .03em; color: var(--ink); }
.m-rt-ico:empty { display: none; }
.m-rt-ico .ico { display: block; width: 64px; height: 64px; }
.m-rt-sweep { display: grid; gap: 6px; width: min(100%, 680px); padding-top: 22px; }
.m-rt-track { position: relative; height: 54px; border: 2px solid var(--line-2); border-radius: 10px; background: var(--panel); }
.m-rt-band { position: absolute; top: -2px; bottom: -2px; box-sizing: border-box; border: 2px dashed var(--good); border-radius: 6px; background: color-mix(in srgb, var(--good) 22%, transparent); }
.m-rt-band::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; background: var(--ink); }
.m-rt-name { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.m-rt-marker, .m-rt-landed { position: absolute; top: -8px; bottom: -8px; width: 0; }
.m-rt-marker { margin-left: -2px; border-left: 4px solid var(--ink); }
.m-rt-marker::before { content: ""; position: absolute; top: -9px; left: -9px; border: 7px solid transparent; border-top: 9px solid var(--ink); border-bottom: 0; }
.m-rt-landed { margin-left: -1.5px; border-left: 3px dotted var(--ink); }
.m-rt-landed::before { content: ""; position: absolute; top: -12px; left: -8.5px; box-sizing: border-box; width: 14px; height: 14px; border: 3px solid var(--ink); border-radius: 50%; background: var(--panel); }
.m-rt-scale { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
#mRelease .m-feedback { line-height: 1.3; }
#mCourse .m-stage { --plot: min(440px, 54vh); --pad: 10px; padding: 14px; }
.m-course-field { display: grid; justify-items: center; gap: 8px; width: min(100%, calc(var(--plot) + 2 * var(--pad) + 4px)); min-width: 0; padding: var(--pad); border: 2px dashed var(--line-2); border-radius: 14px; background: var(--panel); }
.m-course-field[data-state="on"] { border-style: solid; border-color: var(--good); }
.m-course-field[data-state="none"] { border-style: dotted; border-color: var(--warn); }
#mCourse .m-canvas { aspect-ratio: 1; border-radius: 10px; }
.m-course-state { min-height: 1.3em; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.m-course-field[data-state="on"] .m-course-state { color: var(--ink); }
#mCourse .m-feedback { line-height: 1.3; }
@media (max-width: 600px) {
  #mCourse .m-stage { --pad: 6px; padding: 6px; }
}
#mFlick .m-stage { --plot: min(440px, 54vh); --pad: 10px; padding: 14px; }
.m-flick-field { display: grid; justify-items: center; gap: 8px; width: min(100%, calc(var(--plot) + 2 * var(--pad) + 4px)); min-width: 0; padding: var(--pad); border: 2px dashed var(--line-2); border-radius: 14px; background: var(--panel); }
.m-flick-field[data-state="out"] { border-color: var(--ring); }
.m-flick-field[data-state="back"] { border-style: solid; border-color: var(--ring); }
.m-flick-field[data-state="none"] { border-style: dotted; border-color: var(--warn); }
#mFlick .m-canvas { aspect-ratio: 1; border-radius: 10px; }
.m-flick-state { min-height: 1.3em; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.m-flick-field:is([data-state="out"], [data-state="back"]) .m-flick-state { color: var(--ink); }
#mFlick .m-feedback { line-height: 1.3; }
@media (max-width: 600px) {
  #mFlick .m-stage { --pad: 6px; padding: 6px; }
}
#mTrigger .m-stage { padding: 14px; }
.m-trig-field { display: grid; justify-items: center; gap: 8px; width: min(100%, 780px); min-width: 0; padding: 10px; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--panel); }
.m-trig-field[data-state="in"] { border-style: solid; border-color: var(--good); }
.m-trig-field:is([data-state="none"], [data-state="digital"]) { border-style: dotted; border-color: var(--warn); }
#mTrigger .m-canvas { height: clamp(220px, 40vh, 340px); border-radius: 10px; }
.m-trig-state { min-height: 1.3em; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--ink-2); }
.m-trig-field:is([data-state="in"], [data-state="analog"]) .m-trig-state { color: var(--ink); }
@media (max-width: 600px) {
  #mTrigger .m-stage { padding: 6px; }
  .m-trig-field { padding: 6px; }
}
.m-hud > div { flex: 1 1 124px; }
#mRange .m-hud > div { grid-template-rows: 1fr auto; }
@container m-main (min-width: 780px) {
  #mRange .m-hud > div { flex-basis: 0; }
  #mRange .m-hud > div > span { white-space: nowrap; }
}
@container m-main (max-width: 779px) {
  #mRange .m-hud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #mRange .m-hud > div > span { white-space: normal; }
}
@container m-main (min-width: 420px) and (max-width: 779px) { #mRange .m-hud:where(:has(> :nth-child(5))) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-guide { display: grid; gap: 10px; justify-items: center; min-width: 0; }
.m-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.m-key { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.m-key-ico { flex: none; width: 40px; height: 40px; }
.m-key-ico .ico { display: block; width: 100%; height: 100%; }
.m-key b { font-family: var(--f-display); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.m-points { display: grid; gap: 8px; width: min(100%, 640px); padding: 10px 14px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-size: 13px; color: var(--ink-2); }
.m-points-title { margin: 0; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.m-points-rows { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.m-points-row { display: grid; gap: 4px; align-content: start; min-width: 0; }
.m-points-row dt { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.m-points-row dd { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.m-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--stage); white-space: nowrap; }
.m-chip b { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--line); text-align: center; font-family: var(--f-display); font-size: 15px; font-weight: 700; line-height: 20px; color: var(--ink); }
.m-bonus { margin: 0; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--stage); line-height: 1.4; }
.m-bonus b { flex: none; padding: 0 8px; border-radius: 999px; background: var(--accent); font-family: var(--f-display); font-size: 16px; font-weight: 700; line-height: 24px; color: var(--accent-ink); }
@media (max-width: 600px) { .m-points-rows { grid-template-columns: minmax(0, 1fr); } }
.m-guide .help { text-align: center; }
.m-rule { margin: 0; max-width: 75ch; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.m-status { margin: 0; min-height: 1.5em; text-align: center; font-size: 13.5px; color: var(--ink-2); }
.m-help { justify-self: center; text-align: center; }
.m-summary { padding-block: 2px 0; }
.m-summary .sum-big { font-size: clamp(60px, 9vw, 104px); }
.m-summary .sum-stats[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m-summary .sum-stats[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-summary .sum-stats[data-cols="2"] > :last-child:nth-child(n) { grid-column: auto; }
.m-summary .sum-stats[data-cols="2"] > :last-child:nth-child(2n + 1) { grid-column: 1 / -1; }
@media (max-width: 600px) { .m-summary .sum-stats[data-cols="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m-fields { display: grid; gap: 15px; }
.m-setup .seg { flex-wrap: wrap; }
.m-setup .seg label { flex: 1 1 auto; }
.m-setup .seg span { padding-inline: 9px; }
.m-setup .seg.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m-setup .seg.cols-4 span { display: grid; place-items: center; height: 100%; padding-inline: 4px; white-space: normal; line-height: 1.2; }
.m-setup .seg .seg-icon .ico { display: block; width: 36px; height: 36px; }
.m-setup .seg.cols-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.m-setup .seg.cols-5 > label > span { height: 100%; padding: 6px 2px 5px; }
.m-setup .seg .seg-pic, .m-setup .seg .seg-cap { padding: 0; border-radius: 0; color: inherit; white-space: normal; }
.m-setup .seg .seg-pic .ico { width: 40px; height: 40px; margin-inline: auto; }
.m-setup .seg .seg-cap { margin-top: 3px; font-size: 11.5px; line-height: 1.15; }
.m-setup .pair select { justify-self: end; max-width: 100%; }
.m-pool { grid-column: 1 / -1; }
.m-pool-fields { margin-left: auto; min-width: 0; }
.m-pool-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--warn); }
.m-pool-lock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.m-pool-lock[hidden] { display: none; }
.m-pool-fields .pair { grid-template-columns: auto auto; }
.m-pool-body { display: grid; gap: 12px; }
.m-pool .m-card-sec { display: grid; gap: 12px; min-width: 0; }
.m-pool .help { white-space: pre-line; }
.m-pool .m-tile { position: relative; display: block; width: 64px; }
.m-pool .m-tile input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.m-pool .m-tile-face { display: grid; justify-items: center; align-content: start; gap: 4px; height: 100%; padding: 7px 2px 6px; border: 1px solid transparent; border-radius: 12px; color: var(--ink-2); font-size: 11px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.m-pool .m-tile:hover .m-tile-face { background: var(--raised); }
.m-pool .m-tile-icon .ico { display: block; width: 46px; height: 46px; }
.m-pool .m-tile input:not(:checked) + .m-tile-face .m-tile-icon, .m-pool .m-tile input:not(:checked) + .m-tile-face .m-tile-cap { opacity: .3; }
.m-pool .m-tile input:not(:checked) + .m-tile-face .m-tile-cap { text-decoration: line-through; }
.m-pool .m-tile input:focus-visible + .m-tile-face { outline: 2px solid var(--accent-fg); outline-offset: 1px; }
.m-pool .m-tile input:disabled { cursor: not-allowed; }
.m-pool .m-tile input:disabled + .m-tile-face { opacity: .6; }
.m-pool .m-tile[data-missing="true"] .m-tile-face { border-style: dashed; border-color: var(--line-2); }
.m-pool .m-tile[data-missing="true"] .m-tile-cap { text-decoration: none; }
.m-pool .pair select:disabled { opacity: .45; cursor: not-allowed; }
.m-out { white-space: nowrap; }
.m-setup .switch input:disabled, .m-setup input[type="range"]:disabled, .m-setup select:disabled { opacity: .45; cursor: not-allowed; }
.m-setup .seg input:disabled { cursor: not-allowed; }
.m-setup .seg input:disabled + span { opacity: .45; }
.m-note { color: var(--warn); }
.m-note:empty { position: absolute; }
.m-setup .panel-head > .btn { align-self: center; margin-block: -3px; margin-left: auto; }
.m-challenge { display: grid; gap: 12px; }
.m-challenge-about { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.m-challenge-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.m-challenge-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.m-challenge-control { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.m-challenge-ico .ico { display: block; width: 24px; height: 24px; }
.m-challenge-best { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--raised); font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.m-challenge-best b { font-weight: 700; }
.m-challenge-result { margin: 6px 0 0; font-weight: 700; color: var(--accent-fg); }
.m-share-open { margin-top: 6px; }
.m-share-card { width: min(100%, 420px); margin-top: 10px; text-align: start; }
.m-bar-chip { display: inline-block; margin-left: 12px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: var(--f-body); font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; vertical-align: 3px; white-space: nowrap; }
.m-trace { display: grid; gap: 10px; }
.m-trace-out { margin: 0; max-height: 46vh; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--stage); font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.m-page {
  --face: linear-gradient(180deg, color-mix(in srgb, var(--raised) 70%, var(--panel)) 0%, var(--panel) 42%, color-mix(in srgb, var(--ground) 55%, var(--panel)) 100%);
  --bevel: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .28);
  --lift: 0 16px 34px -20px rgba(0, 0, 0, .9), 0 3px 8px -3px rgba(0, 0, 0, .55);
}
.m-dual-area, .m-track-field, .m-course-field, .m-flick-field, .m-trig-field { background: var(--face); box-shadow: var(--bevel), var(--lift); }
:is(#mDual, #mTracking, #mCourse, #mFlick, #mTrigger) .m-canvas { box-shadow: 0 0 0 1px color-mix(in srgb, var(--line-2) 80%, transparent), 0 0 0 4px color-mix(in srgb, var(--ground) 70%, transparent); }
.m-dual-state, .m-track-state, .m-course-state, .m-flick-state, .m-trig-state { font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.m-dual-area[data-state="on"] .m-dual-state, .m-track-field[data-state="on"] .m-track-state, .m-course-field[data-state="on"] .m-course-state, .m-trig-field[data-state="in"] .m-trig-state { color: var(--good); }
.m-hud { gap: 6px; border: 0; border-radius: 0; background: none; overflow: visible; }
.m-hud > div { grid-template-rows: 1fr auto; gap: 2px; padding: 9px 12px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--face); box-shadow: var(--bevel), 0 8px 18px -14px rgba(0, 0, 0, .9); }
.m-hud .k { font-size: 10.5px; letter-spacing: .1em; text-wrap: balance; }
.m-hud .v { font-family: var(--f-display); font-size: 26px; font-weight: 700; line-height: 1.05; letter-spacing: .02em; }
#mFlick .m-hud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) {
  #mFlick .m-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #mFlick .m-hud :where(.v) { white-space: normal; text-wrap: balance; }
}
#mHeartbeat .m-canvas { box-shadow: 0 0 0 1px color-mix(in srgb, var(--line-2) 80%, transparent), 0 0 0 5px color-mix(in srgb, var(--ground) 75%, transparent), var(--lift); }
:is(#mHeartbeat, #mTapping) .m-cue-icon { border-radius: 50%; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--ring) 22%, transparent), transparent 68%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ring) 30%, transparent), 0 0 26px -6px color-mix(in srgb, var(--ring) 60%, transparent); }
@media (min-width: 601px) { .m-sequence-memory-row { --cell: 84px; } }
.m-sequence-memory-cell { background: linear-gradient(180deg, color-mix(in srgb, var(--raised) 85%, var(--ink)) 0%, var(--raised) 14%, var(--panel) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -5px 0 rgba(0, 0, 0, .32), 0 8px 16px -10px rgba(0, 0, 0, .9); }
.m-sequence-memory-cell[data-state="now"] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -5px 0 rgba(0, 0, 0, .32), 0 0 0 3px color-mix(in srgb, var(--ring) 30%, transparent), 0 0 22px -4px color-mix(in srgb, var(--ring) 70%, transparent); }
.m-sequence-memory-cell[data-state="shown"] { border-color: color-mix(in srgb, var(--ring) 55%, var(--line-2)); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--ring) 16%, var(--raised)), var(--panel) 80%); }
.m-sequence-memory-cell:is([data-state="covered"], [data-state="open"], [data-state="idle"]) { background: color-mix(in srgb, var(--panel) 80%, var(--ground)); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .45); }
.m-sequence-memory-cell[data-state="right"] { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .32), 0 0 18px -6px color-mix(in srgb, var(--good) 80%, transparent); }
.m-sequence-memory-cell[data-state="wrong"] { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .32), 0 0 18px -6px color-mix(in srgb, var(--bad) 80%, transparent); }
.m-sequence-memory-cell[data-state="idle"] { border-style: dashed; opacity: .8; }
.m-bar { height: 10px; background: color-mix(in srgb, var(--ground) 70%, var(--panel)); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .05); }
.m-bar i { background: linear-gradient(90deg, color-mix(in srgb, var(--ring) 70%, var(--ground)), var(--ring)); box-shadow: 0 0 12px -2px var(--ring); }
#mTapping .m-count { min-width: 2.4em; padding: .06em .25em 0; border-radius: 14px; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--ground) 80%, #000), var(--stage)); box-shadow: inset 0 3px 10px rgba(0, 0, 0, .6), 0 0 0 1px var(--line-2), var(--lift); text-shadow: 0 0 22px color-mix(in srgb, var(--ring) 55%, transparent); }
#mTapping .m-bar { --seg: calc(.24 * clamp(72px, 12vw, 120px)); height: 12px; width: min(100%, calc(10 * var(--seg))); border-radius: 4px; }
#mTapping .m-bar i { border-radius: 4px; -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(var(--seg) - 3px), transparent calc(var(--seg) - 3px) var(--seg)); mask: repeating-linear-gradient(90deg, #000 0 calc(var(--seg) - 3px), transparent calc(var(--seg) - 3px) var(--seg)); }
.m-gng-sign::after { content: ""; position: absolute; inset: 7%; z-index: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse 60% 38% at 50% 13%, rgba(255, 255, 255, .22), transparent 70%), radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, .38) 100%); }
.m-gng-mark, .m-gng-do { z-index: 2; }
.m-gng-sign .m-gng-ring { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.m-gng-sign[data-cue="go"] .m-gng-ring { filter: drop-shadow(0 0 22px color-mix(in srgb, var(--good) 60%, transparent)); }
.m-gng-sign[data-cue="stop"] .m-gng-ring { filter: drop-shadow(0 0 22px color-mix(in srgb, var(--bad) 60%, transparent)); }
.m-gng-sign .m-gng-ico { display: grid; place-items: center; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent), 0 6px 14px -6px rgba(0, 0, 0, .8); }
.m-rt-track { background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), color-mix(in srgb, var(--ink-3) 55%, transparent) calc(10% - 1px) 10%) bottom / 100% 9px no-repeat, linear-gradient(180deg, color-mix(in srgb, var(--ground) 75%, #000), var(--panel) 70%); box-shadow: inset 0 4px 10px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .06), var(--lift); }
.m-rt-band { box-shadow: 0 0 18px -4px color-mix(in srgb, var(--good) 70%, transparent), inset 0 0 12px -4px color-mix(in srgb, var(--good) 60%, transparent); }
.m-rt-marker { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--ink) 70%, transparent)); }
.m-rt-ico { border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ring) 30%, transparent), 0 0 24px -6px color-mix(in srgb, var(--ring) 60%, transparent); }
@keyframes m-press-a { 0% { transform: scale(1); } 35% { transform: scale(.86); } 100% { transform: scale(1); } }
@keyframes m-press-b { 0% { transform: scale(1); } 35% { transform: scale(.86); } 100% { transform: scale(1); } }
@keyframes m-press-ring { 0% { outline: 3px solid color-mix(in srgb, var(--ring) 80%, transparent); outline-offset: 0; } 100% { outline: 3px solid color-mix(in srgb, var(--ring) 0%, transparent); outline-offset: 14px; } }
.m-page [data-pulse="a"] { animation: m-press-a .18s ease-out, m-press-ring .3s ease-out; }
.m-page [data-pulse="b"] { animation: m-press-b .18s ease-out, m-press-ring .3s ease-out; }
.m-page .m-sequence-memory-cell.m-press { animation: m-press-a .18s ease-out, m-press-ring .3s ease-out; }
.m-stage[data-result="up"] { align-content: start; --below: 0px !important; }
.m-stage[data-result="up"] > :not(.m-summary) { display: none; }
.m-stage[data-result="up"]::after { display: none !important; }
#mRange .m-stage:where([data-result="up"]) { padding: 16px; }
.m-stage > .m-summary { box-sizing: border-box; width: min(100%, 760px); margin: clamp(4px, 2vh, 18px) 0; padding: 18px clamp(14px, 2.4vw, 24px) 16px; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); border-radius: 22px; background: linear-gradient(180deg, color-mix(in srgb, color-mix(in srgb, var(--raised) 45%, var(--stage)) 94%, transparent) 0%, color-mix(in srgb, var(--stage) 93%, transparent) 30%, color-mix(in srgb, var(--stage) 94%, transparent) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(0, 0, 0, .25), 0 24px 50px -24px rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(12px) saturate(.9); backdrop-filter: blur(12px) saturate(.9); text-align: start; }
.m-summary .sum-stats :is(dt, dd) { text-wrap: balance; }
@media (max-width: 600px) {
  .m-stage > .m-summary { padding-inline: 10px; }
  .m-summary .sum-stats > div { padding: 9px 10px; }
  .m-summary .sum-stats dd { font-size: 17px; }
}
.sum-how { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }
.sum-compare { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--raised) 70%, transparent); font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.sum-compare::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sum-compare[data-trend="better"] { border-color: color-mix(in srgb, var(--good) 55%, var(--line-2)); color: var(--ink); }
.sum-compare:is([data-trend="better"], [data-trend="worse"])::before { width: 10px; height: 9px; border-radius: 0; }
.sum-compare[data-trend="better"]::before { background: var(--good); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sum-compare[data-trend="worse"]::before { background: var(--warn); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.sum-compare[data-trend="level"]::before { content: "="; width: auto; height: auto; border-radius: 0; background: none; }
.sum-pic { min-width: 0; }
.m-pic { margin: 0; display: grid; gap: 8px; padding: 12px 14px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--face); box-shadow: var(--bevel); }
.m-pic-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: 12px; color: var(--ink-3); }
.m-pic-head b { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.m-pic-key { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--ink-2); }
.m-pic-key li { display: inline-flex; align-items: center; gap: 6px; }
.m-pic-key i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.m-pic-key i.k-settled { width: 10px; height: 10px; border-radius: 50%; }
.m-pic svg { display: block; width: 100%; overflow: visible; }
.m-pic svg text { font-family: var(--f-body); }
.m-pic-plot { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; }
.m-pic-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-3); text-align: end; }
.tr-svg { height: clamp(110px, 18vw, 170px); border-radius: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--ground) 92%, var(--ink)), color-mix(in srgb, var(--ground) 80%, #000)); }
.tr-svg path { vector-effect: non-scaling-stroke; fill: none; }
.tr-svg .tr-grid { stroke: var(--line); stroke-width: 1; }
.tr-svg .tr-seg { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 4; }
.tr-svg .tr-band { fill: color-mix(in srgb, var(--band) 24%, transparent); stroke: color-mix(in srgb, var(--band) 70%, transparent); stroke-width: 1; }
.tr-svg .tr-band.tr-lead { fill: color-mix(in srgb, var(--ink-3) 18%, transparent); stroke: color-mix(in srgb, var(--ink-3) 50%, transparent); }
.tr-svg .tr-line { stroke-width: 2; stroke-linejoin: round; }
.tr-svg .tr-out { stroke: var(--ink); }
.tr-svg .tr-line.tr-lead { stroke: var(--ink-3); }
.tr-svg .tr-in { stroke: var(--good); stroke-width: 2.5; }
.tr-svg .tr-settled { stroke: var(--good); stroke-width: 9; stroke-linecap: round; }
.m-pic-axis { display: flex; justify-content: space-between; padding-left: 34px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.k-in { background: var(--good); }
.k-out { background: var(--ink); }
.k-band { background: color-mix(in srgb, var(--band) 40%, transparent); box-shadow: inset 0 0 0 1px var(--band); }
.k-settled { background: var(--good); }
.k-bad { background: var(--bad); }
.k-warn { background: var(--warn); }
.k-ring { background: var(--band); }
.k-dim { background: var(--ink-3); }
.rp-track { fill: color-mix(in srgb, var(--ground) 70%, var(--panel)); }
.rp-good { fill: var(--good); }
.rp-bad { fill: var(--bad); }
.rp-warn { fill: var(--warn); }
.rp-ring { fill: var(--band); }
.rp-dim { fill: var(--ink-3); }
.rp-line { stroke: var(--line-2); stroke-width: 1; fill: none; }
.rp-mid { stroke: var(--ink); stroke-width: 2; fill: none; }
.rp-rows { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
.rp-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.rp-value { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); text-align: end; }
.rp-bar { display: block; width: 100%; height: 12px; border-radius: 6px; overflow: hidden; }
.rp-stack .rp-bar { height: 16px; border-radius: 8px; }
.rp-hist { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; padding-bottom: 2px; }
.rp-col { display: grid; justify-items: center; gap: 3px; min-width: 0; text-align: center; }
.m-pic .rp-colbar { display: block; width: min(100%, 52px); height: 72px; border-radius: 6px 6px 3px 3px; overflow: hidden; }
.rp-colbar .rp-track { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
.rp-col b { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink); }
.rp-col span { font-size: 11px; line-height: 1.2; color: var(--ink-3); }
.rp-strip { display: grid; gap: 4px; }
.rp-dots { display: block; width: 100%; height: 34px; overflow: visible; }
.rp-dots path { vector-effect: non-scaling-stroke; }
.rp-dot { fill: none; stroke: var(--band); stroke-width: 10; stroke-linecap: round; opacity: .85; }
.rp-span { fill: none; stroke: var(--band); stroke-width: 4; stroke-linecap: round; }
.rp-end { fill: none; stroke: var(--band); stroke-width: 10; stroke-linecap: round; }
.rp-band { fill: color-mix(in srgb, var(--band) 28%, transparent); }
.rp-dots .rp-mid { stroke: var(--ink); stroke-width: 2.5; }
.rp-scale { position: relative; display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.m-pic svg.rp-flag { height: 18px; margin-bottom: -6px; }
.rp-flag text { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; fill: var(--ink); }
.rp-cap { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.rp-stack { display: grid; gap: 6px; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-chip { display: inline-grid; justify-items: center; gap: 6px; min-width: 66px; padding: 8px 10px 6px; border: 1px solid var(--line-2); border-radius: 10px; background: color-mix(in srgb, var(--ground) 50%, var(--panel)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-2); }
.rp-chip[data-ok="true"] { border-color: color-mix(in srgb, var(--good) 60%, var(--line-2)); color: var(--ink); }
.rp-cells { display: inline-flex; gap: 3px; }
.rp-cells i { width: 10px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--bad) 75%, var(--panel)); }
.rp-cells i.on { background: var(--good); }
.rp-chips[data-empty="open"] .rp-cells i:not(.on) { background: none; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.rp-group { display: grid; gap: 12px; }
