/* v1.4.16 presentation and navigation only. No game or save rules. */
body:is(.ff-forge-five,.ff-dynasty){--flow-accent-ink:#785200}
html[data-ff-theme="dark"] body:is(.ff-forge-five,.ff-dynasty){--flow-accent-ink:#f0cd7b}

/* Each colour belongs to its surface, independently of the page theme. */
body.ff-forge-five .phase-chip:not(.current):not(.complete){background:#202428;color:#dbe1e6}
body.ff-forge-five .phase-chip.current{background:#f0cd7b;color:#282015;border-color:#a47b29}
body.ff-forge-five .need-pill.current{background:var(--game-soft);color:var(--flow-accent-ink);border-color:var(--game-line)}
body.ff-forge-five :is(.need-label,.round-chip,.bid-stat>span){color:var(--game-muted)}
body.ff-forge-five .auction-message{color:var(--game-ink)}
body.ff-forge-five :is(.season-comparison>summary,.season-breakdown>summary){color:var(--flow-accent-ink)}
body.ff-dynasty [data-season-tab].is-active{color:var(--flow-accent-ink);border-bottom-color:var(--flow-accent-ink)}
body.ff-dynasty .filter-chip.is-active{background:#f0cd7b;color:#282015;border-color:#a47b29}
html[data-ff-theme="dark"] body.ff-dynasty .section-kicker{color:#f0cd7b}
body.ff-dynasty .match-strengths :is(strong,span,small),
body.ff-dynasty .match-final-card :is(h3,.season-match-impact){color:var(--game-ink)}
body.ff-dynasty .game-plan-picker>div{background:var(--game-soft);border-color:var(--game-line)}
body.ff-dynasty .game-plan-picker button:not(.is-active){color:var(--game-ink);background:transparent}
body.ff-dynasty .game-plan-picker button.is-active{color:#282015;background:#f0cd7b}
body.ff-dynasty .scoreboard .match-clock :is(strong,span){color:#f3f1ea}
body.ff-dynasty .quarter-progress>span:not(.is-current){color:#cbd2d8}
.match-result-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 18px}
.match-result-actions button{min-height:46px;flex:1 1 130px}
.match-result-actions [hidden]{display:none}

body.ff-forge-five .reveal-preference{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px;color:var(--game-muted);font-size:.75rem}
body.ff-forge-five .reveal-preference label{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--game-ink);font-size:.8rem;font-weight:750;cursor:pointer}
body.ff-forge-five .reveal-preference input{width:19px;height:19px;min-height:0;margin:0;accent-color:#946706;cursor:pointer}
body.ff-forge-five .reveal-preference input:focus-visible{outline:3px solid var(--flow-accent-ink);outline-offset:3px}

/* Keep the live decision together, without fixed controls or hiding ratings. */
@media(max-width:760px){
  body.ff-forge-five.forge-five-active .game{gap:8px}
  body.ff-forge-five.forge-five-active .quick-how{margin:4px 0 8px}
  body.ff-forge-five.forge-five-active .quick-how>summary{min-height:44px;padding:0 13px}
  body.ff-forge-five.forge-five-active .scorebar{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px;border-radius:16px}
  body.ff-forge-five.forge-five-active .scorebar .budget{padding:7px 9px;border-radius:11px;min-width:0}
  body.ff-forge-five.forge-five-active .scorebar .budget .label{font-size:.6rem;white-space:normal}
  body.ff-forge-five.forge-five-active .scorebar .budget strong{font-size:1.1rem}
  body.ff-forge-five.forge-five-active .scorebar .budget span{font-size:.68rem}
  body.ff-forge-five.forge-five-active .auction-phasebar{padding:5px;gap:4px;border-radius:12px}
  body.ff-forge-five.forge-five-active .phase-chip{padding:5px 2px;font-size:.66rem;line-height:1.3}
  body.ff-forge-five.forge-five-active .phase-chip small{font-size:.59rem}
  body.ff-forge-five.forge-five-active .stage>.panel{padding:12px;border-radius:18px}
  body.ff-forge-five.forge-five-active .panel-head{margin-bottom:2px}
  body.ff-forge-five.forge-five-active .panel-head h2{font-size:1.1rem;margin:2px 0}
  body.ff-forge-five.forge-five-active .reveal-preference{margin-bottom:5px}
  body.ff-forge-five.forge-five-active .reveal-preference>span{font-size:.66rem}
  body.ff-forge-five.forge-five-active .player-card{padding:8px;border-radius:14px}
  body.ff-forge-five.forge-five-active .player-card-layout{grid-template-columns:minmax(88px,34%) minmax(0,1fr);gap:9px}
  body.ff-forge-five.forge-five-active .player-art{min-height:190px;height:100%;max-height:230px}
  body.ff-forge-five.forge-five-active .player-art img{height:100%;object-fit:cover;object-position:center 16%}
  body.ff-forge-five.forge-five-active .player-card h2{font-size:clamp(1rem,4.4vw,1.25rem);line-height:1.12;margin:0 0 3px;overflow-wrap:anywhere}
  body.ff-forge-five.forge-five-active .player-card .player-meta{display:block;font-size:.64rem;line-height:1.3}
  body.ff-forge-five.forge-five-active .player-top{gap:5px}
  body.ff-forge-five.forge-five-active .player-card-badges{gap:5px;margin-top:4px}
  body.ff-forge-five.forge-five-active :is(.overall-badge,.position-badge){min-width:38px;min-height:33px;padding:3px 6px}
  body.ff-forge-five.forge-five-active .overall-badge strong{font-size:1.2rem}
  body.ff-forge-five.forge-five-active .attributes{gap:3px;margin-top:6px}
  body.ff-forge-five.forge-five-active .attribute{min-height:19px;padding:3px 4px}
  body.ff-forge-five.forge-five-active .auction-needs{margin:6px 0;gap:5px}
  body.ff-forge-five.forge-five-active .need-side{padding:5px 6px;border-radius:9px}
  body.ff-forge-five.forge-five-active .need-label{font-size:.58rem}
  body.ff-forge-five.forge-five-active .need-pills{margin-top:2px}
  body.ff-forge-five.forge-five-active .need-pill{font-size:.63rem;padding:2px 4px}
  body.ff-forge-five.forge-five-active .ai-strategy{display:none}
  body.ff-forge-five.forge-five-active .bid-status{margin:6px 0;gap:5px}
  body.ff-forge-five.forge-five-active .bid-stat{padding:6px;min-width:0;border-radius:9px}
  body.ff-forge-five.forge-five-active .bid-stat strong{font-size:1rem;overflow-wrap:anywhere}
  body.ff-forge-five.forge-five-active #bidCount{font-size:.74rem;line-height:1.35}
  body.ff-forge-five.forge-five-active .bid-stat>span{font-size:.58rem}
  body.ff-forge-five.forge-five-active .bid-actions{gap:6px;margin-top:6px}
  body.ff-forge-five.forge-five-active .bid-actions .btn{min-height:46px;padding:8px 10px;font-size:.82rem;border-radius:10px}
  body.ff-forge-five.forge-five-active .auction-message{margin-top:7px;padding:8px;font-size:.75rem}
}
@media(min-width:375px) and (max-width:760px){
  body.ff-forge-five.forge-five-active .bid-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
  body.ff-forge-five.forge-five-active .bid-actions .btn{padding:8px 3px;font-size:.76rem}
  body.ff-forge-five.forge-five-active .exclusive-user-selection .bid-actions{grid-template-columns:1fr 1fr}
}
