:root {
  --paper: #f2f0e8;
  --paper-deep: #e7e4da;
  --ink: #101814;
  --ink-soft: #23362d;
  --acid: #d9f259;
  --orange: #f06b45;
  --blue: #9ec9dc;
  --white: #fffef9;
  --muted: #6d746f;
  --line: rgba(16, 24, 20, .16);
  --dark-line: rgba(255, 255, 255, .15);
  --shadow: 0 24px 70px rgba(16, 24, 20, .12);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Songti SC", "STSong", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; overflow: hidden; }
.topbar { position: sticky; z-index: 30; top: 0; height: 74px; padding: 0 clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(242, 240, 232, .92); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand > span:last-child { display: grid; line-height: 1; }
.brand strong { font: 800 23px/1 var(--serif); letter-spacing: .13em; }
.brand small { margin-top: 6px; font-size: 7px; font-weight: 900; letter-spacing: .18em; }
.brand-mark { width: 38px; height: 38px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 3px; padding: 8px; color: var(--acid); background: var(--ink); border-radius: 50%; transform: rotate(-9deg); }
.brand-mark i { display: block; height: 8px; background: currentColor; border-radius: 4px; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 12px; }
.brand-mark i:nth-child(4) { height: 5px; }
.topbar nav { display: flex; gap: 34px; font-size: 11px; font-weight: 800; }
.topbar nav a { padding: 28px 0; position: relative; }
.topbar nav a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 20px; height: 2px; background: var(--orange); }
.top-cta { padding: 11px 17px; display: flex; align-items: center; gap: 9px; color: var(--white); background: var(--ink); border-radius: 999px; font-size: 10px; font-weight: 900; }
.top-cta span { color: var(--acid); font-size: 9px; }

.hero { min-height: 690px; padding: 74px clamp(25px, 7vw, 110px); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(45px, 7vw, 110px); border-bottom: 1px solid var(--line); background-image: linear-gradient(rgba(16,24,20,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(16,24,20,.035) 1px, transparent 1px); background-size: 28px 28px; }
.kicker { margin: 0 0 18px; color: var(--orange); font-size: 9px; font-weight: 950; letter-spacing: .2em; text-transform: uppercase; }
.kicker span { margin-right: 11px; color: var(--ink); font: 700 13px var(--serif); letter-spacing: 0; }
.hero h1 { margin: 0; font: 800 clamp(55px, 6.5vw, 94px)/.98 var(--serif); letter-spacing: -.07em; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-lead { max-width: 570px; margin: 32px 0 0; color: rgba(16,24,20,.67); font: 16px/1.95 var(--serif); }
.hero-lead b { padding: 2px 5px; color: var(--ink); background: var(--acid); }
.hero-actions { margin-top: 37px; display: flex; align-items: center; gap: 28px; }
.button { border: 0; cursor: pointer; }
.button-primary { padding: 15px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 34px; border: 0; color: var(--white); background: var(--ink); box-shadow: 7px 7px 0 var(--acid); cursor: pointer; font-size: 11px; font-weight: 900; }
.button-primary:hover { background: var(--ink-soft); transform: translate(-1px, -1px); }
.text-button { padding: 8px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 10px; font-weight: 900; }
.text-button span { margin-left: 10px; color: var(--orange); }
.hero-grid { min-width: 0; position: relative; padding: 27px 30px 25px; color: var(--white); background: var(--ink); box-shadow: 18px 18px 0 var(--blue), var(--shadow); transform: rotate(1.2deg); }
.hero-grid::before { content: "16"; position: absolute; right: 18px; top: -66px; color: rgba(16,24,20,.08); font: 900 130px/.8 var(--serif); }
.hero-grid-head, .hero-grid-foot { display: flex; align-items: center; justify-content: space-between; }
.hero-grid-head span { color: var(--acid); font-size: 8px; font-weight: 950; letter-spacing: .17em; }
.hero-grid-head b { font: 700 13px var(--serif); }
.pulse-line { position: relative; height: 2px; margin: 27px 0 19px; background: rgba(255,255,255,.14); }
.pulse-line i { position: absolute; width: 8%; left: 0; top: -1px; height: 4px; background: var(--orange); box-shadow: 0 0 16px var(--orange); animation: pulse-move 4s linear infinite; }
@keyframes pulse-move { to { transform: translateX(1150%); } }
.hero-beats, .hero-pattern { display: grid; grid-template-columns: repeat(16, minmax(20px, 1fr)); }
.hero-beats > div { grid-column: span 4; padding: 14px 5px 10px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.16); border-right: 0; text-align: center; }
.hero-beats > div:last-child { border-right: 1px solid rgba(255,255,255,.16); }
.hero-beats b { color: var(--acid); font: 700 24px var(--serif); }
.hero-beats span { padding-top: 6px; color: rgba(255,255,255,.6); font: 700 13px var(--serif); }
.hero-pattern { margin-top: 9px; }
.hero-pattern span { padding: 15px 2px; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.3); font: 700 16px var(--serif); text-align: center; }
.hero-pattern span:not(:nth-child(2)):not(:nth-child(9)):not(:nth-child(12)):not(:nth-child(14)):not(:nth-child(15)) { color: var(--orange); }
.hero-grid-foot { margin-top: 24px; justify-content: flex-start; gap: 22px; color: rgba(255,255,255,.5); font-size: 8px; font-weight: 800; }
.hero-grid-foot span { display: flex; align-items: center; gap: 6px; }
.hero-grid-foot i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.legend-note { background: var(--orange); }.legend-rest { border: 1px solid rgba(255,255,255,.55); }.legend-time { background: var(--acid); }
.manifesto { min-height: 92px; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.manifesto p { margin: 0; padding: 22px clamp(25px, 4vw, 65px); display: grid; gap: 7px; border-right: 1px solid var(--line); }
.manifesto p:last-child { border-right: 0; }
.manifesto b { font: 700 15px var(--serif); }.manifesto span { color: var(--muted); font-size: 9px; }

.trainer-section, .route-section, .editor-section, .record-section, .goal-section { padding: 92px clamp(22px, 5vw, 76px); }
.section-intro { max-width: 1450px; margin: 0 auto 38px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-intro h2 { margin: 0; font: 800 clamp(36px, 4vw, 58px)/1 var(--serif); letter-spacing: -.04em; }
.section-intro > p { max-width: 430px; margin: 0; color: var(--muted); font: 13px/1.8 var(--serif); }
.trainer-layout { max-width: 1450px; margin: auto; display: grid; grid-template-columns: 225px minmax(610px, 1fr) 210px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.control-panel, .pattern-panel { padding: 24px 20px; background: var(--paper-deep); }
.control-panel { border-right: 1px solid var(--line); }.pattern-panel { border-left: 1px solid var(--line); }
.panel-heading { padding-bottom: 17px; display: grid; gap: 5px; border-bottom: 1px solid var(--line); }
.panel-heading span { color: var(--orange); font-size: 7px; font-weight: 950; letter-spacing: .17em; }.panel-heading b { font: 700 18px var(--serif); }
.tempo-block { padding: 20px 0 13px; }
.tempo-block > div:first-child { display: flex; align-items: end; justify-content: space-between; }
.tempo-block > div > span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.tempo-block output { font: 800 49px/.9 var(--serif); letter-spacing: -.05em; }
input[type="range"] { width: 100%; accent-color: var(--orange); }
.tempo-block input { margin: 18px 0 11px; }
.tempo-buttons, .tempo-presets { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; }
.tempo-buttons button, .tempo-presets button { padding: 7px 3px; border: 1px solid var(--line); background: rgba(255,255,255,.45); cursor: pointer; font-size: 8px; font-weight: 900; }
.tempo-presets { grid-template-columns: repeat(5,1fr); margin-top: 5px; }
.tempo-presets button { border: 0; background: transparent; color: var(--muted); }.tempo-presets button.active { color: var(--ink); background: var(--acid); }
.field-label { margin: 16px 0 7px; display: block; color: var(--muted); font-size: 8px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border: 1px solid var(--line); background: rgba(255,255,255,.38); }
.segmented button { min-height: 30px; padding: 6px; border: 0; background: transparent; cursor: pointer; font-size: 8px; font-weight: 900; }
.segmented button.active { color: var(--white); background: var(--ink); }
select { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 0; outline: none; color: var(--ink); background: var(--white); font-size: 9px; font-weight: 700; }
.switches { padding: 17px 0 2px; display: grid; gap: 10px; }
.switches label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-soft); font-size: 9px; font-weight: 700; }
.switches input { position: absolute; opacity: 0; pointer-events: none; }
.switches label > span { width: 25px; height: 14px; position: relative; border-radius: 20px; background: rgba(16,24,20,.2); transition: .15s; }
.switches label > span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--white); transition: .15s; }
.switches input:checked + span { background: var(--ink); }.switches input:checked + span::after { transform: translateX(11px); background: var(--acid); }
.transport { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.transport button { padding: 10px 5px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 8px; font-weight: 900; }
.transport .play-button { grid-column: 1 / 3; padding: 13px; color: var(--white); background: var(--ink); border-color: var(--ink); font-size: 10px; }.play-button span { margin-right: 6px; color: var(--acid); }
.lost-button { width: 100%; margin-top: 8px; padding: 10px; border: 1px solid rgba(240,107,69,.55); color: #b74c30; background: rgba(240,107,69,.08); cursor: pointer; font-size: 9px; font-weight: 900; }.lost-button span { width: 16px; height: 16px; margin-right: 6px; display: inline-grid; place-items: center; color: var(--white); background: var(--orange); border-radius: 50%; }

.practice-stage { min-width: 0; padding: 31px 34px 28px; }
.stage-topline { display: flex; justify-content: space-between; gap: 20px; }
.category-badge { padding: 5px 8px; color: #724a00; background: var(--acid); font-size: 7px; font-weight: 950; letter-spacing: .1em; }
.stage-topline h3 { margin: 14px 0 6px; font: 800 30px/1.1 var(--serif); }.stage-topline p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.difficulty { flex: none; display: grid; justify-items: end; align-content: start; gap: 5px; }.difficulty span, .difficulty small { color: var(--muted); font-size: 7px; font-weight: 900; }.difficulty b { color: var(--orange); font-size: 9px; letter-spacing: .14em; }
.now-playing { margin: 25px 0 17px; padding: 10px 14px; display: grid; grid-template-columns: 1fr repeat(3, auto); align-items: center; gap: 20px; color: var(--white); background: var(--ink); }
.now-playing > span { color: var(--acid); font-size: 8px; font-weight: 950; letter-spacing: .12em; }.now-playing > div { min-width: 47px; display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 7px; border-left: 1px solid rgba(255,255,255,.13); padding-left: 14px; }.now-playing small { color: rgba(255,255,255,.45); font-size: 6px; font-weight: 900; }.now-playing b { font: 700 18px var(--serif); }
.view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.segmented.compact { width: fit-content; grid-template-columns: repeat(4, 65px); }.segmented.compact button { min-height: 25px; }
.answer-button { padding: 7px 10px; border: 1px solid var(--orange); color: var(--orange); background: transparent; cursor: pointer; font-size: 8px; font-weight: 900; }
.score-view { min-height: 112px; margin-top: 15px; padding: 18px 18px 15px; display: grid; grid-template-columns: 28px 1fr; align-items: center; border: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0 14px, rgba(16,24,20,.13) 15px 16px, transparent 17px 19px); background-size: 100% 80px; background-position: 0 12px; }
.score-meta { display: grid; font: 800 20px/.75 var(--serif); }.score-beats { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }.score-beat { min-height: 69px; display: grid; place-items: center; border-left: 1px solid rgba(16,24,20,.13); font: 700 28px var(--serif); }.score-beat small { margin-top: -10px; padding: 2px 4px; color: var(--muted); background: var(--white); font: 700 7px var(--sans); }
.grid-wrap { position: relative; margin-top: 15px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.rhythm-grid { display: grid; grid-template-columns: repeat(16, minmax(33px,1fr)); }
.beat-group { grid-column: span 4; display: grid; grid-template-columns: repeat(4,1fr); border-right: 2px solid var(--ink); }
.beat-group:last-child { border-right: 0; }
.grid-cell { min-width: 0; min-height: 148px; padding: 13px 3px 8px; position: relative; display: grid; grid-template-rows: 31px 37px 31px; place-items: center; gap: 5px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: default; }
.beat-group .grid-cell:last-child { border-right: 0; }
.grid-cell .count { font: 700 15px var(--serif); }.grid-cell.beat-start .count { color: var(--ink); font-size: 27px; font-weight: 800; }.grid-cell:not(.beat-start) .count { color: var(--muted); }
.grid-cell .pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(16,24,20,.18); }.grid-cell.beat-start .pulse-dot { width: 10px; height: 10px; background: var(--ink); }
.grid-cell .state { font: 800 25px var(--serif); }.grid-cell[data-type="note"] .state { color: var(--orange); }.grid-cell[data-type="rest"] .state { color: rgba(16,24,20,.25); }.grid-cell[data-type="tie"] .state { width: 100%; color: var(--blue); text-align: center; }
.grid-cell .hand { font-size: 17px; font-weight: 900; }.grid-cell[data-type="rest"] .hand, .grid-cell[data-type="tie"] .hand { opacity: .25; }.grid-cell.accent .state::after { content: "•"; position: absolute; margin: -7px 0 0 1px; color: var(--ink); font-size: 13px; }
.grid-cell.active { background: var(--acid); }.grid-cell.active .pulse-dot { box-shadow: 0 0 0 6px rgba(240,107,69,.18); background: var(--orange); }.grid-cell.analysis-active { box-shadow: inset 0 0 0 3px var(--blue); background: rgba(158,201,220,.25); }
.grid-cell.hidden-content .count, .grid-cell.hidden-content .pulse-dot { visibility: hidden; }
.grid-cursor { position: absolute; z-index: 5; left: 0; top: 0; bottom: 0; width: calc(100% / 16); pointer-events: none; transform: translateX(0); will-change: transform; }.grid-cursor::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--orange); box-shadow: 0 0 10px rgba(240,107,69,.45); }.grid-cursor i { position: absolute; z-index: 2; left: calc(50% - 5px); top: -1px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--orange); }
.grid-legend { padding: 12px 4px 5px; display: flex; flex-wrap: wrap; gap: 17px; color: var(--muted); font-size: 7px; font-weight: 800; }.grid-legend span { display: flex; align-items: center; gap: 5px; }.grid-legend b { font: 800 12px var(--serif); }.note-key { color: var(--orange); }.rest-key { color: var(--muted); }.tie-key { color: #4d869e; }.accent-key { color: var(--ink); }
.analysis-bar { min-height: 40px; margin-top: 14px; padding: 7px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); background: rgba(158,201,220,.09); }.analysis-bar button { padding: 7px 10px; border: 0; background: transparent; cursor: pointer; font-size: 8px; font-weight: 900; }.analysis-bar > div { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; }.analysis-bar span { color: var(--ink-soft); font: 700 11px var(--serif); text-align: center; }
.practice-steps { margin-top: 17px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 7px; border-top: 1px solid var(--line); }.practice-steps > span { color: var(--muted); font-size: 7px; font-weight: 900; }.practice-steps button { padding: 6px 9px; display: grid; grid-template-columns: auto auto; gap: 3px 6px; border: 0; background: transparent; cursor: pointer; opacity: .45; text-align: left; }.practice-steps button.active { opacity: 1; background: var(--acid); }.practice-steps button b { grid-row: 1 / 3; color: var(--orange); font: 700 9px var(--serif); }.practice-steps button { font-size: 10px; font-weight: 900; }.practice-steps small { color: var(--muted); font-size: 6px; font-weight: 700; }.practice-steps i { color: var(--orange); font-style: normal; font-size: 10px; }
.segmented.vertical { grid-template-columns: 1fr; }.segmented.vertical button { text-align: left; padding-left: 10px; }
.new-pattern { width: 100%; margin-top: 14px; padding: 15px 9px; display: grid; grid-template-columns: 28px 1fr; border: 0; color: var(--white); background: var(--ink); cursor: pointer; text-align: left; }.new-pattern > span { grid-row: 1 / 3; color: var(--acid); font-size: 22px; }.new-pattern b { font-size: 10px; }.new-pattern small { margin-top: 5px; color: rgba(255,255,255,.45); font-size: 7px; }.new-pattern i { color: var(--acid); font-style: normal; }
.quick-patterns { margin-top: 24px; }.quick-patterns p { color: var(--muted); font-size: 8px; font-weight: 900; }.quick-patterns button { width: 100%; padding: 10px 0; display: grid; grid-template-columns: 48px 1fr; gap: 7px; border: 0; border-top: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink-soft); font-size: 8px; text-align: left; }.quick-patterns button span { color: var(--orange); font: 800 10px var(--serif); letter-spacing: .06em; }
.training-note { margin-top: 22px; padding: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.4); }.training-note span { color: var(--orange); font-size: 7px; font-weight: 900; }.training-note p { margin: 8px 0 0; color: var(--muted); font: 10px/1.6 var(--serif); }

