/* fighter cards: race / condition / weapon / mastery tag / six stats with bars / odds + win rate */
.card { display: flex; flex-direction: column; line-height: 1.15; overflow: hidden; }
.card .nm { font-size: 20px; line-height: 1.1; flex: none; }
.card .rn { overflow: hidden; }
.card .cd { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 1px; white-space: nowrap; overflow: hidden; flex: none; }
.card .cd .cl { font-size: 14px; font-weight: 800; color: #ffe9b8; }
.card .cd .cond { font-size: 14px; line-height: 1.2; padding: 1px 7px; }
.card .wp { margin-top: 1px; font-size: 16px; line-height: 1.15; flex: none; }
.card .wp img { width: 24px; height: 24px; }
.card.mst .wp .wn { color: #ffe27a; }
.card.mst .wp img { filter: drop-shadow(0 0 4px #ffd65a); }
/* header: the name + ⓘ block never clips (the row shrinks its font instead) */
.card .nm { overflow: hidden; }
.card .nm .nl { flex: none; overflow: visible; }
.card .nm .rn { overflow: visible; }
/* five cards have spare room in the skill block: keep the trigger line */
.card.compact .cardSkill .skillTrigger { display: block; font-size: 10px; }

/* the six stats: two per row, a label and a number over a coloured bar; the best in the bout is gold */
.card .st { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6px; row-gap: 2px; margin-top: 4px; padding: 3px 4px 4px; background: rgba(0, 0, 0, .3); border-radius: 8px; flex: none; }
.card .sc { min-width: 0; }
.card .sr { display: flex; justify-content: space-between; align-items: baseline; gap: 2px; white-space: nowrap; overflow: hidden; line-height: 1.12; }
.card .sl { font-size: 14px; font-weight: 800; color: #d9def2; }
.card .sv { font-size: 15px; font-weight: 900; color: #fff; }
.card .sb { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.card .sb i { display: block; height: 100%; border-radius: 3px; }
.card .s-hp .sb i { background: linear-gradient(90deg, #2f9e45, #8cf56a); }
.card .s-atk .sb i { background: linear-gradient(90deg, #c8262e, #ff8a5a); }
.card .s-def .sb i { background: linear-gradient(90deg, #3463c4, #7ab8ff); }
.card .s-spd .sb i { background: linear-gradient(90deg, #14a0ae, #6af0e6); }
.card .s-crit .sb i { background: linear-gradient(90deg, #d86c0e, #ffd04a); }
.card .s-eva .sb i { background: linear-gradient(90deg, #8048d0, #d39bff); }
.card .sc.top .sv { color: #ffd65a; }
.card .sc.top .sl { color: #ffe9a8; }
.card .sc.top .sb { box-shadow: 0 0 0 1px rgba(255, 214, 90, .9), 0 0 5px rgba(255, 214, 90, .7); }

/* odds (big) and the bookmaker's win rate, pinned to the bottom of the card */
.card .bt { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; margin-top: auto; white-space: nowrap; overflow: hidden; flex: none; }
.card .bt .od { font-size: 28px; font-weight: 900; line-height: 1.05; color: #ffd65a; }
.card .bt .wr { font-size: 15px; font-weight: 800; color: #cfe0ff; }

/* the announcer's gossip: a pink tag next to the race of the fighter it is about */
.card .rm { flex: none; font-size: 13px; font-weight: 900; line-height: 1.25; padding: 1px 7px; border-radius: 9px; color: #fff; background: linear-gradient(#ff9ade, #d2389a); border: 1.5px solid #ffe3f4; text-shadow: 0 1px 0 #6a0a44; box-shadow: 0 0 6px rgba(255, 122, 217, .8); animation: rmGlow 1.6s ease-in-out infinite; }
.card .rm.pop { animation: rmPop .5s cubic-bezier(.34, 1.56, .64, 1) both, rmGlow 1.6s ease-in-out .5s infinite; }
@keyframes rmPop { from { transform: scale(0) rotate(-25deg); } to { transform: none; } }
@keyframes rmGlow { 0%, 100% { box-shadow: 0 0 4px rgba(255, 122, 217, .6); } 50% { box-shadow: 0 0 10px rgba(255, 122, 217, 1); } }

/* the announcer's bubble: one line of chat, or (gossip) a pink lead-in over the rumour itself */
#bubble { width: 460px; flex-direction: column; justify-content: center; align-items: flex-start; }
#bubble::after { right: 50px; }
#bubble .bh { display: block; font-size: 14px; font-weight: 900; line-height: 1.15; color: #d8338f; }
#bubble .bx { display: block; }
#bubble.rumor { padding-top: 6px; padding-bottom: 7px; background: #fff4fb; border-color: #ff7ad9; font-size: 16px; line-height: 1.26; }
#bubble.rumor::after { border-top-color: #ff7ad9; }

/* results: the truth about the rumour */
#result { height: 286px; }
#rRumor { font-size: 17px; font-weight: 800; margin-top: 4px; white-space: nowrap; overflow: hidden; }
#rRumor.t-true { color: #8dff6a; }
#rRumor.t-false { color: #c9d2ea; }
#rRumor.t-flip { color: #ff8ad9; }
#rRumor.in { animation: pop .35s cubic-bezier(.34, 1.56, .64, 1) .35s both; }

/* subtitles stay readable over the dimmed results; the help panel sits above them */
#sub { z-index: 3; }
#help { z-index: 6; height: 420px; }
/* while the help panel is up, the betting UI under it steps aside */
#gameLayer:has(#help:not(.hide)) #cards,
#gameLayer:has(#help:not(.hide)) #figLayer,
#gameLayer:has(#help:not(.hide)) #bubble,
#gameLayer:has(#help:not(.hide)) #betPanel,
#gameLayer:has(#help:not(.hide)) #result,
#gameLayer:has(#help:not(.hide)) #sub { visibility: hidden; }
/* the dim layer reaches past the stage into the letterbox margins, so the whole screen darkens */
#dim { inset: auto; left: -1200px; right: -1200px; top: -800px; bottom: -800px; }
/* final tally: three rows (funds, profit, bets won) */
.frow { margin-top: 6px; }
#fRank { margin-top: 10px; }
