/* The match's screens (Docs/MENUS.md, row 8 of the wireframe): the court rules, so the HUD is only the VT scoreboard
   with each side's colour band and the pause; the controls get the Fusbolín skin; the serve, the pause, the end of the
   match and Entrenamiento's HUD. Sizes in rem (arcade-menu.css: 1rem = 10 px of the 844 × 390 screen). */

/* ---------- Scoreboard (top left, VT style: one row per side with its colour band) ---------- */
:root{--hud-metadata-height:max(1.6rem,18px)}
body{--hud-cue-top:calc(max(1rem,env(safe-area-inset-top)) + 5.3rem + var(--hud-metadata-height) + 12px)}
header{font-family:'Rubik',system-ui,sans-serif}
#hud-brand-btn,#open-online-btn,#hud-fullscreen-btn,#open-menu-btn,#sets,#score,#hud-sets{display:none!important}
.hud-scoreboard{position:fixed!important;left:max(4rem,env(safe-area-inset-left))!important;top:max(1rem,env(safe-area-inset-top))!important;transform:none!important;display:grid!important;grid-template-columns:23.6rem;grid-template-rows:2.6rem .1rem 2.6rem auto;column-gap:1.2rem!important;row-gap:0!important;padding:0!important;background:none!important;border:0!important;min-height:0!important;pointer-events:none;filter:drop-shadow(.4rem .4rem 0 #000)}
body.ft-match-has-sets .hud-scoreboard{grid-template-columns:26.2rem}
.hud-side{grid-column:1;display:flex;align-items:center;gap:.6rem;height:2.6rem;background:#0E1411;padding-right:1.2rem;clip-path:polygon(0 0,100% 0,calc(100% - 1.2rem) 100%,0 100%)}
.hud-side.p1{--band:var(--p1,#C8412F);grid-row:1;clip-path:polygon(0 0,100% 0,calc(100% - .6rem) 100%,0 100%)}
.hud-side.p2{--band:var(--p2,#2F6DB5);grid-row:3;clip-path:polygon(0 0,calc(100% - .6rem) 0,calc(100% - 1.2rem) 100%,0 100%)}
.hud-scoreboard::before{content:'';grid-column:1;grid-row:2;background:#3A4A3F;margin-right:.6rem}
.hud-side::before{content:'';width:.6rem;align-self:stretch;background:var(--band);flex:none}
.hud-side .hud-tag{display:inline-block!important;padding:.1rem .5rem!important;border-radius:0!important;background:var(--band)!important;color:#F3E9CF!important;font-weight:900!important;font-size:1rem!important;line-height:1.3;font-style:normal}
.hud-side .hud-player-name{flex:1;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;font-weight:900!important;font-style:italic;font-size:1.4rem!important;text-transform:uppercase;color:#F3E9CF!important;white-space:nowrap}
.hud-set-cell{width:2.5rem;align-self:stretch;display:flex;align-items:center;justify-content:center;background:#1A2620;border-left:.15rem solid #3A4A3F;border-right:.15rem solid #3A4A3F;font-weight:900;font-size:1.55rem;color:#9FB5A7;font-variant-numeric:tabular-nums;flex:none}
.hud-set-cell.won{color:#FFD23F}
.hud-set-cell[hidden]{display:none}
.hud-points{width:3.4rem;text-align:center;font-weight:900;font-size:2rem;color:#F3E9CF;font-variant-numeric:tabular-nums}
.hud-side.p1 .hud-points{color:#FFD23F}
.hud-serve-dot{width:.9rem;height:.9rem;border-radius:50%;background:#FFD23F;border:.1rem solid #000;visibility:hidden;flex:none}
.hud-side.serving .hud-serve-dot{visibility:visible}
.hud-under{grid-column:1;grid-row:4;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:var(--hud-metadata-height);margin-top:4px;min-width:0}
#hud-context{box-sizing:border-box;max-width:100%;min-height:max(1.6rem,18px);padding:2px 7px;background:#0E1411;color:#F3E9CF;font-size:clamp(11px,.9vw,14px);line-height:1.25;font-weight:700;letter-spacing:.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hud-context:empty{display:none}
.hud-actions{position:fixed;right:max(4rem,env(safe-area-inset-right));top:max(1rem,env(safe-area-inset-top));background:none!important;border:0!important;padding:0!important;gap:.8rem!important;margin-left:auto}
/* game-feedback.js writes "Pausar"/"Continuar" into the button: the icon is drawn here and the word stays for readers. */
#pause{position:relative;touch-action:none;-webkit-touch-callout:none;user-select:none;display:flex!important;align-items:center;justify-content:center;width:4.4rem;height:4.4rem;min-height:0!important;padding:0!important;background:#0E1411!important;border:.2rem solid #F3E9CF!important;border-radius:0!important;box-shadow:.3rem .3rem 0 #000;color:transparent!important;font-size:0!important;overflow:hidden}
#pause::before{content:'';width:1.5rem;height:1.6rem;background:linear-gradient(90deg,#F3E9CF 0 .5rem,transparent .5rem 1rem,#F3E9CF 1rem)}
#hud-net{padding:.4rem .8rem;background:#0E1411;border:.2rem solid #000;color:#7CF29A;font-size:1rem;font-weight:700;letter-spacing:.1em;white-space:nowrap;align-self:center}
#hud-net[hidden]{display:none}
/* El Barrio keeps its own HUD (multiplayer.js); the old pill shows the room there. */
body.city-walking .hud-scoreboard,body.city-walking #hud-net{display:none!important}
body.city-walking #hud-brand-btn,body.city-in-court #hud-brand-btn{display:flex!important}
/* On the court the scoreboard owns the top left: the Barrio's pill (the menu) goes top right, under «El Barrio». */
body.city-in-court #hud-brand-btn{position:fixed;left:auto;right:max(1rem,env(safe-area-inset-right));top:calc(max(1rem,env(safe-area-inset-top)) + 9.2rem)}

/* The status line under the scoreboard (RECIBÍS VOS…) and the point messages, in the skin. */
/* Preparation alone fills this meter. Contact feedback never replaces charge with effective power. */
#intent-feedback{font-family:'Rubik',system-ui,sans-serif;left:max(4rem,env(safe-area-inset-left));top:var(--hud-cue-top);transform:none;box-sizing:border-box;padding:7px 10px;width:max-content;min-width:116px;max-width:min(340px,calc(100vw - max(4rem,env(safe-area-inset-left)) - 64px));border:0;border-radius:0;background:rgba(14,20,17,.88);color:#F3E9CF;text-align:left}
#intent-feedback #shot-guide{font-size:clamp(14px,1.2vw,18px);line-height:1.25;min-height:0;color:#F3E9CF;letter-spacing:0}
#intent-feedback #shot-detail{display:none}
#intent-feedback #intent-track{width:100%;max-width:none;height:3px;border:0;border-radius:0;margin:4px 0 1px;background:#48564B}
#intent-feedback #intent-meter{background:#FFDA3D}
#intent-feedback[data-phase="paused"]{opacity:0;transition:none}
#intent-feedback[data-phase="reception"],#intent-feedback[data-phase="point"]{opacity:1;transition:none}
#intent-feedback[data-phase="reception"] #shot-guide{color:#FFD23F}
.ft-reception-result{color:#FFD23F!important}
.ft-reception-result strong{color:#F3E9CF;font-size:.8em}
@media (prefers-reduced-motion:reduce){#intent-feedback{transition:none}}
#shot-guide{font-weight:900;font-style:italic;text-transform:uppercase;letter-spacing:.04em}
#message{font-family:'Rubik',system-ui,sans-serif;background:#0E1411!important;border:.2rem solid #000!important;border-radius:0!important;box-shadow:.3rem .3rem 0 #000;color:#F3E9CF;font-weight:900!important;font-style:italic;text-transform:uppercase}
body[data-virtua="true"] #message,body.ft-in-match #message[data-finished="true"]{display:none!important}

/* ---------- Thumb controls: round strikes, quieter auxiliaries ---------- */
.joystick-label{font-family:'Rubik',system-ui,sans-serif;font-weight:700;letter-spacing:.03em}
#joystick-base{background:rgba(14,20,17,.25);border:1px solid rgba(243,233,207,.4);box-shadow:none;opacity:.6}
#joystick.pressed #joystick-base{opacity:1;background:rgba(14,20,17,.4);border-color:rgba(243,233,207,.8)}
#stick{background:rgba(243,233,207,.86);border:1px solid rgba(14,20,17,.6);box-shadow:none}
#joystick[data-mode="aim"] #joystick-base{border-color:#FFD23F;background:rgba(14,20,17,.6)}
#joystick[data-mode="aim"] #stick{background:#FFD23F}
.actions button{font-family:'Rubik',system-ui,sans-serif;font-weight:800;font-style:italic;text-transform:uppercase;border-radius:22px;border:1px solid #0E1411;background:#26382E;color:#F3E9CF;box-shadow:0 2px 0 #0E1411,inset 0 1px 0 rgba(243,233,207,.5);transition:background-color 70ms,box-shadow 70ms}
.actions .strike{border-radius:50%;border:3px solid #0E1411;box-shadow:0 4px 0 #0E1411,0 0 0 1px rgba(243,233,207,.8),inset 0 3px 0 rgba(255,255,255,.55),inset 0 -5px 0 rgba(14,20,17,.25)}
.actions .strike.flat{background:#FFD23F;color:#0E1411}
.actions .strike.lob{background:#F3E9CF;color:#15294A}
.actions button.pressed{background:#3A4A3F;box-shadow:0 1px 0 #0E1411,inset 0 2px 0 rgba(14,20,17,.45)}
.actions .strike.flat.pressed{background:#FFE88C}
.actions .strike.lob.pressed{background:#FFF3D7}
.actions .strike.pressed{box-shadow:0 1px 0 #0E1411,0 0 0 1px #F3E9CF,inset 0 2px 0 rgba(14,20,17,.3),inset 0 -1px 0 rgba(243,233,207,.6)}
.actions button.pressed>svg,.actions button.pressed>span{transform:translateY(2px)}
.actions .strike.selected{outline:2px solid #F3E9CF;outline-offset:4px}
@media (prefers-reduced-motion:reduce){.actions button{transition:none}}
body.hand-left #controls{flex-direction:row-reverse}
body.hand-left .actions{transform:scaleX(-1)}
body.hand-left .actions button{transform:scaleX(-1)}


/* ---------- Serve cue shares the preparation HUD's quiet corner ---------- */
#ft-match-layer .ft-serve{position:fixed;inset:0;z-index:26;pointer-events:none}
#ft-match-layer .ft-serve[hidden]{display:none}
.ft-serve-panel{position:absolute;left:max(4rem,env(safe-area-inset-left));top:var(--hud-cue-top);width:max-content;max-width:calc(100vw - 32px);padding:6px 10px;background:#0E1411;color:#F3E9CF;box-sizing:border-box;box-shadow:.3rem .3rem 0 #000}
.ft-serve-panel[hidden],.ft-serve-meter{display:none!important}
.ft-serve-status{display:block;font-size:14px;line-height:18px;font-weight:800;font-style:italic;text-transform:uppercase;white-space:nowrap}
/* Virtua Tennis vertical serve power bar beside the server (#21) */
.ft-serve-vt{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:4px;font-family:'Rubik',system-ui,sans-serif;pointer-events:none;filter:drop-shadow(.28rem .28rem 0 #000)}
.ft-serve-vt[hidden]{display:none}
.ft-serve-vt-max{padding:1px 6px;background:#E5392D;border:2px solid #0E1411;color:#FFF7DF;font-size:clamp(11px,1.05vw,14px);line-height:1.15;font-weight:900;font-style:italic;letter-spacing:.05em;white-space:nowrap;opacity:0;transform:scale(.82) rotate(-4deg);transition:opacity 70ms ease-out,transform 90ms ease-out}
.ft-serve-vt.is-max .ft-serve-vt-max{opacity:1;transform:scale(1.06) rotate(-4deg)}
.ft-serve-vt-track{position:relative;width:clamp(12px,1.15vw,16px);height:clamp(68px,10.5vh,96px);background:rgba(14,20,17,.92);border:2px solid #F3E9CF;box-sizing:border-box;overflow:hidden}
.ft-serve-vt-top{position:absolute;left:0;right:0;top:0;height:8.5%;background:rgba(229,57,45,.42);border-bottom:1px solid rgba(243,233,207,.65);z-index:2;pointer-events:none}
.ft-serve-vt-track>i{position:absolute;left:0;right:0;bottom:0;height:0;background:linear-gradient(180deg,#FFE869 0%,#FFD23F 58%,#F29E23 100%);z-index:1}
.ft-serve-vt.is-max .ft-serve-vt-track{border-color:#FFD23F}
.ft-serve-vt.is-max .ft-serve-vt-track>i{background:linear-gradient(180deg,#FF5E4D 0%,#E5392D 55%,#B81D13 100%)}
.ft-serve-vt-kmh{padding:2px 6px;background:#0E1411;border:1.5px solid #F3E9CF;color:#FFD23F;font-size:clamp(10px,.95vw,13px);line-height:1.15;font-weight:900;font-style:italic;font-variant-numeric:tabular-nums;letter-spacing:.04em;white-space:nowrap}
.ft-serve-vt.is-max .ft-serve-vt-kmh{background:#E5392D;border-color:#0E1411;color:#FFF7DF}
.ft-serve-vt-kmh[hidden]{display:none}
/* NBA 2K-style planted footwork "Green" splash cue beside the striker */
#ft-match-layer .ft-green-cue{position:fixed;inset:0;z-index:26;pointer-events:none;font-family:'Rubik',system-ui,sans-serif}
#ft-match-layer .ft-green-cue[hidden]{display:none}
.ft-green-pill{position:absolute;transform:translate(-50%,-50%) rotate(-3deg);display:inline-flex;align-items:center;gap:5px;padding:3px 9px 3px 7px;background:#1FE866;border:2px solid #0E1411;color:#0A1810;box-shadow:.24rem .24rem 0 #000;font-size:clamp(11px,1.02vw,13.5px);line-height:1.15;font-weight:900;font-style:italic;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;animation:ft-green-pop 150ms cubic-bezier(.18,1.35,.36,1)}
.ft-green-pill>i{width:8px;height:8px;border-radius:50%;background:#E9FFF1;border:1.5px solid #0E1411;box-sizing:border-box;flex:none}
@keyframes ft-green-pop{from{opacity:0;transform:translate(-50%,-28%) scale(.76) rotate(-6deg)}to{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(-3deg)}}
@media (prefers-reduced-motion:reduce){.ft-green-pill{animation:none}}
/* Don Tito comic umpire callout speech bubble (#25): wide-court only, zero HUD overlap */
#ft-match-layer .ft-tito-call{position:fixed;z-index:25;transform:none;display:flex;flex-direction:column;align-items:flex-start;gap:1px;max-width:min(290px,42vw);padding:6px 11px 7px;background:#F7EFE0;color:#0E1411;border:2.5px solid #0E1411;box-shadow:.36rem .36rem 0 #000;box-sizing:border-box;font-family:'Rubik',system-ui,sans-serif;pointer-events:none}
#ft-match-layer .ft-tito-call[hidden]{display:none}
#ft-match-layer .ft-tito-call.is-side::before{content:'';position:absolute;left:-11px;top:var(--tail-y,50%);transform:translateY(-50%);border-width:8px 11px 8px 0;border-style:solid;border-color:transparent #0E1411 transparent transparent}
#ft-match-layer .ft-tito-call.is-side::after{content:'';position:absolute;left:-7px;top:var(--tail-y,50%);transform:translateY(-50%);border-width:6px 8px 6px 0;border-style:solid;border-color:transparent #F7EFE0 transparent transparent}
#ft-match-layer .ft-tito-call[data-kind="fault"]{background:#FFD23F}
#ft-match-layer .ft-tito-call.is-side[data-kind="fault"]::after{border-right-color:#FFD23F}
#ft-match-layer .ft-tito-call[data-kind="key"],#ft-match-layer .ft-tito-call[data-kind="match"]{background:#FFF6D6;border-color:#0E1411}
#ft-match-layer .ft-tito-call.is-side[data-kind="key"]::after,#ft-match-layer .ft-tito-call.is-side[data-kind="match"]::after{border-right-color:#FFF6D6}
.ft-tito-tag{display:inline-block;padding:1px 5px;margin-bottom:1px;background:#0E1411;color:#FFD23F;font-size:clamp(8.5px,.72vw,10px);line-height:1.2;font-weight:900;letter-spacing:.10em;text-transform:uppercase}
.ft-tito-text{display:block;font-size:clamp(13px,1.22vw,16.5px);line-height:1.18;font-weight:900;font-style:italic;letter-spacing:.01em;color:#0E1411}
#ft-match-layer .ft-tito-call[data-kind="fault"] .ft-tito-text{font-size:clamp(15px,1.45vw,19.5px);letter-spacing:.03em;text-transform:uppercase}
#ft-match-layer .ft-tito-call[data-kind="slip"] .ft-tito-text{font-style:italic;font-weight:800}
/* Between-point character comic quips (#20): zero HUD/Tito overlap */
#ft-match-layer .ft-player-quip{position:fixed;z-index:25;transform:none;display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:min(285px,38vw);padding:6px 11px 7px;background:#F7EFE0;color:#0E1411;border:2.5px solid #0E1411;box-shadow:.36rem .36rem 0 #000;box-sizing:border-box;font-family:'Rubik',system-ui,sans-serif;pointer-events:none;animation:ft-banter-pop 140ms cubic-bezier(.2,1.25,.4,1)}
#ft-match-layer .ft-player-quip[hidden]{display:none}
#ft-match-layer .ft-player-quip[data-kind="partner_gripe"]{background:#FFE9C8}
#ft-match-layer .ft-player-quip[data-kind="encourage"]{background:#E6FAF0}
#ft-match-layer .ft-player-quip[data-kind="rival_spice"]{background:#FFF2CC}
#ft-match-layer .ft-player-quip.is-above::before{content:'';position:absolute;left:var(--tail-x,50%);bottom:-11px;transform:translateX(-50%);border-width:11px 8px 0 8px;border-style:solid;border-color:#0E1411 transparent transparent transparent}
#ft-match-layer .ft-player-quip.is-above::after{content:'';position:absolute;left:var(--tail-x,50%);bottom:-7px;transform:translateX(-50%);border-width:8px 6px 0 6px;border-style:solid;border-color:#F7EFE0 transparent transparent transparent}
#ft-match-layer .ft-player-quip.is-above[data-kind="partner_gripe"]::after{border-top-color:#FFE9C8}
#ft-match-layer .ft-player-quip.is-above[data-kind="encourage"]::after{border-top-color:#E6FAF0}
#ft-match-layer .ft-player-quip.is-above[data-kind="rival_spice"]::after{border-top-color:#FFF2CC}
.ft-quip-speaker{display:inline-block;padding:1px 6px;background:var(--p1,#2F6DB5);color:#FFF7DF;font-size:clamp(8.5px,.74vw,10.5px);line-height:1.25;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
#ft-match-layer .ft-player-quip[data-team="p2"] .ft-quip-speaker{background:var(--p2,#C8412F)}
.ft-quip-line{display:block;font-size:clamp(13px,1.24vw,16.5px);line-height:1.2;font-weight:900;font-style:italic;color:#0E1411}
@media (orientation:portrait){#ft-match-layer .ft-player-quip{max-width:min(235px,44vw);padding:5px 9px 6px}.ft-quip-line{font-size:clamp(12px,3.2vw,15px)}}
/* Post-match net handshake comic banter (#46 + #20) */
#ft-match-layer .ft-net-banter{position:fixed;inset:0;z-index:26;pointer-events:none;font-family:'Rubik',system-ui,sans-serif}
#ft-match-layer .ft-net-banter[hidden],.ft-banter-bubble[hidden]{display:none}
.ft-banter-bubble{position:absolute;display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:min(285px,36vw);padding:7px 12px 8px;background:#F7EFE0;color:#0E1411;border:2.5px solid #0E1411;box-shadow:.38rem .38rem 0 #000;box-sizing:border-box;animation:ft-banter-pop 140ms cubic-bezier(.2,1.25,.4,1)}
.ft-banter-bubble.is-left{transform:translate(0,-50%)}  /* left is the bubble's own left edge, kept on screen (renderNetBanter) */
.ft-banter-bubble.is-right{transform:translate(0,-50%)}
.ft-banter-bubble.ft-banter-b2{background:#FFF6D6}
.ft-banter-bubble.is-left::before{content:'';position:absolute;right:-11px;top:50%;transform:translateY(-50%);border-width:8px 0 8px 11px;border-style:solid;border-color:transparent transparent transparent #0E1411}
.ft-banter-bubble.is-left::after{content:'';position:absolute;right:-7px;top:50%;transform:translateY(-50%);border-width:6px 0 6px 8px;border-style:solid;border-color:transparent transparent transparent #F7EFE0}
.ft-banter-bubble.ft-banter-b2.is-left::after{border-left-color:#FFF6D6}
.ft-banter-bubble.is-right::before{content:'';position:absolute;left:-11px;top:50%;transform:translateY(-50%);border-width:8px 11px 8px 0;border-style:solid;border-color:transparent #0E1411 transparent transparent}
.ft-banter-bubble.is-right::after{content:'';position:absolute;left:-7px;top:50%;transform:translateY(-50%);border-width:6px 8px 6px 0;border-style:solid;border-color:transparent #F7EFE0 transparent transparent}
.ft-banter-bubble.ft-banter-b2.is-right::after{border-right-color:#FFF6D6}
.ft-banter-name{display:inline-block;padding:1px 6px;background:var(--p1,#2F6DB5);color:#FFF7DF;font-size:clamp(8.5px,.74vw,10.5px);line-height:1.25;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.ft-banter-bubble[data-team="p2"] .ft-banter-name{background:var(--p2,#C8412F)}
.ft-banter-line{display:block;font-size:clamp(13px,1.25vw,17px);line-height:1.2;font-weight:900;font-style:italic;color:#0E1411}
@keyframes ft-banter-pop{from{opacity:0;scale:.88}to{opacity:1;scale:1}}
@media (orientation:portrait){.ft-banter-bubble{max-width:min(250px,62vw);padding:6px 9px 7px}.ft-banter-line{font-size:clamp(12px,3.2vw,15px)}}
body.ft-menu-open #ft-match-layer .ft-serve,body.ft-menu-open #ft-match-layer .ft-green-cue,body.ft-menu-open #ft-match-layer .ft-replay,body.ft-menu-open #ft-match-layer .ft-tito-call,body.ft-menu-open #ft-match-layer .ft-player-quip,body.ft-menu-open #ft-match-layer .ft-net-banter,body.ft-ceremony-open #ft-match-layer .ft-serve,body.ft-ceremony-open #ft-match-layer .ft-green-cue,body.ft-ceremony-open #ft-match-layer .ft-replay,body.ft-ceremony-open #ft-match-layer .ft-tito-call,body.ft-ceremony-open #ft-match-layer .ft-player-quip,body.ft-ceremony-open #ft-match-layer .ft-net-banter,body.ft-postmatch-seq #ft-match-layer .ft-green-cue,body.ft-postmatch-seq #ft-match-layer .ft-replay,body.ft-postmatch-seq #ft-match-layer .ft-tito-call,body.ft-postmatch-seq #ft-match-layer .ft-player-quip,body.ft-replay-active #ft-match-layer .ft-serve,body.ft-replay-active #ft-match-layer .ft-green-cue,body.ft-replay-active #ft-match-layer .ft-tito-call,body.ft-replay-active #ft-match-layer .ft-player-quip,body:not(.ft-postmatch-seq) #ft-match-layer .ft-net-banter{display:none!important}
#ft-match-layer .ft-replay{position:fixed;inset:0;z-index:27;pointer-events:none;font-family:'Rubik',system-ui,sans-serif}
#ft-match-layer .ft-replay[hidden]{display:none}
#ft-match-layer .ft-replay::before,#ft-match-layer .ft-replay::after{content:'';position:absolute;left:0;right:0;height:2.4rem;pointer-events:none;background:linear-gradient(180deg,rgba(10,16,13,.46),transparent)}
#ft-match-layer .ft-replay::before{top:0}
#ft-match-layer .ft-replay::after{bottom:0;background:linear-gradient(0deg,rgba(10,16,13,.50),transparent)}
.ft-replay-chyron{position:absolute;left:max(14px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom));z-index:2;display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 12px 7px;background:#0E1411;color:#F7EFE0;border:2.5px solid #F7EFE0;box-shadow:.34rem .34rem 0 #000;animation:ft-banter-pop .16s cubic-bezier(.2,.9,.3,1)}
.ft-replay-rec{display:inline-flex;align-items:center;gap:7px}
.ft-replay-rec>i{width:9px;height:9px;border-radius:50%;background:#E93E2B;box-shadow:0 0 0 2px #000;animation:ft-replay-blink .95s steps(2,end) infinite}
@keyframes ft-replay-blink{0%,62%{opacity:1}63%,100%{opacity:.22}}
.ft-replay-badge{font-size:clamp(11px,1vw,13.5px);font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#F7EFE0}
.ft-replay-tag{padding:2px 8px;background:#FFD23F;color:#0E1411;font-size:clamp(12px,1.15vw,15.5px);font-weight:900;font-style:italic;letter-spacing:.04em;text-transform:uppercase;transform:skewX(-7deg)}
.ft-replay-slow{padding:2px 7px;background:#1A2A24;border:1.5px solid #6BA38A;color:#BCEAD5;font-size:clamp(10px,.88vw,12px);font-style:normal;font-weight:800;letter-spacing:.1em;text-transform:uppercase;font-variant-numeric:tabular-nums}
.ft-replay-skip{position:absolute;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:2;pointer-events:auto;min-height:36px;padding:6px 13px;background:#0E1411;color:#FFD23F;border:2px solid #F7EFE0;border-radius:0;box-shadow:.26rem .26rem 0 #000;font-family:'Rubik',system-ui,sans-serif;font-size:clamp(11px,.96vw,13px);font-weight:900;font-style:italic;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
.ft-replay-skip:hover{background:#18241E;color:#FFF6D6}
@media (orientation:portrait){.ft-replay-chyron{left:10px;right:10px;bottom:56px;justify-content:flex-start}.ft-replay-skip{right:10px;bottom:max(10px,env(safe-area-inset-bottom))}}
#intent-feedback[data-phase="serve"],#intent-feedback[data-phase="serve-ready"],#intent-feedback #serve-zone{display:none!important}

/* ---------- Overlays: girá el celu, pausa, fin, cómo jugar ---------- */
#ft-match-layer .ft-overlay{position:fixed;inset:0;z-index:50;overflow:hidden}
#ft-match-layer .ft-overlay[hidden]{display:none}
#ft-match-layer .ft-overlay>*{box-sizing:border-box}

.ft-pausa .ft-arc-bg::before{opacity:.96}
/* Tapping the court around the menu goes back to the match. */
.ft-pausa .ft-screen{pointer-events:none}
.ft-pausa .ft-screen>*{pointer-events:auto}
.ft-pause-chips{position:absolute}
.ft-pausa .ft-arc-panel .ft-chip{width:100%;max-width:100%;height:auto;min-height:3.6rem;padding:.6rem 1rem;white-space:normal;line-height:1.25;overflow-wrap:anywhere}
.ft-pause-score{display:grid;grid-template-columns:1fr auto;gap:.2rem 1rem;align-items:center;padding:.8rem 1rem;background:var(--ink);border:.2rem solid var(--cream);box-shadow:.3rem .3rem 0 #000}
.ft-pause-score.has-sets{grid-template-columns:1fr auto auto;gap:.2rem .8rem}
.ft-pause-score span{font-weight:900;font-style:italic;font-size:1.5rem;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ft-pause-score em{min-width:2.2rem;padding:.15rem .45rem;text-align:center;background:#1A2620;border:.15rem solid #3A4A3F;font-style:normal;font-weight:900;font-size:1.5rem;color:#9FB5A7;font-variant-numeric:tabular-nums}
.ft-pause-score em.won{color:var(--yellow)}
.ft-pause-score b{min-width:2.4rem;text-align:right;font-weight:900;font-style:italic;font-size:2.4rem;color:var(--yellow);font-variant-numeric:tabular-nums}
.ft-pausa .ft-mm-nav{left:38rem;top:7rem}
.ft-pausa .ft-mode{color:var(--cream)!important;opacity:.82;text-shadow:.4rem .4rem 0 #000}
.ft-pausa .ft-mode.active,.ft-pausa .ft-mode:hover{opacity:1;color:var(--yellow)!important}
.ft-pause-chips{left:38rem;top:33.6rem;display:flex;gap:1rem}
@media (orientation:portrait){
  /* Upright the menu sits over the middle of the court and the touch controls: a near-solid backdrop instead of the
     landscape veil (Roger, 2026-11-03: the court showing through looked messy). */
  .ft-pausa .ft-arc-bg.dim{background:rgba(14,20,17,.97)}
  .ft-pausa .ft-mm-nav{left:2.4rem;top:40rem}
  .ft-pause-chips{left:2.4rem;top:70rem;flex-wrap:wrap}
}

.ft-fin,.ft-train-end{background:none}
#ft-match-layer .ft-screen{position:absolute;inset:0;margin:auto;width:84.4rem;height:39rem}
@media (orientation:portrait){#ft-match-layer .ft-screen{width:39rem;height:84.4rem}}
.ft-fin-main{position:absolute;left:4rem;top:2rem;width:46rem;display:flex;flex-direction:column;align-items:flex-start;gap:1.2rem}
.ft-fin-main>.ft-chip{max-width:44rem;height:auto;min-height:3rem;padding:.5rem 1.2rem;line-height:1.2;white-space:normal}
.ft-fin-main h1{margin:.2rem 0 0;max-width:44rem;font-weight:900;font-style:italic;text-transform:uppercase;font-size:5.6rem;line-height:.9;color:var(--cream);text-shadow:.6rem .6rem 0 #000;transform:rotate(-3deg);transform-origin:left center}
.ft-fin-main h1.win{color:var(--yellow);-webkit-text-stroke:.15rem #000}
.ft-fin-score{display:flex;align-items:center;gap:1.2rem;padding:1rem 1.4rem;background:var(--ink);border:.2rem solid var(--cream);box-shadow:.4rem .4rem 0 #000}
.ft-fin-score .ft-face{width:5.6rem;height:5.6rem;border:.3rem solid var(--cream)}
.ft-fin-score b{font-weight:900;font-style:italic;font-size:1.6rem;text-transform:uppercase;max-width:11rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ft-fin-score strong{font-weight:900;font-style:italic;font-size:4.2rem;line-height:1;color:var(--yellow);white-space:nowrap}
.ft-fin-sets{font-size:1.1rem;font-weight:700;letter-spacing:.1em;color:var(--muted)}
.ft-fin-stats{display:flex;gap:1.2rem}
.ft-fin-stats span{display:flex;flex-direction:column;padding:.6rem 1rem;background:var(--panel);border:.2rem solid var(--line)}
.ft-fin-stats small{font-size:.9rem;font-weight:700;letter-spacing:.14em;color:var(--muted)}
.ft-fin-stats b{font-weight:900;font-style:italic;font-size:2.2rem}
.ft-fin-next{position:absolute;right:0;top:0;bottom:0;width:calc(50vw - 42.2rem + 30rem);clip-path:polygon(5.2rem 0,100% 0,100% 100%,0 100%);background:var(--ink);padding:2.2rem max(4rem,calc(50vw - 38.2rem)) 2.2rem 7.4rem;display:flex;flex-direction:column;justify-content:center;gap:.9rem;box-sizing:border-box}
.ft-fin-next>span{font-size:1.1rem;font-weight:700;letter-spacing:.22em}
.ft-fin-next .ft-chip{justify-content:center}
.ft-fin-next .ft-fin-teaser{margin:.4rem 0 0;padding:.7rem .9rem;border:.15rem solid rgba(255,214,0,.55);border-radius:.6rem;font-size:max(1.2rem,11px);line-height:1.3;color:#fff6d0}
.ft-fin-next .ft-fin-teaser b{display:block;color:var(--yellow,#ffd600);letter-spacing:.12em;text-transform:uppercase;font-size:.85em}
.ft-share-btn{border:.25rem solid #000!important;box-shadow:.32rem .32rem 0 #000;font-weight:900!important;letter-spacing:.04em}
.ft-share-btn.state-ready{background:var(--yellow)!important;color:var(--ink)!important}
.ft-share-btn.state-shared,.ft-share-btn.state-downloaded{background:var(--live)!important;color:var(--ink)!important}
/* Keep long actions inside the slanted plate's safe area, including italic overhang. */
.ft-fin-next .ft-cta{width:100%;min-width:0}
.ft-fin-next .ft-cta>span{box-sizing:border-box;width:100%;height:auto;min-height:max(5.2rem,44px);padding:.9rem 2.2rem;gap:.6rem;font-size:max(1.6rem,14px);line-height:1.15;white-space:normal;text-align:center}
.ft-fin-next .ft-cta>span i{flex:none}
.ft-thresholds{font-size:1.1rem;color:var(--muted)}
@media (orientation:portrait){
  .ft-fin-main{left:2.4rem;top:4rem;width:34rem}
  .ft-fin-main h1{font-size:5rem}
  .ft-fin-score{flex-wrap:wrap}
  .ft-fin-next{left:0;top:auto;width:auto;height:auto;clip-path:polygon(0 3rem,100% 0,100% 100%,0 100%);padding:5rem 2.4rem max(2.4rem,env(safe-area-inset-bottom))}
}

.ft-howto{background:rgba(14,20,17,.8);z-index:55!important}
.ft-howto-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(60rem,calc(100vw - 4rem));max-height:calc(100vh - 4rem);overflow:auto;padding:2rem 2.4rem;background:var(--ink);border:.3rem solid var(--cream);box-shadow:.6rem .6rem 0 #000}
.ft-howto-card h2{margin:0 0 1rem;font-weight:900;font-style:italic;font-size:3rem;text-transform:uppercase;text-shadow:.3rem .3rem 0 #000}
.ft-howto-card ul{margin:0;padding-left:1.8rem;display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;line-height:1.4}
.ft-howto-card b{color:var(--yellow)}
.ft-howto-btns{display:flex;gap:1rem;margin-top:1.6rem;flex-wrap:wrap}

/* ---------- Entrenamiento's HUD ---------- */
#ft-match-layer .ft-train-hud{position:fixed;left:50%;top:max(.4rem,env(safe-area-inset-top));transform:translateX(-50%);z-index:31;display:flex;align-items:stretch;gap:.4rem;pointer-events:none}
#ft-match-layer .ft-train-hud[hidden]{display:none}
.ft-train-hud>span{display:flex;flex-direction:column;justify-content:center;padding:.3rem 1rem;background:var(--ink);border:.2rem solid #000;box-shadow:.3rem .3rem 0 #000}
.ft-train-hud small{font-size:.8rem;font-weight:700;letter-spacing:.16em;color:var(--muted)}
.ft-train-hud b{font-weight:900;font-style:italic;font-size:1.9rem;line-height:1;color:var(--cream);white-space:nowrap}
.ft-train-hud>span{white-space:nowrap}
.ft-train-hud .ft-train-name{background:var(--yellow);color:var(--ink);font-weight:900;font-style:italic;font-size:1.4rem;text-transform:uppercase}
.ft-train-hud .ft-train-balls{font-size:1.2rem;font-weight:700;color:var(--live)}
.ft-train-hud .ft-train-balls.is-demo{background:#122B36;color:#4BE8FF;font-weight:900;letter-spacing:.08em}
.ft-train-hud .ft-train-msg{background:var(--paper);color:var(--stamp);font-weight:900;font-style:italic;font-size:1.4rem;transform:rotate(-2deg)}
/* An upright phone: the drill's chips (Training, and Online's warm-up while «Buscar rival» looks) ran 450 px wide in a
   412 px screen, cut at both ends and drawn over the pause button. Here they stay left of the pause, compact, and wrap. */
@media (orientation:portrait){
#ft-match-layer .ft-train-hud{left:max(.5rem,env(safe-area-inset-left));right:calc(9rem + env(safe-area-inset-right));transform:none;flex-wrap:wrap;justify-content:flex-start;gap:.3rem}
.ft-train-hud>span{padding:.2rem .55rem;border-width:.15rem;box-shadow:.2rem .2rem 0 #000}
.ft-train-hud small{font-size:.6rem;letter-spacing:.1em}
.ft-train-hud b{font-size:1.3rem}
.ft-train-hud .ft-train-name,.ft-train-hud .ft-train-msg{font-size:1rem}
.ft-train-hud .ft-train-balls{font-size:.95rem}
}
.ft-ttt{display:grid!important;grid-template-columns:repeat(3,1.2rem);gap:.2rem;padding:.4rem!important}
.ft-ttt i{width:1.2rem;height:1.2rem;background:var(--line)}
.ft-ttt i.on{background:var(--yellow)}
body.ft-in-match[data-match-kind="training"] .hud-scoreboard{display:none!important}
/* Pecho y Remate live 2-step coaching bar + Demo toggle */
#ft-match-layer .ft-pecho-guide{position:fixed;left:50%;bottom:max(1rem,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:30;display:flex;align-items:stretch;gap:.55rem;max-width:calc(100vw - 2.4rem);font-family:'Rubik',system-ui,sans-serif;pointer-events:none}
#ft-match-layer .ft-pecho-guide[hidden],body.ft-menu-open #ft-match-layer .ft-pecho-guide,body.ft-menu-open #ft-match-layer .ft-train-hud{display:none!important}
.ft-pg-step{position:relative;display:flex;flex-direction:column;justify-content:center;gap:.2rem;padding:.48rem .95rem .52rem;background:rgba(14,20,17,.94);border:.2rem solid #3A4A3F;box-shadow:.32rem .32rem 0 #000;color:#F3E9CF;transition:border-color 90ms,background-color 90ms,transform 90ms}
.ft-pg-step small{font-size:.8rem;font-weight:900;letter-spacing:.1em;color:#9FB5A7;text-transform:uppercase;white-space:nowrap}
.ft-pg-step span{font-size:1.06rem;line-height:1.25;font-weight:700;color:#F3E9CF;white-space:nowrap}
.ft-pg-step span b{color:#4BE8FF;font-weight:900}
.ft-pg-step:nth-of-type(2) span b{color:#FFD23F}
.ft-pg-step kbd{display:inline-block;padding:.06rem .38rem;margin:0 .06rem;background:#1D2B24;border:.14rem solid #F3E9CF;box-shadow:0 .14rem 0 #000;font-family:'Rubik',system-ui,sans-serif;font-size:.96rem;font-weight:900;font-style:normal;color:#FFD23F;letter-spacing:.03em}
.ft-pg-step.is-active{border-color:#4BE8FF}
.ft-pg-step.is-active small{color:#4BE8FF}
.ft-pg-step.is-now{background:#1B2614;border-color:#FFD23F;transform:translateY(-.16rem)}
.ft-pg-step.is-now small{color:#FFD23F}
.ft-pg-step.is-done{border-color:#5CE887;background:rgba(16,32,22,.94)}
.ft-pg-step.is-done small{color:#7CF29A}
.ft-pg-now{display:inline-block;align-self:flex-start;margin-top:.12rem;padding:.1rem .55rem;background:#FFD23F;color:#0E1411;font-style:italic;font-size:1.08rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.ft-pg-arrow{align-self:center;font-style:normal;font-weight:900;font-size:1.6rem;color:#FFD23F;text-shadow:.2rem .2rem 0 #000}
#ft-match-layer button.ft-pg-btn{pointer-events:auto;align-self:stretch;padding:0 1.15rem;min-height:3.8rem;border:.2rem solid #F3E9CF;border-radius:0;box-shadow:.32rem .32rem 0 #000;font-family:'Rubik',system-ui,sans-serif;font-size:1.12rem;font-weight:900;font-style:italic;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;cursor:pointer}
#ft-match-layer button.ft-pg-btn.is-skip{background:#FFD23F;color:#0E1411;border-color:#0E1411}
#ft-match-layer button.ft-pg-btn.is-watch{background:#0E1411;color:#4BE8FF;border-color:#4BE8FF}
#ft-match-layer button.ft-pg-btn:hover{filter:brightness(1.1)}
body:has(#ft-match-layer .ft-pecho-guide.is-demo:not([hidden])) #intent-feedback{visibility:hidden!important}
body.ft-touch-device #ft-match-layer .ft-pecho-guide,body.show-controls #ft-match-layer .ft-pecho-guide{bottom:auto;top:calc(max(.4rem,env(safe-area-inset-top)) + 4.1rem);transform:translateX(-50%) scale(.9)}
@media (max-width:760px){.ft-pg-step span{white-space:normal;font-size:1.05rem}#ft-match-layer .ft-pecho-guide{gap:.35rem}}

/* While a menu screen is up, the match's HUD and controls stay out of the way (the 3D windows show the court). */
body.ft-menu-open header,body.ft-menu-open .hud-serve-dot,body.ft-menu-open #controls,body.ft-menu-open #intent-feedback,body.ft-menu-open #message,body.ft-menu-open #team-control,body.ft-menu-open #peer-floating-banner{visibility:hidden!important}
body.ft-postmatch-seq #controls,body.ft-postmatch-seq #intent-feedback,body.ft-postmatch-seq #message,body.ft-postmatch-seq #team-control,body.ft-ceremony-open #controls,body.ft-ceremony-open #intent-feedback,body.ft-ceremony-open #message,body.ft-ceremony-open #team-control,body.ft-replay-active #controls,body.ft-replay-active #intent-feedback,body.ft-replay-active #message,body.ft-replay-active #team-control{visibility:hidden!important}
body.ft-ceremony-open:not(.ft-in-match) header{display:none!important}
.ft-fin.is-champion .ft-stripes-bg{opacity:.82}
body.ft-in-match[data-match-kind="training"] #message{display:none!important}

/* «¡Logro: …!» from El Palmarés on the end screens. */
.ft-fin-logros{display:flex;flex-wrap:wrap;gap:.6rem}
.ft-sticker.logro{background:var(--yellow);color:var(--ink);transform:rotate(-1.5deg)}

/* ---------- Session 0's hints (ft-session0.js): one card over the court, top centre, gone once you do the thing ---------- */
#ft-match-layer .ft-coach{position:fixed;left:50%;top:calc(var(--hud-cue-top) + 2px);transform:translateX(-50%);z-index:27;display:flex;align-items:center;gap:.6rem;width:max-content;max-width:min(30rem,calc(100vw - 2rem));padding:.5rem .85rem .55rem .55rem;background:#0E1411;color:#F3E9CF;border:.18rem solid #F3E9CF;box-shadow:.32rem .32rem 0 #000;box-sizing:border-box;font-family:'Rubik',system-ui,sans-serif;pointer-events:none;animation:ft-coach-in 180ms cubic-bezier(.2,1.25,.4,1)}
#ft-match-layer .ft-coach[hidden]{display:none}
.ft-coach-n{flex:none;padding:.08rem .4rem;background:#FFD23F;color:#0E1411;font-size:.82rem;font-weight:900;font-style:italic;letter-spacing:.04em;font-variant-numeric:tabular-nums}
.ft-coach-text{font-size:clamp(14px,1.45vw,18px);line-height:1.2;font-weight:800;font-style:italic}
.ft-coach-text b{color:#FFD23F;font-weight:900}
@keyframes ft-coach-in{from{opacity:0;transform:translateX(-50%) translateY(-.5rem) scale(.96)}to{opacity:1;transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){#ft-match-layer .ft-coach{animation:none}}
@media (orientation:portrait){#ft-match-layer .ft-coach{max-width:calc(100vw - 1.4rem);padding:.45rem .7rem .5rem .45rem}.ft-coach-text{font-size:clamp(13px,3.6vw,16px)}}
/* Session 0's guided match (arcade-menu.js renderGuide): over the court and the controls, never catching a touch. */
#ft-match-layer .ft-guide{position:fixed;inset:0;z-index:40;pointer-events:none;font-family:'Rubik',system-ui,sans-serif;font-style:italic}
#ft-match-layer .ft-guide[hidden]{display:none}
.ft-guide-veil{position:absolute;inset:0;width:100%;height:100%}
.ft-guide-chip{position:absolute;left:50%;top:max(4.6rem,9vh);transform:translateX(-50%);padding:.35rem .8rem;background:#0E1411;color:#F3E9CF;border:2px solid #F3E9CF;box-shadow:4px 4px 0 #000;font-weight:900;font-size:13px;letter-spacing:.06em;white-space:nowrap;text-transform:uppercase}
.ft-guide-chip i{color:#FFD23F;font-style:inherit}
.ft-guide-block{position:absolute;display:flex;flex-direction:column;align-items:center;gap:.35rem;text-align:center}
.ft-guide-now{color:#FFD23F;font-weight:900;font-size:clamp(34px,7vw,60px);line-height:1;letter-spacing:.01em;-webkit-text-stroke:3px #0E1411;paint-order:stroke fill;text-shadow:4px 4px 0 #0E1411;animation:ft-guide-in .25s ease-out}
.ft-guide-sub,.ft-guide-go{color:#F3E9CF;font-weight:800;font-size:clamp(15px,2.2vw,20px);text-shadow:2px 2px 0 #0E1411}
.ft-guide-sub b,.ft-guide-go b{color:#FFD23F}
.ft-guide-go{position:absolute;white-space:nowrap}
@keyframes ft-guide-in{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}
/* The finger presses the button and lifts, the button ripples; on a keyboard the drawn key goes down and up. */
.ft-guide-finger{position:absolute;width:44px;height:64px;filter:drop-shadow(3px 4px 0 rgba(0,0,0,.6));animation:ft-guide-tap 1.1s ease-in-out infinite}
.ft-guide-finger svg{display:block;width:100%;height:100%;transform:rotate(-14deg)}
@keyframes ft-guide-tap{0%,100%{transform:translateY(-14px)}45%,60%{transform:translateY(12px) scale(.94)}}
/* The test shot (1.15): the finger goes down on PLANO, stays down and slides to the aim's side (--dir), lifts, again. */
.ft-guide-finger.slide{animation:ft-guide-slide 1.8s ease-in-out infinite}
@keyframes ft-guide-slide{0%,100%{transform:translate(0,-14px)}20%{transform:translate(0,12px) scale(.94)}35%{transform:translate(0,12px) scale(.94)}75%{transform:translate(calc(var(--dir,1)*46px),12px) scale(.94)}88%{transform:translate(calc(var(--dir,1)*46px),-10px)}}
.ft-guide-ripple.hold{animation:ft-guide-ripple 1.8s ease-out infinite}
.ft-guide-key.combo{width:auto;padding:0 1rem;font-style:normal}
.ft-guide-pause{display:inline-block;width:.7em;height:.8em;margin-right:.45em;vertical-align:-.08em;border-left:.22em solid #FFD23F;border-right:.22em solid #FFD23F;box-sizing:border-box}
.ft-guide-ripple{position:absolute;border-radius:50%;border:5px solid #FFD23F;box-shadow:0 0 24px 8px rgba(255,210,63,.75);opacity:0;animation:ft-guide-ripple 1.1s ease-out infinite}
@keyframes ft-guide-ripple{0%,40%{opacity:0;transform:scale(.85)}50%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.25)}}
.ft-guide-key{display:flex;align-items:center;justify-content:center;margin-top:.6rem;width:min(340px,80%);height:52px;border-radius:12px;background:linear-gradient(#FFF6DA,#E9DDB8);border:3px solid #0E1411;color:#0E1411;font-weight:900;font-style:italic;font-size:24px;letter-spacing:.08em;animation:ft-guide-key 1.1s ease-in-out infinite}
@keyframes ft-guide-key{0%,30%,100%{transform:translateY(0);box-shadow:0 10px 0 #0E1411,0 14px 18px rgba(0,0,0,.5);background:linear-gradient(#FFF6DA,#E9DDB8)}45%,70%{transform:translateY(8px);box-shadow:0 2px 0 #0E1411,0 0 28px 10px rgba(255,210,63,.8);background:linear-gradient(#FFE27A,#FFD23F)}}
.ft-guide-key.side{width:84px;font-size:30px;font-style:normal}
/* The button to press glows above the veil; the stick shows its ghost. */
body.ft-guide-press #controls .strike.flat{box-shadow:0 0 0 .3rem #FFD23F,0 0 1.4rem .5rem rgba(255,210,63,.7);z-index:5}
.ft-ghost-dot{display:none;position:absolute;left:50%;top:50%;width:34%;height:34%;margin:-17% 0 0 -17%;border-radius:50%;background:rgba(255,210,63,.85);box-shadow:0 0 1rem rgba(255,210,63,.9);transform:translate(calc(var(--gx,0) * 95%),calc(var(--gy,0) * -95%));pointer-events:none;animation:ft-ghost-push .9s ease-in-out infinite}
@keyframes ft-ghost-push{0%{transform:translate(0,0)}60%,100%{transform:translate(calc(var(--gx,0) * 95%),calc(var(--gy,0) * -95%))}}
#joystick-base.ft-ghost .ft-ghost-dot{display:block}
#joystick-base.ft-ghost{box-shadow:0 0 0 .25rem rgba(255,210,63,.7),0 0 1.2rem .3rem rgba(255,210,63,.5)}
@media (prefers-reduced-motion:reduce){.ft-guide-finger,.ft-guide-finger.slide,.ft-guide-ripple,.ft-guide-ripple.hold,.ft-guide-key,.ft-guide-now,.ft-ghost-dot{animation:none}.ft-guide-ripple{opacity:1}}
/* Session 0: El Rubio controls (arcade-menu.js ft-control): a card at the top, the player's CONTROL lit. */
#ft-match-layer .ft-s0-control{position:fixed;left:50%;top:max(4.6rem,9vh);transform:translateX(-50%);z-index:41;pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:.45rem .9rem .55rem;background:#0E1411;border:2px solid #F3E9CF;box-shadow:4px 4px 0 #000;font-family:'Rubik',system-ui,sans-serif;font-style:italic;text-align:center;animation:ft-guide-in .25s ease-out;max-width:calc(100vw - 1.4rem)}
#ft-match-layer .ft-s0-control[hidden]{display:none}
/* Session 0 (1.29): each contact's word (¡PERFECTO!, ¡BIEN!…) and each miss's, big over the court for a moment; the
   rules after the first point; the guide's step badge and its SKIP. */
#ft-match-layer .ft-grade{position:fixed;left:50%;top:32%;transform:translate(-50%,-50%);z-index:41;pointer-events:none;font-family:'Rubik',system-ui,sans-serif;font-style:italic;animation:ft-grade 1.1s ease-out both}
#ft-match-layer .ft-grade[hidden]{display:none}
.ft-grade b{display:block;font-weight:900;font-size:clamp(20px,3.2vw,30px);letter-spacing:.03em;color:#F3E9CF;-webkit-text-stroke:2px #0E1411;text-shadow:4px 4px 0 #000;white-space:nowrap}
/* Most words are small; PERFECT a little bigger; a SMASH is the big one (Roger 2026-11-26: «un SMASH!!! le da alegría»). */
.ft-grade.perfect b,.ft-grade.smash b{color:#FFD23F}
.ft-grade.perfect b{font-size:clamp(26px,4.4vw,42px)}
.ft-grade.smash b{font-size:clamp(40px,8vw,76px);color:#FF6B2C;-webkit-text-stroke:3px #0E1411;text-shadow:5px 5px 0 #000,0 0 24px rgba(255,140,40,.65)}
.ft-grade.smash{animation:ft-grade-smash 1.2s ease-out both}
@keyframes ft-grade-smash{0%{transform:translate(-50%,-50%) scale(.4) rotate(-8deg)}14%{transform:translate(-50%,-50%) scale(1.3) rotate(-4deg)}26%{transform:translate(-50%,-50%) scale(1) rotate(-4deg)}78%{opacity:1}100%{opacity:0;transform:translate(-50%,-62%) rotate(-4deg)}}
.ft-grade span{display:block;margin-top:.1rem;text-align:center;color:#F3E9CF;font-weight:800;font-size:clamp(12px,1.7vw,16px);text-shadow:2px 2px 0 #000}
.ft-grade.good b{color:#B8F26A}
.ft-grade.miss b{color:#FF8A6B;font-size:clamp(18px,2.8vw,26px)}
@keyframes ft-grade{0%{transform:translate(-50%,-50%) scale(.6)}12%{transform:translate(-50%,-50%) scale(1.15)}22%{transform:translate(-50%,-50%) scale(1)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-62%)}}
#ft-match-layer .ft-s0-rules{position:fixed;left:50%;top:max(4.6rem,9vh);transform:translateX(-50%);z-index:41;pointer-events:none;padding:.45rem .9rem;background:#0E1411;color:#F3E9CF;border:2px solid #F3E9CF;box-shadow:4px 4px 0 #000;font-family:'Rubik',system-ui,sans-serif;font-style:italic;font-weight:800;font-size:clamp(14px,2vw,18px);white-space:nowrap;animation:ft-guide-in .25s ease-out}
#ft-match-layer .ft-s0-rules[hidden]{display:none}
.ft-s0-rules b{color:#FFD23F}
.ft-guide-step{display:inline-block;margin-bottom:.2rem;padding:.05rem .45rem;background:#FFD23F;color:#0E1411;font-style:normal;font-weight:900;font-size:13px;letter-spacing:.06em}
.ft-guide-skip{position:absolute;right:max(1rem,env(safe-area-inset-right));top:max(4.6rem,9vh);pointer-events:auto;padding:.4rem .9rem;background:#0E1411;color:#F3E9CF;border:2px solid #F3E9CF;box-shadow:3px 3px 0 #000;font-family:inherit;font-style:italic;font-weight:900;font-size:14px;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
/* La Lección (1.30): El Profe's card, top left, with the step (n/6) and SKIP; the end card in the middle. */
#ft-match-layer .ft-lesson{position:fixed;left:max(.8rem,env(safe-area-inset-left));top:max(.8rem,env(safe-area-inset-top));z-index:42;pointer-events:none;font-family:'Rubik',system-ui,sans-serif;font-style:italic;max-width:min(26rem,calc(100vw - 1.6rem))}
#ft-match-layer .ft-lesson[hidden]{display:none}
/* The aim step's lit half, on the player's left, is drawn right where this card sits. */
#ft-match-layer .ft-lesson.zone-left:not(.is-done){left:auto;right:max(.8rem,env(safe-area-inset-right))}
/* :not([hidden]): with the same specificity as the [hidden] rule, display:grid kept the done card up over the match. */
#ft-match-layer .ft-lesson.is-done:not([hidden]){inset:0;left:0;top:0;max-width:none;display:grid;place-items:center;background:rgba(4,9,7,.55)}
.ft-lesson-card{background:#0E1411;border:2px solid #F3E9CF;box-shadow:4px 4px 0 #000;padding:.5rem .7rem .6rem}
/* Only a new step slides in: the card is redrawn on every ball, and the fade made it read half-transparent (critique 2026-11-27). */
.ft-lesson-card.enter{animation:ft-guide-in .25s ease-out}
.ft-lesson-slow{color:#9FD8FF!important;font-weight:900!important;font-size:13px!important;letter-spacing:.03em}
/* El Profe's slow ball: «¡AHORA!» and the key, big, at the bottom between the stick and the buttons (not over the player). */
.ft-lesson-now{position:fixed;left:50%;bottom:max(.7rem,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:.7rem;background:#FFD23F;color:#0E1411;border:3px solid #0E1411;box-shadow:5px 5px 0 #000;padding:.35rem 1.1rem;font-style:italic;animation:ft-lesson-now .18s ease-out}
.ft-lesson-now b{color:#0E1411!important;font-size:clamp(24px,4.2vw,42px)!important;font-weight:900;letter-spacing:.02em}
.ft-lesson-now kbd{font:inherit;font-style:normal;font-weight:900;font-size:clamp(20px,3.4vw,32px);background:#0E1411;color:#FFD23F;padding:.1rem .6rem;border-radius:.3rem}
@keyframes ft-lesson-now{from{transform:translateX(-50%) scale(1.3)}to{transform:translateX(-50%) scale(1)}}
/* The same bar in Session 0's match (arcade-menu.js renderNow). The lesson draws it inside its own card, which
   stacks over the canvas; on its own it needs the stacking the match's other words have, or Unity's canvas
   paints over it (laid out at the right place, and elementFromPoint still answered CANVAS). */
#ft-match-layer .ft-now{z-index:41;pointer-events:none}
/* La Lección builds its bar and throws it away; this one is hidden and shown, and .ft-lesson-now's display:flex
   beats [hidden], which left an empty yellow stub at the foot of the screen on a phone. */
#ft-match-layer .ft-now[hidden]{display:none}
/* On a phone it is the PLANO button that lights up instead (arcade-menu.js renderNow), as the guided match lights it. */
body.ft-now-press #controls .strike.flat{box-shadow:0 0 0 .3rem #FFD23F,0 0 1.4rem .5rem rgba(255,210,63,.7);z-index:5}
.ft-lesson-top{display:flex;align-items:center;gap:.5rem;margin-bottom:.35rem}
.ft-lesson-n{background:#FFD23F;color:#0E1411;font-style:normal;font-weight:900;font-size:14px;padding:.05rem .45rem}
.ft-lesson-top small{color:#F3E9CF;font-weight:800;font-size:12px;letter-spacing:.08em;flex:1}
.ft-lesson-skip,.ft-lesson [data-lesson]{pointer-events:auto;cursor:pointer}
.ft-lesson-skip{background:transparent;color:#F3E9CF;border:2px solid #F3E9CF;font:inherit;font-weight:900;font-size:13px;letter-spacing:.06em;text-transform:uppercase;padding:.15rem .55rem}
.ft-lesson-body{display:flex;gap:.6rem;align-items:flex-start}
.ft-lesson-body img{width:3.2rem;height:3.2rem;object-fit:cover;border:2px solid #FFD23F;background:#1b2622;flex:none}
.ft-lesson-body div{display:flex;flex-direction:column;gap:.15rem}
.ft-lesson-body b{color:#FFD23F;font-weight:900;font-size:clamp(20px,3.2vw,30px);line-height:1.05;letter-spacing:.02em}
.ft-lesson-body span{color:#F3E9CF;font-weight:700;font-size:clamp(13px,1.9vw,17px)}
.ft-lesson-body span b,.ft-lesson-word b{font-size:inherit;color:#FFD23F}
.ft-lesson-hello{color:#B8F26A;font-style:italic;font-weight:900;font-size:13px;letter-spacing:.04em}
.ft-lesson-need{color:#FFD23F;font-style:normal;letter-spacing:.2em;font-size:14px}
.ft-lesson-word{margin-top:.2rem;color:#FF8A6B!important;font-weight:900!important}
.ft-lesson-word.good{color:#B8F26A!important}
.ft-lesson-done{pointer-events:auto;display:flex;flex-direction:column;align-items:center;gap:.4rem;background:#0E1411;border:2px solid #F3E9CF;box-shadow:6px 6px 0 #000;padding:1rem 1.4rem 1.2rem;text-align:center;max-width:min(26rem,calc(100vw - 2rem))}
.ft-lesson-done img{width:4.4rem;height:4.4rem;object-fit:cover;border:2px solid #FFD23F}
.ft-lesson-done small{color:#F3E9CF;font-weight:800;letter-spacing:.08em}
.ft-lesson-done b{color:#FFD23F;font-weight:900;font-size:clamp(26px,4.4vw,40px)}
.ft-lesson-done span{color:#F3E9CF;font-weight:700}
.ft-lesson-done span b{font-size:inherit;color:#FFD23F}
.ft-lesson-rules{list-style:none;margin:.2rem 0 .3rem;padding:0;display:flex;flex-direction:column;gap:.15rem;color:#F3E9CF;font-weight:700;font-size:clamp(13px,1.8vw,16px)}
.ft-lesson-rules li::before{content:'✓ ';color:#B8F26A;font-weight:900}
.ft-lesson-auto{color:#F3E9CF;opacity:.8;font-weight:700;font-size:12px;letter-spacing:.04em;min-height:1em}
/* A phone on its side (390 px tall) cut the card's «¡A jugar!» off the bottom (2026-11-29): on short screens the card
   widens and tightens so the button always shows. */
@media (max-height:560px){
  .ft-lesson-done{max-width:min(38rem,calc(100vw - 2rem));max-height:calc(100dvh - 1rem);padding:.55rem 1.1rem .75rem;gap:.2rem}
  .ft-lesson-done img{width:2.4rem;height:2.4rem}
  .ft-lesson-done b{font-size:clamp(20px,6.5vh,30px);line-height:1.02}
  .ft-lesson-done>span{font-size:13px}
  .ft-lesson-rules{font-size:12.5px;gap:0;margin:.05rem 0 .15rem}
  .ft-lesson-done .ft-cta{margin-top:.1rem}
}
/* During the lesson the match's scoreboard says nothing: the card is the HUD. */
body:has(.ft-lesson:not(.ft-dlesson):not([hidden])) .hud-scoreboard{visibility:hidden}
/* El Profe in the first doubles match: top left like La Lección's card, the match playing on… */
#ft-match-layer .ft-lesson.ft-dlesson{max-width:min(22rem,calc(100vw - 1.6rem))}
/* …in the scoreboard's place: while El Profe talks the scoreboard steps aside, as in La Lección (Roger 2026-12-02 at Poki's
   size: centred it still covered the rivals, «tiene que ir a algún lugar neutro… o sacar el hud momentáneamente»). */
body:has(.ft-dlesson:not([hidden])) .hud-scoreboard{visibility:hidden}
/* …and small (Roger 2026-12-02 playing 1.39 on Poki: «los carteles del profe en el partido de dobles tapan todo»): no
   face, one short title and one line, so the court stays in sight. */
#ft-match-layer .ft-dlesson .ft-lesson-card{padding:.3rem .55rem .35rem;background:rgba(14,20,17,.9);box-shadow:3px 3px 0 #000}
#ft-match-layer .ft-dlesson .ft-lesson-top{margin-bottom:.15rem}
#ft-match-layer .ft-dlesson .ft-lesson-top small{font-size:10.5px;white-space:nowrap}
#ft-match-layer .ft-dlesson .ft-lesson-n{font-size:11.5px}
#ft-match-layer .ft-dlesson .ft-lesson-skip{font-size:11px;padding:.05rem .4rem}
#ft-match-layer .ft-dlesson .ft-lesson-body img{display:none}
#ft-match-layer .ft-dlesson .ft-lesson-body b{font-size:clamp(15px,1.7vw,19px);line-height:1.1}
#ft-match-layer .ft-dlesson .ft-lesson-body span{font-size:clamp(12px,1.25vw,14px)}
/* Piernas automáticas: the offer after balls missed far from the player. */
#ft-match-layer .ft-autorun-offer{position:fixed;left:50%;top:max(8.5rem,17vh);transform:translateX(-50%);z-index:42;pointer-events:auto;display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:.6rem 1rem .7rem;background:#0E1411;border:2px solid #FFD23F;box-shadow:4px 4px 0 #000;font-family:'Rubik',system-ui,sans-serif;font-style:italic;text-align:center;animation:ft-guide-in .25s ease-out;max-width:calc(100vw - 1.4rem)}
#ft-match-layer .ft-autorun-offer[hidden]{display:none}
.ft-autorun-offer b{color:#FFD23F;font-weight:900;font-size:clamp(18px,2.8vw,24px)}
.ft-autorun-offer span{color:#F3E9CF;font-weight:700;font-size:clamp(13px,1.8vw,16px)}
.ft-autorun-offer div{display:flex;gap:.5rem;margin-top:.2rem}
/* «¿Cómo se juega?» (Session 0's direct variant, losing): under the scoreboard, clear of the stick and the buttons. */
#ft-match-layer .ft-s0-howto{position:fixed;left:50%;top:max(8.5rem,17vh);transform:translateX(-50%);z-index:42;pointer-events:auto;padding:.5rem 1.1rem;background:#FFD23F;color:#0E1411;border:2px solid #0E1411;box-shadow:4px 4px 0 #000;font-family:'Rubik',system-ui,sans-serif;font-style:italic;font-weight:900;font-size:clamp(16px,2.4vw,22px);letter-spacing:.02em;cursor:pointer;animation:ft-howto-in .3s ease-out,ft-howto-pulse 1.4s ease-in-out .3s infinite}
@keyframes ft-howto-in{from{opacity:0;transform:translateX(-50%) scale(.8)}to{opacity:1;transform:translateX(-50%)}}
@keyframes ft-howto-pulse{50%{transform:translateX(-50%) scale(1.06)}}
#ft-match-layer .ft-s0-howto[hidden]{display:none}
body.ft-control-show #ft-match-layer .ft-s0-howto{top:max(13rem,27vh)}
.ft-s0-control b{color:#FFD23F;font-weight:900;font-size:clamp(20px,3vw,28px);letter-spacing:.03em}
.ft-s0-control span{color:#F3E9CF;font-weight:700;font-size:clamp(13px,1.8vw,16px)}
.ft-s0-control span b{font-size:inherit;color:#FFD23F}
body.ft-control-show #controls [data-action="set"]{box-shadow:0 0 0 .3rem #FFD23F,0 0 1.4rem .5rem rgba(255,210,63,.7);animation:ft-press-pulse .55s ease-in-out 4 alternate}
@keyframes ft-press-pulse{from{transform:scale(1)}to{transform:scale(1.15)}}
/* The first Session 0's VS starts by itself: its button fills up. */
.ft-cta.ft-cta-auto>span{background:linear-gradient(90deg,#D9A91A calc(var(--auto,0) * 100%),var(--yellow) 0)}
/* Session 0's end screen: the small «Menú» under the one big way on. */
.ft-fin .ft-s0-menu{align-self:flex-start}
.ft-bando-s0{display:block;color:#FFD23F}

/* Points in a row (arcade-menu.js showStreak): under the scoreboard, gone in 2.2 s. */
.ft-streak{position:fixed;z-index:6;margin-top:.5rem;padding:.3rem .9rem;background:var(--ink,#16202a);border:.2rem solid var(--yellow,#ffd23f);color:var(--yellow,#ffd23f);font-size:1.5rem;font-weight:800;font-style:italic;letter-spacing:.04em;white-space:nowrap;pointer-events:none;transform-origin:left center;animation:ft-streak 2.2s ease-out both}
/* Visible from its first frame: a page whose animations do not run still shows it until it is removed. */
@keyframes ft-streak{0%{transform:scale(.7)}8%{transform:scale(1.15)}16%{transform:scale(1)}80%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.ft-streak{animation:none}}
body.city-walking .ft-streak{display:none}

/* index.html: the desktop game without the keyboard focus (a portal page kept it) asks for a click. */
#ft-focus-prompt{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:60;padding:14px 24px;background:#FFD23F;color:#0E1411;border:3px solid #0E1411;border-radius:0;box-shadow:.4rem .4rem 0 #000;font:900 italic clamp(16px,2vw,24px)/1.1 'Rubik',system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase;cursor:pointer}
#ft-focus-prompt[hidden]{display:none}
/* The match held still while the keys are away: a bigger card over a dimmed court (the click anywhere gives the keys back). */
#ft-focus-prompt.held{padding:22px 34px;font-size:clamp(18px,2.4vw,30px);box-shadow:0 0 0 100vmax rgba(14,20,17,.55),.45rem .45rem 0 #000}

/* The close ball's review (arcade-menu.js renderReplay, CourtHawkEye): an official-review bar across the bottom. */
#ft-match-layer .ft-review{position:absolute;left:50%;bottom:max(64px,calc(env(safe-area-inset-bottom) + 56px));transform:translateX(-50%);z-index:3;display:flex;align-items:stretch;min-width:min(560px,86vw);box-shadow:.4rem .4rem 0 #000;border:3px solid #F7EFE0;font-family:'Rubik',system-ui,sans-serif;animation:ft-banter-pop .18s cubic-bezier(.2,.9,.3,1)}
#ft-match-layer .ft-review[hidden]{display:none}
.ft-review-name{display:flex;align-items:center;padding:10px 16px;background:#0E1411;color:#F7EFE0;font-size:clamp(12px,1.25vw,16px);font-weight:900;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap}
.ft-review-call{flex:1;display:flex;align-items:center;justify-content:center;padding:6px 22px;background:#2D3A33;color:#F7EFE0;font-size:clamp(26px,3.6vw,52px);font-weight:900;font-style:italic;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.ft-review.pending .ft-review-call{font-size:clamp(16px,1.9vw,26px);color:#BCEAD5;animation:ft-replay-blink 1s steps(2,end) infinite}
.ft-review.in .ft-review-call{background:#1F8A4C;color:#FFFDF2;animation:ft-banter-pop .2s cubic-bezier(.2,.9,.3,1)}
.ft-review.out .ft-review-call{background:#C8412F;color:#FFFDF2;animation:ft-banter-pop .2s cubic-bezier(.2,.9,.3,1)}
@media (orientation:portrait){#ft-match-layer .ft-review{bottom:110px;min-width:0;width:calc(100vw - 20px)}}

/* A touch button that just changed its name (touch-controls.js: Plano/Volea, Globo/Pique/Cortado) pulses twice. */
#controls .relabel{animation:ft-relabel .45s ease-out 2}
@keyframes ft-relabel{0%{scale:1}40%{scale:1.14;filter:brightness(1.35)}100%{scale:1}}
/* La Planilla (Docs/CARRERA_PLAN.md): what the match paid, line by line, while the players shake hands. Taps go through to
   the court (a tap skips to the end screen). Landscape: on the right; portrait: at the bottom. */
#ft-match-layer .ft-sheet{position:fixed;z-index:27;pointer-events:none;font-family:'Rubik',system-ui,sans-serif;right:max(1rem,env(safe-area-inset-right));top:50%;transform:translateY(-50%);width:min(21.5rem,40vw)}
#ft-match-layer .ft-sheet[hidden],body:not(.ft-postmatch-seq) #ft-match-layer .ft-sheet,body.ft-menu-open #ft-match-layer .ft-sheet{display:none}
.ft-sheet-card{background:#0E1411;color:#F3E9CF;border:.2rem solid #F3E9CF;box-shadow:.35rem .35rem 0 #000;padding:.55rem .75rem .5rem;box-sizing:border-box}
.ft-sheet-title{display:block;font-size:.8rem;letter-spacing:.14em;font-weight:900;color:#0E1411;background:#FFD23F;padding:.1rem .45rem;width:max-content;margin-bottom:.35rem}
.ft-sheet ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.12rem}
.ft-sheet li,.ft-sheet-total{display:grid;grid-template-columns:1fr 3.6rem 3.9rem;align-items:center;gap:.4rem;font-size:.88rem;line-height:1.25;font-weight:800;opacity:0;animation:ft-sheet-in 220ms ease-out forwards;animation-delay:calc(var(--i) * var(--row-ms,260ms))}
.ft-sheet li span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ft-sheet li em,.ft-sheet-total em{font-style:normal;color:#FFD23F;text-align:right;white-space:nowrap}
.ft-sheet li i,.ft-sheet-total i{font-style:normal;color:#9BE15D;text-align:right;white-space:nowrap}
.ft-sheet li.up span{color:#9BE15D}
.ft-sheet-grade{margin-top:.15rem;padding-top:.2rem;border-top:.1rem dashed #F3E9CF55}
.ft-sheet-grade strong,.ft-fin-grade{display:inline-flex;align-items:center;justify-content:center;min-width:2.1rem;height:1.6rem;padding:0 .25rem;font-size:1.05rem;font-weight:900;font-style:italic;color:#0E1411;background:#F3E9CF;border:.15rem solid #000;box-sizing:border-box;justify-self:end}
.ft-sheet-grade strong{animation:ft-sheet-stamp 320ms cubic-bezier(.2,1.6,.4,1) both;animation-delay:calc(var(--i) * var(--row-ms,260ms))}
.g-Aplus{background:#FFD23F!important}.g-A{background:#9BE15D!important}.g-B{background:#7FC4FF!important}.g-C{background:#F3E9CF!important}.g-D{background:#E9785F!important}
.ft-sheet-total{margin-top:.3rem;padding-top:.3rem;border-top:.15rem solid #F3E9CF;font-size:1rem;font-weight:900}
.ft-sheet-skip{display:block;margin-top:.35rem;font-size:.72rem;font-weight:700;color:#F3E9CFAA;text-align:right;opacity:0;animation:ft-sheet-in 220ms ease-out forwards;animation-delay:calc(var(--i) * var(--row-ms,260ms) + 600ms)}
@keyframes ft-sheet-in{from{opacity:0;transform:translateX(.6rem)}to{opacity:1;transform:none}}
@keyframes ft-sheet-stamp{from{opacity:0;transform:scale(2.2) rotate(-12deg)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.ft-sheet li,.ft-sheet-total,.ft-sheet-skip,.ft-sheet-grade strong{animation-duration:1ms}}
@media (max-height:430px) and (orientation:landscape){#ft-match-layer .ft-sheet{width:min(17rem,40vw)}.ft-sheet li,.ft-sheet-total{font-size:.74rem;line-height:1.15;grid-template-columns:1fr 3rem 3.3rem}.ft-sheet-total{font-size:.84rem}.ft-sheet-title{font-size:.68rem;margin-bottom:.2rem}.ft-sheet-card{padding:.4rem .55rem .35rem}.ft-sheet-skip{display:none}.ft-sheet-grade strong{height:1.3rem;font-size:.9rem}}
@media (orientation:portrait){#ft-match-layer .ft-sheet{top:auto;bottom:max(1rem,env(safe-area-inset-bottom));right:50%;transform:translateX(50%);width:min(21rem,92vw)}}
.ft-fin-grade{height:1.45rem;font-size:.95rem;min-width:1.9rem}
/* La Lección's move step on a computer (2026-12-01): the keys that walk, both sets, big under the card. */
.ft-lesson-keys{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:.55rem;padding-top:.5rem;border-top:.12rem dashed rgba(243,233,207,.3)}
.ft-lesson-keys .ft-keys-set{display:flex;flex-direction:column;align-items:center;gap:.22rem}
.ft-lesson-keys .ft-keys-set>span{display:flex;gap:.22rem}
.ft-lesson-keys kbd{display:inline-flex;align-items:center;justify-content:center;min-width:2.1rem;height:2.1rem;padding:0 .3rem;box-sizing:border-box;font:900 1.05rem/1 'Rubik',system-ui,sans-serif;color:#0E1411;background:#FFD23F;border:.16rem solid #0E1411;box-shadow:0 .2rem 0 #000;animation:ft-key-press 1.6s ease-in-out infinite}
.ft-lesson-keys .ft-keys-set:last-child kbd{animation-delay:.8s}
.ft-lesson-keys em{font:900 italic .95rem 'Rubik',system-ui,sans-serif;color:#F3E9CF;opacity:.8}
@keyframes ft-key-press{0%,70%,100%{transform:none;box-shadow:0 .2rem 0 #0E1411}80%{transform:translateY(.18rem);box-shadow:0 .02rem 0 #0E1411}}
@media (prefers-reduced-motion:reduce){.ft-lesson-keys kbd{animation:none}}
@media (max-height:430px){.ft-lesson-keys{gap:.6rem;margin-top:.3rem;padding-top:.3rem}.ft-lesson-keys kbd{min-width:1.6rem;height:1.6rem;font-size:.85rem}}

/* El Vestuario (Docs/CARRERA_PLAN.md phase 2): the Arcade's and the World Tour's end screen is the locker room. The court
   goes dark around the captain's 3D box (its box-shadow, like the menus' .stage-3d), lockers line the wall behind the
   result, the week runs under it and the calendar jumps to the next match day. Boxes sit in .ft-screen's 84.4×39 rem. */
.ft-fin.is-locker .ft-stripes-bg{display:none}
.ft-fin.is-locker .ft-locker-captain{left:38.8rem;top:.6rem;width:14.6rem;height:37.8rem;border:none;background:linear-gradient(180deg,rgba(14,20,17,0) 72%,rgba(14,20,17,.85));box-shadow:0 0 0 300vmax rgba(14,20,17,.96);z-index:0}
.ft-fin.is-locker .ft-locker-captain .ft-stage-note{position:absolute;left:.8rem;bottom:.8rem;font-size:.9rem;letter-spacing:.14em;color:var(--muted)}
.ft-fin.is-locker .ft-locker-bg{position:absolute;left:-200vmax;right:46rem;top:-200vmax;bottom:-200vmax;z-index:1;
  background:linear-gradient(90deg,rgba(14,20,17,.35),rgba(14,20,17,.7)),repeating-linear-gradient(90deg,#24443A 0 9.4rem,#0F1F19 9.4rem 9.8rem,#24443A 9.8rem 10rem)}
/* the match's cards (a lesson's, a coach's) stay on the court: the locker is another room */
body.ft-locker-open .ft-lesson,body.ft-locker-open .ft-coach,body.ft-locker-open .hud-group,body.ft-locker-open #message,body.ft-locker-open #controls,body.ft-locker-open #shot-guide,body.ft-locker-open #shot-detail,body.ft-locker-open #intent-feedback,body.ft-locker-open #team-control{visibility:hidden}
.ft-fin.is-locker .ft-fin-main{z-index:2;width:34rem;gap:.8rem}
.ft-fin.is-locker .ft-fin-main h1{font-size:4.4rem}
.ft-fin.is-locker .ft-fin-score{padding:.7rem 1rem;gap:.9rem}
.ft-fin.is-locker .ft-fin-score .ft-face{width:4.2rem;height:4.2rem}
.ft-fin.is-locker .ft-fin-score b{max-width:8rem;font-size:1.4rem}
.ft-fin.is-locker .ft-fin-score strong{font-size:3.2rem}
.ft-fin.is-locker .ft-fin-stats{display:none}
.ft-fin.is-locker .ft-fin-next{z-index:3}
.ft-week{display:flex;flex-direction:column;gap:.5rem}
.ft-week-days{display:flex;gap:.4rem}
.ft-day{position:relative;width:4.5rem;height:6.4rem;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:.4rem 0;box-sizing:border-box;background:var(--panel);border:.2rem solid var(--line)}
.ft-day small{font-size:1rem;font-weight:900;letter-spacing:.06em;color:var(--muted)}
.ft-day.rest{opacity:.4}
.ft-day .ft-face.mini{width:3.4rem;height:3.4rem;border:.15rem solid var(--cream)}
.ft-day-q{font-weight:900;font-size:2.2rem;line-height:1;color:var(--muted)}
.ft-day i{position:absolute;right:-.3rem;bottom:-.3rem;width:1.8rem;height:1.8rem;display:grid;place-items:center;border-radius:50%;background:var(--ink);border:.15rem solid currentColor;font-style:normal;font-weight:900;font-size:1.1rem;line-height:1}
.ft-day.win i{color:var(--live)}
.ft-day.loss i{color:#FF6B5A}
.ft-day.win .ft-face,.ft-day.loss .ft-face{filter:saturate(.5) brightness(.85)}
.ft-day.boss{border-color:var(--orange)}
.ft-day.today{background:var(--ink);border-color:var(--yellow);box-shadow:.3rem .3rem 0 #000}
.ft-day.today small{color:var(--yellow)}
.ft-week.jumps .ft-day.from{animation:ft-day-leave .5s .25s both}
.ft-week.jumps .ft-day.today{animation:ft-day-arrive .55s .75s both}
.ft-week-jump{margin:0;font-weight:900;font-style:italic;font-size:1.7rem;color:var(--yellow);text-transform:uppercase;animation:ft-jump-in .45s .15s both}
@keyframes ft-day-leave{from{background:var(--ink);border-color:var(--yellow)}to{background:var(--panel);border-color:var(--line)}}
@keyframes ft-day-arrive{0%{background:var(--panel);border-color:var(--line);transform:none}55%{transform:translateY(-.7rem)}100%{background:var(--ink);border-color:var(--yellow);transform:none}}
@keyframes ft-jump-in{from{opacity:0;transform:translateX(-1rem)}to{opacity:1;transform:none}}
.ft-fin-next>span.ft-locker-nextline{letter-spacing:.08em;line-height:1.25;text-transform:uppercase;font-weight:900}
@media (prefers-reduced-motion:reduce){.ft-week.jumps .ft-day,.ft-week-jump{animation:none}}
@media (orientation:portrait){
  .ft-fin.is-locker .ft-locker-captain{left:12rem;top:.8rem;width:15rem;height:17.2rem}
  .ft-fin.is-locker .ft-locker-bg{right:-200vmax;top:18rem}
  .ft-fin.is-locker .ft-fin-main{top:18.6rem;width:34.2rem}
}