.route-section { color: var(--white); background: var(--ink); }.section-intro.light .kicker span { color: var(--white); }.section-intro.light > p { color: rgba(255,255,255,.55); }
.course-grid { max-width: 1450px; margin: auto; display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--dark-line); border-left: 1px solid var(--dark-line); }
.course-card { min-height: 184px; padding: 17px 14px; display: grid; grid-template-rows: auto 1fr auto; border: 0; border-right: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); color: var(--white); background: transparent; cursor: pointer; text-align: left; transition: .18s; }.course-card:hover { color: var(--ink); background: var(--acid); transform: translateY(-3px); }.course-card > span { color: var(--orange); font: 700 16px var(--serif); }.course-card:hover > span { color: var(--orange); }.course-card h3 { margin: 20px 0 7px; font: 700 16px/1.25 var(--serif); }.course-card p { margin: 0; color: rgba(255,255,255,.45); font-size: 8px; line-height: 1.6; }.course-card:hover p { color: rgba(16,24,20,.6); }.course-card b { font-size: 8px; letter-spacing: .08em; }.course-card:nth-child(14) { background: var(--orange); }.course-card:nth-child(14):hover { background: var(--acid); }

.editor-card { max-width: 1450px; margin: auto; padding: 31px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.editor-help { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 8px; }.editor-help b { color: var(--ink); font: 700 11px var(--serif); }.editor-help i { width: 1px; height: 21px; margin: 0 8px; background: var(--line); }
.editor-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(16, 1fr); border: 1px solid var(--line); }.editor-cell { min-width: 0; min-height: 96px; padding: 8px 2px; position: relative; display: grid; place-items: center; gap: 5px; border: 0; border-right: 1px solid var(--line); background: var(--paper); cursor: pointer; }.editor-cell:nth-child(4n) { border-right: 2px solid var(--ink); }.editor-cell:last-child { border-right: 0; }.editor-cell span { color: var(--muted); font: 700 11px var(--serif); }.editor-cell b { font: 800 24px var(--serif); }.editor-cell[data-type="note"] b { color: var(--orange); }.editor-cell[data-type="tie"] b { color: #4d869e; }.editor-cell[data-type="rest"] b { color: rgba(16,24,20,.26); }.editor-cell.accent::after { content: "ACCENT"; position: absolute; bottom: 4px; color: var(--orange); font-size: 5px; font-weight: 950; }
.editor-actions { margin-top: 18px; display: flex; align-items: end; justify-content: flex-end; gap: 8px; }.editor-actions label { flex: 1; display: grid; gap: 6px; }.editor-actions label span { color: var(--muted); font-size: 8px; font-weight: 900; }.editor-actions input { padding: 11px; border: 1px solid var(--line); outline: none; background: var(--paper); font-size: 10px; }.editor-actions button { min-height: 39px; padding: 10px 16px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 9px; font-weight: 900; }.editor-actions .button-primary { color: var(--white); background: var(--ink); border: 0; }
.saved-patterns { margin-top: 28px; padding-top: 20px; display: grid; grid-template-columns: 150px 1fr; gap: 20px; border-top: 1px solid var(--line); }.saved-patterns > div:first-child { display: grid; align-content: start; gap: 6px; }.saved-patterns span { color: var(--orange); font-size: 7px; font-weight: 900; letter-spacing: .14em; }.saved-patterns b { font: 700 17px var(--serif); }#saved-list { display: flex; flex-wrap: wrap; gap: 7px; }.saved-item { padding: 9px 10px; display: grid; grid-template-columns: auto auto; gap: 4px 10px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; text-align: left; }.saved-item strong { font-size: 9px; }.saved-item small { grid-column: 1; color: var(--orange); font: 700 8px var(--serif); }.saved-item i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--muted); font-style: normal; }.empty-saved { color: var(--muted); font: 10px/1.6 var(--serif); }

.record-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 9vw; background: var(--blue); }.record-copy h2 { margin: 0; font: 800 clamp(38px, 4.6vw, 68px)/1.08 var(--serif); letter-spacing: -.04em; }.record-copy > p:last-child { max-width: 550px; margin: 28px 0 0; color: rgba(16,24,20,.64); font: 14px/1.9 var(--serif); }
.record-card { min-height: 390px; padding: 33px; color: var(--white); background: var(--ink); box-shadow: 13px 13px 0 var(--acid); }.record-total { display: grid; grid-template-columns: 1fr auto; align-items: end; border-bottom: 1px solid var(--dark-line); padding-bottom: 24px; }.record-total span { font: 700 17px var(--serif); }.record-total b { grid-row: 1 / 3; grid-column: 2; font: 800 75px/.8 var(--serif); }.record-total b small { margin-left: 7px; color: rgba(255,255,255,.5); font: 700 10px var(--sans); }.record-total i { margin-top: 8px; color: var(--orange); font-size: 7px; font-style: normal; font-weight: 900; letter-spacing: .15em; }.record-bars { min-height: 180px; padding: 25px 0; display: grid; align-content: center; gap: 17px; }.record-row { display: grid; grid-template-columns: 88px 1fr 45px; align-items: center; gap: 12px; }.record-row span { color: rgba(255,255,255,.65); font-size: 8px; }.record-row i { height: 6px; background: rgba(255,255,255,.1); }.record-row i::after { content: ""; display: block; width: var(--width); height: 100%; background: var(--orange); }.record-row:nth-child(2) i::after { background: var(--acid); }.record-row:nth-child(3) i::after { background: var(--blue); }.record-row b { font: 700 11px var(--serif); text-align: right; }.record-footer { padding-top: 17px; display: flex; align-items: center; gap: 11px; border-top: 1px solid var(--dark-line); }.record-footer span { color: rgba(255,255,255,.5); font-size: 8px; }.record-footer b { color: var(--acid); font: 700 22px var(--serif); }.record-footer button { margin-left: auto; border: 0; border-bottom: 1px solid rgba(255,255,255,.4); color: rgba(255,255,255,.55); background: transparent; cursor: pointer; font-size: 7px; }

