/* ============================================================
   BOOM MIN POKEDEX V2
   Trainer identity + Community TikTok avatar
   ============================================================ */


.dex-hero.dex-own-profile-v2 {
  min-height: 510px;
}


/*
 * Hide old generic private heading.
 * Region row and chips remain untouched.
 */

.dex-own-profile-v2
.dex-hero__copy
> .portal-kicker,

.dex-own-profile-v2
.dex-hero__copy
> #global-dex-title,

.dex-own-profile-v2
.dex-hero__copy
> p {
  display: none !important;
}


/* ============================================================
   TRAINER IDENTITY
   ============================================================ */

.dex-own-trainer-v2 {
  position: relative;

  z-index: 8;

  display: grid;

  grid-template-columns:
    142px
    minmax(0, 1fr);

  align-items: center;

  gap: 1.45rem;

  width:
    min(
      780px,
      58vw
    );

  margin:
    2.1rem 0
    1.45rem;
}


.dex-own-trainer-v2__avatar {
  position: relative;

  width: 138px;

  height: 138px;

  display: grid;

  place-items: center;

  overflow: visible;

  border:
    2px solid
    var(
      --region-accent,
      #58d8ff
    );

  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      rgba(20,31,45,.96),
      rgba(4,10,17,.98)
    );

  box-shadow:
    0 0 0 6px
      rgba(255,255,255,.025),

    0 0 28px
      color-mix(
        in srgb,
        var(
          --region-accent,
          #58d8ff
        )
        24%,
        transparent
      ),

    0 20px 45px
      rgba(0,0,0,.34);
}


.dex-own-trainer-v2__avatar::before {
  content: '';

  position: absolute;

  inset: -11px;

  z-index: -1;

  border:
    1px solid
    color-mix(
      in srgb,
      var(
        --region-accent,
        #58d8ff
      )
      25%,
      transparent
    );

  border-radius: 50%;
}


.dex-own-trainer-v2__avatar img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  border-radius: 50%;

  display: block;
}


.dex-own-trainer-v2__avatar
> span {
  font-size: 2.25rem;

  font-weight: 1000;

  color:
    var(
      --region-accent,
      #58d8ff
    );
}


/* ============================================================
   COPY
   ============================================================ */

.dex-own-trainer-v2__identity {
  min-width: 0;
}


.dex-own-trainer-v2__kicker {
  display: block;

  margin-bottom: .4rem;

  color:
    var(
      --region-accent,
      #58d8ff
    );

  font-size: .72rem;

  font-weight: 950;

  letter-spacing: .18em;
}


.dex-own-trainer-v2__identity h1 {
  margin: 0;

  max-width: 100%;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  color:
    var(
      --text-primary,
      #f3f8ff
    );

  font-size:
    clamp(
      2.8rem,
      5vw,
      5.6rem
    );

  line-height: .95;

  letter-spacing: -.055em;

  text-shadow:
    0 12px 30px
    rgba(0,0,0,.32);
}


.dex-own-trainer-v2__identity p {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: .65rem;

  margin:
    .8rem 0 0;

  color:
    var(
      --text-muted,
      #98adbc
    );

  font-size: 1rem;
}


.dex-own-trainer-v2__identity p
strong {
  color:
    var(
      --text-primary,
      #fff
    );
}


.dex-own-trainer-v2__identity p
i {
  color:
    var(
      --region-accent,
      #58d8ff
    );

  font-style: normal;

  font-weight: 900;
}


/* ============================================================
   OWN PROFILE CHIPS
   ============================================================ */

.dex-own-profile-v2
.dex-hero__chips {
  position: relative;

  z-index: 9;

  margin-left:
    164px;
}


/* ============================================================
   POLISH RIGHT SIDE
   ============================================================ */

.dex-own-profile-v2
.dex-hero__pokemon {
  transform:
    translateX(6%)
    scale(.94);

  filter:
    saturate(1.05)
    drop-shadow(
      0 18px 24px
      rgba(0,0,0,.26)
    )
    drop-shadow(
      0 0 19px
      color-mix(
        in srgb,
        var(
          --region-accent,
          #58d8ff
        )
        14%,
        transparent
      )
    );
}


.dex-own-profile-v2
.dex-hero__collection {
  top: 38px;

  right: 38px;
}


/* ============================================================
   VIP OWN PROFILE
   ============================================================ */

.dex-own-profile-v2.is-own-vip {
  --vip-gold:
    #ffd84d;

  border-color:
    rgba(
      255,
      216,
      77,
      .72
    );

  background:
    radial-gradient(
      circle at 76% 47%,
      rgba(255,196,30,.12),
      transparent 26%
    ),
    linear-gradient(
      115deg,
      rgba(12,16,25,.98),
      rgba(26,19,7,.96) 67%,
      rgba(7,11,17,.98)
    );
}


.dex-own-profile-v2.is-own-vip
.dex-own-trainer-v2__avatar {
  border-color:
    var(--vip-gold);

  box-shadow:
    0 0 0 6px
      rgba(255,228,115,.035),

    0 0 24px
      rgba(255,214,68,.55),

    0 0 62px
      rgba(255,166,12,.22),

    0 20px 45px
      rgba(0,0,0,.38);
}


