/* Preparação do desafio cronometrado: apresentação, contagem 3-2-1-VAI em pixel art e dicas do futebol.
   A camada nunca captura toque fora do painel: pausa e tela cheia continuam clicáveis. */
#stage #challenge-start{position:absolute;inset:0;z-index:40;display:grid;place-items:center;pointer-events:none;color:#fff9dc;font-family:VT323,monospace;text-align:left}
#stage #challenge-start[hidden]{display:none}
#stage #challenge-start[data-phase=brief]{background:#050b1ccc}
#stage #challenge-start[data-phase=count]{background:#050b1c55}
#stage #challenge-start[data-phase=go]{background:#050b1c33}
#stage #challenge-start .cs-panel{pointer-events:auto;box-sizing:border-box;width:min(580px,calc(100% - 24px));max-height:calc(100% - 20px);display:flex;flex-direction:column;gap:7px;padding:10px 14px 12px;overflow:hidden;background:#0d1726;border:3px solid #f1cc70;box-shadow:4px 4px #061120}
#stage #challenge-start .cs-tag{margin:0;font:8px/1.3 'Brasil Arcade',monospace;color:#ffe598;letter-spacing:.04em}
#stage #challenge-start h2{margin:0;font:12px/1.35 'Brasil Arcade',monospace;color:#fff9dc;text-shadow:2px 2px #061120;overflow-wrap:anywhere}
#stage #challenge-start h3{margin:0 0 4px;font:8px/1.3 'Brasil Arcade',monospace;color:#9fd6ff;font-weight:400}
#stage #challenge-start .cs-rule{display:grid;gap:1px;padding:5px 9px;background:#1a2c4a;border-left:4px solid #ffe598;font-size:18px;line-height:1.1}
#stage #challenge-start .cs-rule b{font:9px/1.4 'Brasil Arcade',monospace;color:#ffe598;font-weight:400}
#stage #challenge-start .cs-controls{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 10px}
#stage #challenge-start .cs-controls li{display:flex;align-items:center;gap:6px;min-width:0;font-size:18px;line-height:1}
#stage #challenge-start .cs-how{display:inline-flex;align-items:center;gap:2px;flex:none}
#stage #challenge-start .cs-chip{display:inline-block;padding:3px 6px;background:#243a5e;border:2px solid #7fa5d4;color:#fff9dc;font:inherit;font-size:17px;line-height:1;white-space:nowrap}
#stage #challenge-start .cs-controls .touch-icon{display:inline-grid;place-items:center;width:34px;height:34px;background:#243a5e;border:2px solid #7fa5d4}
#stage #challenge-start .cs-controls .touch-icon svg{width:24px;height:24px}
#stage #challenge-start .cs-what{min-width:0;color:#d8e4ee}
#stage #challenge-start .cs-clock{margin:0;font-size:18px;line-height:1;color:#ffe598}
#stage #challenge-start .cs-start{align-self:center;min-width:min(240px,100%);min-height:44px;padding:9px 22px;border:3px solid #fff3b0;background:#c9372c;color:#fff9dc;font:11px/1 'Brasil Arcade',monospace;box-shadow:3px 3px #061120;cursor:pointer}
#stage #challenge-start .cs-start:hover,#stage #challenge-start .cs-start:focus-visible{background:#e14b35;outline:3px solid #fff3b0;outline-offset:2px}
#stage #challenge-start .cs-count{display:grid;justify-items:center;gap:6px}
#stage #challenge-start .cs-glyphs{display:block;height:clamp(84px,28vh,210px);width:auto;image-rendering:pixelated}
#stage #challenge-start .cs-count[data-symbol='VAI!'] .cs-glyphs{height:clamp(64px,22vh,160px)}
#stage #challenge-start .cs-ink{fill:#ffe598}
#stage #challenge-start .cs-shadow{fill:#061120}
#stage #challenge-start .cs-count[data-symbol='VAI!'] .cs-ink{fill:#8ff0a4}
#stage #challenge-start .cs-resume{font:9px/1 'Brasil Arcade',monospace;color:#ffe598;text-shadow:2px 2px #061120}
#stage #challenge-start .cs-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
#stage #challenge-start .cs-count{animation:cs-pop .8s steps(6) both}
#stage #challenge-start[data-kind=resume] .cs-count{animation-duration:.6s}
#stage #challenge-start[data-phase=go] .cs-count{animation:cs-go .9s steps(6) both}
@keyframes cs-pop{from{transform:scale(1.7);opacity:0}30%{opacity:1}to{transform:scale(1);opacity:1}}
@keyframes cs-go{from{transform:scale(.7);opacity:1}20%{transform:scale(1.12)}70%{transform:scale(1.12);opacity:1}to{transform:scale(1.3);opacity:0}}
#stage #challenge-start[data-reduced=true] .cs-count,#stage #challenge-start[data-reduced=true][data-phase=go] .cs-count{animation:none}
@media(prefers-reduced-motion:reduce){#stage #challenge-start .cs-count,#stage #challenge-start[data-phase=go] .cs-count{animation:none}}
@media(max-height:460px){
 #stage #challenge-start .cs-panel{gap:5px;padding:7px 12px 9px}
 #stage #challenge-start .cs-rule{padding:3px 8px;font-size:16px}
 #stage #challenge-start .cs-controls li,#stage #challenge-start .cs-clock{font-size:16px}
 #stage #challenge-start .cs-chip{font-size:15px;padding:2px 5px}
 #stage #challenge-start .cs-controls .touch-icon{width:30px;height:30px}
 #stage #challenge-start .cs-controls .touch-icon svg{width:22px;height:22px}
 #stage #challenge-start .cs-start{min-height:40px;padding:7px 18px}
}

/* Fase 12: dicas curtas (uma linha, no máximo ~8 palavras) num canto, sem caixa com rolagem. */
#stage #play-tip.cup-tip,#stage[data-history-theme] #play-tip.history-learning-tip.cup-tip,#root #stage[data-mode=play] #play-tip.cup-tip{width:max-content;height:auto;bottom:auto;min-height:0;max-height:none;overflow:hidden;touch-action:none;display:flex;align-items:center;gap:7px;padding:5px 9px;transform:none;font:18px/1.05 VT323,monospace;pointer-events:none}
#stage #play-tip.cup-tip::before,#stage[data-history-theme] #play-tip.history-learning-tip.cup-tip::before{display:none}
#stage #play-tip.cup-tip .tip-text{display:inline;gap:0}
#stage #play-tip.cup-tip .tip-head{display:inline;color:#fff9dc;font-size:1em}
#stage #play-tip.cup-tip .tip-icons{display:inline-flex;align-items:center;gap:3px;vertical-align:middle}
#stage #play-tip.cup-tip .touch-icon{display:inline-grid;place-items:center;width:26px;height:26px;background:#243a5e;border:2px solid #7fa5d4}
#stage #play-tip.cup-tip .touch-icon svg{width:20px;height:20px}
#stage #play-tip.cup-tip button{display:none}
@media(max-height:460px){#stage #play-tip.cup-tip,#stage[data-history-theme] #play-tip.history-learning-tip.cup-tip,#root #stage[data-mode=play] #play-tip.cup-tip{font-size:16px;padding:4px 7px}#stage #play-tip.cup-tip .touch-icon{width:22px;height:22px}#stage #play-tip.cup-tip .touch-icon svg{width:16px;height:16px}}

/* V974: cup-tip display:flex must not reveal a cleared/hidden learning tip, including on the map. */
#root #stage #play-tip.cup-tip[hidden],#root #stage #play-tip.cup-tip:empty{display:none}

/* Fora do overlay: usa o mesmo mixin e as mesmas variáveis de menus.css. */
#root #stage #challenge-start .cs-panel{--frame-c:#f1cc70;--frame-bg:#0d1726;--frame-border:3px}
#root #stage #challenge-start .cs-rule{--frame-c:#8fc8ff;--frame-bg:#1a2c4a;--frame-border:2px;border:2px solid transparent}
#root #stage #challenge-start .cs-start{--frame-border:3px;max-width:100%;min-height:44px}
