/* Fixed reserved lanes: current pitch and written duration never follow content height. */
#target-card{--guide-scale:1.5;--card-width:190px;--card-padding:min(calc(12px * var(--guide-scale)),18px);--card-height:calc(288px * var(--guide-scale));position:absolute;box-sizing:border-box;height:var(--card-height);min-height:var(--card-height);max-height:none;padding:calc(9px * var(--guide-scale)) var(--card-padding);border-radius:15px;background:#223139;border-color:#8b9faa;color:#f7fffd;overflow:hidden}
#target-card .nextnote-top{position:absolute;top:calc(9px * var(--guide-scale));left:var(--card-padding);right:var(--card-padding);display:grid;gap:calc(4px * var(--guide-scale))}
#target-card #target-guide-unit{margin:0;font-size:min(calc(20px * var(--guide-scale)),24px,calc(var(--card-width) * .11));font-weight:650;line-height:1.05;letter-spacing:-.015em;color:#d9e6e8}
#target-card #target-guide-unit span{display:block;white-space:nowrap}
#target-card #target-state{position:static;margin:0;font-size:min(calc(20px * var(--guide-scale)),24px);line-height:1.08;font-weight:650;letter-spacing:-.015em;color:#d9e6e8;white-space:normal}
#target-card .nextnote-primary{position:absolute;top:50%;left:var(--card-padding);right:var(--card-padding);height:calc(120px * var(--guide-scale));transform:translateY(-50%);display:grid;grid-template-rows:calc(52px * var(--guide-scale)) calc(40px * var(--guide-scale)) calc(28px * var(--guide-scale));align-items:center}
#target-card .nextnote-pitchline{display:flex;align-items:center;justify-content:flex-start;gap:0;margin:0;min-width:0;height:100%;font-size:min(calc(52px * var(--guide-scale)),calc(var(--card-width) * .42),var(--pitch-fit-size,200px));line-height:1;font-weight:760;letter-spacing:-.045em;white-space:nowrap}
#target-card #target-pitch,#target-card #target-octave{font:inherit;letter-spacing:inherit;color:#f7fffd}
#target-card #target-beats{display:block;margin:0;font-size:min(calc(40px * var(--guide-scale)),calc(var(--card-width) * .3),var(--beats-fit-size,100px));font-weight:750;line-height:1;letter-spacing:-.025em;color:#f0faf8;white-space:nowrap;font-variant-numeric:tabular-nums}
#target-card #target-unit{display:block;margin:0;font-size:min(calc(20px * var(--guide-scale)),24px);font-weight:650;line-height:1.05;letter-spacing:-.015em;color:#d9e6e8;white-space:normal}
#target-card .nextnote-secondary{position:absolute;bottom:calc(9px * var(--guide-scale));left:var(--card-padding);right:var(--card-padding);height:calc(64px * var(--guide-scale));display:flex;flex-direction:column;justify-content:flex-end;min-width:0;overflow:hidden}
#target-card .nextnote-lyric,#target-card #target-next{margin:0;border:0;padding:0;font-size:min(calc(22px * var(--guide-scale)),28px);font-weight:650;line-height:1.08;letter-spacing:-.015em;color:#a1e6d2;white-space:normal;overflow-wrap:anywhere;word-break:normal;hyphens:none}
#target-card #target-next{color:#d9e6e8}
#target-card [hidden]{display:none!important}
/* Done reserves the same duration rows as every note, pause and rest. */
#target-card .nextnote-primary [hidden]{display:block!important;visibility:hidden}
#target-card[data-cue=rest]{border-style:dashed}
#target-card[data-match=green]{background:#155234;border-color:#8cf4ac}
#target-card[data-match=gold]{background:#584500;border-color:#ffda63}
#target-card[data-match=green] #target-state{color:#dcffe5}
#target-card[data-match=gold] #target-state{color:#fff2bd}
#target-card[data-match=green] .nextnote-lyric{color:#baf7e7}
#target-card[data-match=gold] .nextnote-lyric{color:#ffdfad}
#target-card[data-has-secondary=true] .nextnote-secondary{border-top:1px solid #749c9a;padding-top:6px}
/* Long literal syllables retain large two-line type; the complete text is in ARIA. */
#target-card .nextnote-lyric{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:2.16em}
