/* Vərəqdən oxu — sight-reading (/learn/oxu). Builds on proto.css + home.css. */
.oxu { max-width: 720px; padding-top: 12px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.oxu .crumb { display: block; width: fit-content; margin-bottom: 10px; font-size: 0.85rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.oxu h1 { font-size: 1.7rem; margin-top: 4px; }
.oxu .lead { margin-top: 6px; color: var(--ink-2); }
.ox-card { margin-top: 12px; padding: 12px 14px; }
.ox-lbl { margin: 14px 0 6px; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ox-card > .ox-lbl:first-child { margin-top: 0; }
.ox-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ox-chips .chip { min-height: 38px; padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-weight: 800; font-size: 0.86rem; cursor: pointer; }
.ox-chips .chip.on { background: var(--ink-bg); border-color: var(--ink-bg); color: #fff; }
.ox-levels { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.ox-lv { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 900; cursor: pointer; }
.ox-lv.ok { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.ox-lv.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.ox-lv.lk { color: var(--muted); opacity: 0.5; cursor: default; }
.ox-lvnote { margin: 6px 0 0; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.ox-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.ox-tempo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 0.9rem; }
.ox-tempo button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.2rem; font-weight: 900; cursor: pointer; }
.ox-pr { display: flex; justify-content: space-between; gap: 8px; font-size: 0.86rem; }
.ox-pr span { color: var(--muted); font-weight: 800; }
.ox-bar { height: 8px; margin-top: 8px; border-radius: 9px; background: var(--paper-2); overflow: hidden; }
.ox-bar i { display: block; height: 100%; border-radius: 9px; background: var(--teal); }
.ox-pr-s { margin: 6px 0 0; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.ox-fresh { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.84rem; font-weight: 800; }
.ox-start { margin-top: 14px; }

/* play */
.ox-top { display: flex; align-items: center; gap: 10px; }
.ox-name { flex: 1; min-width: 0; display: grid; }
.ox-name b { font-size: 1.05rem; }
.ox-name span { color: var(--muted); font-weight: 800; font-size: 0.82rem; }
.ox-phase { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ox-phase span { padding: 5px 10px; border-radius: 99px; background: var(--paper-2); color: var(--muted); font-size: 0.76rem; font-weight: 900; }
.ox-phase span.on { background: var(--ink-bg); color: #fff; }
.ox-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ox-hints span { padding: 4px 9px; border-radius: 8px; background: #fdf3d8; color: #8a5a00; font-size: 0.78rem; font-weight: 800; }
.ox-paper { margin-top: 10px; padding: 4px 2px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf8; overflow: hidden; }
.ox-paper svg { display: block; }
.ox-paper .ox-g, .ox-paper .ox-g path { fill: #0f8a5f; }
.ox-paper .ox-y, .ox-paper .ox-y path { fill: #d9951a; }
.ox-paper .ox-r, .ox-paper .ox-r path { fill: #d0392b; }
.ox-paper .ox-cur, .ox-paper .ox-cur path { fill: #e2763a; }
.ox-leg { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 0.74rem; font-weight: 800; color: var(--muted); }
.ox-leg b { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 50%; vertical-align: -1px; }
.ox-leg b.g { background: #0f8a5f; } .ox-leg b.y { background: #d9951a; } .ox-leg b.r { background: #d0392b; } .ox-leg b.c { background: #e2763a; }
.ox-beats { display: flex; justify-content: center; gap: 10px; min-height: 16px; margin-top: 10px; }
.ox-beats i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper-2); }
.ox-beats i.on { background: var(--accent); border-color: var(--accent); }
.ox-inrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.8rem; font-weight: 800; color: var(--teal); }
.ox-mic { width: auto; min-height: 36px; margin: 0; color: var(--accent-ink); }
.ox-kbd-wrap { margin-top: 6px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.ox-kbd-wrap .kbd { display: block; width: 100%; height: auto; max-height: 150px; }
.ox-kbd-wrap .kbd g { cursor: pointer; }
.ox-kbd-wrap .kbd .kw rect { fill: #fff; stroke: #c9c2b5; }
.ox-kbd-wrap .kbd .kb rect { fill: #1f2440; }
.ox-kbd-wrap .kbd .hit rect { fill: #cfeee2; }
.ox-kbd-wrap .kbd .ko { font-size: 8px; fill: #8b8fa3; text-anchor: middle; font-weight: 700; }
.ox-pad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 150px; margin-top: 12px; border-radius: 22px; border: 2px dashed var(--line); background: var(--card); color: var(--ink-2); font: inherit; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.ox-pad b { font-size: 1.1rem; }
.ox-pad small { color: var(--muted); font-weight: 700; font-size: 0.78rem; }
.ox-pad.hit { animation: oxhit 0.18s; }
@keyframes oxhit { from { background: var(--accent-soft); border-color: var(--accent); } }
.ox-tl { position: relative; height: 40px; border-radius: 12px; background: var(--paper-2); }
.ox-tl i { position: absolute; }
.ox-tl .g { top: 7px; width: 3px; height: 26px; margin-left: -1.5px; border-radius: 3px; background: var(--line); }
.ox-tl .m { top: 13px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; }
.ox-tl .m.ok { background: #0f8a5f; } .ox-tl .m.off { background: #d9951a; } .ox-tl .m.miss { border: 2px solid #d0392b; } .ox-tl .m.extra { background: #d0392b; opacity: 0.6; width: 10px; height: 10px; margin-left: -5px; top: 15px; }
#ox-go, #ox-stop { margin-top: 12px; }

/* result */
.ox-r-title { margin: 6px 0 0; text-align: center; color: var(--muted); font-weight: 800; font-size: 0.86rem; }
.ox-r-acc { margin: 2px 0 0; text-align: center; font-size: 2.4rem; font-weight: 900; }
.ox-r-stars { margin: 0; text-align: center; font-size: 1.7rem; letter-spacing: 4px; color: #e9a400; }
.ox-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.ox-tiles div { padding: 10px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-align: center; }
.ox-tiles b { display: block; font-size: 1.3rem; }
.ox-tiles span { font-size: 0.72rem; font-weight: 800; color: var(--muted); }
.ox-tip { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); font-size: 0.88rem; font-weight: 700; line-height: 1.4; }
.ox-unlocked { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); font-weight: 900; text-align: center; }
#ox-next { margin-top: 14px; }
.ox-r-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.oxu .icon-btn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; }
