/* Teen "learn" layer: rules line, labeled tools, how-to overlay, practice coach, feedback status */
.top .ib.back{min-width:0;padding:0 12px;font-size:15px;font-weight:800;gap:4px;white-space:nowrap}
.rule{margin:0 0 10px;font-size:14px;line-height:1.4;color:var(--ink);background:var(--card);border-left:3px solid var(--clay);padding:9px 11px;border-radius:10px}
.rule b{color:var(--ochre)}
.tools{display:flex;gap:8px;margin-bottom:10px}.tools .btn{flex:1;min-height:44px;font-size:14px;padding:0 10px}
.status{min-height:22px;font-weight:800;font-size:14px;text-align:center;margin:8px 0;border-radius:10px;padding:8px 10px;color:var(--dim);background:var(--card);transition:background .2s,color .2s}
.status.ok{background:rgba(127,159,94,.25);color:#c4e3a3}.status.bad{background:rgba(212,85,63,.22);color:#ffab97}
.status.coach{background:rgba(217,167,67,.16);color:#f0d08a}
.coach-tag{display:inline-block;font-size:11px;letter-spacing:2px;font-weight:900;background:var(--ochre);color:#141816;border-radius:6px;padding:2px 6px;margin-right:6px;vertical-align:1px}
.how{position:fixed;inset:0;z-index:60;background:rgba(10,12,11,.92);display:none;align-items:center;justify-content:center;padding:12px}
.how.on{display:flex}
.how .box{background:var(--card);border-radius:20px;padding:16px;width:100%;max-width:420px;max-height:100%;overflow:auto}
.how .kick{font-size:11px;letter-spacing:2px;color:var(--dim);font-weight:800;text-transform:uppercase;display:flex;justify-content:space-between;align-items:center}
.how h2{margin:4px 0 6px;font-size:20px;text-transform:uppercase;letter-spacing:.5px}
.how p{margin:0 0 10px;font-size:14px;line-height:1.4}
.stage{position:relative;background:#111513;border-radius:14px;padding:10px;min-height:200px;overflow:hidden;display:flex;flex-direction:column}
.dots3{display:flex;gap:6px;justify-content:center;margin:10px 0 8px}.dots3 i{width:22px;height:5px;border-radius:3px;background:#3a423c}.dots3 i.on{background:var(--clay)}
.how .row .btn{min-height:46px}
.fing{position:absolute;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;background:rgba(236,230,216,.92);box-shadow:0 0 0 7px rgba(236,230,216,.22),0 3px 8px rgba(0,0,0,.5);pointer-events:none;z-index:5;transition:left .45s ease,top .45s ease,transform .12s}
.fing.tap{transform:scale(.7)}
.fing.hold{transform:scale(.7);box-shadow:0 0 0 14px rgba(236,230,216,.18),0 3px 8px rgba(0,0,0,.5)}
.mt{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.mt span{height:38px;border-radius:9px;background:var(--card2);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;letter-spacing:.3px;transition:background .15s,color .15s}
.mt span.sel{background:var(--ink);color:#141816}.mt span.bad{background:var(--bad);color:#fff}
.mbar{height:38px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;color:#141816;background:var(--moss);margin-bottom:6px;letter-spacing:1px}
.mbtn{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 14px;border-radius:10px;background:var(--clay);color:#1a120c;font-weight:900;font-size:12px;margin-top:8px}
.mmsg{position:relative;margin-top:auto;min-height:30px;text-align:center;font-size:13px;font-weight:800;border-radius:8px;padding:6px;opacity:0;transition:opacity .2s}
.mmsg.on{opacity:1}.mmsg.ok{background:rgba(127,159,94,.3);color:#c4e3a3}.mmsg.bad{background:rgba(212,85,63,.3);color:#ffab97}
.mg{display:grid;grid-template-columns:repeat(4,34px);gap:2px;justify-content:center;background:#0d100e;padding:3px;border-radius:8px;width:max-content;margin:0 auto}
.mg span{width:34px;height:34px;border-radius:3px;display:flex;align-items:center;justify-content:center;position:relative;color:rgba(20,24,22,.6);font-weight:900;font-size:14px}
.mg span.x::after{content:'✕'}
.mg span.s::after{content:'';width:62%;height:62%;border-radius:22%;background:linear-gradient(135deg,#1a1512 0 22%,#e07b3c 22% 40%,#1a1512 40% 58%,#e07b3c 58% 76%,#1a1512 76%)}
.mg span.err{box-shadow:inset 0 0 0 3px var(--bad)}.mg span.ring{box-shadow:inset 0 0 0 3px #fff}
.mg span.dim{filter:brightness(.45)}
.run{position:absolute;left:0;right:0;bottom:46px;height:2px;background:var(--moss)}
.rn{position:absolute;left:50px;bottom:48px;width:28px;height:26px;border-radius:8px;background:#e07b3c;transition:bottom .25s cubic-bezier(.3,.7,.4,1)}
.rn::after{content:'';position:absolute;right:4px;top:7px;width:6px;height:6px;background:#f3ead8;border-radius:2px}
.ob{position:absolute;bottom:48px;width:20px;height:22px;background:#8a8f86;clip-path:polygon(0 100%,15% 20%,50% 0,85% 25%,100% 100%)}
.ob.tall{height:42px;background:#6d7a72}.ob.bird{bottom:108px;width:30px;height:12px;border-radius:50%;background:#d9d1c0;clip-path:none}
.mjump{position:absolute;left:10px;right:10px;bottom:6px;height:32px;border-radius:9px;background:var(--clay);color:#1a120c;font-weight:900;font-size:12px;display:flex;align-items:center;justify-content:center}
.mjump.dn{filter:brightness(.8)}
.end .ready{font-size:13px;color:var(--dim)}
@media (prefers-reduced-motion: reduce){.fing,.rn,.status,.mt span{transition:none!important}.shake{animation:none!important}}
.stage.td{height:200px}
.ob{transition:opacity .3s}
#mode{flex-basis:100%}
.stage.td .mmsg{margin-top:0;align-self:center;min-width:70%}
.mg{grid-template-columns:repeat(4,30px)}.mg span{width:30px;height:30px}
/* 1030b: fixed-height feedback/coach line so the JUMP button and the board never shift */
.status{box-sizing:border-box;line-height:1.3;height:calc(3.9em + 16px);min-height:0!important;overflow:hidden;display:flex;flex-direction:column;justify-content:center}
.status>.sx{display:block}
@media (max-height:740px){.status{height:calc(3.9em + 12px)}}
#ready .row .btn,#end .row .btn{min-height:46px}
