
/* v0.3.2 · WORD FLOW GOLD
   Semantic word groups prevent mid-word line breaks; they reflow as whole words.
   No arbitrary character splits / false syllable divisions are ever drawn. */
.path-word{display:inline-flex;align-items:flex-start;flex-wrap:nowrap;white-space:nowrap;gap:inherit;min-width:0;max-width:none}
.path-newline-wrap{display:flex;flex-basis:100%;width:100%;align-items:center}
.path-newline-wrap .tile{flex:0 0 auto}
/* The path is useful, but the virtual keyboard is the teaching surface on compact screens. */
@media(max-width:600px){
 #play-panel{display:flex;flex-direction:column}
 #play-panel>.player-head{order:0}
 #play-panel>#lesson-title{order:1}
 #play-panel>#lesson-goal{order:2}
 #play-panel>.journey-status{order:3}
 #play-panel>.keyboard-label{order:4;margin-top:2px}
 #play-panel>#finger-homes{order:5}
 #play-panel>#keyboard{order:6}
 #play-panel>.board-legend{order:7}
 #play-panel>.stats{order:8;margin-top:12px}
 #play-panel>.progress{order:9;margin-top:8px}
 #play-panel>.path-wrap{order:10}
 #play-panel>#current-phrase{order:11}
 #play-panel>.input-zone{order:12}
 #play-panel>#pause{order:13}
 #play-panel>#result{order:14}
 #play-panel>#graduation{order:15}
 .path{min-height:42px;margin:10px 0 9px;gap:3px}
 .path-word{gap:3px}
 .keyboard{margin-bottom:4px}
}
@media(max-width:420px){
 .path{gap:clamp(1px,.5vw,3px)}
 .path-word{gap:clamp(1px,.5vw,3px)}
 .path .tile:not(.space-natural):not(.newline){min-width:clamp(15px,6.4vw,25px);width:clamp(15px,6.4vw,25px);height:clamp(24px,7.5vw,31px);font-size:clamp(11px,3.5vw,14px)}
 .path .tile.space-natural{min-width:clamp(7px,2vw,11px);width:clamp(7px,2vw,11px)}
 .path .tile.newline{min-width:22px}
}
@media(max-width:270px){
 .top{gap:5px}
 .brand{font-size:15px}
 .lang button{padding:6px 6px}
}
@media(max-height:620px) and (max-width:600px){
 #play-panel .goal{margin:6px 0}
 #play-panel .journey-status{margin:1px 0 5px}
 #play-panel .finger-homes{margin:5px 0 7px}
 #play-panel .board-legend{margin-top:7px}
}

/* Finger Lab · one visible typing surface (0.3.3 preview).
   Tiles, glyph geometry, word-flow, and the original keyboard remain untouched. */
.path{cursor:text}
.path:focus-visible,.path-wrap:focus-within .path{outline:2px solid #8df4c6;outline-offset:3px;border-radius:7px}
.path-wrap .finger-capture-proxy{
 position:absolute;left:10px;top:10px;z-index:0;
 width:2px;height:2px;min-height:2px;max-height:2px;
 padding:0;margin:0;border:0;resize:none;
 background:transparent;color:transparent;caret-color:transparent;
 opacity:.01;overflow:hidden;pointer-events:none;
 font-size:16px;box-shadow:none!important
}
.path-wrap .finger-capture-proxy:focus-visible{outline:none}
.path-wrap .finger-path-message{position:relative;margin:-9px 0 8px;min-height:23px}
.input-zone{margin-top:12px}
/* The golden target pulses without changing the letter or tile shapes. */
.path .tile.now:not(.space-natural):not(.newline){animation:finger-target-beacon 1.27s step-end infinite}
@keyframes finger-target-beacon{
 0%,49%{opacity:1}
 50%,100%{opacity:.32}
}
@media(prefers-reduced-motion:reduce){.path .tile.now:not(.space-natural):not(.newline){animation:none}}
