/* V1.0.6 gameplay, mailbox, garden, summon, and hatchery polish. */

/* Monthly summon showcase. */
.featured-pokemon>img,.featured-label{transition:opacity .18s ease,transform .18s ease}
.featured-pokemon.is-switching>img{opacity:0;transform:translateY(8px) scale(.96)}
.featured-pokemon.is-switching .featured-label{opacity:0;transform:translateY(5px)}
.featured-dots{display:flex;justify-content:flex-end;gap:5px;margin-top:10px}
.featured-dots i{width:18px;height:3px;background:#50616b;transition:background .2s,width .2s}
.featured-dots i.active{width:30px;background:#83e6ef;box-shadow:0 0 9px #83e6ef}

/* Ladder help stays in normal flow so it cannot cover the floor and rank. */
.ladder-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:15px;min-width:0}
.ladder-heading-actions .ladder-help-button{position:static;flex:0 0 38px;width:38px;height:38px}
.ladder-heading-actions .ladder-score{min-width:86px}

/* Keep desktop navigation content centered independently of the active marker. */
.sidebar nav button{justify-items:center;padding-inline:0}
@media(min-width:901px){
  .sidebar nav button{border-left:0}
  .sidebar nav button.active:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--yellow);box-shadow:0 0 10px #f4d93d66}
}