.goal-section { min-height: 520px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; column-gap: 50px; background: var(--paper); }.goal-section > .kicker { grid-column: 1 / 3; }.goal-section h2 { margin: 10px 0 0; font: 800 clamp(45px, 5.5vw, 80px)/1.02 var(--serif); letter-spacing: -.055em; }.goal-section h2 em { color: var(--orange); font-style: normal; }.goal-section ol { margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }.goal-section li { padding: 17px 8px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); font: 700 16px var(--serif); }.goal-section li b { color: var(--orange); font: 700 11px var(--serif); }
footer { min-height: 120px; padding: 24px clamp(22px,5vw,76px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }footer p { font: 700 14px var(--serif); }footer p b { padding: 2px 5px; background: var(--acid); }footer > span { color: var(--muted); font-size: 8px; font-weight: 900; }

.lost-dialog { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(16,24,20,.76); backdrop-filter: blur(5px); }.dialog-card { width: min(560px, 100%); position: relative; padding: 40px; background: var(--paper); box-shadow: 15px 15px 0 var(--orange); }.dialog-close { position: absolute; right: 12px; top: 9px; border: 0; background: transparent; cursor: pointer; font-size: 24px; }.dialog-icon { width: 41px; height: 41px; margin-bottom: 18px; display: grid; place-items: center; color: var(--white); background: var(--orange); border-radius: 50%; font: 800 24px var(--serif); }.dialog-card h2 { margin: 0; font: 800 43px var(--serif); }.dialog-card ol { padding-left: 20px; color: var(--muted); font: 13px/2 var(--serif); }.dialog-card > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }.dialog-card > div button { padding: 10px 12px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 8px; font-weight: 900; }.dialog-card > div .button-primary { color: var(--white); background: var(--ink); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; max-width: calc(100% - 30px); padding: 11px 17px; color: var(--white); background: var(--orange); border-radius: 999px; box-shadow: var(--shadow); transform: translate(-50%, 25px); opacity: 0; pointer-events: none; transition: .22s; font-size: 9px; font-weight: 900; }.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1250px) {
  .trainer-layout { grid-template-columns: 210px 1fr; }.pattern-panel { grid-column: 1 / 3; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 170px 1fr 1fr; gap: 15px 24px; align-items: start; }.pattern-panel .panel-heading { grid-row: span 3; }.pattern-panel .field-label { margin-top: 0; }.pattern-panel .new-pattern { margin-top: 0; }.quick-patterns { grid-column: 2 / 4; margin-top: 0; display: grid; grid-template-columns: repeat(4,1fr); }.quick-patterns p { grid-column: 1 / 5; }.training-note { grid-column: 1 / 4; margin-top: 0; }.course-grid { grid-template-columns: repeat(5,1fr); }
}
@media (max-width: 900px) {
  .topbar nav { display: none; }.hero { min-height: auto; grid-template-columns: 1fr; }.hero-grid { transform: none; }.manifesto { grid-template-columns: 1fr; }.manifesto p { border-right: 0; border-bottom: 1px solid var(--line); }.trainer-layout { display: block; }.control-panel { border-right: 0; border-bottom: 1px solid var(--line); }.practice-stage { padding: 28px 20px; }.pattern-panel { display: block; border-top: 1px solid var(--line); }.pattern-panel .field-label { margin-top: 15px; }.pattern-panel .new-pattern { margin-top: 14px; }.quick-patterns { display: block; margin-top: 22px; }.course-grid { grid-template-columns: repeat(3,1fr); }.record-section, .goal-section { grid-template-columns: 1fr; }.goal-section > .kicker { grid-column: auto; }.record-card { margin-top: 20px; }.goal-section ol { margin-top: 40px; }
}
@media (max-width: 650px) {
  .topbar { height: 66px; }.top-cta { padding: 10px 12px; }.hero { padding-top: 54px; }.hero h1 { font-size: clamp(50px,16vw,75px); }.hero-grid { padding: 20px 14px; }.hero-beats b { font-size: 19px; }.hero-beats span { font-size: 11px; }.hero-pattern span { font-size: 13px; }.hero-actions { align-items: flex-start; flex-direction: column; }.section-intro { display: grid; }.trainer-section, .route-section, .editor-section, .record-section, .goal-section { padding: 70px 14px; }.stage-topline { display: grid; }.difficulty { justify-items: start; }.now-playing { grid-template-columns: repeat(3,1fr); }.now-playing > span { grid-column: 1 / 4; }.now-playing > div { padding-left: 7px; gap: 4px; }.segmented.compact { width: 100%; grid-template-columns: repeat(4,1fr); }.grid-wrap { overflow-x: auto; }.rhythm-grid { min-width: 640px; }.grid-cursor { min-width: 40px; width: 40px; }.grid-legend { gap: 9px; }.practice-steps { overflow-x: auto; justify-content: flex-start; padding-bottom: 5px; }.practice-steps > span { display: none; }.practice-steps button { min-width: 76px; }.course-grid { grid-template-columns: repeat(2,1fr); }.editor-card { padding: 20px 12px; }.editor-grid { overflow-x: auto; grid-template-columns: repeat(16, 48px); }.editor-help { flex-wrap: wrap; }.editor-actions { display: grid; }.saved-patterns { grid-template-columns: 1fr; }.record-card { padding: 24px 18px; }.record-total b { font-size: 57px; }.goal-section { min-height: 0; }.dialog-card { padding: 31px 22px; }footer { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.pulse-line i { animation: none; }* { transition: none !important; } }
