.battle-players{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-bottom:32px}.battle-players .card h3{margin:12px 0}.battle-disabled{opacity:.55}.battle-challenge{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid #34423a}.battle-challenge small{display:block;margin-top:6px;color:#a5b5aa}.battle-challenge>div,.battle-toolbar{display:flex;flex-wrap:wrap;gap:8px}.battle-history{display:grid;gap:10px}.battle-room-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.battle-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px}.battle-main{min-width:0}.battle-arena{height:390px;position:relative;overflow:hidden;border:1px solid #425448;border-radius:18px;background:radial-gradient(ellipse at 75% 40%,#799064 0 16%,transparent 16.5%),radial-gradient(ellipse at 25% 87%,#59734e 0 24%,transparent 24.5%),linear-gradient(#324c49 0%,#66865d 47%,#a2ad78 48%,#6c8159 100%)}.battle-arena-turn{position:absolute;top:14px;left:16px;padding:6px 12px;border-radius:8px;background:#111715d9;color:#e6ede8;font-weight:700}.battle-side{position:absolute;display:flex;justify-content:center;width:61%;gap:8px}.battle-opponent{right:1%;top:25px}.battle-local{left:0;bottom:8px}.battle-mon{width:48%;min-width:0;text-align:center}.battle-mon img{height:115px;width:120px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 7px 2px #20302060)}.battle-local .battle-mon img{height:140px;width:150px}.battle-hp{background:#142019e8;border:1px solid #8ba47c;border-radius:9px;padding:7px 9px;text-align:left;box-shadow:0 3px 10px #0004}.battle-hp strong{display:block;font-size:12px}.battle-hp span{font-size:11px;color:#dce6d2}.battle-hp progress{display:block;width:100%;height:8px;margin-top:4px;accent-color:#c9f27a}.battle-mon.fainted{opacity:.25}.battle-narration{height:130px;overflow:auto;padding:10px 16px;background:#0c120f;border:1px solid #34423a;border-radius:10px;margin:12px 0;font-size:13px}.battle-narration p{margin:5px 0}.battle-controls label{display:block}.battle-controls textarea{display:block;width:100%;margin:12px 0;padding:12px;background:#101713;color:#e6ede8;border:1px solid #52614d;border-radius:8px;resize:vertical;font-family:monospace}.battle-controls select{display:block;width:100%;padding:10px;margin:6px 0 12px;background:#101713;color:#e6ede8;border:1px solid #52614d;border-radius:8px}.battle-controls .muted{font-size:12px;display:block;margin-top:10px}.battle-choices{display:grid;grid-template-columns:1fr 1fr;gap:14px}.battle-choices fieldset{min-width:0;border:1px solid #405039;border-radius:10px;padding:12px}.battle-choices legend{padding:0 6px;font-weight:bold}.battle-choices .battle-mega{display:flex;gap:8px;align-items:center}.battle-mega input{width:auto}.battle-forfeit{border:0;background:none;color:#c3aca4;text-decoration:underline;margin-top:16px;cursor:pointer}.battle-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.battle-preview .selected{border-color:#c9f27a!important;background:#30432a!important;color:#d8ffad}.battle-social{display:flex;flex-direction:column;max-height:820px}.battle-social h2{font-size:18px}.battle-chat{flex:1;min-height:180px;overflow:auto;overflow-wrap:anywhere;font-size:13px}.battle-chat p{margin:10px 0}.battle-chat strong{color:#c9f27a;display:block}.battle-social form{display:flex;gap:6px}.battle-social input{min-width:0;width:100%}.battle-spectators{display:flex;gap:6px;flex-wrap:wrap}.battle-social h3{margin-top:25px}.battle-hit{animation:battle-hit .6s}.battle-attack{animation:battle-attack .5s}@keyframes battle-hit{20%,60%{filter:sepia(1) saturate(8) hue-rotate(320deg);transform:translateX(-6px)}40%,80%{opacity:.3;transform:translateX(6px)}}@keyframes battle-attack{40%{transform:translate(18px,-16px)}70%{transform:translate(-3px,3px)}}@media(max-width:1050px){.battle-layout{grid-template-columns:1fr}.battle-social{max-height:370px}.battle-arena{height:360px}}@media(max-width:540px){.battle-arena{height:310px}.battle-mon img{height:85px;width:90px}.battle-local .battle-mon img{height:105px;width:105px}.battle-hp strong{font-size:10px}.battle-side{width:69%;gap:3px}.battle-hp{padding:5px}.battle-choices{grid-template-columns:1fr}.battle-preview{grid-template-columns:repeat(2,1fr)}.battle-challenge{align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:reduce){.battle-hit,.battle-attack{animation:none}}
/* Doubles: retro arena, public information and sequential choices. */
.battle-arena{height:430px;isolation:isolate;overflow:visible}
.battle-arena-turn{left:auto;right:12px;top:12px;font-size:12px;z-index:3}
.battle-arena-turn small{margin-left:6px;color:#d4e7a7}
.battle-field{position:absolute;top:12px;left:12px;display:flex;flex-direction:column;gap:5px;z-index:4;pointer-events:none;max-width:50%}
.battle-condition{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600;color:#edf3df;background:#15231de8;border:1px solid #799267;padding:5px 9px;border-radius:6px}
.battle-condition b{font-size:16px;color:#dfed9c}
.battle-opponent{top:67px}.battle-local{bottom:8px}
.battle-mon{position:relative}.battle-mon:hover,.battle-mon:focus-within{z-index:6}
.battle-name-tip{position:relative;display:block!important;min-width:0}
.battle-mon-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 12px inherit;font-size:12px;font-weight:700;color:#f1f6ed;border:0;padding:0;background:transparent;text-align:left;cursor:help}
.battle-tip{position:absolute;left:0;bottom:calc(100% + 9px);width:250px;max-width:70vw;padding:11px 13px;border:1px solid #718963;border-radius:9px;background:#0c1712;color:#ecf1e8!important;font-size:12px!important;line-height:1.5;font-weight:400;box-shadow:0 6px 24px #0008;text-align:left;z-index:30;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .12s;white-space:normal}
.battle-name-tip:hover .battle-tip,.battle-name-tip:focus-within .battle-tip,.battle-move-cell:hover .battle-tip,.battle-move-cell:focus-within .battle-tip{visibility:visible;opacity:1}
.battle-mon:nth-child(2) .battle-tip,.battle-move-cell:nth-child(even) .battle-tip{left:auto;right:0}
.battle-health-text{display:block;margin-top:3px;font-variant-numeric:tabular-nums}
.battle-hp progress{appearance:none;overflow:hidden;border:0;border-radius:4px;background:#455447}
.battle-hp progress::-webkit-progress-bar{background:#455447}.battle-hp progress::-webkit-progress-value{background:#b9e777;transition:width .65s ease}.battle-hp progress::-moz-progress-bar{background:#b9e777}
.battle-boosts{display:flex;flex-wrap:wrap;gap:3px;margin-top:4px}.battle-boosts:empty{display:none}
.battle-boosts span{font-size:10px;line-height:1.2;padding:2px 4px;border-radius:3px;white-space:nowrap}.battle-boosts .positive{color:#ddf9bc;background:#355828}.battle-boosts .negative{color:#ffe0d6;background:#783e38}
.battle-playback-status{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:35px;margin-bottom:10px;font-size:12px;color:#c0d6a3}.battle-playback-status .button{padding:6px 8px;font-size:11px}
.battle-controls[inert]{opacity:.65;transition:opacity .15s}.battle-controls h2{font-size:21px;margin-top:7px}.battle-controls h3{font-size:15px;margin:18px 0 9px}
.battle-moves-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0 14px}
.battle-move-cell{position:relative;min-width:0}
.battle-move{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;text-align:left;width:100%;min-height:103px;padding:14px;border:1px solid #566c4f;border-top:3px solid #9aae82;border-radius:10px;background:linear-gradient(135deg,#314632,#1c2b23);color:#f1f5ea;cursor:pointer;transition:background .15s,transform .15s}
.battle-move:hover:not(:disabled){background:#3b5036;transform:translateY(-2px)}.battle-move:focus-visible{outline:2px solid #e1f79b;outline-offset:3px}.battle-move:disabled{opacity:.35;cursor:not-allowed}
.battle-move strong{font-size:15px}.battle-move span{font-size:12px;color:#c5d7bb}.battle-move small{font-size:11px;color:#a9bea3}
.battle-move.tb-fire{border-top-color:#ed955e}.battle-move.tb-water{border-top-color:#75b6e5}.battle-move.tb-electric{border-top-color:#efda71}.battle-move.tb-grass{border-top-color:#91ca73}.battle-move.tb-ice{border-top-color:#9adad7}.battle-move.tb-fairy{border-top-color:#e4a2d1}.battle-move.tb-psychic{border-top-color:#ee8fad}.battle-move.tb-ground{border-top-color:#c5a96f}.battle-move.tb-dark{border-top-color:#aa9fb8}.battle-move.tb-ghost{border-top-color:#a996d5}.battle-move.tb-dragon{border-top-color:#a3a7ee}.battle-move.tb-steel{border-top-color:#aebec4}
.battle-targets,.battle-switches,.battle-saved-picker{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.battle-targets .button{flex:1 1 160px;min-height:52px}.battle-switches .button{display:flex;flex-direction:column;gap:3px}.battle-switches small{font-weight:400;opacity:.7;font-size:10px}
.battle-controls .battle-mega{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:13px}.battle-mega input{accent-color:#bde779}
.battle-action-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.battle-action-summary>div{display:flex;flex-direction:column;gap:5px;padding:11px;border:1px solid #3a4b3c;border-radius:8px;min-width:0;font-size:12px;background:#142019}.battle-action-summary .current{border-color:#bedb8a}.battle-action-summary b{font-size:12px}.battle-action-summary span{color:#adc19d;overflow-wrap:anywhere}.battle-action-summary button{align-self:start;padding:3px 0;font-size:11px}
.battle-opponent .battle-attack{animation-name:battle-attack-enemy}@keyframes battle-attack-enemy{40%{transform:translate(-18px,16px)}70%{transform:translate(3px,-3px)}}
.tb-import{margin:18px 0}.tb-import summary{cursor:pointer;font-weight:600}.tb-import label{display:block;margin:16px 0 8px}.tb-import textarea{display:block;width:100%;padding:12px;border:1px solid #52614d;border-radius:8px;background:#101713;color:#e6ede8;resize:vertical;font-family:monospace;margin-bottom:12px}
@media(max-width:540px){.battle-arena{height:370px}.battle-side{width:75%;gap:5px}.battle-opponent{top:67px}.battle-local{bottom:10px}.battle-mon-name{font-size:10px}.battle-tip{width:205px;font-size:11px!important}.battle-field{max-width:46%}.battle-condition{font-size:9px;padding:3px 6px}.battle-condition b{font-size:12px}.battle-arena-turn{font-size:10px;padding:5px 7px}.battle-move{padding:10px;min-height:96px}.battle-move strong{font-size:13px}.battle-moves-grid{gap:7px}.battle-controls h2{font-size:18px}.battle-action-summary{gap:6px}.battle-action-summary>div{padding:8px}.battle-layout{gap:12px}}
@media(prefers-reduced-motion:reduce){.battle-hp progress::-webkit-progress-value,.battle-move,.battle-tip{transition:none}.battle-opponent .battle-attack{animation:none}}
.battle-arena{height:480px}
.battle-hp{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:6px;align-items:center}
.battle-hp progress,.battle-boosts{grid-column:1 / -1}
.battle-health-text{margin:0;white-space:nowrap;font-size:10px!important}
.battle-mon-name{font-family:inherit}
@media(max-width:540px){.battle-arena{height:400px}.battle-hp{column-gap:3px}.battle-health-text{font-size:9px!important}}
/* Showdown-style battle information, with the league's dark palette. */
.battle-layout{font-family:Arial,Helvetica,sans-serif}
.battle-field{max-width:48%}.battle-condition small{font-size:10px;font-weight:400;color:#d5dece}
.battle-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;isolation:isolate}.battle-mon{width:100%}
.battle-side::before{content:"";position:absolute;inset:26px 3px 10px;border-radius:14px;pointer-events:none;z-index:-1;opacity:0;transition:opacity .3s}
.battle-side.has-lightscreen::before{opacity:1;border:2px solid #ecd07bb0;background:linear-gradient(120deg,#ead88428,#f8f5b40c,#ead88438);box-shadow:inset 0 0 24px #f1d57c35}
.battle-side.has-reflect::before{opacity:1;border:2px solid #8dbbecb0;background:linear-gradient(120deg,#8ebdf335,#a2d3f210,#8ebdf340);box-shadow:inset 0 0 24px #99cafa40}
.battle-side.has-auroraveil::before{opacity:1;border:2px solid #d4b3f9b0;background:linear-gradient(120deg,#bca4f635,#7be5e025,#f5adcf35);box-shadow:inset 0 0 24px #ccabef40}
.battle-screen-labels{grid-column:1/-1;display:flex;gap:4px;flex-wrap:wrap;justify-content:center;z-index:1}
.battle-screen-labels:empty{display:none}.battle-screen-labels>span{padding:3px 5px;border:1px solid #adbcb5;border-radius:4px;background:#15231ef0;font-size:10px;line-height:1.3;color:#eff5eb}
.battle-screen-labels small{white-space:nowrap;font-size:9px}.battle-screen-labels .screen-lightscreen{border-color:#d8c573;color:#f5e6a7}.battle-screen-labels .screen-reflect{border-color:#79a9e2;color:#b8d9ff}.battle-screen-labels .screen-auroraveil{border-color:#c3a5e5;color:#e9d8ff}
.battle-sprite{position:relative;display:flex;justify-content:center;align-items:center;min-height:115px}.battle-local .battle-sprite{min-height:140px}
.battle-shield{position:absolute;inset:10% 8%;border:2px solid #9df0dfd0;border-radius:50%;background:radial-gradient(ellipse,#75e6d010 20%,#a4f8e755 100%);box-shadow:0 0 18px #8cf1dc80,inset 0 0 13px #b8ffe780;color:#e0fff8;font-size:42px;display:flex;align-items:center;justify-content:center;text-shadow:0 0 10px #99ffe1;pointer-events:none;animation:battle-shield-in .3s ease-out}
.battle-shield[hidden]{display:none}.is-protected .battle-sprite img{filter:drop-shadow(0 0 5px #a2ffed)}
@keyframes battle-shield-in{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}
.battle-status-row{grid-column:1/-1;display:flex;align-items:center;margin-top:4px}.battle-status-row:empty{display:none}
.battle-status{display:inline-block!important;padding:2px 5px;border:1px solid #ffffff60;border-radius:3px;color:#fff!important;font:700 10px/1 Arial,Helvetica,sans-serif!important;letter-spacing:.4px;box-shadow:inset 0 1px #ffffff30;text-shadow:0 1px #0005}
.battle-status.status-brn{background:#ce4936}.battle-status.status-par{background:#efc441;color:#332600!important;text-shadow:none}.battle-status.status-psn,.battle-status.status-tox{background:#9950af}.battle-status.status-slp{background:#777c87}.battle-status.status-frz{background:#6dbbd6;color:#103440!important;text-shadow:none}
.battle-hp progress.hp-mid::-webkit-progress-value{background:#edcd56}.battle-hp progress.hp-low::-webkit-progress-value{background:#eb6755}.battle-hp progress.hp-mid::-moz-progress-bar{background:#edcd56}.battle-hp progress.hp-low::-moz-progress-bar{background:#eb6755}
.battle-mon>.battle-mon-tip{width:225px;max-width:68vw;bottom:calc(100% + 6px);font-size:12px!important;padding:10px 12px}
.battle-mon:hover>.battle-mon-tip,.battle-mon:focus-within>.battle-mon-tip{visibility:visible;opacity:1}
.battle-mon-tip>span:not(.battle-tip-hp){display:block;margin-top:4px}.battle-mon-tip .battle-tip-hp{color:#bdd4b0}.battle-mon img:focus-visible{outline:2px solid #e0fca6;outline-offset:2px;border-radius:8px}
.battle-tip:empty{display:none}
.battle-move-description{min-height:120px;padding:13px 15px;background:#111c17;border:1px solid #3c5144;border-radius:8px;color:#dce5dc;font-size:13px;line-height:1.45}
.battle-move-description>strong{font-size:14px;color:#f1f5ed}.battle-move-description dl{display:flex;flex-wrap:wrap;gap:10px 24px;margin:9px 0}.battle-move-description dl>div{display:flex;gap:5px}.battle-move-description dt{color:#a5b5aa}.battle-move-description dd{margin:0;font-weight:600;color:#e1e9de}.battle-move-description p{margin:8px 0 0}.battle-hint-note{font-size:10px;color:#a5b5aa;line-height:1.4;margin:7px 0 15px}
.battle-move.tb-poison{border-top-color:#bf79d0}.battle-move.tb-fighting{border-top-color:#da8073}.battle-move.tb-flying{border-top-color:#adc5ef}.battle-move.tb-bug{border-top-color:#b6c76f}.battle-move.tb-rock{border-top-color:#cabf8b}.battle-move.tb-normal{border-top-color:#bdbcb0}
@media(max-width:540px){.battle-arena{height:450px}.battle-side{gap:4px}.battle-sprite{min-height:85px}.battle-local .battle-sprite{min-height:105px}.battle-screen-labels{gap:3px}.battle-screen-labels>span{font-size:9px;flex:1;text-align:center;padding:3px}.battle-screen-labels small{font-size:8px;display:block}.battle-mon>.battle-mon-tip{width:205px}.battle-condition small{font-size:9px}.battle-move-description{padding:11px;font-size:12px}.battle-move-description dl{gap:5px 12px}.battle-shield{font-size:30px}}
@media(prefers-reduced-motion:reduce){.battle-shield{animation:none}.battle-side::before{transition:none}}
/* Keep sprite tooltips inside the arena after adding the screen-label row. */
.battle-mon[data-slot$="a"]>.battle-tip{left:0;right:auto}
.battle-mon[data-slot$="b"]>.battle-tip{left:auto;right:0}
.battle-tip{display:none}
.battle-name-tip:hover .battle-tip,.battle-name-tip:focus-within .battle-tip,.battle-move-cell:hover .battle-tip,.battle-move-cell:focus-within .battle-tip,.battle-mon:hover>.battle-mon-tip,.battle-mon:focus-within>.battle-mon-tip{display:block}
.battle-tip:empty{display:none!important}
/* Immersive field layers: purely visual, never used to calculate battle damage. */
.battle-atmosphere{position:absolute;inset:0;z-index:0;overflow:hidden;border-radius:inherit;pointer-events:none;isolation:isolate}
.battle-terrain-tint{position:absolute;inset:45% 0 0;opacity:0;transition:background .6s,opacity .6s;border-radius:0 0 16px 16px}
.battle-weather-tint,.battle-weather-particles{position:absolute;inset:0;pointer-events:none}
.battle-weather-tint{transition:background .6s;mix-blend-mode:soft-light}
.battle-weather-particles::before,.battle-weather-particles::after{content:"";position:absolute;inset:-45%;display:none;pointer-events:none}
.battle-side{z-index:2}.battle-field,.battle-arena-turn{z-index:5}
.field[data-weather="sunnyday"] .battle-weather-tint,.field[data-weather="desolateland"] .battle-weather-tint{background:linear-gradient(135deg,#ffe88890,#f5aa4738 60%,#ff7b4435);mix-blend-mode:screen}
.field[data-weather="sunnyday"] .battle-weather-particles::before,.field[data-weather="desolateland"] .battle-weather-particles::before{display:block;inset:0;background:radial-gradient(circle at 14% 6%,#fffbd5cf,transparent 20%),radial-gradient(circle at 38% 30%,#ffdf822e 0 6%,transparent 6.5%),linear-gradient(130deg,transparent 24%,#fffbdf30 27%,transparent 32%);animation:field-sun 6s ease-in-out infinite alternate}
.field[data-weather="raindance"] .battle-weather-tint,.field[data-weather="primordialsea"] .battle-weather-tint{background:#163c74a0;mix-blend-mode:multiply}
.field[data-weather="raindance"] .battle-weather-particles::before,.field[data-weather="primordialsea"] .battle-weather-particles::before{display:block;background:repeating-linear-gradient(110deg,transparent 0 39px,#b6d7ff7a 40px 41px,transparent 42px 75px);mask-image:repeating-linear-gradient(0deg,#000 0 15px,transparent 16px 38px);animation:field-rain .7s linear infinite;opacity:.6}
.field[data-weather="sandstorm"] .battle-weather-tint{background:#bd874479;mix-blend-mode:multiply}
.field[data-weather="sandstorm"] .battle-weather-particles::before{display:block;background:radial-gradient(circle,#e8c887a0 1px,transparent 2px) 0 0 / 23px 21px,radial-gradient(ellipse,#d6b9753d,transparent 65%) 0 0 / 170px 80px;animation:field-sand 3s linear infinite;opacity:.7}
.field[data-weather="sandstorm"] .battle-weather-particles::after{display:block;background:repeating-linear-gradient(168deg,transparent 0 24px,#ebd09e22 40px,transparent 60px);animation:field-sand 5s linear infinite reverse}
.field[data-weather="snowscape"] .battle-weather-tint,.field[data-weather="snow"] .battle-weather-tint,.field[data-weather="hail"] .battle-weather-tint{background:#cce6f566;mix-blend-mode:screen}
.field[data-weather="snowscape"] .battle-weather-particles::before,.field[data-weather="snow"] .battle-weather-particles::before,.field[data-weather="hail"] .battle-weather-particles::before{display:block;background:radial-gradient(circle,#fff 1.7px,transparent 3px) 0 0 / 43px 53px,radial-gradient(circle,#effaffb0 1px,transparent 2px) 18px 25px / 67px 73px;animation:field-snow 7s linear infinite;opacity:.75}
.field[data-weather="snowscape"] .battle-weather-particles::after,.field[data-weather="snow"] .battle-weather-particles::after,.field[data-weather="hail"] .battle-weather-particles::after{display:block;background:radial-gradient(circle,#fff9 2px,transparent 4px) 0 0 / 101px 113px;animation:field-snow 11s linear infinite reverse;opacity:.4}
.field[data-terrain="electricterrain"] .battle-terrain-tint{opacity:1;background:repeating-linear-gradient(160deg,transparent 0 23px,#ffe97c35 24px 26px,transparent 27px 55px),linear-gradient(transparent,#eacb4766)}
.field[data-terrain="grassyterrain"] .battle-terrain-tint{opacity:1;background:repeating-linear-gradient(72deg,transparent 0 28px,#86d87935 29px 31px,transparent 32px 44px),linear-gradient(transparent,#2fbe7177)}
.field[data-terrain="psychicterrain"] .battle-terrain-tint{opacity:1;background:radial-gradient(ellipse at 50% 100%,#bc488977,transparent 75%),linear-gradient(transparent,#a247a477)}
.field[data-terrain="mistyterrain"] .battle-terrain-tint{opacity:1;background:radial-gradient(ellipse at 35% 80%,#ffd8ed88,transparent 70%),linear-gradient(transparent,#f0bfd877)}
@keyframes field-rain{from{transform:translate(10px,-40px)}to{transform:translate(-12px,36px)}}
@keyframes field-sand{from{transform:translate(-65px,5px)}to{transform:translate(65px,-10px)}}
@keyframes field-snow{from{transform:translate(-20px,-50px)}to{transform:translate(20px,55px)}}
@keyframes field-sun{from{opacity:.6}to{opacity:1}}
/* Traps stay on the affected side, below sprites. */
.battle-ground{position:absolute;inset:57% 0 0;z-index:0;pointer-events:none;overflow:hidden;border-radius:50%;transform:scaleY(.8)}
.battle-mon{z-index:2}.battle-mon:hover,.battle-mon:focus-within{z-index:6}
.battle-hazard{position:absolute;inset:0;pointer-events:none}.battle-hazard i{position:absolute;left:var(--x);top:var(--y);transform:rotate(var(--r));display:block;filter:drop-shadow(1px 3px 1px #15231980)}
.hazard-stealthrock i{width:20px;height:23px;background:linear-gradient(130deg,#c7b9a1 0 40%,#796d59 42% 70%,#cfc7b8 72%);clip-path:polygon(18% 0,75% 10%,100% 62%,55% 100%,0 75%)}
.hazard-spikes i,.hazard-toxicspikes i{width:19px;height:22px;clip-path:polygon(50% 0,64% 49%,100% 70%,64% 80%,50% 100%,34% 80%,0 70%,35% 49%);background:linear-gradient(100deg,#d5e6e8,#607b86)}
.hazard-toxicspikes i{background:linear-gradient(100deg,#efb4ff,#8232a2)}
.hazard-toxicspikes{background:radial-gradient(ellipse at 40% 60%,#a047a641,transparent 60%)}
.hazard-stickyweb{inset:5% 12%;border-radius:50%;opacity:.65;background:repeating-radial-gradient(ellipse,transparent 0 9px,#e6f1e080 10px 11px,transparent 12px 24px),linear-gradient(35deg,transparent 49%,#e6f1e099 50%,transparent 51%),linear-gradient(-35deg,transparent 49%,#e6f1e099 50%,transparent 51%),linear-gradient(90deg,transparent 49%,#e6f1e099 50%,transparent 51%)}
.battle-residual{position:absolute;inset:0;pointer-events:none}.battle-residual[hidden]{display:none}.seed-vines,.trap-ring{display:none;position:absolute;bottom:5%;left:15%;width:70%;height:35%;border-radius:50%;z-index:0}
.battle-residual.has-seed .seed-vines{display:block;border-bottom:4px solid #6bbd51;box-shadow:0 6px 14px #5af77c77,inset 0 -6px 10px #44b74466;animation:field-seed 2s ease-in-out infinite alternate}
.seed-vines::before,.seed-vines::after{content:"";position:absolute;bottom:0;width:25%;height:60%;border:3px solid #8bd76c;border-top:0;border-radius:70% 0 70% 0;transform:rotate(-30deg);left:5%}.seed-vines::after{left:auto;right:5%;transform:rotate(30deg)}
.battle-residual.has-trap .trap-ring{display:block;height:55%;border:3px dashed #e9b263;box-shadow:0 0 10px #fbb35755;animation:field-bind 3s ease-in-out infinite alternate}
.battle-residual[data-trap="whirlpool"] .trap-ring{border-color:#81ccff;box-shadow:0 0 12px #4581cfaa}.battle-residual[data-trap="infestation"] .trap-ring{border-color:#bac454}.battle-residual[data-trap="magmastorm"] .trap-ring,.battle-residual[data-trap="firespin"] .trap-ring{border-color:#fc9a62}
.battle-sprite img{position:relative;z-index:1}.battle-shield{z-index:3}.residual-caption{position:absolute;bottom:0;left:50%;transform:translateX(-50%);z-index:2;white-space:nowrap;padding:2px 5px;background:#112719df;border:1px solid #8ac47b;border-radius:4px;font-size:9px;color:#def7cd;text-shadow:0 1px #14231b}
@keyframes field-seed{from{opacity:.65;transform:scale(.96)}to{opacity:1;transform:scale(1.04)}}
@keyframes field-bind{from{transform:rotate(-8deg) scale(.96)}to{transform:rotate(8deg) scale(1.05)}}
.battle-status.status-tox{background:#752274;border-color:#e399e5;color:#fff!important}
/* One complete tooltip per attack; no fixed description panel. */
.battle-move-info{position:absolute;top:7px;right:7px;z-index:2;width:22px;height:22px;border-radius:50%;border:1px solid #b5c9ab88;background:#14231ce8;color:#d9e8ce;font:bold 12px Georgia,serif;cursor:help}
.battle-move{padding-right:32px}
.battle-move-cell .battle-move-tip{position:fixed!important;right:auto!important;bottom:auto!important;z-index:1000;pointer-events:auto;overflow:auto;overscroll-behavior:contain;max-width:calc(100vw - 24px);font-size:12px!important;line-height:1.5;box-shadow:0 7px 28px #000b;border:1px solid #859777;border-radius:10px;background:#102018;color:#e8f1e4;padding:14px;transition:none}
.battle-move-cell:not(.show-tip) .battle-move-tip{display:none!important}.battle-move-cell.show-tip .battle-move-tip{display:block;visibility:visible;opacity:1}
.battle-move-tip>strong{font-size:15px;color:#effadf}.battle-move-tip dl{display:flex;gap:9px 18px;flex-wrap:wrap;margin:9px 0}.battle-move-tip dl>div{display:flex;gap:5px}.battle-move-tip dt{color:#a9bda4}.battle-move-tip dd{margin:0;font-weight:700}.battle-move-tip p{margin:8px 0}.battle-move-tip .move-efficacy{color:#e4edaf}.battle-move-tip>small{display:block;color:#a6b79e;font-size:10px!important}
@media(max-width:540px){.battle-move-info{top:6px;right:5px;width:21px;height:21px}.battle-move{padding-right:26px}.battle-ground{top:58%}.hazard-stealthrock i{width:15px;height:17px}.hazard-spikes i,.hazard-toxicspikes i{width:14px;height:17px}.residual-caption{font-size:8px}}
@media(prefers-reduced-motion:reduce){.battle-weather-particles::before,.battle-weather-particles::after,.seed-vines,.trap-ring{animation:none!important}.battle-terrain-tint,.battle-weather-tint{transition:none}}
@media(max-width:540px){.battle-arena{height:510px}.battle-opponent{top:118px}.battle-condition small{display:inline}}
