.twitch-participant-card {
  --bg-1: #0c2a52;
  --bg-2: #1f5fa7;
  --paper-1: #fff6ea;
  --paper-2: color-mix(in srgb, var(--paper-1) 75%, #d9e9ff);
  --paper-3: color-mix(in srgb, var(--paper-1) 60%, #c7dcff);
  --wood-2: color-mix(in srgb, var(--bg-2) 55%, #b08a57);
  --green-1: #7dd3b0;
  --gold-1: #ffd27a;
  --ink: color-mix(in srgb, var(--bg-1) 88%, #000);
  --accent-2: #ffd27a;
  position: relative;
  width: 200px;
  max-width: 100%;
  height: 300px;
  margin: 0 auto;
  color: #fff;
  font-family: Verdana, sans-serif;
  perspective: 1000px;
  cursor: default;
}

.twitch-participant-card,
.twitch-participant-card * {
  box-sizing: border-box;
}

.twitch-participant-card .card-3d {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  transform-style: preserve-3d;
}

.twitch-participant-card .card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  backface-visibility: hidden;
}

.twitch-participant-card .card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.twitch-participant-card .card-back {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  transform: rotateY(180deg);
}

.twitch-participant-card .card-back .card-logo-back img {
  max-width: 70%;
  max-height: 70%;
  filter: drop-shadow(0 0 10px gold);
}

.twitch-participant-card :where(.pokemon-card) {
  --qb1: var(--accent-2);
  --qb2: #7c5cff;
  position: relative;
  width: 100%;
  max-width: 200px;
  overflow: hidden;
  border: 2px solid var(--wood-2);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  box-shadow: none;
  text-align: center;
  transform-style: preserve-3d;
}

.twitch-participant-card .guardian-preview[data-profile-frame-image="true"] {
  isolation: isolate;
  overflow: visible;
  background-image: var(--profile-frame-backdrop-image) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.twitch-participant-card
  .pokemon-card.guardian-preview[data-profile-frame-image="true"]::before {
  content: "";
  position: absolute;
  inset: calc(0px - var(--profile-frame-outset-y, 28px))
    calc(0px - var(--profile-frame-outset-x, 20px));
  z-index: 20;
  border-radius: inherit;
  background: var(--profile-frame-image) center / 100% 100% no-repeat;
  pointer-events: none;
}

.twitch-participant-card
  .pokemon-card.guardian-preview[data-profile-frame-image-layer="true"]::before {
  content: "";
  inset: calc(0px - var(--profile-frame-backdrop-overlap, 6px));
  z-index: -1;
  background: var(--profile-frame-backdrop-image) center / 100% 100% no-repeat;
}

.twitch-participant-card
  .pokemon-card.guardian-preview[data-profile-frame-image-layer="true"]
  > :is(.card-pv, .card-header) {
  z-index: 42 !important;
}

.twitch-participant-card .pokemon-card .card-header {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 5px 3px;
  overflow: visible;
  font-weight: 700;
}

.twitch-participant-card .pokemon-card .card-name {
  min-width: 0;
  font-size: 14px;
  text-align: left;
}

.twitch-participant-card .pokemon-card .rankName {
  max-width: 150px;
  margin: 0;
  overflow: hidden;
  font-size: 10px;
  line-height: 10px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.twitch-participant-card .pokemon-card .rankPseudo {
  max-width: 150px;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.twitch-participant-card .card-pv {
  position: absolute !important;
  top: 41px;
  right: 5px;
  z-index: 10 !important;
  padding: 2px 6px;
  border-radius: 10px;
  color: #fff;
  background: inherit;
  box-shadow: 0 0 4px rgb(0 0 0 / 30%);
  font-size: 0.7rem;
  font-weight: 700;
}

.twitch-participant-card .pv-label-text {
  margin-right: 0;
  padding: 0 4px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper-1);
  box-shadow: 0 0 2px rgb(0 0 0 / 60%);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.twitch-participant-card .pv-value {
  margin-left: 2px;
  color: var(--paper-1);
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 0 3px var(--ink);
}

.twitch-participant-card .pokemon-card .card-image {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 13px;
  background: rgb(7 11 20 / 50%);
}

.twitch-participant-card .pokemon-card .card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgb(2 4 10 / 82%));
  pointer-events: none;
}

.twitch-participant-card .pokemon-card .card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: unset;
  pointer-events: none;
  user-select: none;
}

.twitch-participant-card .pokemon-card .card-image.card-image--avatar img {
  object-fit: cover;
}

.twitch-participant-card .card-type {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: flex-end;
  padding: 7px 6px 7px 25px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.twitch-participant-card .pokemon-card .card-type .questbar {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.twitch-participant-card .questbar {
  margin: 0;
  padding: 3px;
  overflow: visible;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 0 12px 12px 0;
  background: rgb(2 5 11 / 74%);
  box-shadow:
    0 10px 25px rgb(0 0 0 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 8%);
}

.twitch-participant-card .questbar.questbar--very-low { --qb1: #ff4b6e; --qb2: #ff8b4d; }
.twitch-participant-card .questbar.questbar--low { --qb1: #ff9e42; --qb2: #ffd166; }
.twitch-participant-card .questbar.questbar--medium { --qb1: #f6dd3a; --qb2: #9be15d; }
.twitch-participant-card .questbar.questbar--good { --qb1: #3de58f; --qb2: #10b981; }
.twitch-participant-card .questbar.questbar--complete { --qb1: #3fe0cf; --qb2: #2f7df7; }

.twitch-participant-card .questbar__track {
  position: relative;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  box-shadow: inset 0 2px 8px rgb(0 0 0 / 35%);
}

.twitch-participant-card .questbar__track::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgb(0 0 0 / 25%), transparent 55%);
  pointer-events: none;
}

.twitch-participant-card .questbar__fill {
  position: relative;
  z-index: 1;
  width: calc(var(--p) * 1%);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--qb1), var(--qb2), var(--qb1));
  background-size: 200% 100%;
  box-shadow:
    0 0 18px color-mix(in srgb, var(--qb2) 40%, transparent),
    0 0 10px color-mix(in srgb, var(--qb1) 35%, transparent);
  animation: questbarFlow 2.2s linear infinite;
}

.twitch-participant-card .questbar__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(18px 10px at 18% 40%, rgb(255 255 255 / 35%), transparent 60%),
    radial-gradient(22px 12px at 62% 70%, rgb(255 255 255 / 22%), transparent 65%),
    linear-gradient(90deg, rgb(255 255 255 / 10%), transparent 55%);
  opacity: 0.45;
  mix-blend-mode: overlay;
  animation: questbarTwinkle 3.2s ease-in-out infinite;
  pointer-events: none;
}

.twitch-participant-card .questbar__txt {
  position: absolute !important;
  inset: 0;
  z-index: 3;
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  overflow: hidden;
  color: rgb(255 255 255 / 96%);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-overflow: clip;
  text-shadow: 0 1px 2px rgb(0 0 0 / 84%);
  white-space: nowrap;
  pointer-events: none;
}

.twitch-participant-card .questbar__frame {
  display: none;
}

.twitch-participant-card .questbar--xp.questbar--custom-xp {
  --experience-bar-fill-image: linear-gradient(90deg, var(--qb1), var(--qb2));
  --experience-bar-frame-image: none;
  --experience-bar-fill-tile: 190px;
  --experience-bar-fill-duration: 8.8s;
  --experience-bar-rail-overhang: 13px;
  --experience-bar-fill-progress: 0%;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-right: 17px !important;
}

.twitch-participant-card .questbar--xp.questbar--custom-xp .questbar__track {
  height: 21px;
  overflow: visible;
  isolation: isolate;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.twitch-participant-card .questbar--xp.questbar--custom-xp .questbar__track::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--experience-bar-rail-overhang));
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(80% 160% at 50% 0%, rgb(255 255 255 / 13%), transparent 38%),
    linear-gradient(180deg, rgb(8 14 24 / 98%), rgb(0 2 8 / 98%));
  box-shadow:
    inset 0 1px 5px rgb(255 255 255 / 8%),
    inset 0 -2px 8px rgb(0 0 0 / 72%),
    0 8px 16px rgb(0 0 0 / 42%);
  pointer-events: none;
}

.twitch-participant-card .questbar--xp.questbar--custom-xp .questbar__fill {
  position: absolute;
  inset: 0 auto 0 calc(-1 * var(--experience-bar-rail-overhang));
  width: calc(var(--experience-bar-fill-progress) + var(--experience-bar-rail-overhang)) !important;
  height: auto;
  background:
    var(--experience-bar-fill-image),
    linear-gradient(90deg, var(--qb1), var(--qb2));
  background-position: 0 0, 0 0;
  background-size: var(--experience-bar-fill-tile) 100%, 200% 100%;
  background-repeat: repeat-x, no-repeat;
  filter: saturate(1.24) brightness(1.08) contrast(1.08);
  animation: experienceBarFillFlow var(--experience-bar-fill-duration) linear infinite;
}

.twitch-participant-card
  .questbar--xp.questbar--custom-xp.is-complete
  .questbar__fill {
  width: calc(100% + (var(--experience-bar-rail-overhang) * 2)) !important;
}

.twitch-participant-card .questbar--xp.questbar--custom-xp .questbar__glow,
.twitch-participant-card .questbar--xp.questbar--custom-xp .questbar__track::after {
  inset: 0 calc(-1 * var(--experience-bar-rail-overhang));
}

.twitch-participant-card .questbar--xp.questbar--custom-xp .questbar__glow {
  z-index: 2;
  opacity: 0.62;
  background:
    radial-gradient(16px 8px at 18% 42%, rgb(255 255 255 / 46%), transparent 64%),
    radial-gradient(20px 10px at 72% 58%, rgb(255 255 255 / 28%), transparent 68%),
    linear-gradient(90deg, rgb(255 255 255 / 16%), transparent 56%);
}

.twitch-participant-card
  .questbar--xp.questbar--custom-xp
  .questbar__track::after {
  border-radius: inherit;
  opacity: 0.2;
}

.twitch-participant-card .questbar--xp.questbar--custom-xp .questbar__frame {
  position: absolute;
  inset: -24px;
  z-index: 4;
  display: block;
  background: var(--experience-bar-frame-image) center / 100% 100% no-repeat;
  pointer-events: none;
}

.twitch-participant-card .questbar--xp.questbar--custom-xp .questbar__txt--xp {
  z-index: 5;
  color: rgb(255 255 255 / 98%);
  text-shadow:
    0 1px 2px rgb(0 0 0 / 92%),
    0 0 8px rgb(0 0 0 / 72%);
}

.twitch-participant-card .card-3d > .card-level {
  position: absolute;
  left: -14px;
  bottom: 3px;
  z-index: 24;
  isolation: isolate;
  display: grid;
  width: 46px;
  min-height: 54px;
  padding: 6px 4px 7px;
  place-items: center;
  border: 1px solid rgb(255 247 194 / 78%);
  border-radius: 13px 15px 15px 13px;
  color: #fff7d5;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 85%), transparent 24%),
    radial-gradient(circle at 32% 12%, rgb(255 255 255 / 50%), transparent 31%),
    linear-gradient(145deg, #fff1a8, #e9a72e 43%, #72400d);
  box-shadow:
    0 0 0 1px rgb(70 39 9 / 74%),
    4px 5px 0 rgb(58 31 6 / 88%),
    8px 10px 18px rgb(0 0 0 / 40%),
    inset 2px 2px 0 rgb(255 255 255 / 68%),
    inset -4px -5px 0 rgb(92 48 8 / 42%);
  font-weight: 900;
  pointer-events: none;
  backface-visibility: hidden;
}

.twitch-participant-card .card-3d > .card-level::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 0;
  border-radius: 10px 12px 12px 10px;
  background:
    linear-gradient(155deg, rgb(255 255 255 / 28%), transparent 34%),
    linear-gradient(180deg, rgb(57 31 7 / 8%), rgb(57 31 7 / 28%));
  box-shadow:
    inset 1px 1px 0 rgb(255 255 255 / 42%),
    inset -2px -3px 0 rgb(48 24 4 / 24%);
}

.twitch-participant-card .card-3d > .card-level::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 9px;
  z-index: 1;
  width: 19px;
  height: 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 46%);
  filter: blur(0.2px);
  transform: rotate(-17deg);
}

.twitch-participant-card .card-3d > .participant-card-level--front {
  transform: rotateY(0deg) translateZ(8px) rotate(-5deg);
  transform-origin: left bottom;
}

.twitch-participant-card .card-3d > .participant-card-level--back {
  right: auto;
  left: -12px;
  clip-path: inset(-18px -18px -18px 33px);
  transform: rotateY(180deg) translateZ(8px) rotate(-5deg);
  transform-origin: center bottom;
  box-shadow: none;
}

.twitch-participant-card .card-level .level-label {
  position: relative;
  z-index: 2;
  color: #4a2a08;
  font-size: 0.53rem;
  line-height: 1;
  text-transform: uppercase;
}

.twitch-participant-card .card-level .level-value {
  position: relative;
  z-index: 2;
  margin-top: 3px;
  color: #fffbea;
  font-family: Audiowide, Verdana, sans-serif;
  font-size: 1.08rem;
  line-height: 1;
  text-shadow:
    0 1px #a56416,
    0 2px #633707,
    0 3px #321805,
    0 7px 8px rgb(0 0 0 / 34%);
}

.twitch-participant-card .card-3d > .participant-card-level--custom-xp {
  --experience-bar-level-frame-image: none;
  width: 52px;
  min-height: 61px;
  padding: 10px 6px 11px;
  border: 0;
  border-radius: 0;
  color: #f8fbff;
  background: transparent;
  box-shadow: none;
}

.twitch-participant-card .card-3d > .participant-card-level--custom-xp::before {
  content: "";
  position: absolute;
  inset: -10px -11px;
  z-index: 0;
  border-radius: 0;
  background: var(--experience-bar-level-frame-image) center / 100% 100% no-repeat;
  box-shadow: none;
}

.twitch-participant-card .card-3d > .participant-card-level--custom-xp::after {
  content: none;
}

.twitch-participant-card
  .card-3d
  > .participant-card-level--custom-xp
  :is(.level-label, .level-value) {
  color: #fff;
  text-shadow:
    0 1px 2px rgb(0 0 0 / 95%),
    0 0 8px rgb(0 0 0 / 82%);
}

.twitch-participant-card
  .card-3d
  > .participant-card-level--custom-xp
  .level-label {
  font-size: 0.5rem;
  opacity: 0.96;
}

.twitch-participant-card
  .card-3d
  > .participant-card-level--custom-xp
  .level-value {
  font-size: 1.02rem;
}

.twitch-participant-card .quest-thermometer {
  position: absolute;
  top: 25px;
  right: -1px;
  bottom: 2px;
  z-index: 7;
  display: flex;
  width: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  filter: drop-shadow(0 7px 10px rgb(0 0 0 / 44%));
}

.twitch-participant-card .quest-thermometer__tube {
  position: relative;
  z-index: 1;
  width: 14px;
  min-height: 65px;
  flex: 1 1 auto;
  margin-bottom: -9px;
  padding-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgb(214 243 255 / 40%);
  border-bottom-color: transparent;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(90deg, rgb(255 255 255 / 74%), transparent 40%, rgb(0 0 0 / 38%)), #071225;
  box-shadow: inset 0 0 11px rgb(0 0 0 / 70%);
}

.twitch-participant-card .quest-thermometer__fill {
  position: absolute;
  right: 3px;
  bottom: 2px;
  left: 3px;
  z-index: 1;
  height: calc(var(--p, 0) * 1%);
  border-radius: 999px 999px 7px 7px;
  background: linear-gradient(0deg, var(--qb1), var(--qb2));
  box-shadow: 0 0 10px color-mix(in srgb, var(--qb2) 46%, transparent);
  animation: questThermoHeat 2.7s ease-in-out infinite;
}

.twitch-participant-card .quest-thermometer__bulb {
  position: relative;
  z-index: 3;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgb(225 249 255 / 56%);
  border-radius: 50%;
  background: radial-gradient(circle at 31% 22%, #fff, transparent 24%), linear-gradient(145deg, var(--qb1), var(--qb2));
  box-shadow: 0 0 13px color-mix(in srgb, var(--qb2) 38%, transparent);
}

.twitch-participant-card .quest-thermometer__txt {
  position: relative;
  z-index: 2;
  display: grid;
  width: 30px;
  min-height: 14px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  color: #fff;
  background: rgb(3 13 27 / 45%);
  font-size: 8.6px;
  font-weight: 900;
  text-align: center;
}

.twitch-participant-card .quest-thermometer.is-empty {
  opacity: 0.72;
  filter: grayscale(0.35) drop-shadow(0 5px 8px rgb(0 0 0 / 45%));
}

.twitch-participant-card .quest-thermometer.is-empty .quest-thermometer__fill {
  height: 0 !important;
  opacity: 0;
  animation: none;
}

.twitch-participant-card .card-earned-badges {
  position: absolute;
  top: 50%;
  left: -3px;
  z-index: 8;
  width: 30px;
  padding: 3px;
  border-radius: 7px;
  background: rgb(7 15 30 / 86%);
  transform: translateY(-50%);
}

.twitch-participant-card .card-earned-badges .card-chips {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.twitch-participant-card .card-earned-badges .card-badge-item {
  position: relative;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
}

.twitch-participant-card .card-earned-badges .chip.card-chip {
  position: absolute;
  top: 50%;
  left: 0;
  display: inline-flex;
  width: max-content;
  max-width: 18px;
  min-width: 18px;
  height: 18px;
  align-items: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #26384c, #101a2a);
  transform: translateY(-50%);
  transition: max-width 0.24s ease, transform 0.24s ease;
}

.twitch-participant-card .card-earned-badges .card-badge-item:hover .chip.card-chip,
.twitch-participant-card .card-earned-badges .card-badge-item:focus-within .chip.card-chip,
.twitch-participant-card .card-earned-badges .card-badge-item.is-open .chip.card-chip {
  z-index: 2;
  max-width: 126px;
  padding-right: 5px;
  transform: translate(2px, -50%);
}

.twitch-participant-card .card-earned-badges .chip-icon {
  display: grid;
  width: 18px;
  min-width: 18px;
  height: 18px;
  place-items: center;
  font-size: 13px;
}

.twitch-participant-card .card-earned-badges .card-badge-label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  color: #f7fbff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  transition: max-width 0.24s ease, margin-left 0.24s ease, opacity 0.14s ease;
}

.twitch-participant-card .card-badge-item:hover .card-badge-label,
.twitch-participant-card .card-badge-item:focus-within .card-badge-label,
.twitch-participant-card .card-badge-item.is-open .card-badge-label {
  max-width: 96px;
  margin-left: 3px;
  opacity: 1;
}

.twitch-participant-card.is-compact {
  width: 180px;
  height: 270px;
}

.twitch-participant-card.is-compact .pokemon-card .card-header {
  min-height: 36px;
  padding-top: 5px;
}

.twitch-participant-card.is-compact .pokemon-card .rankPseudo {
  font-size: 12px;
}

.twitch-participant-card.is-compact .card-type {
  min-height: 54px;
  padding-top: 5px;
  padding-bottom: 5px;
}

@keyframes questbarFlow {
  to { background-position: 200% 0; }
}

@keyframes questbarTwinkle {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50% { opacity: 0.6; transform: translateX(8px); }
}

@keyframes experienceBarFillFlow {
  from { background-position: 0 0, 0 0; }
  to { background-position: calc(-1 * var(--experience-bar-fill-tile)) 0, 200% 0; }
}

@keyframes questThermoHeat {
  0%, 100% { background-position: 0 100%; filter: brightness(1); }
  50% { background-position: 0 0; filter: brightness(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .twitch-participant-card .questbar__fill,
  .twitch-participant-card .questbar__glow,
  .twitch-participant-card .quest-thermometer__fill {
    animation: none !important;
  }
}

/* Canonical participant-card thermometer generated from scss/app.css. */

.pokemon-card .quest-thermometer.questbar--very-low {
  --qb1: #38bdf8;
  --qb2: #2563eb;
}
.pokemon-card .quest-thermometer.questbar--low {
  --qb1: #22d3ee;
  --qb2: #60a5fa;
}
.pokemon-card .quest-thermometer.questbar--medium {
  --qb1: #facc15;
  --qb2: #fde68a;
}
.pokemon-card .quest-thermometer.questbar--good {
  --qb1: #fb923c;
  --qb2: #f97316;
}
.pokemon-card .quest-thermometer.questbar--complete {
  --qb1: #ff6b35;
  --qb2: #ef233c;
}

.pokemon-card .quest-thermometer {
  --qt-bulb: 32px;
  --qt-tube: 14px;
  --qt-glass: rgba(214, 243, 255, 0.4);
  --qt-glass-strong: rgba(255, 255, 255, 0.74);
  --qt-glass-soft: rgba(169, 225, 255, 0.16);
  position: absolute;
  top: 25px;
  right: -1px;
  bottom: 2px;
  z-index: 7;
  display: flex;
  width: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  isolation: isolate;
  pointer-events: none;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.44))
    drop-shadow(
      0 0 9px color-mix(in srgb, var(--qb2, #3fe0cf) 22%, transparent)
    );
}

.pokemon-card .quest-thermometer__tube {
  position: relative;
  z-index: 1;
  width: var(--qt-tube);
  flex: 1 1 auto;
  min-height: 65px;
  margin-bottom: -9px;
  padding-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--qt-glass);
  border-bottom-color: transparent;
  border-radius: 999px 999px 8px 8px;
  background:
    linear-gradient(
      90deg,
      var(--qt-glass-strong) 0 10%,
      rgba(255, 255, 255, 0.18) 18%,
      rgba(255, 255, 255, 0.04) 32%,
      transparent 48% 68%,
      rgba(0, 0, 0, 0.38)
    ),
    linear-gradient(
      90deg,
      rgba(92, 207, 255, 0.13),
      transparent 34% 66%,
      rgba(92, 207, 255, 0.1)
    ),
    radial-gradient(circle at 50% 96%, var(--qt-glass-soft), transparent 38%),
    linear-gradient(180deg, rgba(17, 35, 62, 0.48), rgba(3, 8, 18, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 11px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.32),
    0 0 13px color-mix(in srgb, var(--qb2, #3fe0cf) 24%, transparent),
    0 0 10px color-mix(in srgb, var(--qb2, #3fe0cf) 18%, transparent);
}

.pokemon-card .quest-thermometer__tube::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 20px;
  left: 3px;
  z-index: 3;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.78),
    rgba(255, 255, 255, 0.2) 36%,
    transparent 76%
  );
  opacity: 0.86;
}

.pokemon-card .quest-thermometer__tube::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 2px;
  bottom: 21px;
  z-index: 4;
  width: 5px;
  opacity: 0.5;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 5px,
    rgba(232, 250, 255, 0.78) 5px 6px,
    transparent 6px 10px
  );
}

.pokemon-card .quest-thermometer__fill {
  position: absolute;
  right: 3px;
  bottom: 2px;
  left: 3px;
  z-index: 1;
  height: calc(var(--p, 0) * 1%);
  min-height: 0;
  overflow: hidden;
  border-radius: 999px 999px 7px 7px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0.1) 24%,
      transparent 46% 68%,
      rgba(0, 0, 0, 0.16)
    ),
    linear-gradient(
      0deg,
      color-mix(in srgb, var(--qb1, #ff8b4d) 86%, #ffffff 14%),
      color-mix(in srgb, var(--qb2, #3fe0cf) 92%, #ffffff 8%)
    );
  background-size:
    100% 100%,
    100% 165%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.16),
    0 0 10px color-mix(in srgb, var(--qb1, #ff8b4d) 46%, transparent),
    0 0 16px color-mix(in srgb, var(--qb2, #3fe0cf) 38%, transparent);
  transition: height 0.36s ease;
  animation: questThermoHeat 2.7s ease-in-out infinite;
}

.pokemon-card .quest-thermometer__fill::before {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  left: -1px;
  height: 5px;
  border-radius: 999px;
  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.82),
      transparent 66%
    ),
    color-mix(in srgb, var(--qb2, #3fe0cf) 56%, rgba(255, 255, 255, 0.38));
  box-shadow: 0 0 8px color-mix(in srgb, var(--qb2, #3fe0cf) 48%, transparent);
  opacity: 0.94;
}

.pokemon-card .quest-thermometer__fill::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 1px;
  width: 2px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.46),
    rgba(255, 255, 255, 0.06)
  );
  opacity: 0.82;
}

.pokemon-card .quest-thermometer:not(.is-empty) .quest-thermometer__fill {
  min-height: 7px;
}

.pokemon-card .quest-thermometer__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    radial-gradient(
      ellipse at 50% 98%,
      color-mix(in srgb, var(--qb1, #ff8b4d) 52%, transparent),
      transparent 38%
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.24),
      rgba(255, 255, 255, 0.04) 30%,
      transparent 68%
    );
  opacity: 0.68;
  mix-blend-mode: screen;
}

.pokemon-card .quest-thermometer__bulb {
  position: relative;
  z-index: 3;
  display: grid;
  width: var(--qt-bulb);
  height: var(--qt-bulb);
  place-items: center;
  isolation: isolate;
  border: 1px solid rgba(225, 249, 255, 0.56);
  border-radius: 999px;
  background:
    radial-gradient(
      circle at 31% 22%,
      rgba(255, 255, 255, 0.88),
      transparent 24%
    ),
    radial-gradient(
      circle at 50% 58%,
      color-mix(in srgb, var(--qb2, #3fe0cf) 82%, #ffffff 12%),
      transparent 44%
    ),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--qb1, #ff8b4d) 82%, #ffffff 12%),
      color-mix(in srgb, var(--qb2, #3fe0cf) 72%, #071a32)
    );
  box-shadow:
    0 0 0 2px rgba(2, 8, 18, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 15px color-mix(in srgb, var(--qb2, #3fe0cf) 24%, transparent),
    0 0 13px color-mix(in srgb, var(--qb2, #3fe0cf) 38%, transparent),
    inset 0 2px 0 rgba(255, 255, 255, 0.38),
    inset 0 -8px 11px rgba(0, 0, 0, 0.36);
}

.pokemon-card .quest-thermometer__bulb::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 13px;
  height: 30px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 14%, transparent 32%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--qb2, #3fe0cf) 84%, #ffffff 10%),
      color-mix(in srgb, var(--qb1, #ff8b4d) 88%, #ffffff 8%)
    );
  transform: translateX(-50%);
  z-index: -1;
  box-shadow:
    0 0 9px color-mix(in srgb, var(--qb1, #ff8b4d) 26%, transparent),
    0 0 8px color-mix(in srgb, var(--qb1, #ff8b4d) 38%, transparent);
}

.pokemon-card .quest-thermometer__bulb::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 4px 5px 8px rgba(255, 255, 255, 0.2),
    inset -4px -5px 8px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.pokemon-card .quest-thermometer__txt {
  position: relative;
  z-index: 2;
  display: grid;
  width: 30px;
  max-width: 30px;
  min-height: 14px;
  align-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(3, 13, 27, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 4px rgba(0, 0, 0, 0.22);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.78);
}

.pokemon-card .quest-thermometer__value {
  display: block;
  max-width: 30px;
  overflow: hidden;
  font-size: 8.6px;
  line-height: 1;
  letter-spacing: 0;
  text-overflow: clip;
  white-space: nowrap;
}

.pokemon-card
  .quest-thermometer__txt.quest-thermometer__txt--compact
  .quest-thermometer__value {
  font-size: 7.8px;
}

.pokemon-card .quest-thermometer.is-empty {
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.45));
}

.pokemon-card .quest-thermometer.is-empty .quest-thermometer__fill {
  height: 0 !important;
  min-height: 0;
  opacity: 0;
  animation: none;
  box-shadow: none;
}

.pokemon-card .quest-thermometer.is-empty .quest-thermometer__glow {
  opacity: 0.24;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.04) 32%,
    transparent 70%
  );
}

.pokemon-card .quest-thermometer.is-empty .quest-thermometer__bulb {
  background:
    radial-gradient(
      circle at 31% 22%,
      rgba(255, 255, 255, 0.6),
      transparent 24%
    ),
    linear-gradient(145deg, rgba(47, 63, 88, 0.84), rgba(8, 14, 25, 0.96));
  box-shadow:
    0 0 0 2px rgba(2, 8, 18, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -6px 10px rgba(0, 0, 0, 0.44);
}

.pokemon-card .quest-thermometer.is-empty .quest-thermometer__bulb::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 14%, transparent 32%),
    linear-gradient(180deg, rgba(47, 63, 88, 0.62), rgba(8, 13, 24, 0.94));
  box-shadow: none;
}

.pokemon-card .quest-thermometer.is-empty .quest-thermometer__txt {
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.82);
}

.pokemon-card .quest-thermometer.is-complete {
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.44))
    drop-shadow(
      0 0 10px color-mix(in srgb, var(--qb2, #ef233c) 42%, transparent)
    );
  animation: questThermoOverdriveAura 2.8s ease-in-out infinite;
}

.pokemon-card .quest-thermometer.is-complete::before {
  border-color: rgba(255, 224, 186, 0.26);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 28% 76%),
    linear-gradient(
      180deg,
      rgba(255, 231, 190, 0.2),
      rgba(61, 16, 24, 0.48) 48%,
      rgba(24, 4, 10, 0.66)
    );
  animation: questThermoOverdriveGlass 2.8s ease-in-out infinite;
}

.pokemon-card .quest-thermometer.is-complete .quest-thermometer__tube,
.pokemon-card .quest-thermometer.is-complete .quest-thermometer__bulb {
  border-color: rgba(255, 196, 148, 0.84);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--qb2, #ef233c) 28%, transparent),
    0 0 17px color-mix(in srgb, var(--qb2, #ef233c) 52%, transparent),
    inset 0 0 11px rgba(255, 255, 255, 0.24);
}

.pokemon-card .quest-thermometer.is-complete .quest-thermometer__tube::after {
  opacity: 0.74;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 5px,
    rgba(255, 238, 202, 0.92) 5px 6px,
    transparent 6px 10px
  );
}

.pokemon-card .quest-thermometer.is-complete .quest-thermometer__fill {
  animation:
    questThermoHeat 2.7s ease-in-out infinite,
    questThermoOverdriveFill 2.2s ease-in-out infinite;
}

.pokemon-card .quest-thermometer.is-complete .quest-thermometer__glow::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -46%;
  left: -4px;
  z-index: 3;
  height: 44%;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.78) 42%,
    color-mix(in srgb, var(--qb2, #ef233c) 72%, #ffffff 18%) 56%,
    transparent
  );
  opacity: 0;
  filter: blur(0.4px);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: questThermoOverdriveSweep 2.35s ease-in-out infinite;
}

.pokemon-card .quest-thermometer.is-complete .quest-thermometer__bulb {
  animation: questThermoOverdriveBulb 2.8s ease-in-out infinite;
}

.pokemon-card .quest-thermometer.is-complete .quest-thermometer__txt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    rgba(53, 9, 15, 0.38);
  border-color: rgba(255, 230, 190, 0.32);
}

@keyframes questThermoHeat {
  0%,
  100% {
    background-position: 0 100%;
    filter: brightness(1);
  }
  50% {
    background-position: 0 0;
    filter: brightness(1.08);
  }
}

@keyframes questThermoOverdriveAura {
  0%,
  100% {
    filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.44))
      drop-shadow(
        0 0 9px color-mix(in srgb, var(--qb2, #ef233c) 36%, transparent)
      );
  }
  50% {
    filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.44))
      drop-shadow(
        0 0 15px color-mix(in srgb, var(--qb2, #ef233c) 62%, transparent)
      );
  }
}

@keyframes questThermoOverdriveGlass {
  0%,
  100% {
    opacity: 0.86;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      inset 0 -9px 18px rgba(0, 0, 0, 0.36);
  }
  50% {
    opacity: 1;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 -9px 18px rgba(0, 0, 0, 0.36),
      0 0 14px rgba(255, 132, 86, 0.28);
  }
}

@keyframes questThermoOverdriveFill {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      inset 0 -3px 6px rgba(0, 0, 0, 0.16),
      0 0 10px color-mix(in srgb, var(--qb1, #ff6b35) 46%, transparent),
      0 0 16px color-mix(in srgb, var(--qb2, #ef233c) 38%, transparent);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.68),
      inset 0 -3px 6px rgba(0, 0, 0, 0.16),
      0 0 14px color-mix(in srgb, var(--qb1, #ff6b35) 62%, transparent),
      0 0 22px color-mix(in srgb, var(--qb2, #ef233c) 58%, transparent);
  }
}

@keyframes questThermoOverdriveSweep {
  0%,
  16% {
    opacity: 0;
    transform: translateY(0);
  }
  38% {
    opacity: 0.86;
  }
  72% {
    opacity: 0;
    transform: translateY(-330%);
  }
  100% {
    opacity: 0;
    transform: translateY(-330%);
  }
}

@keyframes questThermoOverdriveBulb {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pokemon-card .quest-thermometer,
  .pokemon-card .quest-thermometer::before,
  .pokemon-card .quest-thermometer__fill,
  .pokemon-card .quest-thermometer__bulb,
  .card-3d > .quest-complete-badge::before {
    animation: none;
  }

  .pokemon-card .quest-thermometer__glow::after {
    content: none;
  }
}