.dex-own-profile-v2.is-own-vip
.dex-own-trainer-v2__avatar::before {
  border-color:
    rgba(255,225,114,.5);
}


.dex-own-trainer-v2__crown {
  position: absolute;

  right: -9px;

  top: -9px;

  width: 36px;

  height: 36px;

  display: grid;

  place-items: center;

  border:
    1px solid
    #fff0a1;

  border-radius: 50%;

  color: #1b1100;

  background:
    linear-gradient(
      145deg,
      #fff8bc,
      #ffd23d 55%,
      #a96500
    );

  box-shadow:
    0 0 18px
    rgba(255,207,54,.54);

  font-style: normal;
}


.dex-own-profile-v2.is-own-vip
.dex-own-trainer-v2__kicker {
  color:
    var(--vip-gold);
}


.dex-own-profile-v2.is-own-vip
.dex-own-trainer-v2__identity h1 {
  background:
    linear-gradient(
      105deg,
      #fffdf0,
      #ffe88b 30%,
      #ffc52b 55%,
      #fff2ad 77%,
      #cd8404
    );

  -webkit-background-clip:
    text;

  background-clip:
    text;

  -webkit-text-fill-color:
    transparent;
}


.dex-own-trainer-v2__vip {
  width: max-content;

  display: inline-flex;

  align-items: center;

  gap: .5rem;

  margin-top: .85rem;

  padding:
    .38rem
    .68rem;

  border:
    1px solid
    rgba(255,218,83,.62);

  border-radius: 999px;

  color:
    #fff0a4;

  background:
    rgba(62,42,5,.68);

  box-shadow:
    0 0 21px
    rgba(255,190,22,.13);

  font-size: .66rem;

  font-weight: 950;

  letter-spacing: .12em;
}


.dex-own-trainer-v2__vip b,
.dex-own-trainer-v2__vip i {
  color:
    #ffd74c;

  font-style: normal;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (
  max-width: 1100px
) {
  .dex-own-trainer-v2 {
    width: 62vw;

    grid-template-columns:
      112px
      minmax(0, 1fr);

    gap: 1rem;
  }


  .dex-own-trainer-v2__avatar {
    width: 108px;

    height: 108px;
  }


  .dex-own-profile-v2
  .dex-hero__chips {
    margin-left: 128px;
  }


  .dex-own-profile-v2
  .dex-hero__pokemon {
    transform:
      translateX(10%)
      scale(.86);
  }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (
  max-width: 800px
) {
  .dex-hero.dex-own-profile-v2 {
    min-height: 0;
  }


  .dex-own-trainer-v2 {
    width: 100%;

    grid-template-columns:
      88px
      minmax(0, 1fr);

    margin:
      1.5rem 0
      1rem;
  }


  .dex-own-trainer-v2__avatar {
    width: 84px;

    height: 84px;
  }


  .dex-own-trainer-v2__identity h1 {
    font-size:
      clamp(
        2rem,
        10vw,
        3.3rem
      );
  }


  .dex-own-trainer-v2__identity p {
    font-size: .78rem;
  }


  .dex-own-profile-v2
  .dex-hero__chips {
    margin-left: 0;
  }


  .dex-own-profile-v2
  .dex-hero__pokemon {
    transform:
      scale(.92);
  }


  .dex-own-profile-v2
  .dex-hero__collection {
    top: auto;

    right: auto;
  }
}


/* ============================================================
   MIN POKEDEX MOBILE PERFORMANCE V1
   ============================================================ */

@media (max-width: 800px) {

  .dex-own-profile-v2
  .dex-hero__pokemon {
    filter:
      saturate(1.04)
      drop-shadow(
        0 10px 12px
        rgba(0,0,0,.22)
      ) !important;
  }


  .dex-own-trainer-v2__avatar {
    box-shadow:
      0 0 0 3px
      rgba(255,255,255,.025),
      0 8px 22px
      rgba(0,0,0,.24) !important;
  }


  .dex-own-profile-v2.is-own-vip
  .dex-own-trainer-v2__avatar {
    box-shadow:
      0 0 0 3px
      rgba(255,228,115,.035),
      0 0 14px
      rgba(255,214,68,.42) !important;
  }
}


/* ===== END MIN POKEDEX MOBILE PERFORMANCE ===== */

/* BOOM_POKEDEX_HERO_CLEANUP_V1 */

@media (min-width: 769px) {

  /* Samlingen visas redan i statistiken under hero */
  .dex-hero__collection {
    display: none !important;
  }

  /* Ge Pikachu mer plats på höger sida */
  .dex-hero__pokemon {
    right: 2.5% !important;
    left: auto !important;
    transform: none !important;
  }

}


/* BOOM_POKEDEX_PIKACHU_RIGHT_FIX_V2 */

@media (min-width: 769px) {

  .dex-hero__pokemon {
    left: auto !important;
    right: 0 !important;
    transform: translateX(18%) !important;
  }

}

