/* One heard note has one visible location, including the starting note. */
#route-chips{display:flex;justify-content:center;gap:8px;margin:5px 0 12px;width:100%}
#route-chips .note-card{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;max-width:108px;min-width:0;min-height:70px;padding:6px 8px;gap:1px;border:1.5px solid #9cb6a9;border-radius:14px;background:#f7f7e9;color:#315754;box-shadow:0 2px 0 #355f4d14;font-size:13px;line-height:1.35}
#route-chips .note-card small{font-size:12px;font-weight:800;line-height:1.25}#route-chips .note-card span{display:block;font-size:12px;line-height:1.3;white-space:nowrap}
#route-chips .note-card .note-position{display:block;width:44px;height:28px;min-height:28px}
#route-chips .note-card.empty{border-style:dashed;background:#fff9e9a8;color:#5b7169;box-shadow:none}#route-chips .empty .note-position circle{fill:none;stroke:currentColor;stroke-width:2;stroke-dasharray:2 3}
#route-chips .note-card.anchor{background:#e4efd9;color:#285a49;border-color:#8fae92}#route-chips .note-card.current{background:#fff1be;border:2.5px solid #927442;padding:5px 7px;color:#604c2e;box-shadow:0 0 0 3px #fff8e6}
#route-chips .note-card.listening{background:#315f62;color:#fff9e5;border-color:#315f62}#route-chips .note-card.placed:enabled:hover{background:#ddebdc;color:#244e50}#route-chips .note-card.wrong{background:#f3dcd2;color:#873d35;border-color:#b37c6e}
body[data-phase="flight"] .direction-controls,body[data-phase="route"] .direction-controls{display:none}
.play-controls{align-items:center}.play-controls #hear-target{font-size:14px}.play-controls #send{min-width:220px}.play-controls button[hidden]{display:none!important}
.pending-number{font-size:18px;fill:#4b6662;paint-order:stroke;stroke:#fff9e8;stroke-width:4;font-weight:750}
.review-tone{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-width:58px;min-height:60px;padding:4px 7px;border:1px solid #9db3a9;background:#eef2e3;border-radius:10px;font-size:11px;color:#2b5551;gap:2px}.review-tone svg{width:38px;height:28px}.review-tone span{font-size:11px}.review-tone.origin{background:#dcead3}.review-item p{row-gap:7px}
@media(max-width:700px){#route-chips{gap:4px;margin:3px 0 8px}#route-chips .note-card{padding:5px 2px;min-height:64px;border-radius:11px}#route-chips .note-card small{font-size:11px}#route-chips .note-card span{font-size:10px}#route-chips .note-card .note-position{width:34px;height:25px;min-height:25px}#route-chips .note-card.current{padding:4px 1px}.play-controls #hear-target{font-size:13px}.play-controls #send{min-width:0}.editor #status{font-size:13px}body:not(.has-heard) .play-controls{display:flex;justify-content:center}.review-tone{min-width:48px;padding:4px;font-size:10px}}
@media(max-height:500px) and (min-width:701px){#route-chips{gap:3px;margin:0 0 5px}#route-chips .note-card{min-height:57px;padding:3px 2px;border-radius:10px}#route-chips .note-card small,#route-chips .note-card span{font-size:10px}#route-chips .note-card .note-position{width:30px;height:24px;min-height:24px}#route-chips .note-card.current{padding:2px 1px}.play-controls #send{min-width:0}.play-controls #hear-target{font-size:12px}.heading h1{font-size:18px}.editor #status{min-height:17px;font-size:12px}.direction{min-height:52px}}

/* Secondary tools share a compact row, preserving scene space. */
.play-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.play-controls button{flex:0 1 auto}.play-controls .small-tool{min-width:0;min-height:44px;padding:7px 12px;font-size:13px}.play-controls #hear-target{order:-1}.play-controls #send{min-width:160px}.direction-controls{align-items:stretch}.map-top{padding-top:0;padding-bottom:0}.map-label{padding:4px 11px}.map-bottom{min-height:22px}.play-controls .primary{grid-column:auto}
@media(max-width:700px){.play-controls{gap:6px;flex-wrap:wrap}.play-controls .small-tool{font-size:12px;padding:7px 10px}.play-controls #send{min-width:110px}.play-controls #hear-route{font-size:12px}body:not(.has-heard) .play-controls .small-tool{display:none}.direction{min-height:70px}}
@media(max-height:500px) and (min-width:701px){.play-controls{gap:5px;flex-wrap:wrap}.play-controls button{font-size:12px;padding:5px 8px}.play-controls .small-tool{font-size:11px;padding:5px 7px}.play-controls #send{min-width:90px}.map-label{padding:3px 7px}}

#route-chips .note-card.current{border-color:#397269;color:#244e50}

/* Preserve the established full-width flight scene. Only clarify task states. */
#route-chips .note-card.anchor{background:#275f57;color:#fffbed;border-color:#275f57}
#route-chips .note-card.placed{background:#e3eee4;color:#244d49}
#route-chips .note-card.tone-up{background:#d6e6f3;color:#203e63;border-color:#597b9c}
#route-chips .note-card.tone-same{background:#dddaf0;color:#45346b;border-color:#8572a1}
#route-chips .note-card.tone-down{background:#f3dfce;color:#713e23;border-color:#a87952}
#route-chips .note-card.current{background:#205d70;color:#fffbea;border-color:#205d70;border-style:solid;box-shadow:none}
#route-chips .note-card.current .note-position circle{stroke:currentColor;fill:none}
#route-chips .note-card.wrong{background:#f4d7d4;color:#7b2828;border-color:#a44f4f}
#route-chips .note-card.listening{background:#205d70;color:#fffbea;border-color:#205d70}
#route-chips .note-card small,#route-chips .note-card span{color:inherit;opacity:1}
#route-chips .note-card.placed:enabled:hover{background:#214f5b;color:#fffbed}
#route-chips .note-card.current .note-position{opacity:1}
.direction[data-direction="1"]{background:#d6e6f3;color:#203e63;border-color:#597b9c}
.direction[data-direction="0"]{background:#dddaf0;color:#45346b;border-color:#8572a1}
.direction[data-direction="-1"]{background:#f3dfce;color:#713e23;border-color:#a87952}
.direction:enabled:hover,.direction:enabled:active{background:#214f5b;color:#fffbed}
.direction strong,.direction small{color:inherit}
.bird-atlas{transform:translate(0,0)}
.bird-atlas.takeoff{transform:translate(-220px,0)}
.bird-atlas.climbing{animation:svg-wings .55s steps(1) infinite}
.bird-atlas.descending,.bird-atlas.waiting{transform:translate(-440px,0)}
.bird-atlas.gliding{transform:translate(-220px,-220px)}
.bird-atlas.delivered{animation:svg-delivery .9s steps(1) forwards}
.bird-pose.idle{animation:svg-breathe 3s ease-in-out infinite}
.bird-pose.gliding,.bird-pose.waiting{animation:svg-breathe 1.2s ease-in-out infinite}
@keyframes svg-wings{0%,100%{transform:translate(-220px,0)}33%{transform:translate(-440px,0)}66%{transform:translate(0,-220px)}}
@keyframes svg-breathe{50%{transform:translateY(-5px)}}
@keyframes svg-delivery{0%,25%{transform:translate(-440px,-220px)}26%,100%{transform:translate(0,0)}}
@media(prefers-reduced-motion:reduce){.bird-atlas.climbing{animation:none;transform:translate(-440px,0)}.bird-atlas.delivered{animation:none;transform:translate(0,0)}}
/* Keep the original scene above the controls on shorter classroom displays. */
@media(min-width:701px) and (min-height:501px) and (max-height:850px){
 .journey{min-height:38px}.heading{padding:0 0 3px}.heading .eyebrow{margin-bottom:4px}.heading h1{font-size:26px;margin-bottom:4px}.heading>p:last-child{font-size:14px}
 .editor{padding:8px 16px;margin-top:3px}.editor #status{font-size:14px;min-height:21px;margin-bottom:4px}
 #route-chips{margin:2px 0 6px}#route-chips .note-card{min-height:56px;padding:3px 7px;display:grid;grid-template-columns:32px auto;grid-template-rows:1fr 1fr;gap:0 4px;max-width:130px}
 #route-chips .note-card small{grid-column:2;grid-row:1}#route-chips .note-card span{grid-column:2;grid-row:2}#route-chips .note-card .note-position{grid-column:1;grid-row:1/3;width:32px;height:28px}
 .direction{min-height:62px;padding:5px 12px;grid-template-columns:44px auto}.direction svg{width:44px;height:46px}.direction strong{font-size:21px}.direction small{font-size:13px}.play-controls{margin-top:6px;gap:7px}.play-controls button{min-height:44px;font-size:13px;padding:6px 12px}footer{min-height:44px;margin-top:4px}
}