/* Stable three-column UP pool and persistent incubators. */
#eggHouseView,.egg-house-content,.up-banner,.up-pets,.egg-utility-grid,.incubator-section,.egg-storage-section{min-width:0;max-width:100%}
#eggHouseView{overflow-x:clip}
.egg-house-content{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;width:100%}
.up-banner{width:100%;min-height:330px;padding:25px 28px;overflow:hidden}
.up-banner-heading{display:flex;align-items:end;justify-content:space-between;gap:18px}
.up-banner-heading>span{color:#93a3ac;font:700 10px var(--display)}
.up-pets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;width:100%;height:auto;gap:10px;margin-top:18px}
.up-pet{position:relative;width:100%;min-width:0;min-height:210px;padding:14px 10px 12px;display:grid;grid-template-rows:1fr auto auto;justify-items:center;align-content:end;border:1px solid #3e4b54;background:#111920;text-align:center;overflow:hidden}
.up-pet>span{position:absolute;left:9px;top:8px;color:#fff17c;font:900 11px var(--display)}
.up-pet.rarity-SS{border-color:#9cf4ff;box-shadow:inset 0 0 28px #9cf4ff16}
.up-pet.rarity-S{border-color:#ff83bd;box-shadow:inset 0 0 28px #ff83bd12}
.up-pet.rarity-A{border-color:#c99b39;box-shadow:inset 0 0 28px #c99b3912}
.up-pet.rarity-B{border-color:#9b69dc;box-shadow:inset 0 0 28px #9b69dc16}
.up-pet img{width:min(100%,180px);height:150px;object-fit:contain;filter:drop-shadow(0 14px 13px #000b)}
.up-pet b,.up-pet small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.up-pet b{font-size:12px}.up-pet small{color:var(--yellow);font:800 9px var(--display)}
.egg-utility-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
.incubator-area{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%}
.incubator{width:100%;min-width:0;min-height:250px;overflow:hidden}
.incubator.empty,.incubator.locked{grid-template-rows:1fr auto auto;align-content:center}
.incubator.locked{display:grid;opacity:.72}
.incubator-vessel{position:relative;width:96px;height:116px;display:grid;place-items:center;border:2px solid #52616b;border-radius:48px 48px 18px 18px;background:linear-gradient(145deg,#23303a,#10171d);box-shadow:inset 0 0 25px #0009,0 15px 25px #0008}
.incubator-vessel:before{content:'';position:absolute;inset:8px;border:1px solid #6b7b86;border-radius:40px 40px 13px 13px;background:linear-gradient(#72dbe613,#ffffff05)}
.incubator-vessel svg{position:relative;width:34px;height:34px;color:#8a99a3}
.incubator.svip-incubator{border-color:#d4b95c;box-shadow:inset 0 0 32px #d4b95c18,0 0 18px #d4b95c33;animation:svipIncubatorGlow 2.4s ease-in-out infinite alternate}
.incubator.svip-incubator .incubator-vessel{border-color:#e4ca6c;box-shadow:inset 0 0 25px #0009,0 0 25px #e4ca6c66}
@keyframes svipIncubatorGlow{to{border-color:#fff0a1;box-shadow:inset 0 0 38px #f9df7122,0 0 30px #f2d76b66}}

/* Match-3 exchange and cascade feedback. */
.match3-board{position:relative;overflow:hidden}
.match3-cell{position:relative;min-width:0;min-height:0}
.match3-cell>.gem{position:absolute;inset:0;width:100%;height:100%;margin:0;will-change:transform,opacity;box-shadow:inset 0 0 11px #fff4,0 4px 8px #0007}
.gem.gem-swapping{z-index:3;transform:translate(var(--swap-x),var(--swap-y)) scale(.92);transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.gem.gem-clearing{z-index:2;animation:gemClear .19s ease forwards}
.gem.gem-falling{z-index:2;pointer-events:none}
@keyframes gemClear{60%{transform:scale(1.18);filter:brightness(1.7)}to{transform:scale(.15) rotate(24deg);opacity:0}}

/* Fishing hit feedback. */
.fishing-scene{isolation:isolate;border:1px solid #315d6b;background:linear-gradient(#102332,#0a3443 62%,#123d49)}
.fishing-water-lines{position:absolute;z-index:-1;inset:0;background:repeating-linear-gradient(174deg,transparent 0 42px,#79d9ec10 43px 45px,transparent 46px 72px);animation:waterDrift 8s linear infinite}
@keyframes waterDrift{to{transform:translateY(72px)}}
.fishing-meter{overflow:visible;border-color:#7596a3;box-shadow:inset 0 0 18px #000b,0 7px 20px #0007;transition:border-color .15s,box-shadow .15s}
.fishing-meter>i{background:repeating-linear-gradient(90deg,#55e19a 0 9px,#8affbd 10px 18px);border-left:2px solid #ddffeb;border-right:2px solid #ddffeb}
.fishing-meter>i.target-enter{animation:targetEnter .3s ease}
.fishing-meter>b{width:6px;background:#fff4a8}
.fishing-meter>b span{position:absolute;left:50%;bottom:-9px;width:18px;height:18px;transform:translateX(-50%) rotate(45deg);border:3px solid #fff4a8;border-left:0;border-top:0}
.fishing-meter.hit{border-color:#7dffb6;box-shadow:0 0 25px #63eca688,inset 0 0 22px #65e7a333}
.fishing-meter.miss{border-color:#ff6170;box-shadow:0 0 24px #ff536066,inset 0 0 22px #ff53602e}
.fishing-scene.reel-pulse>img{animation:fishTug .36s ease}
.fishing-scene.catch-success>img{animation:catchCelebrate .75s ease-in-out infinite alternate}
.fish-feedback{position:absolute;z-index:4;left:50%;top:42%;transform:translate(-50%,-50%) scale(.65);opacity:0;color:#fff;font:900 52px var(--display);text-shadow:0 5px 20px #000;pointer-events:none}
.fish-feedback.show{animation:fishFeedback .52s ease forwards}.fish-feedback.success{color:#8dffc2}.fish-feedback.failure{color:#ff7581}
.fishing-back{margin-top:10px}
@keyframes targetEnter{from{transform:scaleX(.25);opacity:.25}}
@keyframes fishTug{50%{transform:translateY(-16px) rotate(-7deg) scale(1.08)}}
@keyframes catchCelebrate{to{transform:translateY(-12px) rotate(5deg) scale(1.06);filter:drop-shadow(0 0 25px #fff58d)}}
@keyframes fishFeedback{50%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}to{opacity:0;transform:translate(-50%,-75%) scale(1)}}

/* Restaurant online presence and turn waiting. */
.restaurant-round-meta{display:grid;text-align:right}.restaurant-round-meta span{color:#8d99a1;font-size:8px}.restaurant-round-meta strong{color:var(--yellow);font:900 18px var(--display)}.restaurant-round-meta strong.urgent{color:#ff6571}
.restaurant-identity{display:flex;align-items:center;gap:9px;min-width:0}.restaurant-player:last-child .restaurant-identity{flex-direction:row-reverse}.restaurant-identity img{width:38px;height:38px;flex:0 0 38px;border:2px solid #56636c;border-radius:50%;object-fit:cover;background:#27323a}.restaurant-identity span{min-width:0}.restaurant-identity strong{overflow:hidden!important;text-overflow:ellipsis;white-space:nowrap}
.restaurant-waiting{pointer-events:auto;opacity:1}.restaurant-waiting .restaurant-actions{pointer-events:none;opacity:.52;filter:saturate(.65)}
.restaurant-thinking{display:inline-flex;align-items:center;justify-content:center;gap:4px;color:#fff6a4;font-weight:700}.restaurant-thinking i{width:4px;height:4px;background:#f4d83d;animation:thinkingDot .9s ease-in-out infinite}.restaurant-thinking i:nth-child(2){animation-delay:.15s}.restaurant-thinking i:nth-child(3){animation-delay:.3s}
@keyframes thinkingDot{50%{transform:translateY(-4px);filter:brightness(1.5)}}

/* Battle team rarity filters. */
.team-dock{height:156px;padding:12px 22px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:9px}
.team-title{width:auto;min-width:0;display:flex;align-items:center;gap:10px}.team-title>b{white-space:nowrap}.team-title>#teamCount{padding-right:8px;border-right:1px solid #38434b;white-space:nowrap}
.team-rarity-filters{display:flex;flex:1;gap:5px;flex-wrap:nowrap;min-width:0;margin:0;overflow-x:auto;padding:1px 0 3px;scrollbar-width:thin}
.team-filter-chip{position:relative;display:block!important;flex:0 0 auto;font:800 9px var(--display)!important;color:#aeb9bf!important;cursor:pointer}
.team-filter-chip input{position:absolute;width:1px!important;height:1px!important;opacity:0;pointer-events:none}
.team-filter-chip span{height:25px;min-width:43px;padding:0 9px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #3c4851;background:#141c22;color:#96a3ab;transition:background .15s,border-color .15s,color .15s}
.team-filter-chip span i{width:5px;height:12px;background:var(--filter-rarity);box-shadow:0 0 7px color-mix(in srgb,var(--filter-rarity) 65%,transparent)}
.team-filter-chip input:checked+span{border-color:var(--filter-rarity);background:color-mix(in srgb,var(--filter-rarity) 17%,#141c22);color:#fff;box-shadow:inset 0 0 15px color-mix(in srgb,var(--filter-rarity) 12%,transparent)}
.team-picker{width:100%;min-width:0}.team-pet{height:96px}.team-pet img{height:68px}

/* Mail actions. */
.mail-heading-actions,.mail-card-actions{display:flex;align-items:center;gap:8px}.mail-heading-actions .secondary{height:42px}.mail-heading-actions svg{width:17px}.mail-card-actions{justify-content:flex-end}.mail-card-actions .danger{flex:0 0 40px}.mail-card-actions>button:first-child{min-width:86px}
.feedback-mail{border-left:3px solid #59d4ad!important}.feedback-mail .mail-icon{color:#59d4ad!important;background:#142a25!important}

/* Player feedback. */
.feedback-dialog{width:min(560px,calc(100vw - 28px));padding:32px;background:#121a20;border-color:#40545a}.feedback-symbol{width:48px;height:48px;margin-bottom:18px;display:grid;place-items:center;border:1px solid #438476;background:#15302a;color:#6de0bc}.feedback-symbol svg{width:23px}.feedback-dialog h2{margin-bottom:8px}.feedback-dialog form{display:grid;gap:10px;margin-top:22px}.feedback-dialog textarea{width:100%;min-height:150px;resize:vertical;padding:13px;border:1px solid #3a4850;background:#0e151a;color:#eef4f5;font:500 13px/1.7 var(--sans);outline:0}.feedback-dialog textarea:focus{border-color:#59d4ad;box-shadow:0 0 0 2px #59d4ad18}.feedback-meta{display:flex;justify-content:space-between;gap:12px;color:#7f8c94;font-size:9px}.feedback-meta strong{color:#59d4ad}.feedback-dialog .primary svg{width:16px}

/* Ladder uses an isolated battle surface instead of the realtime arena. */
.ladder-battle-dialog{width:min(980px,calc(100vw - 28px));max-width:980px;padding:0;overflow:hidden;border-color:#50616c;background:#0d1419}.ladder-battle-head{height:92px;padding:22px 58px 18px 26px;display:flex;align-items:end;justify-content:space-between;gap:20px;border-bottom:1px solid #34414a;background:#131d24}.ladder-battle-head h2{margin:4px 0 0;font:900 24px var(--display)}.ladder-battle-head>strong{color:var(--yellow);font:800 11px var(--display)}.ladder-battle-stage{position:relative;height:min(510px,60vh);min-height:360px;display:grid;grid-template-columns:1fr 100px 1fr;align-items:end;overflow:hidden;background:linear-gradient(#13202a 0 58%,#1d2730 58% 62%,#0a1015 62%)}.ladder-battle-stage:before{content:'';position:absolute;left:50%;bottom:-110px;width:650px;height:250px;transform:translateX(-50%);border:3px solid #50616b;border-radius:50%;background:#1b252c;box-shadow:inset 0 0 0 26px #10181e,0 0 50px #000}.ladder-fighter{position:relative;z-index:2;height:100%;display:grid;grid-template-rows:auto 1fr;align-items:end;justify-items:center;padding:30px 20px 45px;transition:filter .18s,transform .18s}.ladder-fighter img{width:min(270px,80%);height:290px;object-fit:contain;filter:drop-shadow(0 24px 16px #000c);transition:transform .2s,filter .2s}.ladder-fighter.enemy img{transform:scaleX(-1)}.ladder-fighter.attacking.mine img{transform:translateX(44px) scale(1.08)}.ladder-fighter.attacking.enemy img{transform:translateX(-44px) scaleX(-1) scale(1.08)}.ladder-fighter.hit img{filter:brightness(1.8) sepia(.5) drop-shadow(0 0 20px #ff6f68)}.ladder-fighter.winner img{animation:ladderVictory .7s ease-in-out 2}.ladder-fighter-meta{align-self:start;width:min(310px,100%);padding:11px 13px;border:1px solid #44525c;background:#10181ee8}.ladder-fighter-meta b,.ladder-fighter-meta span{display:block}.ladder-fighter-meta b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.ladder-fighter-meta span{margin-top:4px;color:#91a0a8;font:700 8px var(--display)}.ladder-fighter-meta>i{display:block;height:7px;margin-top:8px;background:#29343b}.ladder-fighter-meta>i>em{display:block;width:100%;height:100%;background:#55d69c;transition:width .24s}.ladder-versus{position:relative;z-index:3;align-self:center;display:grid;justify-items:center;gap:9px}.ladder-versus span{font:900 36px var(--display);color:var(--yellow);text-shadow:0 0 20px #f4d83d66}.ladder-versus small{font:800 8px var(--display);color:#9aa6ad;text-align:center}.ladder-damage{position:absolute;z-index:7;top:41%;max-width:42%;padding:8px 12px;background:#0c1216d9;color:#fff;font:900 28px var(--display);text-shadow:0 2px 0 #000;animation:ladderDamage .65s ease-out}.ladder-damage.enemy-hit{right:12%}.ladder-damage.mine-hit{left:12%}.ladder-damage.critical{color:#ffef69;font-size:35px;box-shadow:0 0 24px #ff43555c}.ladder-battle-footer{min-height:86px;padding:14px 25px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #34414a;background:#11191f}.ladder-battle-footer p{margin:0;color:#aab5bb;font-size:11px}.ladder-battle-reward{padding:10px 14px;border:1px solid #786e36;background:#292512;color:#fff081;font:800 10px var(--display)}.ladder-battle-reward.lost{border-color:#67434a;background:#29181c;color:#ff909a}@keyframes ladderDamage{from{opacity:0;transform:translateY(18px) scale(.78)}70%{opacity:1}to{opacity:0;transform:translateY(-32px) scale(1.08)}}@keyframes ladderVictory{50%{transform:translateY(-22px) scale(1.08)}}

/* Garden theft reserve and rot state. */
.garden-plot .crop-cry{position:absolute;z-index:4;right:18px;top:20px;font-size:28px;filter:drop-shadow(0 4px 7px #000);animation:cropCry 1.7s ease-in-out infinite}
.garden-plot.rotten{border-color:#6e5358;background:#201719}.garden-plot.rotten .soil img{filter:grayscale(1) brightness(.48) drop-shadow(0 8px 7px #000);transform:rotate(14deg)}
.rotten-mark{position:absolute;z-index:4;padding:5px 9px;border:1px solid #a7666d;background:#291619;color:#ff9ba4;font:900 9px var(--display)}
@keyframes cropCry{50%{transform:translateY(3px) rotate(-5deg)}}

/* Mythic attributes and duplicate-star progression. */
.attribute-badge{position:absolute;z-index:4;right:11px;top:11px;display:inline-flex;align-items:center;gap:5px;padding:0;border:0;background:transparent;color:var(--attribute);box-shadow:none;font:800 9px var(--display);white-space:nowrap}.attribute-badge svg{width:13px;height:13px;stroke-width:2}.attribute-badge.compact{font-size:8px}.attribute-badge.compact svg{width:11px;height:11px}
.pet-card .pet-level{top:66px}.pet-card.has-stars .pet-rarity{top:42px}.pet-stars{position:absolute;z-index:5;left:10px;top:10px;height:25px;display:flex;align-items:center;gap:2px;padding:0 5px;background:#0d1419d9;border:1px solid currentColor}.pet-stars svg{width:13px;height:13px;fill:currentColor;stroke:currentColor}.pet-stars.gold{color:#ffd956}.pet-stars.red{color:#ff535d}.pet-stars.diamond{color:#baf6ff;filter:drop-shadow(0 0 5px #65eaff);animation:starCrystal 1.8s ease-in-out infinite}.pet-stars.prism{color:#fff;animation:starPrism 2.2s linear infinite}.pet-stars.black-diamond{color:#252834;background:#e7f4ff;border-color:#7892ae;filter:drop-shadow(0 0 6px #c7ecff);animation:starBlackDiamond 1.9s ease-in-out infinite}
.ladder-team>div{position:relative}.ladder-team .attribute-badge{right:6px;top:6px}.up-pet .attribute-badge{right:6px;top:6px}.catalog-card .attribute-badge{right:4px;top:4px;width:14px;height:14px;border:0;background:transparent;box-shadow:none}.catalog-card .attribute-badge b{display:none}.catalog-card .attribute-badge svg{width:14px;height:14px}.team-pet .attribute-badge{left:5px;right:auto;top:5px}
.damage-pop.attribute-hit small{display:block;margin-bottom:3px;color:#fff29a;font:900 15px var(--display);text-shadow:0 0 12px #f4d83d}.battle-canvas canvas{pointer-events:none}
@keyframes starCrystal{50%{filter:drop-shadow(0 0 11px #d9fbff) brightness(1.35)}}@keyframes starPrism{0%{color:#ff8fa3}25%{color:#ffe873}50%{color:#78f6cf}75%{color:#8dc4ff}100%{color:#ff8fa3}}@keyframes starBlackDiamond{50%{background:#17202c;color:#020409;border-color:#d6efff;filter:drop-shadow(0 0 12px #8dcfff)}}

/* In-game destructive confirmation. */
.confirm-dialog{width:min(470px,calc(100vw - 28px));padding:32px 32px 27px;border-color:#314049;background:linear-gradient(145deg,#1d252c,#12181e)}.confirm-symbol{width:52px;height:52px;margin-bottom:20px;display:grid;place-items:center;border:1px solid #314049;background:#301a1e;color:#ff6a75}.confirm-symbol svg{width:24px;height:24px}.confirm-dialog h2{margin-bottom:8px}.confirm-message{min-height:48px;margin:0;color:#aab4ba;font-size:12px;line-height:1.75}.confirm-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:9px;margin-top:24px}.danger-confirm{min-height:44px;border:1px solid #b44d58;background:#8d3039;color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:800}.danger-confirm:hover{background:#ae3e49}.danger-confirm svg{width:17px}.danger-command{border-color:#6f3d43!important;color:#ff8d96!important;background:#281d21!important}

/* Monthly three-target shiny task. */
.shiny-task-heading{display:flex;align-items:end;justify-content:space-between;gap:12px}.shiny-task-heading h3{margin:0}.shiny-task-heading strong{color:var(--yellow);font:900 22px var(--display)}.shiny-task-targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:14px 0}.shiny-task-targets article{position:relative;min-width:0;min-height:92px;padding:8px;border:1px solid #35414a;background:#12191f;display:grid;grid-template-columns:42px minmax(0,1fr) 18px;align-items:center;gap:7px;opacity:.67}.shiny-task-targets article.completed{border-color:#a78f39;background:#211f14;opacity:1;box-shadow:inset 0 0 16px #f4d83d12}.shiny-task-targets article>span{position:absolute;left:5px;top:4px;color:#66737b;font:800 8px var(--display)}.shiny-task-targets article>img{width:42px;height:52px;object-fit:contain}.shiny-task-targets article>div{min-width:0;display:grid;gap:5px}.shiny-task-targets article b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.shiny-task-targets article>.lucide{width:16px;color:#6c7880}.shiny-task-targets article.completed>.lucide{color:var(--yellow)}.shiny-task-targets .attribute-badge{position:static;width:max-content;max-width:100%}.task-reward-note{display:block;margin-top:8px;color:#78858d;font-size:8px}

/* Shiny crop maturation chooser. */
.game-modal.mature-dialog{width:min(680px,calc(100vw - 28px));max-width:680px;padding:32px}.mature-head{padding-right:56px}.mature-head>div>span{display:block;margin-top:7px;color:#8e9aa2;font-size:11px}.mature-head>svg{width:34px;height:34px;color:var(--yellow);filter:drop-shadow(0 0 10px #f4d83d55)}.mature-choices{max-height:min(430px,58vh);overflow-y:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:2px 4px 2px 2px;scrollbar-width:thin}.mature-plot{position:relative;min-width:0;min-height:112px;padding:14px 38px 14px 14px;border:1px solid #39454e;border-left:4px solid var(--quality);background:linear-gradient(135deg,color-mix(in srgb,var(--quality) 9%,#182028),#11171d);color:#eef2f4;display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:13px;text-align:left;transition:transform .16s,border-color .16s,background .16s}.mature-plot:hover{transform:translateY(-2px);border-color:var(--quality);background:linear-gradient(135deg,color-mix(in srgb,var(--quality) 16%,#1b252d),#141b21)}.mature-plot-number{height:72px;border:1px solid color-mix(in srgb,var(--quality) 50%,#3a454d);display:grid;place-content:center;text-align:center;background:#0e1419}.mature-plot-number small{color:#748089;font:700 8px var(--display)}.mature-plot-number strong{color:var(--quality);font:900 28px var(--display)}.mature-plot-detail{min-width:0;display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:4px 7px}.mature-plot-detail>svg{grid-row:1/3;width:19px;color:var(--quality)}.mature-plot-detail b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.mature-plot-detail small{display:flex;align-items:center;gap:4px;color:#8d99a1;font-size:9px}.mature-plot-detail small svg{width:12px;height:12px}.mature-arrow{position:absolute;right:13px;top:50%;width:18px;transform:translateY(-50%);color:#75828a}.mature-plot:hover .mature-arrow{color:var(--quality)}

@media(max-width:900px){
  .egg-utility-grid{grid-template-columns:1fr}.up-banner{min-height:300px}.up-pet{min-height:190px}.up-pet img{height:132px}.ladder-battle-stage{grid-template-columns:1fr 60px 1fr}.ladder-fighter{padding-inline:8px}.ladder-fighter img{height:240px}.ladder-battle-head{padding-left:18px}.ladder-battle-footer{align-items:flex-start;flex-direction:column}
  .restaurant-identity img{width:34px;height:34px;flex-basis:34px}.team-dock{height:158px;padding:10px 14px}
}
@media(max-width:560px){
  .featured-dots{display:none}.up-banner{padding:14px 10px;min-height:238px}.up-banner-heading>span{display:none}.up-pets{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:12px}.up-pet{min-height:150px;padding:9px 4px 7px}.up-pet img{height:98px}.up-pet b{font-size:9px}.up-pet small{font-size:7px}.up-pet>span{left:5px;top:5px;font-size:8px}
  .ladder-heading{align-items:center}.ladder-heading-actions{gap:9px}.ladder-heading-actions .ladder-help-button{flex-basis:34px;width:34px;height:34px}
  .incubator-area{grid-template-columns:1fr}.incubator.locked{display:grid}.incubator{min-height:210px}.incubator-vessel{width:76px;height:91px}
  .restaurant-identity{gap:4px}.restaurant-identity img{width:28px;height:28px;flex-basis:28px}.restaurant-player small{font-size:6px}.restaurant-round-meta strong{font-size:14px}.restaurant-thinking{font-size:8px}.restaurant-table .table-status{padding:0 3px}
  .team-dock{height:160px;gap:7px}.team-title{gap:6px}.team-title>b{font-size:12px}.team-title>#teamCount{font-size:9px}.team-filter-chip span{height:23px;min-width:38px;padding:0 7px}.team-filter-chip span i{height:10px}
  .mail-card{grid-template-columns:34px minmax(0,1fr)}.mail-card-actions{grid-column:2;justify-content:flex-start}.mail-heading-actions{flex-wrap:wrap;justify-content:flex-end}.mail-heading-actions .secondary{width:auto;padding:0 8px;font-size:9px}.confirm-dialog,.feedback-dialog{padding:26px 20px}.confirm-actions{grid-template-columns:1fr 1fr}.ladder-battle-dialog{width:100vw;height:100dvh;max-width:none;border:0}.ladder-battle-head{height:82px;padding:18px 48px 13px 14px;align-items:start}.ladder-battle-head h2{max-width:70vw;font-size:16px}.ladder-battle-head>strong{font-size:8px}.ladder-battle-stage{height:calc(100dvh - 190px);min-height:360px;grid-template-columns:1fr 38px 1fr}.ladder-fighter{padding:18px 4px 34px}.ladder-fighter img{width:100%;height:190px}.ladder-fighter-meta{padding:7px}.ladder-fighter-meta b{font-size:8px}.ladder-versus span{font-size:23px}.ladder-versus small{font-size:6px}.ladder-damage{top:37%;font-size:18px}.ladder-damage.critical{font-size:22px}.ladder-battle-footer{min-height:108px;padding:10px 13px;gap:8px}.ladder-battle-reward{width:100%;font-size:8px}
  .attribute-badge{right:7px;top:7px;padding:0 5px}.attribute-badge b{font-size:7px}.pet-card .pet-level{top:38px}.pet-card.has-stars .pet-rarity{top:38px}.pet-stars{left:6px;top:7px}.shiny-task-targets{grid-template-columns:1fr}.shiny-task-targets article{min-height:76px;grid-template-columns:48px minmax(0,1fr) 20px}.shiny-task-targets article>img{width:48px;height:58px}.game-modal.mature-dialog{padding:25px 12px}.mature-head{padding-right:42px}.mature-head>svg{display:none}.mature-choices{grid-template-columns:1fr;max-height:60vh}.mature-plot{min-height:96px}
  .fish-feedback{font-size:38px}
}

/* Equipment, frames and weekly gyms. */
.gear-red{--gear:#f0565f;color:#ff7780}.gear-gold{--gear:#edc95a;color:#f3d976}.gear-purple{--gear:#a779e8;color:#c39aff}.gear-white{--gear:#dce4e9;color:#eef5f7}
.pet-equipment-marks,.opponent-equipment-marks,.team-equipment-marks,.battle-equipment-marks{position:absolute;z-index:9;display:flex;align-items:center;gap:7px;color:#eef5f7}.pet-equipment-marks{right:11px;top:39px}.opponent-equipment-marks{right:6px;top:30px}.team-equipment-marks{right:5px;top:22px;gap:4px}.equipment-mark{width:16px;height:16px;fill:currentColor;stroke:currentColor;stroke-width:2.5;filter:drop-shadow(0 0 5px color-mix(in srgb,var(--gear) 55%,transparent))}.team-equipment-marks .equipment-mark{width:11px;height:11px}.opponent-equipment-marks .equipment-mark{width:13px;height:13px}
.equipment-good>img{width:54px;height:54px;object-fit:contain;filter:drop-shadow(0 0 12px #fff3)}.equipment-good.starlight{border-color:#886f2f!important}.equipment-dialog{width:min(900px,calc(100vw - 28px));max-width:900px}.equipment-dialog-head{display:flex;align-items:start;justify-content:space-between;padding-right:48px}.equipment-boxes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 18px}.equipment-boxes>button{min-height:80px;padding:10px 14px;display:flex;align-items:center;gap:12px;border:1px solid #46525b;background:#131b21;color:#eef3f5;text-align:left}.equipment-boxes>button.starlight{border-color:#a58b42;background:#201e14}.equipment-boxes img{width:55px;height:55px}.equipment-boxes span{display:grid;gap:5px}.equipment-boxes small{color:#8f9ba3}.equipment-inventory{max-height:min(570px,62vh);overflow-y:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding-right:4px}.equipment-card{min-width:0;min-height:102px;padding:12px;border:1px solid var(--gear);background:linear-gradient(135deg,color-mix(in srgb,var(--gear) 9%,#172029),#11171d);display:grid;grid-template-columns:70px minmax(0,1fr) auto;align-items:center;gap:10px}.equipment-card>img{width:66px;height:66px;object-fit:contain}.equipment-card h3{margin:3px 0 6px;font:800 15px var(--display)}.equipment-card small{color:var(--gear);font:800 8px var(--display)}.equipment-card span{color:#89969e;font-size:9px}.equipment-card button{padding:0 10px}.equip-choice-note{display:block;margin-top:8px;color:var(--yellow);font-size:9px}
.frames-dialog{width:min(760px,calc(100vw - 28px));max-width:760px}.frame-inventory{display:grid;gap:9px;max-height:65vh;overflow-y:auto}.achievement-frame{--frame:#70c7e9;position:relative;min-height:92px;padding:16px;border:2px solid var(--frame);background:linear-gradient(120deg,color-mix(in srgb,var(--frame) 11%,#141d24),#10161b);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;box-shadow:inset 0 0 22px color-mix(in srgb,var(--frame) 12%,transparent)}.achievement-frame h3{margin:3px 0 5px;font:900 19px var(--display)}.achievement-frame small{color:var(--frame);font:800 8px var(--display)}.achievement-frame span{color:#939fa6;font-size:9px}.achievement-frame.equipped{box-shadow:0 0 18px color-mix(in srgb,var(--frame) 45%,transparent),inset 0 0 30px color-mix(in srgb,var(--frame) 16%,transparent)}.achievement-frame.expired{filter:grayscale(1);opacity:.55}.frame-19,.frame-49,.frame-79{--frame:#55cfff}.frame-29,.frame-59,.frame-89{--frame:#e85e65}.frame-39,.frame-69,.frame-99{--frame:#f0d068}.frame-gym{--frame:#dfbc45}.ladder-frame-strip{display:flex;gap:7px;overflow-x:auto;margin-top:12px;padding-bottom:3px}.mini-frame{flex:0 0 auto;height:42px;padding:0 10px;border:1px solid #42505a;background:#131a20;color:#c8d1d6;display:flex;align-items:center;gap:8px}.mini-frame b{font-size:9px}.mini-frame span{color:var(--yellow);font:800 8px var(--display)}.mini-frame.equipped{border-color:var(--yellow);box-shadow:inset 0 0 15px #f4d83d1c}
.gym-heading{position:relative}.gym-heading>.game-help{position:static;flex:0 0 40px;width:40px;height:40px}.gym-stages{display:grid;gap:15px}.gym-stage{min-width:0;border:1px solid #36424a;background:#12191f;display:grid;grid-template-columns:100px minmax(0,1fr);opacity:.65}.gym-stage.unlocked,.gym-stage.cleared{opacity:1}.gym-stage.unlocked{border-color:#a88d3c;box-shadow:inset 0 0 30px #d8b84910}.gym-stage-number{display:grid;place-content:center;justify-items:center;border-right:1px solid #36424a;background:#0d1318}.gym-stage-number img{width:70px;height:70px}.gym-stage-number b{color:var(--yellow);font:900 18px var(--display)}.gym-stage-main{min-width:0;padding:17px}.gym-stage-main>small{color:#829099;font:800 8px var(--display)}.gym-stage-main>h3{margin:4px 0 12px;font:900 21px var(--display)}.gym-team{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.gym-team>div{position:relative;min-width:0;height:155px;border:1px solid var(--rarity);background:#151d24;display:grid;justify-items:center;align-content:center}.gym-team img{width:100%;height:92px;object-fit:contain}.gym-team b{max-width:95%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.gym-team span,.gym-team small{max-width:95%;color:var(--rarity);font:700 7px var(--display);white-space:normal;text-align:center}.gym-player-team{margin-top:13px;padding:10px;border:1px solid #37434b;background:#0f161b}.gym-player-team>span{display:block;margin-bottom:7px;color:#a7b0b5;font-size:9px}.gym-player-team>div{display:flex;gap:7px;overflow-x:auto}.gym-player-team .team-pet{height:92px}.gym-stage-main>[data-challenge-gym]{margin-top:10px}.gym-cleared,.gym-locked{margin-top:12px;display:flex;align-items:center;gap:6px;color:#6fd5a7;font-size:10px}.gym-locked{color:#78858e}.opponent-gear{position:absolute;z-index:5;left:7px;top:7px;width:22px;height:22px;border:1px solid var(--gear);background:#10171ddd;color:var(--gear);display:grid;place-items:center}.opponent-gear svg{width:12px}.ladder-team>div>small{max-width:94%;margin-top:3px;color:#86939b;font:700 7px var(--display);text-align:center}.ladder-damage.item-triggered{max-width:58%;color:#fff3a4;font-size:18px;line-height:1.45}
.friend-rarity{display:inline-grid;place-items:center;min-width:24px;height:16px;margin-left:4px;border:1px solid var(--friend-rarity);color:var(--friend-rarity);font:900 8px var(--display);font-style:normal}.chat-title #sharePetButton{margin-left:auto}.share-pet-dialog{width:min(900px,calc(100vw - 28px));max-width:900px}.share-pet-inventory{max-height:68vh;overflow-y:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.share-pet-inventory>button{padding:0;border:0;background:transparent;color:inherit;text-align:left}.share-pet-inventory .pet-card{height:100%}.message-row.pet-message .message{width:min(290px,78vw);max-width:290px;padding:7px;background:#11191f}.shared-pet-card>small{display:block;padding:4px 5px 8px;color:#8c99a1}.shared-pet-card .pet-card{min-height:300px}.shared-pet-card .pet-info h3{font-size:17px}
.battle-hud-actions{display:flex;align-items:center;gap:8px}.battle-hud-actions .game-help{position:static;flex:0 0 42px;width:42px;height:42px}.game-modal>.game-help{right:56px;top:15px}.ladder-heading-actions .game-help{position:static}

@media(max-width:720px){
  .inventory-tools{flex-wrap:wrap;justify-content:flex-end}.inventory-tools .secondary{height:34px;padding:0 8px;font-size:8px}.equipment-inventory{grid-template-columns:1fr}.share-pet-inventory{grid-template-columns:repeat(2,minmax(0,1fr))}.gym-stage{grid-template-columns:58px minmax(0,1fr)}.gym-stage-number img{width:44px;height:44px}.gym-stage-main{padding:11px}.gym-team{gap:4px}.gym-team>div{height:133px}.gym-team img{height:75px}
  .ladder-layout,.ladder-layout>div,.ladder-opponent,.ladder-team{min-width:0;max-width:100%}.tower-stage{overflow:hidden}.ladder-team{grid-template-columns:repeat(3,minmax(0,1fr))}.ladder-team>div{min-width:0}.ladder-team b,.ladder-team span,.ladder-team small{max-width:94%;overflow:hidden;text-overflow:ellipsis;text-align:center;white-space:normal}.ladder-own-team{min-width:0}.ladder-own-team>div:last-child{max-width:100%}
}
@media(max-width:560px){
  .pet-stats span:nth-child(3){display:grid!important}.pet-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}.pet-stats b{font-size:12px}.pet-gear-mark{right:7px;top:38px}.pet-equipment-row b{display:none}.pet-equipment-row>span{width:28px}.battle-hud{height:auto;min-height:112px;padding:12px 10px;gap:8px;align-items:flex-start}.battle-hud>div:first-child{min-width:0}.battle-hud-actions{display:grid;grid-template-columns:34px 1fr 1fr;gap:5px}.battle-hud-actions .game-help{width:34px;height:38px}.battle-hud-actions button{height:38px;padding:0 7px;font-size:8px}.battle-canvas{height:calc(100dvh - 350px);min-height:360px}.game-help{width:34px;height:34px;right:50px;top:12px}.game-modal>.game-help{right:51px;top:12px}.gym-heading>.game-help{width:34px;height:34px;flex-basis:34px}.ladder-heading-actions .ladder-help-button{width:34px;height:34px;flex-basis:34px}
  .tower-stage{padding:24px 6px 20px 43px}.ladder-team{gap:3px}.ladder-team>div{height:166px;padding:3px}.ladder-team img{height:88px}.ladder-team .attribute-badge{right:3px;top:3px}.ladder-team .opponent-gear{left:3px;top:3px}.ladder-opponent>h3{margin-bottom:13px;font-size:19px}.ladder-team b{font-size:8px}.ladder-team span{font-size:6px}.ladder-team>div>small{font-size:6px}.ladder-frame-strip{margin-inline:-3px}.mini-frame{height:38px;padding:0 7px}.mini-frame b{font-size:7px}
  .equipment-dialog,.frames-dialog,.share-pet-dialog{width:100vw;height:100dvh;max-width:none;border:0;padding:20px 10px}.equipment-boxes{grid-template-columns:1fr}.equipment-inventory,.frame-inventory,.share-pet-inventory{max-height:calc(100dvh - 190px)}.equipment-card{grid-template-columns:52px minmax(0,1fr) auto;padding:8px}.equipment-card>img{width:48px;height:48px}.equipment-card h3{font-size:12px}.achievement-frame{padding:11px}.achievement-frame h3{font-size:15px}.share-pet-inventory{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.share-pet-inventory .pet-card{min-height:265px}.gym-stage{grid-template-columns:1fr}.gym-stage-number{height:54px;border-right:0;border-bottom:1px solid #36424a;display:flex;align-items:center;gap:10px}.gym-stage-number img{width:40px;height:40px}.gym-stage-main>h3{font-size:17px}.gym-team>div{height:139px}.gym-team img{height:78px}.gym-player-team{margin-inline:-5px}.gym-player-team>div{max-width:100%}.gym-player-team .team-pet{flex:0 0 86px;width:86px;min-width:86px}.ladder-damage.item-triggered{max-width:76%;font-size:12px}
  .message-row.pet-message .message{width:min(250px,75vw)}.shared-pet-card .pet-card{min-height:265px}.shared-pet-card .pet-card img{height:145px}.friend-rarity{height:14px;min-width:21px;font-size:7px}
}

/* Borderless equipment awareness on cards and every battle surface. */
.pet-card .pet-stars{height:auto;padding:0;border:0;background:transparent;box-shadow:none}.pet-card .pet-stars.black-diamond{color:#667586;background:transparent;border:0;filter:drop-shadow(0 0 7px #d7edff)}
.pet-hud,.ladder-fighter-meta{position:relative}.pet-hud.has-gear,.ladder-fighter.has-gear .ladder-fighter-meta{padding-top:31px}.pet-hud .battle-equipment-marks,.ladder-fighter-meta .battle-equipment-marks{top:9px}.pet-hud.mine .battle-equipment-marks,.ladder-fighter.mine .battle-equipment-marks{right:10px}.pet-hud.enemy .battle-equipment-marks,.ladder-fighter.enemy .battle-equipment-marks{left:10px}.battle-equipment-marks .equipment-mark{width:15px;height:15px}
@media(max-width:560px){.pet-card .pet-level{top:61px}.pet-equipment-marks{right:7px;top:34px;gap:5px}.pet-equipment-marks .equipment-mark{width:14px;height:14px}.ladder-team .opponent-equipment-marks{right:3px;top:22px}.pet-hud.has-gear,.ladder-fighter.has-gear .ladder-fighter-meta{padding-top:26px}.pet-hud .battle-equipment-marks,.ladder-fighter-meta .battle-equipment-marks{top:6px}.battle-equipment-marks .equipment-mark{width:12px;height:12px}}
