/* PokéLocke 16.21 — coordinated vector artwork for profile and community.
   Scoped to existing components; no navigation, background or gameplay changes. */
.v1543-stat-grid article>img{width:66px!important;height:66px!important;flex:0 0 66px!important;object-fit:contain!important;filter:none!important;image-rendering:auto!important}
.v1543-statistics>header img{width:32px!important;height:32px!important;object-fit:contain!important}
.v1543-section-icon img{image-rendering:auto!important}
.v1543-showcase-grid .v14-showcase-slot.is-empty .v1476-case-badge{
  width:82px!important;height:82px!important;min-height:82px!important;flex:0 0 82px!important;
  border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
  filter:none!important;margin:0 auto 5px!important;transform:none!important;
}
.v1543-showcase-grid .v14-showcase-slot.is-empty .v1476-case-badge img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;filter:none!important}
.v1543-showcase-grid .v14-showcase-slot.is-empty{background:linear-gradient(155deg,#ffffff,#eaf5fc)!important;border:1px solid #c2dced!important}
.v1543-showcase-grid .v14-showcase-slot.is-empty::before,
.v1543-showcase-grid .v14-showcase-slot.is-empty::after,
.v1543-showcase-grid .v14-showcase-slot.is-empty .v1476-case-light{display:none!important}
.v1543-showcase-grid button.v14-showcase-slot.is-empty:hover{border-color:#71b5db!important;box-shadow:inset 0 0 0 1px #c5e9fb,0 4px 12px #20507812!important}
.v1543-showcase-grid button.v14-showcase-slot:focus-visible{outline:3px solid #247baa!important;outline-offset:3px}
.v1543-profile-page .v1549-run-thumb{width:128px!important;height:64px!important;object-fit:cover!important;image-rendering:auto!important;border:1px solid #bad9e7!important;border-radius:10px!important;box-shadow:0 3px 8px #285f8014!important}
.v1607-podium-card .v1607-podium-rank{left:18px;top:-22px;min-width:76px;height:44px;padding:0 12px 0 5px;gap:4px;font-size:17px;color:#35546c;border:1px solid #b0c8db;background:linear-gradient(#fff,#dfedf5);border-radius:14px}
.v1607-podium-card .v1607-podium-rank::before{content:""!important;display:block;width:46px;height:46px;margin:-10px 0 0;background:url('../ui/icons-v1621/crown-silver.svg') center/contain no-repeat;filter:drop-shadow(0 3px 3px #284d6b20)}
.v1607-podium-card.rank-1 .v1607-podium-rank{color:#79510d;border-color:#e4b93f;background:linear-gradient(#fff8d4,#ffe487)}
.v1607-podium-card.rank-1 .v1607-podium-rank::before{width:52px;height:52px;background-image:url('../ui/icons-v1621/crown-gold.svg');filter:drop-shadow(0 3px 5px #d5a23650)}
.v1607-podium-card.rank-2 .v1607-podium-rank{color:#35546c;border-color:#a8c0d3;background:linear-gradient(#ffffff,#d5e5f0)}
.v1607-podium-card.rank-3 .v1607-podium-rank{color:#744729;border-color:#cf9f7d;background:linear-gradient(#fff0db,#e9be98)}
.v1607-podium-card.rank-3 .v1607-podium-rank::before{background-image:url('../ui/icons-v1621/crown-bronze.svg')}
.v1610-community-page .pl1621-friends-scene{height:196px!important;width:100%!important;max-width:400px!important;justify-self:center!important;background:url('../ui/icons-v1621/friends-garden.svg') center/contain no-repeat}
.v1610-community-page .pl1621-friends-scene::before,
.v1610-community-page .pl1621-friends-scene::after,
.v1610-community-page .pl1621-friends-scene .v1610-empty-ball{display:none!important}
.v1610-community-page .pl1621-friends-scene .v1610-empty-pika{width:112px!important;height:112px!important;left:52%!important;bottom:30px!important;image-rendering:auto!important;filter:drop-shadow(0 5px 3px #275f4930)!important}
.v1610-community-page .v1468-guild-empty-mark.pl1621-guild-emblem{display:grid;width:118px;height:118px;max-width:100%;margin:2px auto 14px;clip-path:none;background:none;border:0;border-radius:0;box-shadow:none;text-shadow:none}
.pl1621-guild-emblem img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:1100px){.v1543-stat-grid article>img{width:56px!important;height:56px!important;flex-basis:56px!important}}
@media(max-width:700px){
  .v1543-stat-grid article>img{width:52px!important;height:52px!important;flex-basis:52px!important}
  .v1543-showcase-grid .v14-showcase-slot.is-empty .v1476-case-badge{width:64px!important;height:64px!important;min-height:64px!important;flex-basis:64px!important}
  .v1543-profile-page .v1549-run-thumb{width:88px!important;height:48px!important;flex:0 0 88px!important}
  .v1607-podium-card .v1607-podium-rank{top:-13px;left:8px;height:29px;min-width:51px;padding:0 7px 0 3px;gap:1px;font-size:12px;border-radius:9px}
  .v1607-podium-card .v1607-podium-rank::before{width:31px;height:31px;margin-top:-6px}
  .v1607-podium-card.rank-1 .v1607-podium-rank::before{width:35px;height:35px}
  .v1610-community-page .pl1621-friends-scene{height:166px!important;max-width:320px!important}
  .v1610-community-page .pl1621-friends-scene .v1610-empty-pika{width:90px!important;height:90px!important;bottom:25px!important}
  .v1610-community-page .v1468-guild-empty-mark.pl1621-guild-emblem{width:98px;height:98px}
}
@media(prefers-reduced-motion:reduce){.v1543-stat-grid article>img{transition:none!important;transform:none!important}}

/* v16.22 recovery and leaderboard crown artwork */
.v1607-podium-card .v1607-podium-rank{display:flex!important;align-items:center!important;gap:3px!important;left:18px!important;top:-22px!important;min-width:76px!important;height:44px!important;padding:0 12px 0 5px!important;font-size:17px!important;color:#35546c!important;border:1px solid #b0c8db!important;background:linear-gradient(#fff,#dfedf5)!important;border-radius:14px!important;}
.v1607-podium-card .v1607-podium-rank::before{content:""!important;display:block!important;flex:0 0 46px!important;width:46px!important;height:46px!important;margin:-10px 0 0!important;background:url('../ui/icons-v1621/crown-silver.svg') center/contain no-repeat!important;filter:drop-shadow(0 3px 3px #284d6b20)!important;}
.v1607-podium-card.rank-1 .v1607-podium-rank{color:#79510d!important;border-color:#e4b93f!important;background:linear-gradient(#fff8d4,#ffe487)!important;}
.v1607-podium-card.rank-1 .v1607-podium-rank::before{flex-basis:52px!important;width:52px!important;height:52px!important;background-image:url('../ui/icons-v1621/crown-gold.svg')!important;filter:drop-shadow(0 3px 5px #d5a23650)!important;}
.v1607-podium-card.rank-3 .v1607-podium-rank{color:#744729!important;border-color:#cf9f7d!important;background:linear-gradient(#fff0db,#e9be98)!important;}
.v1607-podium-card.rank-3 .v1607-podium-rank::before{background-image:url('../ui/icons-v1621/crown-bronze.svg')!important;}
.v1610-community-page .v1610-empty-scene{background:url('../ui/icons-v1621/friends-garden.svg') center/contain no-repeat!important;}
.v1610-community-page .v1610-empty-scene::before,.v1610-community-page .v1610-empty-scene::after,.v1610-community-page .v1610-empty-ball{display:none!important;}
.v1610-community-page .v1468-guild-empty-mark{width:118px!important;height:118px!important;clip-path:none!important;background:url('../ui/icons-v1621/guild-emblem.svg') center/contain no-repeat!important;color:transparent!important;}
@media(max-width:700px){.v1607-podium-card .v1607-podium-rank{top:-13px!important;left:8px!important;height:29px!important;min-width:51px!important;padding:0 7px 0 3px!important;font-size:12px!important;border-radius:9px!important}.v1607-podium-card .v1607-podium-rank::before{flex-basis:31px!important;width:31px!important;height:31px!important;margin-top:-6px!important}.v1607-podium-card.rank-1 .v1607-podium-rank::before{flex-basis:35px!important;width:35px!important;height:35px!important}.v1610-community-page .v1610-empty-scene{height:166px!important;max-width:320px!important;}}
.v1622-load-timeout{margin-top:10px;color:#a44646;font-size:12px;}

/* v14.82 — center the complete showcase content, including empty slots. */
.v1543-showcase-grid .v14-showcase-slot{
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
}
.v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge{
  width:84px!important;
  min-width:84px!important;
  height:84px!important;
  flex:0 0 84px!important;
  margin:12px auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
}
.v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge img{
  display:block!important;
  width:72px!important;
  height:72px!important;
  margin:0 auto!important;
  object-fit:contain!important;
}
.v1543-showcase-grid .v14-showcase-slot.is-empty>.v1476-case-badge{
  width:84px!important;
  min-width:84px!important;
  height:84px!important;
  flex-basis:84px!important;
  margin:12px auto!important;
  border:0!important;
  border-radius:0!important;
  background:none!important;
  box-shadow:none!important;
}
.v1543-showcase-grid .v14-showcase-slot.is-empty>.v1476-case-badge img{
  width:84px!important;
  height:84px!important;
}
.v1543-showcase-grid .v14-showcase-slot>div{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:center!important;
}
@media(max-width:700px){
  .v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge,
  .v1543-showcase-grid .v14-showcase-slot.is-empty>.v1476-case-badge{
    width:64px!important;
    min-width:64px!important;
    height:64px!important;
    flex-basis:64px!important;
    margin:8px auto!important;
  }
  .v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge img{width:56px!important;height:56px!important}
  .v1543-showcase-grid .v14-showcase-slot.is-empty>.v1476-case-badge img{width:64px!important;height:64px!important}
}
.v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge.is-glyph{
  line-height:1!important;
  transform:translateY(-2px)!important;
}
/* v14.83 — center the badge artwork itself inside its fixed badge box. */
.v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge:not(.is-glyph){
  position:relative!important;
}
.v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge:not(.is-glyph)>img{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important;
}
/* v14.84 — optical correction for the right-heavy 1-KP-Wunder artwork. */
.v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge>img[src*="ach-1hp"]{
  transform:translate(calc(-50% - 8px),-50%)!important;
}
/* v14.85 — keep the complete 1-KP-Wunder artwork optically centered. */
.v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge.is-optically-left>img{
  left:calc(50% - 8px)!important;
  transform:translate(-50%,-50%)!important;
}


/* v16.38 — trophy showcase asset normalization.
   All dedicated achievement artwork owns its complete medal shape; the outer legacy shell is disabled. */
.v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge.has-artwork{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:84px!important;
  min-width:84px!important;
  height:84px!important;
  flex:0 0 84px!important;
  margin:12px auto!important;
  padding:0!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-shadow:none!important;
  filter:none!important;
  transform:none!important;
}
.v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge.has-artwork>img{
  position:static!important;
  left:auto!important;
  top:auto!important;
  display:block!important;
  width:80px!important;
  height:80px!important;
  max-width:80px!important;
  max-height:80px!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  filter:none!important;
}
/* Generic fallback: same medal proportions for achievements that do not yet have bespoke art. */
.v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge.is-glyph{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:80px!important;
  min-width:80px!important;
  height:80px!important;
  flex:0 0 80px!important;
  margin:12px auto!important;
  padding:0!important;
  overflow:visible!important;
  border:4px solid #ffcb05!important;
  border-radius:50%!important;
  background:radial-gradient(circle at 36% 25%,#ff7777 0 7%,#e43d46 8% 49%,#a91f2b 50% 100%)!important;
  box-shadow:inset 0 0 0 4px #fff,inset 0 0 0 8px #173f62,0 7px 8px rgba(20,47,69,.22)!important;
  color:#fff!important;
  text-shadow:none!important;
  filter:none!important;
  transform:none!important;
}
.v1638-showcase-glyph{
  position:relative!important;
  z-index:1!important;
  display:grid!important;
  place-items:center!important;
  width:45px!important;
  height:45px!important;
  font-size:31px!important;
  line-height:1!important;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif!important;
}
/* Override every historical one-off image offset, including the old 1-KP correction. */
.v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge.has-artwork>img[src*="ach-1hp"],
.v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge.has-artwork>img[src*="ach-onehp"],
.v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge.is-optically-left>img{
  position:static!important;
  left:auto!important;
  top:auto!important;
  margin:0!important;
  transform:none!important;
}
/* Picker and showcase use exactly the same source artwork. */
.v1476-showcase-choice>.v1638-showcase-choice-badge{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:50px!important;
  min-width:50px!important;
  height:50px!important;
  padding:0!important;
  overflow:visible!important;
}
.v1476-showcase-choice>.v1638-showcase-choice-badge.has-artwork{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.v1476-showcase-choice>.v1638-showcase-choice-badge.has-artwork>img{
  display:block!important;
  width:48px!important;
  height:48px!important;
  max-width:48px!important;
  max-height:48px!important;
  object-fit:contain!important;
  transform:none!important;
}
.v1476-showcase-choice>.v1638-showcase-choice-badge.is-glyph{
  border:3px solid #ffcb05!important;
  border-radius:50%!important;
  background:radial-gradient(circle at 36% 25%,#ff7777 0 7%,#e43d46 8% 49%,#a91f2b 50% 100%)!important;
  box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 6px #173f62!important;
  color:#fff!important;
}
.v1638-showcase-choice-glyph{display:grid!important;place-items:center!important;width:29px!important;height:29px!important;font-size:21px!important;line-height:1!important;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif!important}
@media(max-width:700px){
  .v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge.has-artwork{width:68px!important;min-width:68px!important;height:68px!important;flex-basis:68px!important;margin:8px auto!important}
  .v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge.has-artwork>img{width:64px!important;height:64px!important;max-width:64px!important;max-height:64px!important}
  .v1543-showcase-grid .v14-showcase-slot>.v1476-case-badge.is-glyph{width:64px!important;min-width:64px!important;height:64px!important;flex-basis:64px!important;margin:8px auto!important}
  .v1638-showcase-glyph{width:37px!important;height:37px!important;font-size:25px!important}
}
