/* Verdict (jeu et page publique) : un zéro (se coucher), des barres qui en partent, une jauge équité contre seuil. Aucun libellé ajouté. */
.ev-row,.odds-picture{--vd-gain:var(--gain);--vd-loss:var(--loss);--vd-coin:var(--chip);--vd-ink:var(--text-1);--vd-mute:var(--text-2);--vd-dim:var(--text-3)}
:is(#game-screen .solver-panel,.hero-example) #frequencies:has(.ev-track u){padding-top:16px}

/* Échelle EV : un zéro (se coucher = 0.00), barres qui en partent, ✓ meilleur, ✕ joué s'il n'est pas le meilleur. */
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-row{display:grid;grid-template-columns:minmax(64px,104px) minmax(0,1fr) 84px;align-items:center;gap:12px;margin:0;padding:0;min-height:28px;font-size:13.5px;position:relative}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-row>span{display:flex;align-items:center;gap:8px;color:var(--vd-mute);font-weight:500;min-width:0;white-space:nowrap}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) :is(.ev-row[data-mark],.ev-row[aria-current="true"])>span{color:var(--vd-ink)}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-row>span::before{content:"";flex:none;width:16px;height:16px;background:currentColor;opacity:0;-webkit-mask:var(--vd-icon,none) center/contain no-repeat;mask:var(--vd-icon,none) center/contain no-repeat}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-row[data-mark="best"]>span::before{--vd-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");opacity:1;color:var(--vd-gain)}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-row[data-mark="miss"]>span::before{--vd-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");opacity:1;color:var(--vd-loss)}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-track{position:relative;height:8px;margin:0;border-radius:4px;overflow:visible;background:color-mix(in srgb,var(--text-1) 5%,transparent)}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-track::before{content:"";position:absolute;left:var(--zero);top:-4px;bottom:-4px;width:1px;background:color-mix(in srgb,var(--text-1) 24%,transparent)}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-track u{position:absolute;left:var(--zero);top:-18px;transform:translateX(-50%);font-size:11px;line-height:14px;color:var(--vd-dim);text-decoration:none;font-variant-numeric:tabular-nums}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-track i{position:absolute;top:0;bottom:0;background:var(--vd-gain);animation:vd-grow 420ms var(--ease,cubic-bezier(.16,1,.3,1)) both;animation-delay:calc(var(--i,0)*70ms + 60ms)}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-track .ev-bar--gain{border-radius:0 6px 6px 0;transform-origin:left center}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-track .ev-bar--loss{border-radius:6px 0 0 6px;transform-origin:right center;background:var(--vd-loss);opacity:.85}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-track .ev-pin{display:none;background:var(--vd-ink)}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-row b{justify-self:end;font-family:inherit;font-size:13px;font-weight:500;line-height:20px;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-row b.ev-number--gain{color:var(--vd-gain)}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-row b.ev-number--loss{color:var(--vd-loss)}
:is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-row b.ev-number--zero{color:var(--vd-mute)}
@keyframes vd-grow{from{transform:scaleX(0)}}

/* Jauge : équité contre seuil de rentabilité */
:is(#game-screen .solver-panel,.hero-example) .odds-picture{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 24px;margin:4px 0 12px;padding:0 8px;font:inherit}
:is(#game-screen .solver-panel,.hero-example) .vd-pay{display:flex;align-items:center;gap:10px;font:600 15px/20px var(--font-mono,monospace);font-variant-numeric:tabular-nums;color:var(--vd-ink)}
:is(#game-screen .solver-panel,.hero-example) .vd-pay b{font-weight:600;min-width:3ch;text-align:right;color:var(--vd-ink)}
:is(#game-screen .solver-panel,.hero-example) .vd-gauge{position:relative;padding:24px 0 26px;min-width:0}
:is(#game-screen .solver-panel,.hero-example) .vd-rail{position:relative;height:14px;border-radius:7px;background:var(--hover);overflow:visible}
:is(#game-screen .solver-panel,.hero-example) .vd-rail i{position:absolute;top:0;bottom:0}
:is(#game-screen .solver-panel,.hero-example) .vd-lose{left:0;width:calc(var(--need)*100%);border-radius:7px 0 0 7px;background:color-mix(in srgb,var(--loss) 22%,transparent)}
:is(#game-screen .solver-panel,.hero-example) .vd-win{left:calc(var(--need)*100%);right:0;border-radius:0 7px 7px 0;background:color-mix(in srgb,var(--gain) 22%,transparent)}
:is(#game-screen .solver-panel,.hero-example) .vd-fill{left:0;width:calc(var(--equity)*100%);border-radius:7px;background:linear-gradient(90deg,var(--vd-loss) calc(var(--need)/var(--equity)*100%),var(--vd-gain) 0);transform-origin:left center;animation:vd-fill 560ms var(--ease,cubic-bezier(.16,1,.3,1)) 160ms both}
:is(#game-screen .solver-panel,.hero-example) .vd-need{left:calc(var(--need)*100%);top:-5px;bottom:-5px;width:2px;margin-left:-1px;border-radius:1px;background:var(--vd-ink)}
:is(#game-screen .solver-panel,.hero-example) .vd-have,:is(#game-screen .solver-panel,.hero-example) .vd-req{position:absolute;display:inline-flex;align-items:center;gap:5px;font:600 14px/18px var(--font-mono,monospace);font-variant-numeric:tabular-nums;white-space:nowrap}
:is(#game-screen .solver-panel,.hero-example) .vd-have{top:0;left:calc(var(--equity)*100%);transform:translateX(-100%);color:var(--vd-gain);animation:vd-fade 260ms ease-out 520ms both}
:is(#game-screen .solver-panel,.hero-example) .odds-picture[data-up="false"] .vd-have{color:var(--vd-loss)}
:is(#game-screen .solver-panel,.hero-example) .vd-have b,:is(#game-screen .solver-panel,.hero-example) .vd-req b{font-weight:600;color:inherit}
:is(#game-screen .solver-panel,.hero-example) .vd-req{bottom:0;left:calc(var(--need)*100%);transform:translateX(-50%);color:var(--vd-ink);animation:vd-fade 260ms ease-out 380ms both}
:is(#game-screen .solver-panel,.hero-example) .vd-have svg,:is(#game-screen .solver-panel,.hero-example) .vd-req svg{width:14px;height:14px;flex:none}
:is(#game-screen .solver-panel,.hero-example) .vd-have svg{fill:currentColor;opacity:.9}
:is(#game-screen .solver-panel,.hero-example) .vd-req svg{fill:var(--vd-coin)}
:is(#game-screen .solver-panel,.hero-example) .vd-req svg .hole{fill:var(--shell)}
@keyframes vd-fill{from{transform:scaleX(0)}}
@keyframes vd-fade{from{opacity:0}}

/* Titre : pastille ✓ / ✗ */
#game-screen #solver-result:has(.ev-row) #result-title{display:inline-flex;align-items:center;gap:10px}
#game-screen #solver-result:has(.ev-row) #result-title[data-verdict]::before{content:"";flex:none;box-sizing:content-box;width:7px;height:13px;margin:0 5px 4px 5px;border:solid var(--gain);border-width:0 3px 3px 0;transform:rotate(45deg) translate(-1px,-1px)}
#game-screen #solver-result:has(.ev-row) #result-title[data-verdict="bad"]::before{width:20px;height:20px;margin:0;border:0;transform:none;color:var(--loss);background:linear-gradient(45deg,transparent 42%,currentColor 42% 58%,transparent 58%),linear-gradient(-45deg,transparent 42%,currentColor 42% 58%,transparent 58%)}

@media (max-width:700px){
  :is(#game-screen .solver-panel,.hero-example) .ev-row{grid-template-columns:minmax(56px,84px) minmax(0,1fr) 72px;gap:8px;padding:0 6px}
  :is(#game-screen .solver-panel,.hero-example) .ev-row b{font-size:13px}
  :is(#game-screen .solver-panel,.hero-example) .odds-picture{grid-template-columns:1fr;gap:0}
  :is(#game-screen .solver-panel,.hero-example) .vd-pay{justify-content:flex-start}
}
@media (max-width:700px){#game-screen .solver-panel:has(#range-grid:not([hidden])) .ev-row{grid-template-columns:minmax(0,1fr) auto;gap:0 6px;padding:0 6px;min-height:0;margin:0;font-size:12px;line-height:14px}#game-screen .solver-panel:has(#range-grid:not([hidden])) .ev-row>span,#game-screen .solver-panel:has(#range-grid:not([hidden])) .ev-row b{line-height:14px;font-size:12px}#game-screen .solver-panel:has(#range-grid:not([hidden])) .ev-track{grid-column:1/-1;grid-row:2;height:8px;border-radius:4px}#game-screen .solver-panel:has(#range-grid:not([hidden])) .ev-row b{grid-row:1;grid-column:2}#game-screen .solver-panel:has(#range-grid:not([hidden])) #frequencies:has(.ev-track u){padding-top:0}#game-screen .solver-panel:has(#range-grid:not([hidden])) .ev-track u{display:none}}
@media (prefers-reduced-motion:reduce){
  :is(#game-screen .solver-panel,.hero-example,.today-ev,.ev-block) .ev-track i,:is(#game-screen .solver-panel,.hero-example) .vd-fill,:is(#game-screen .solver-panel,.hero-example) .vd-pay *,:is(#game-screen .solver-panel,.hero-example) .vd-have,:is(#game-screen .solver-panel,.hero-example) .vd-req{animation:none!important}
}

/* The lesson and Next stay outside the optional solver material. */
#game-screen #result-title{font-size:17px;line-height:1.4;text-wrap:pretty}
#game-screen .correction-why{margin:8px 0;color:var(--text-2);font-size:14px;line-height:1.4}
#game-screen #verdict-details>summary{cursor:pointer;min-height:40px;align-content:center;color:var(--text-2);font-size:13px}
#game-screen #verdict-details{min-width:0}

/* Folded material starts its animations only when disclosed. */
#game-screen #verdict-details:not([open]) *{animation:none!important}

/* Keep extreme equities readable; labels must not leave the rail at 0 or 100%. */
#game-screen #correction-odds:empty{display:none}
#game-screen #correction-odds .odds-picture{grid-template-columns:1fr;gap:0;margin:10px 0 0;padding:0}
#game-screen #correction-odds .vd-pay{font:500 14px/20px var(--font-sans);gap:12px;flex-wrap:wrap}
#game-screen #correction-odds .vd-have{left:0;transform:none}
#game-screen #correction-odds .vd-req{left:auto;right:0;transform:none}
