/* Ficha individual: painel azul, arsenal vermelho e registros persistentes. */
.battle-hp .combat-heading{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.battle-hp .combat-name{display:flex;align-items:center;gap:6px;flex:1 0 auto;flex-wrap:nowrap;min-width:0}.battle-hp .combat-level{white-space:nowrap;margin-left:auto}.battle-hp .combat-name .matchup{margin:0;padding:3px 5px;font:bold 11px/1 monospace;border-radius:5px}
.battle-hp .defense-icons{display:inline-flex;gap:4px;align-items:center;flex-shrink:0}.battle-hp .defense-icon{position:relative;display:inline-grid;place-items:center;width:26px;height:30px;color:#fff;filter:drop-shadow(0 2px 1px #1c34452b);cursor:help;outline-offset:2px}.defense-icon svg{position:absolute;inset:0;width:100%;height:100%;fill:var(--shield-color,#5185a3);stroke:#e3f5ff;stroke-width:2}.battle-hp .defense-icon b{position:relative;font:bold 12px/1 monospace;color:white;padding-bottom:2px;text-shadow:0 1px 1px #193344}.defense-flame{--shield-color:#c86b35}.defense-flight{--shield-color:#488b85}.defense-reflect{--shield-color:#8b69ac}.defense-shield{--shield-color:#477cac}.defense-icon.prepared svg{stroke-dasharray:3 2}.battle-hp .defense-tooltip{display:none;position:absolute;bottom:calc(100% + 8px);right:-8px;z-index:12;width:170px;white-space:normal;text-align:left;background:#233b46;color:#fff;padding:8px 10px;border-radius:6px;box-shadow:0 3px 12px #172c3440;font:10px/1.5 monospace;pointer-events:none}.defense-icon:hover .defense-tooltip,.defense-icon:focus .defense-tooltip{display:block}.attack-option .area-target{display:inline-flex;align-items:center;gap:4px;font:9px monospace}.matchup.triple,.attack-option .matchup.triple{background:#ffe8ac;border-color:#bf9433;color:#76500d}
@media(max-width:760px){.battle-hp .combat-heading{gap:4px}.battle-hp .combat-name{gap:4px}.battle-hp .combat-name .matchup{font-size:9px;padding:3px 4px}.battle-hp .defense-icons{gap:2px}.battle-hp .defense-icon{width:22px;height:26px}.battle-hp .defense-icon b{font-size:11px}.battle-hp.enemy .defense-tooltip{right:auto;left:-4px}}
.attack-option b{padding-right:0}.attack-option strong{position:static;display:block;text-align:right;margin-top:10px;font-size:9px}
dialog.mon-profile-dialog{width:min(1080px,96vw);max-width:1080px;max-height:92vh;padding:20px;background:#f3f5eb;color:#243b42;overflow:auto}
.mon-profile-dialog .modal-top{margin-bottom:14px}
.mon-summary{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(250px,1fr);border:3px solid #233b53;box-shadow:4px 4px #233b5326}
.summary-blue{min-width:0;background:repeating-linear-gradient(120deg,transparent 0,transparent 95px,#ffffff04 95px,#ffffff04 98px),linear-gradient(135deg,#327baf,#598fcc);color:#fff;padding:24px}
.summary-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:2px solid #ffffff35;padding-bottom:16px}
.summary-kicker{font:bold 10px monospace;letter-spacing:1px;color:#e0f5ff}.summary-heading h2{font:bold 34px 'Trebuchet MS',sans-serif;margin:5px 0 0;overflow-wrap:anywhere}.summary-level{font-size:28px;white-space:nowrap}
.summary-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;padding-top:20px}.summary-id{font:bold 22px monospace}.summary-id span{font-size:11px;color:#def2ff;display:inline-block;margin-left:8px}
.summary-hp{margin:18px 0}.summary-hp>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px;font-size:16px}.summary-hp .bar{background:#204765;border:2px solid #284b63;height:14px}
.summary-stats{margin:0;border:2px solid #ffffff25}.summary-stats>div{display:flex;justify-content:space-between;gap:8px;align-items:center;background:#06a5cd;padding:12px}.summary-stats>div:nth-child(even){background:#057fa5}.summary-stats dt{font-size:14px;font-weight:bold}.summary-stats dd{margin:0;text-align:right;font-size:23px;font-weight:bold}.summary-stats small{display:block;font:9px monospace;color:#e0f6ff;margin-top:4px}.summary-growth-note{font-size:10px;line-height:1.5;color:#e2f1ff;margin:10px 0 0}
.summary-portrait{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;text-align:center}.summary-portrait .sprite{width:100%;height:245px;filter:drop-shadow(5px 8px 0 #173e5b38)}.summary-portrait .type{font-size:13px;font-weight:bold;padding:7px 20px;background:#fff5be;color:#31434c;border:0}.summary-advantage{font-size:12px;line-height:1.5;color:#fff;margin:12px 0}.summary-origin{font:10px monospace;color:#d9eeff}
.summary-xp{border-top:2px solid #ffffff30;margin-top:20px;padding-top:15px}.summary-xp>div:first-child{display:flex;justify-content:space-between;align-items:center;font:10px monospace;letter-spacing:1px;margin-bottom:9px}.summary-xp b{font-size:23px}.summary-xp .xp-caption{color:#e5f3ff}.summary-xp .bar{background:#255271}.summary-xp small{color:#e5f3ff}
.summary-moves{background:repeating-linear-gradient(90deg,transparent 0,transparent 24px,#ffffff06 24px,#ffffff06 26px),linear-gradient(145deg,#d34232,#ef6449);padding:20px;display:flex;flex-direction:column;gap:10px;border-left:3px solid #233b53}.moves-title{color:#fff;padding:0 2px 2px}.moves-title>span{font:9px monospace;letter-spacing:2px;color:#ffe2d1}.moves-title h3{font-size:24px;margin:4px 0 0}
.profile-move{background:#213445;border:2px solid #ffffff38;border-left:5px solid var(--move-color,#72899b);padding:12px;color:#fff;flex:1;min-width:0}.profile-move>div{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.profile-move h4{font-size:16px;margin:0;overflow-wrap:anywhere}.profile-move b{font: bold 12px monospace;white-space:nowrap;margin-top:2px}.profile-move>span{display:block;font:9px monospace;color:#f5de9c;margin-top:7px}.profile-move p{color:#e0e8eb;font-size:10px;line-height:1.5;margin:7px 0 0}.profile-move.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;background:#732f2f66;border:2px dashed #ffc6b16b;min-height:80px}.profile-move.empty>span{font-size:20px}
.mon-history{margin:24px 0;padding:20px;background:#e8eee2;border:1px solid #bdcbbb}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.history-heading h3{margin:6px 0 0}.history-heading>small{font:10px/1.6 monospace;color:#5e7164;text-align:right}.history-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.history-grid>div{background:#f7f9f1;border-top:3px solid #5c8395;padding:15px 12px;min-width:0}.history-grid span{display:block;font:9px/1.5 monospace;color:#5c7169}.history-grid b{font: bold 29px monospace;display:block;margin-top:10px;color:#294c5f}.history-grid .history-date{font-size:15px;line-height:1.4;overflow-wrap:anywhere}.mon-history>p{font-size:10px;line-height:1.6;margin:12px 0 0;color:#637466}
.matchup,.battle-hp .matchup,.attack-option .matchup,.switch-option .matchup{display:inline-block;font:bold 9px/1.4 monospace;letter-spacing:0;padding:4px 6px;border:1px solid #bccbb9;background:#edf1e7;color:#48603e;margin:4px 0 0;white-space:normal}.matchup.favorable,.battle-hp .matchup.favorable,.attack-option .matchup.favorable,.switch-option .matchup.favorable{background:#d6f0b6;border-color:#82a85b;color:#345922}.battle-matchup{margin-top:4px}.attack-option .area-preview{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.attack-option .area-preview .matchup{font-size:8px}.switch-option .matchup{font-size:8px}
@media(max-width:760px){dialog.mon-profile-dialog{padding:12px;width:96vw}.mon-summary{grid-template-columns:1fr}.summary-blue{padding:18px}.summary-moves{border-left:0;border-top:3px solid #233b53;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}.moves-title{grid-column:1/-1}.summary-heading h2{font-size:28px}.summary-level{font-size:23px}.summary-portrait .sprite{height:210px}.history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-heading{align-items:flex-start;flex-direction:column}.history-heading>small{text-align:left}.battle-hp .matchup{font-size:7px;padding:3px 4px}.battle-hp{padding:10px}.summary-body{gap:12px}.summary-stats>div{padding:10px}.summary-stats dt{font-size:12px}.summary-stats dd{font-size:21px}}
@media(max-width:420px){.summary-blue{padding:12px}.summary-heading h2{font-size:24px}.summary-kicker{font-size:8px}.summary-level{font-size:20px}.summary-id{font-size:18px}.summary-hp>div:first-child{font-size:12px}.summary-body{gap:8px}.summary-portrait .sprite{height:170px}.summary-stats>div{padding:9px 6px}.summary-stats small{font-size:8px}.summary-moves{grid-template-columns:1fr}.profile-move h4{font-size:16px}.mon-history{padding:14px}.history-grid span{font-size:8px}}
