/* Keep the equipped artwork centered inside the shared profile hit target. */
#intro-screen .intro-tools #intro-profile {
  display: grid !important;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  position: relative !important;
  isolation: isolate;
  padding: 0 !important;
  overflow: visible !important;
}
#intro-screen .intro-tools #intro-profile > .emblem-small,
main .game-tools #header-profile > .emblem-small {
  display: block;
  position: relative;
  z-index: 1;
  width: 36px !important;
  height: 36px !important;
  min-width: 0;
  margin: 0;
  aspect-ratio: 1 !important;
  line-height: 0;
}
#intro-screen .intro-tools #intro-profile > .emblem-small {
  width: 36px !important;
  height: 36px !important;
}
#intro-screen .intro-tools #intro-profile > .jewel-icon,
main .game-tools #header-profile > .jewel-icon {
  position: relative;
  z-index: 1;
  margin: 0;
}
main .game-tools #header-profile {
  position: relative !important;
  isolation: isolate;
  padding: 0 !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: visible !important;
}
/* Paint the same flower frame as the selected weekly reward preview. */
#intro-screen .intro-tools #intro-profile.weekly-frame,
main .game-tools #header-profile.weekly-frame {
  border-color: #fff8e8 !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 25%, #fffef7, #f1edda) !important;
  box-shadow: inset 0 1px #fff, 0 2px #9caca3, 0 4px 8px #34544d1c !important;
  outline: none;
}
#intro-screen .intro-tools #intro-profile.weekly-frame::after,
main .game-tools #header-profile.weekly-frame::after {
  content: '';
  display: block !important;
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  z-index: 2;
  border: 0;
  border-radius: 0;
  background: var(--profile-frame-art) center / contain no-repeat !important;
  box-shadow: none !important;
  pointer-events: none;
}
/* The larger profile preview inherits its frame across emblem refreshes. */
#profile-dialog #emblem-profile.weekly-frame {
  outline: none;
  box-shadow: none !important;
}
#profile-dialog #emblem-profile.weekly-frame > .emblem-art::before {
  content: '';
  position: absolute;
  inset: -4px;
  z-index: 2;
  background: var(--profile-frame-art) center / contain no-repeat;
  pointer-events: none;
}
#profile-dialog #emblem-profile.weekly-frame > .emblem-art {
  border-radius: 50%;
  background: radial-gradient(closest-side, #fffdf1 0, #f3eedf 72%, transparent 74%);
}
#profile-dialog #emblem-profile.weekly-frame > .emblem-art > .emblem-sprite {
  transform: scale(.72);
  transform-origin: center;
}
#intro-screen .intro-tools #intro-profile:focus-visible,
main .game-tools #header-profile:focus-visible {
  outline: 3px solid #28746b !important;
  outline-offset: 7px;
}
