.card .nm{position:relative}
.card{top:138px;height:398px;padding:166px 7px 3px}.card .st{margin-top:2px;row-gap:0;padding:2px 3px}.card .cardSkill{display:flex;flex-direction:column;flex:1 1 0;box-sizing:border-box;min-height:0;overflow:hidden;margin-top:2px;padding:2px 3px;background:rgba(71,83,133,.35);border-top:1px solid #94b1c9;cursor:pointer;gap:0;line-height:1.1}.cardSkill:hover{background:rgba(91,113,173,.5)}.skillName{font-size:14px;color:#b3eaff;text-shadow:0 2px #101a3a}.skillEffect{font-size:12px;color:#fff}.skillTrigger{font-size:11px;color:#e4cda3}.skillCooldown{font-size:inherit;color:#98c7dd}
/* card header = race-info tap target */
.card .nm{font-size:19px;min-height:22px;cursor:pointer}.card .nl{display:flex;align-items:center;gap:3px;min-width:0;flex:0 1 auto;overflow:hidden}.card .ri{font-size:14px;line-height:1;color:#9fd8ff;text-shadow:none;flex:none}.card .nm:hover .ri{color:#fff}
.card .bs{flex:none;font-size:12px;font-weight:900;line-height:1.25;padding:0 6px;border-radius:8px;color:#fff3c4;background:linear-gradient(#e0392f,#8a0f12);border:1.5px solid #ffd65a;text-shadow:0 1px 0 #3a0000}
.card .cd{margin-top:0}
.card .fm{display:flex;align-items:center;justify-content:space-between;gap:4px;white-space:nowrap;overflow:hidden;flex:none;margin-top:1px;min-height:15px;line-height:1.15}
.card .rc{display:flex;align-items:center;gap:3px;flex:none}.card .rl{font-size:12px;font-weight:800;color:#d9def2}
.card .dots{display:flex;gap:2px}.card .dots i{display:block;width:8px;height:8px;border-radius:50%;box-sizing:border-box}
.card .dots i.w{background:#5ee05a;border:1px solid #1c5a1c}.card .dots i.l{background:#8a8fa0;border:1px solid #3a3f50}.card .dots i.e{border:1px solid #7a82a0;opacity:.55}
.card .fb{flex:none;font-size:12px;font-weight:900;padding:0 5px;border-radius:7px;white-space:nowrap;color:#fff;text-shadow:0 1px 0 #2b1200}
.card .fb .ff{margin-left:3px;opacity:.95}
.card .f-hot{background:linear-gradient(#e0662a,#a83210)}.card .f-injured{background:linear-gradient(#c04a62,#8a2038)}.card .f-tired{background:linear-gradient(#5a6ac0,#34408a)}.card .f-none{background:none;color:#9aa3c0;font-weight:700;text-shadow:none;padding:0}
.card .wp{margin-top:1px}.card .wp img{width:22px;height:22px}.card .wp .ms{margin-left:auto;font-size:12px;padding:0 5px;border-radius:7px;line-height:1.3}
.card .rt{font-size:12px;font-weight:800;color:#cfe9ff;white-space:nowrap;overflow:hidden;flex:none;line-height:1.15}
/* odds row */
.card .bt{min-height:30px;align-items:center;margin-top:auto;padding-top:2px}.card .o1{display:flex;align-items:baseline;gap:3px;flex:none;border-radius:8px;padding:0 3px}.card .ol1{font-size:12px;font-weight:900;color:#ffe9b8}.card .bt .od{font-size:26px}
.card .o2{display:flex;flex-direction:column;align-items:flex-end;line-height:1.08;flex:none}.card .t2{font-size:13px;font-weight:900;color:#ffd0a0;border-radius:6px;padding:0 3px}.card .bt .wr{font-size:13px}
#cards.mode-win .o1{background:rgba(255,214,90,.2);box-shadow:0 0 6px rgba(255,214,90,.8)}#cards.mode-win .t2{opacity:.65}
#cards.mode-top2 .t2{background:rgba(255,214,90,.3);box-shadow:0 0 6px rgba(255,214,90,.8);color:#fff}#cards.mode-top2 .o1{opacity:.65}
#cards.mode-finish .o1,#cards.mode-finish .t2,#cards.mode-ringout .o1,#cards.mode-ringout .t2{opacity:.38}
/* boss: red-gold frame */
.card.boss::before{content:'';position:absolute;inset:1px;border:3px solid #ffd65a;border-radius:12px;box-shadow:0 0 10px #ff3a2a,inset 0 0 12px rgba(255,50,30,.55);pointer-events:none}
.card.boss .rn{color:#ffd65a}
/* five cards */
.card.compact{width:132px;padding:166px 5px 3px}.card.compact .nm{font-size:16px;min-height:20px}.card.compact .ri{font-size:12px}.card.compact .bs{font-size:10px;padding:0 4px}.card.compact .rm{font-size:10px;padding:0 4px}
.card.compact .cd .cl{font-size:11px}.card.compact .cd .cond{font-size:11px;padding:0 5px}
.card.compact .rl{font-size:10px}.card.compact .dots i{width:7px;height:7px}.card.compact .fb{font-size:10px;padding:0 4px}.card.compact .fb .ff{display:none}
.card.compact .wp{font-size:13px}.card.compact .wp img{width:18px;height:18px}.card.compact .wp .ms{font-size:10px;padding:0 4px}.card.compact .rt{font-size:10.5px}
.card.compact .st{column-gap:4px;padding:2px 3px}.card.compact .sl{font-size:11px}.card.compact .sv{font-size:12px}.card.compact .sb{height:4px}
.card.compact .cardSkill{min-height:0;padding:2px}.card.compact .skillName{font-size:12px}.card.compact .skillEffect{font-size:10.5px;line-height:1.1}.card.compact .skillTrigger{display:none}.card.compact .skillCooldown{font-size:10px}
.card.compact .bt{min-height:26px}.card.compact .bt .od{font-size:21px}.card.compact .ol1{font-size:10px}.card.compact .t2{font-size:10.5px;padding:0 2px}.card.compact .bt .wr{font-size:10.5px}
/* figure-first cards: the fighter stands in the top 166px (drawn on #figLayer), the info rows below */
#figLayer{position:absolute;left:0;top:0;width:960px;height:540px;pointer-events:none}
.card{top:136px;height:400px;line-height:1.05}
.card .nm{min-height:20px;line-height:1.05}.card .wp{margin-top:0;line-height:1.05}.card .wp img{width:20px;height:20px}.card .rt{line-height:1.1}
.card .cd{margin-top:1px}.card .cd .cond{padding:0 7px;line-height:1.15}.card .sr{line-height:1.02}.card .sb{height:4px}.card .bt{min-height:28px;padding-top:0}
#cards .card{border-top-width:0;border-bottom-width:2px;height:400px}
.card .sb{margin-top:-1px}.card .st{margin-top:1px;padding:1px 3px 2px}.card .cardSkill{margin-top:1px}
.card.sel{transform:scale(1.03);transform-origin:50% 85%}
/* the skill reads as one paragraph: name, effect, then trigger and cooldown */
.card .cardSkill{display:block;font-size:12px;line-height:1.12;padding:1px 3px}.card .cardSkill>span,.card .cardSkill>b,.card.compact .cardSkill .skillTrigger{display:inline}
.card.sel{transform:translateY(-3px) scale(1.035);transform-origin:50% 62%;filter:drop-shadow(0 0 5px #ffd65a) drop-shadow(0 0 12px #ffae20) brightness(1.12)}
#cards:has(.card.sel) .card:not(.sel){filter:brightness(.8) saturate(.85)}
/* phone-readable: skill block is a full tap target, odds sub-lines a touch larger */
/* five cards: odds on two lines so the labels can stay readable */
#cards .card.compact{padding-bottom:8px}.card.compact .bt{flex-wrap:wrap;min-height:0;row-gap:0;line-height:1}.card.compact .o2{flex-direction:row;width:100%;box-sizing:border-box;padding:0 7px;justify-content:space-between;align-items:baseline}
.card.compact .wp .ms,.card.compact .rt,.card.compact .rl,.card.compact .ol1,.card.compact .t2,.card.compact .bt .wr,.card.compact .rm{font-size:12px}.card.compact .bs{font-size:11px}
#cards .card{top:134px;height:404px}.card .cardSkill{min-height:46px;margin-top:0}.card .st{padding:0 3px 1px}.card .t2,.card .bt .wr{font-size:14px}.card .wp .ms{font-size:13px}
#informant{left:700px;top:224px;width:250px;height:70px;flex-direction:column;font-size:21px;gap:5px;animation:pop .25s ease-out}#infoCost{font-size:14px;color:#ffe3aa;line-height:1.1}#informant:disabled{cursor:default}#infoName{white-space:nowrap}
#battleNote{position:absolute;left:18px;top:78px;display:flex;flex-direction:column;gap:4px;max-width:280px}#battleAlive{font-size:20px;color:#ffde91}#battleRule{font-size:15px}#battleLog{position:absolute;right:20px;top:80px;max-width:300px;display:flex;flex-direction:column;gap:6px;text-align:right}.logLine{font-weight:900;font-size:19px;background:rgba(16,16,37,.72);border-radius:10px;padding:7px 10px;animation:pop .22s ease-out}
#details{position:fixed;inset:0;z-index:40;background:rgba(5,7,22,.84);display:flex;align-items:center;justify-content:center;padding:12px max(16px,env(safe-area-inset-left));box-sizing:border-box;pointer-events:auto}
#detailPanel{position:relative;width:min(690px,100%);max-height:calc(100vh - 24px);overflow-y:auto;box-sizing:border-box;padding:24px 28px;color:#eef1ff;animation:pop .22s ease-out;filter:drop-shadow(0 12px 24px #0009)}#detailPanel h2{margin:0 0 10px;font-size:27px;color:#ffe19b;font-weight:900}#detailPanel p{margin:9px 0;font-size:17px;font-weight:700;line-height:1.38}#detailQuote{color:#f6ceeb;border-left:3px solid #d77ab6;padding-left:12px}#detailVerdict{font-size:23px;font-weight:900;color:#ffd66a}#detailPanel #detailFine{font-size:14px;color:#abbcda}#detailPanel #detailEffect{color:#9ee4dd}#detailVerdict.truth-false{color:#c5d3eb}#detailVerdict.truth-flip{color:#ffa1da}#detailVerdict.truth-true{color:#abf589}.detailActions{display:flex;gap:12px;margin-top:18px}.detailActions .btn{position:relative;flex:1;min-height:54px;font-size:18px;padding:8px 16px}#gameLayer:has(#help:not(.hide)) #informant{visibility:hidden}#help{height:468px}#helpText{font-size:16px}
/* informant tiers */
.tierRow{display:flex;gap:10px;margin-top:10px}.tierRow .btn{position:relative;flex:1;flex-direction:column;gap:2px;min-height:96px;padding:6px 8px;font-size:16px;min-width:0}
.tierRow .tn{font-size:18px;color:#ffe19b;white-space:nowrap}.tierRow .t1 .tn{color:#ff9ade}.tierRow .tp{font-size:17px;color:#9cff7a;white-space:nowrap}.tierRow .tr{font-size:13px;color:#d6f0ff;white-space:nowrap}.tierRow .td{font-size:12px;font-weight:700;color:#efe3c6;line-height:1.2}
.tierRow .btn.foc{filter:brightness(1.3) drop-shadow(0 0 8px #ffd65a);transform:scale(1.03)}.tierRow .btn:disabled.foc{filter:grayscale(.6) brightness(.9) drop-shadow(0 0 6px #ffd65a)}
#detailExtra{margin-top:8px;display:flex;flex-direction:column;gap:3px;background:rgba(0,0,0,.25);border-radius:10px;padding:6px 10px}#detailExtra .xt{font-size:14px;font-weight:900;color:#ffe19b}.xr{display:flex;gap:8px;align-items:center;font-size:15px;font-weight:800}.xr .xn{width:84px;flex:none}.xr .xf{flex:1;color:#ffd2a8;white-space:nowrap;overflow:hidden}.xr .xw{color:#ffd65a;font-weight:900;width:52px;text-align:right;flex:none}.xr.me .xn{color:#ffd65a}
@media(max-height:450px){#detailPanel{width:min(760px,100%);padding:14px 22px}#detailPanel h2{font-size:21px;margin-bottom:6px}#detailPanel p{font-size:14px;margin:6px 0;line-height:1.28}#detailVerdict{font-size:20px}#detailPanel #detailFine{font-size:12px}.detailActions{margin-top:10px}.detailActions .btn{min-height:46px;font-size:16px}.tierRow .btn{min-height:84px}.tierRow .td{font-size:11px}.xr{font-size:13px}}
