#pokedex-page {
  --video-fallback-bg-light:
    linear-gradient(180deg, rgba(10, 37, 64, 0.2) 0%, rgba(6, 24, 48, 0.55) 100%),
    radial-gradient(520px 220px at 15% 18%, rgba(14, 165, 233, 0.34), transparent 62%),
    radial-gradient(460px 260px at 85% 16%, rgba(34, 197, 94, 0.2), transparent 60%),
    linear-gradient(180deg, #d6e6f5 0%, #a5c1de 48%, #6f9ac0 100%);
  --video-fallback-bg-dark:
    linear-gradient(180deg, rgba(2, 6, 23, 0.28) 0%, rgba(2, 6, 23, 0.72) 100%),
    radial-gradient(520px 220px at 15% 18%, rgba(14, 165, 233, 0.22), transparent 62%),
    radial-gradient(460px 260px at 85% 16%, rgba(34, 197, 94, 0.16), transparent 60%),
    linear-gradient(180deg, #162033 0%, #101827 48%, #0b1220 100%);
}

#pokemon-world-wrapper {
  z-index: 2;
  margin-top: -100px;
  min-height: 350px;
}

#pokemon-world-wrapper .parallax-item,
#pokemon-world-wrapper section {
  min-height: 150px;
}

#pokemon-world-wrapper {
  transition: opacity 0.55s ease;
}

#pokemonWorldCanvas {
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.8s ease;
}

#pokemon-world-wrapper.pokemon-world-ready #pokemonWorldCanvas {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  #pokemonWorldCanvas {
    transition: none;
  }
}

.pokedex-view-switcher {
  --pokedex-view-glow-rgb: 14, 165, 233;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  margin-bottom: 0.75rem;
}

.pokedex-view-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(8, 15, 28, 0.16);
  box-shadow: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  text-shadow: 0 1px 5px rgba(2, 6, 23, 0.45);
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pokedex-view-switcher__link:hover,
.pokedex-view-switcher__link:focus-visible {
  color: #fff;
  background: rgba(8, 15, 28, 0.3);
}

.pokedex-view-switcher__link:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.9);
  outline-offset: -2px;
}

.pokedex-view-switcher__link.is-active {
  color: #fff;
  background: rgba(8, 15, 28, 0.42);
  box-shadow: 0 5px 18px rgba(var(--pokedex-view-glow-rgb), 0.16);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  backdrop-filter: blur(12px) saturate(1.12);
  cursor: default;
}

.pokedex-view-switcher--red {
  --pokedex-view-glow-rgb: 239, 68, 68;
}

.pokedex-view-switcher--blue {
  --pokedex-view-glow-rgb: 14, 165, 233;
}

.pokedex-view-switcher__link.is-active:hover,
.pokedex-view-switcher__link.is-active:focus-visible {
  color: #fff;
}

.pokedex-view-switcher__link > span:last-child {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 18px;
}

.pokedex-view-switcher__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  line-height: 0;
}

.pokedex-view-switcher__icon svg,
.pokedex-view-switcher__icon img {
  display: block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  object-fit: contain;
  color: currentColor !important;
}

.pokedex-view-switcher__icon img {
  opacity: 0.62;
}

.pokedex-view-switcher__link.is-active .pokedex-view-switcher__icon img,
.pokedex-view-switcher__link:hover .pokedex-view-switcher__icon img,
.pokedex-view-switcher__link:focus-visible .pokedex-view-switcher__icon img {
  opacity: 0.95;
}

@media (max-width: 575.98px) {
  .pokedex-view-switcher {
    display: flex;
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .pokedex-view-switcher__link {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 0.65rem;
    text-align: center;
  }
}

.pokedex-summary-kicker {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #0369a1;
  width: fit-content;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15), rgba(20, 184, 166, 0.15));
}

.pokedex-guide-card {
  --pokedex-guide-accent: #c7444b;
  background:
    radial-gradient(420px 110px at 92% -16%, #c7444b18, transparent),
    radial-gradient(250px 120px at 8% 94%, #ee777714, transparent),
    var(--my-white-bg-subtle, #f8f9fb);
}

.pokedex-guide-card--info h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.pokedex-guide-header {
  min-height: 2rem;
}

.pokedex-guide-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--bs-secondary-color);
}

.pokedex-guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pokedex-guide-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0369a1;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(20, 184, 166, 0.1));
}

.pokedex-guide-block {
  background: linear-gradient(135deg, #c7444b0d, #ee77770d);
}

.pokedex-guide-block__icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #c7444b25, #ee777725);
  color: var(--pokedex-guide-accent);
}

.pokedex-guide-block__icon svg {
  width: 18px;
  height: 18px;
}

.pokedex-guide-block__text strong {
  color: #a92d36;
}

.pokedex-guide-block__text span {
  color: var(--bs-secondary-color);
}

.pokedex-guide-collapse-toggle {
  color: #a92d36;
  line-height: 1;
  box-shadow: none;
}

.pokedex-guide-collapse-toggle:hover,
.pokedex-guide-collapse-toggle:focus-visible {
  color: #a92d36;
}

.pokedex-guide-collapse-toggle__icon svg {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.2s ease;
}

.pokedex-guide-collapse-toggle:not(.collapsed) .pokedex-guide-collapse-toggle__icon svg {
  transform: rotate(180deg);
}

.pokedex-guide-collapse-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, #0284c7 45%, transparent);
  outline-offset: 3px;
  border-radius: 999px;
}

.pokedex-private-card {
  min-height: 150px;
  --private-block-color: #0369a1;
  background: var(--private-block-color);
  border: 1px solid color-mix(in srgb, var(--private-block-color) 18%, rgba(148, 163, 184, 0.2));
  color: rgba(255, 255, 255, 0.96);
  position: relative;
  overflow: hidden;
}

.pokedex-private-card--interactive {
  cursor: pointer;
  border: 0;
  gap: 0.9rem;
}

.pokedex-private-card__image-shell {
  position: absolute;
  transform: translateY(-50%) rotate(354deg);
  pointer-events: none;
  z-index: 0;
  right: -19%;
  top: 50%;
  opacity: 0.3;
  transition: opacity 0.22s ease;
}

.pokedex-private-card__image-shell--inventory,
.pokedex-private-card__image-shell--achievement {
  width: 256px;
  height: 256px;
}

/* Keep the same image framing on the full-width achievements card. */
.pokedex-private-card__image-shell.pokedex-private-card__image-shell--achievement {
  left: auto;
  right: -32px;
}

.pokedex-private-card__image-shell--reserve {
  width: 250px;
  height: 250px;
  top: 47%;
  right: -13%;
}

.pokedex-private-card__image-shell--reserve img {
  object-fit: contain;
  image-rendering: pixelated;
}

.pokedex-reserve-overview {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.65rem;
  padding: 0.22rem 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.65rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pokedex-reserve-overview.is-ready {
  background: #fff;
  color: #257f4d;
}

.pokedex-reserve-overview--battle.is-ready {
  background: #fff5c2;
  color: #6f5c0d;
}

.pokedex-private-card__image-shell--battle {
  width: 200px;
  height: 200px;
  right: -6%;
  top: 68%;
}

.pokedex-private-card__image-shell--market {
  width: 190px;
  height: 190px;
  right: -12%;
}

.pokedex-private-card__image-shell--casino {
  width: 250px;
  height: 250px;
  right: -20%;
}

.pokedex-private-card__image-shell--combat {
  width: 195px;
  height: 195px;
}

.pokedex-private-card__image {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.18));
}

.pokedex-private-card__image--closed {
  animation: none;
}

.pokedex-private-card__content {
  position: relative;
  z-index: 1;
  margin-left: 0;
}

.pokedex-private-card .pokedex-summary-kicker {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.96);
}

.pokedex-private-card .text-muted,
.pokedex-private-card strong {
  color: inherit;
}



.pokedex-widget-preview.pokemon-preview-stage {
  display: grid;
  place-items: center;
  gap: 1rem;
  min-height: 220px;
  padding: 1rem;
  border-radius: var(--border-radius-20);
  background:
    linear-gradient(180deg, #c7444b12, #ee777718),
    linear-gradient(0deg, #c7444b08 1px, transparent 1px),
    linear-gradient(90deg, #c7444b08 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
}

[data-bs-theme="dark"] .pokedex-widget-preview.pokemon-preview-stage {
  background:
    linear-gradient(180deg, #c7444b12, #ee777718),
    linear-gradient(0deg, #c7444b08 1px, transparent 1px),
    linear-gradient(90deg, #c7444b08 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
}

.pokedex-widget-preview__shell {
  display: grid;
  place-items: center;
  gap: 1.1rem;
  width: 100%;
}

.pokedex-widget-preview .pokemon-bush {
  position: relative;
  right: auto;
  bottom: auto;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  border: 0;
  background: url("../img/pokemon/bush_animated-D0tsE7j.gif") center/140% no-repeat;
  box-shadow: 0 10px 30px rgba(31, 199, 31, 0.18), 0 0 0 3px rgba(28, 140, 34, 0.08);
  z-index: 1;
  pointer-events: none;
  animation: pokemonBushIdle 1.9s ease-in-out infinite;
}

.pokedex-widget-preview .pokemon-bush__label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% + 54px);
  height: calc(100% + 54px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: rgba(17, 24, 39, 0.9);
}

.pokedex-widget-preview .pokemon-bush__label-ring {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(117, 255, 140, 0.18));
  animation: pokemonLabelOrbit 14s linear infinite;
}

.pokedex-widget-preview .pokemon-bush__label-text {
  fill: currentColor;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.pokedex-widget-preview .pokemon-bush__label::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(173, 255, 173, 0.14), 0 0 18px rgba(104, 255, 104, 0.22);
  animation: pokemonLabelHalo 2.2s ease-in-out infinite;
}

[data-bs-theme="dark"] .pokedex-widget-preview .pokemon-bush__label {
  color: rgba(255, 255, 255, 0.88);
}

[data-bs-theme="dark"] .pokedex-widget-preview .pokemon-bush__label-ring {
  filter: drop-shadow(0 0 14px #ee777748);
}

[data-bs-theme="dark"] .pokedex-widget-preview .pokemon-bush {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(127, 166, 255, 0.16);
}

.pokedex-widget-preview .pokemon-bush:hover {
  transform: none;
  filter: none;
}

@keyframes pokemonBushIdle {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes pokemonLabelHalo {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes pokemonLabelOrbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.pokedex-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  position: relative;
  margin: 0 -0.5rem;
}

.pokedex-active-filters:empty {
  display: none !important;
}

.pokedex-active-filters .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--border-radius-10);
  white-space: nowrap;
}

/* Filter borders intentionally override the global .btn transparent border. */
.pokedex-active-filter-chip {
  --active-filter-color: var(--filter-color, var(--region-color, var(--pokemon-type-chip, #64748b)));
  border: 1px solid var(--active-filter-color) !important;
  background: var(--active-filter-color);
  color: #fff;
}

.pokedex-active-filters .filter-btn[data-region] {
  border-color: var(--region-color) !important;
  background: var(--region-color);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--region-color) 30%, transparent);
}

.pokedex-active-filters .filter-btn[data-rarity],
.pokedex-active-filters .filter-btn[data-shiny-filter],
.pokedex-active-filters .filter-btn[data-duplicate-filter] {
  border-color: var(--filter-color) !important;
  background: var(--filter-color);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--filter-color) 30%, transparent);
}

.pokedex-active-filters .filter-btn[data-type-filter] {
  border-color: var(--pokemon-type-chip) !important;
  background: var(--pokemon-type-chip);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--pokemon-type-chip) 30%, transparent);
}

.pokedex-active-filter-chip__remove {
  line-height: 1;
  opacity: 0.82;
}

.pokedex-active-filter__icon svg,
.pokedex-active-filter-chip svg {
  width: 14px;
  height: 14px;
}

.pokedex-shiny-filters .filter-btn,
.pokedex-rarity-filters .filter-btn {
  border-radius: var(--border-radius-10);
  border: 1px solid color-mix(in srgb, var(--filter-color) 35%, transparent) !important;
  background: color-mix(in srgb, var(--filter-color) 14%, transparent);
  color: color-mix(in srgb, var(--filter-color) 80%, #000);
  transition: all 0.35s ease-in-out;
}

.pokedex-shiny-filters .filter-btn:hover,
.pokedex-shiny-filters .filter-btn:focus-visible,
.pokedex-rarity-filters .filter-btn:hover,
.pokedex-rarity-filters .filter-btn:focus-visible {
  background: color-mix(in srgb, var(--filter-color) 90%, transparent);
  color: #fff;
  border-color: var(--filter-color) !important;
}

.pokedex-shiny-filters .filter-btn.active,
.pokedex-rarity-filters .filter-btn.active {
  background: var(--filter-color);
  color: #fff;
  border-color: var(--filter-color) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--filter-color) 30%, transparent);
}

.pokedex-duplicate-filters .filter-btn {
  border-radius: var(--border-radius-10);
  border: 1px solid color-mix(in srgb, var(--filter-color) 35%, transparent) !important;
  background: color-mix(in srgb, var(--filter-color) 14%, transparent);
  color: color-mix(in srgb, var(--filter-color) 80%, #000);
  transition: all 0.35s ease-in-out;
}

.pokedex-duplicate-filters .filter-btn:hover,
.pokedex-duplicate-filters .filter-btn:focus-visible {
  background: color-mix(in srgb, var(--filter-color) 90%, transparent);
  color: #fff;
  border-color: var(--filter-color) !important;
}

.pokedex-duplicate-filters .filter-btn.active {
  background: var(--filter-color);
  color: #fff;
  border-color: var(--filter-color) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--filter-color) 30%, transparent);
}

[data-duplicate-filter="all"] { --filter-color: #64748b; }
[data-duplicate-filter="duplicates"] { --filter-color: #0ea5e9; }
[data-duplicate-filter="singles"] { --filter-color: #22c55e; }

.pokedex-filter-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pokedex-filter-section--actions {
  margin-top: auto;
}

.pokedex-filter-section--meta {
  margin-top: auto;
}

@media (max-width: 767.98px) {
  .pokedex-mobile-filters-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 100%;
    padding: 1rem;
  }

  .pokedex-mobile-filter-section {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  }

  .pokedex-mobile-filter-section:last-of-type {
    border-bottom: 0;
  }

  .pokedex-mobile-filter-section h6 {
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
  }

  .pokedex-mobile-filter-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
  }

  .pokedex-mobile-filter-group summary::-webkit-details-marker {
    display: none;
  }

  .pokedex-mobile-filter-group__chevron {
    flex: 0 0 auto;
    display: inline-flex;
    color: currentColor;
    transition: transform 0.18s ease;
  }

  .pokedex-mobile-filter-group[open]:not(.is-closing) .pokedex-mobile-filter-group__chevron {
    transform: rotate(180deg);
  }

  .pokedex-mobile-filter-group__chevron svg {
    width: 14px;
    height: 14px;
  }

  .pokedex-mobile-filter-group__body {
    overflow: hidden;
    transition: height 0.22s ease, opacity 0.18s ease;
  }

  .pokedex-mobile-filter-group:not([open]) .pokedex-mobile-filter-group__body,
  .pokedex-mobile-filter-group.is-closing .pokedex-mobile-filter-group__body {
    height: 0;
    opacity: 0;
  }

  .pokedex-mobile-filter-sheet .filter-btn,
  [data-mobile-filter-sheet="pokedex"] .filter-btn {
    padding: 0.38rem 0.62rem;
    font-size: 0.82rem;
  }

  .pokedex-mobile-filter-sheet .pokedex-type-filters .filter-btn,
  [data-mobile-filter-sheet="pokedex"] .pokedex-type-filters .filter-btn {
    max-width: 100%;
    min-height: 36px;
  }

  @media (prefers-reduced-motion: reduce) {
    .pokedex-mobile-filter-group__chevron,
    .pokedex-mobile-filter-group__body {
      transition: none;
    }
  }
}


/* Couleurs personnalisées par région */
[data-region="all"] { --region-color: #64748b; }
[data-region="kanto"] { --region-color: #22c55e; }
[data-region="johto"] { --region-color: #eab308; }
[data-region="hoenn"] { --region-color: #ef4444; }
[data-region="sinnoh"] { --region-color: #a855f7; }
[data-region="unys"] { --region-color: #52525b; }
[data-region="kalos"] { --region-color: #ec4899; }
[data-region="alola"] { --region-color: #f97316; }
[data-region="galar"] { --region-color: #8b5cf6; }
[data-region="hisui"] { --region-color: #0ea5e9; }
[data-region="paldea"] { --region-color: #14b8a6; }
[data-region="unknown"] { --region-color: #71717a; }

.pokedex-region-filters .filter-btn {
  border-radius: var(--border-radius-10);;
  border: 1px solid color-mix(in srgb, var(--region-color) 35%, transparent) !important;
  background: color-mix(in srgb, var(--region-color) 18%, transparent);
  color: color-mix(in srgb, var(--region-color) 80%, #000);
  transition: all 0.35s ease-in-out;
}

.pokedex-region-filters .filter-btn:hover,
.pokedex-region-filters .filter-btn:focus-visible {
  background: color-mix(in srgb, var(--region-color) 90%, transparent);
  color: #ffffff;
  border-color: var(--region-color) !important;
}

.pokedex-region-filters .filter-btn.active {
  background: var(--region-color);
  color: #fff;
  border-color: var(--region-color) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--region-color) 30%, transparent);
}

[data-shiny-filter="all"] { --filter-color: #64748b; }
[data-shiny-filter="shiny"] { --filter-color: #eab308; }
[data-shiny-filter="normal"] { --filter-color: #0ea5e9; }

[data-rarity="all"] { --filter-color: #64748b; }
[data-rarity="common"] { --filter-color: rgba(68, 84, 115, 0.9); }
[data-rarity="uncommon"] { --filter-color: rgba(53, 126, 83, 0.9); }
[data-rarity="rare"] { --filter-color: rgba(177, 121, 39, 0.95); }
[data-rarity="epic"] { --filter-color: rgba(115, 66, 171, 0.95); }
[data-rarity="legendary"] { --filter-color: rgba(111, 18, 18, 0.95); }
[data-rarity="special"] { --filter-color: #14b8a6; }
[data-rarity="mythical"] { --filter-color: rgba(115, 66, 171, 0.95); }

.pokedex-type-filters .filter-btn {
  --pokemon-type-chip: #9fa4a8;
  gap: 0.38rem;
  border-radius: var(--border-radius-10);
  border: 1px solid color-mix(in srgb, var(--pokemon-type-chip) 42%, transparent) !important;
  background: color-mix(in srgb, var(--pokemon-type-chip) 16%, transparent);
  color: color-mix(in srgb, var(--pokemon-type-chip) 74%, #000);
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.35s ease-in-out;
}

.pokedex-type-filters .filter-btn:hover,
.pokedex-type-filters .filter-btn:focus-visible {
  background: color-mix(in srgb, var(--pokemon-type-chip) 88%, transparent);
  color: #fff;
  border-color: var(--pokemon-type-chip) !important;
}

.pokedex-type-filters .filter-btn.active {
  background: var(--pokemon-type-chip);
  color: #fff;
  border-color: var(--pokemon-type-chip) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--pokemon-type-chip) 30%, transparent);
}

.pokedex-type-filter__icon svg {
  width: 15px;
  height: 15px;
}


.pokedex-card {
  --pokemon-type-primary: #9fa4a8;
  --pokemon-type-secondary: var(--pokemon-type-primary);
  --special-card-color: var(--pokemon-type-primary);
  --special-card-background: radial-gradient(220px 140px at 88% 14%, rgba(255, 255, 255, 0.28), transparent 60%), radial-gradient(180px 120px at 82% 38%, rgba(255, 255, 255, 0.18), transparent 62%), linear-gradient(135deg, color-mix(in srgb, var(--pokemon-type-primary) 82%, #ffffff 18%) 0%, color-mix(in srgb, var(--pokemon-type-primary) 74%, #ffffff 26%) 68%, color-mix(in srgb, var(--pokemon-type-secondary) 72%, #ffffff 28%) 150%);
  --card-spacing: 1rem;
  margin: 0.5rem;
  width: calc(100% / 2 - var(--card-spacing));
  min-width: 0;
  height: 220px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--special-card-background);
  box-shadow: 0 18px 30px rgba(40, 58, 91, 0.18);
  transition: box-shadow 0.28s ease;
  contain: layout style paint;
  will-change: transform, opacity;
}

.pokedex-card[data-rarity="special"] {
  --special-card-background: radial-gradient(220px 140px at 88% 14%, rgba(255, 255, 255, 0.28), transparent 60%), radial-gradient(180px 120px at 82% 38%, rgba(255, 255, 255, 0.18), transparent 62%), linear-gradient(135deg, color-mix(in srgb, var(--special-card-color) 82%, #ffffff 18%) 0%, color-mix(in srgb, var(--special-card-color) 74%, #ffffff 26%) 68%, color-mix(in srgb, var(--special-card-color) 72%, #ffffff 28%) 150%);
}

.pokedex-card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -80px;
  width: 250px;
  height: 250px;
  transform: translateY(-50%) rotate(9deg);
  background: url("../img/pokemon/pokeball-XHyLlyd.svg") center / contain no-repeat;
  opacity: 0.1;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.88) 42%, rgba(0, 0, 0, 0.55) 52%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.88) 42%, rgba(0, 0, 0, 0.55) 52%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.pokedex-card__variant-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  z-index: 3;
}

.pokedex-card__shiny,
.pokedex-card__form-toggle {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: #fff7a8;
  filter: drop-shadow(0 3px 10px rgba(255, 245, 156, 0.35));
  background: transparent;
  border: 0;
  padding: 0;
}

.pokedex-card__shiny svg,
.pokedex-card__form-toggle svg {
  width: 18px;
  height: 18px;
  transform-origin: center;
}

.pokedex-card__shiny svg {
  animation: pokedexShinyIconPulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 245, 156, 0.25)); /* On applique le filtre statiquement ici */
}

.pokedex-card__form-toggle {
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.24));
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.pokedex-card__form-toggle:hover,
.pokedex-card__form-toggle:focus-visible {
  color: #fff;
  transform: scale(1.1);
}

.pokedex-card__form-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
  border-radius: 4px;
}

.pokedex-card__form-count {
  position: absolute;
  right: -0.45rem;
  bottom: -0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.9rem;
  height: 0.9rem;
  padding: 0 0.16rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.82);
  font-size: 0.54rem;
  font-weight: 800;
  line-height: 1;
}

.pokedex-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
}

.pokedex-card__info-top,
.pokedex-card__info-bottom,
.pokedex-card__meta {
  position: relative;
  z-index: 2;
}

.pokedex-card__info-top .pokedex-card__meta {
  gap: 0.2rem;
  max-width: calc(100% - 2rem);
}

.pokedex-card__info-bottom .pokedex-card__meta {
  gap: 0;
  max-width: 100%;
}

.pokedex-card__info-bottom {
  margin-top: auto;
}

.pokedex-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.pokedex-card__row + .pokedex-card__row {
  margin-top: 0.65rem;
}

.pokedex-card__number {
  letter-spacing: 0.04em;
}

.pokedex-card__name {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.08;
  max-width: 10ch;
}

.pokedex-card__types {
  gap: 0.45rem;
  margin-bottom: 0;
}

.pokedex-card__row--types {
  gap: 0.45rem;
}

.pokedex-card__body {
  width: 100%;
}

.pokedex-card__row--obtention {
  display: none !important;
}

.pokedex-type-chip {
  --pokemon-type-chip: #9fa4a8;
  gap: 0.38rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--border-radius-10);
  background: var(--pokemon-type-chip);
  font-size: 0.68rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.pokedex-type-chip__icon svg {
  width: 14px;
  height: 14px;
}

.pokedex-card__rarity {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
}

.pokedex-card__rarity--common { background: rgba(68, 84, 115, 0.35); }
.pokedex-card__rarity--uncommon { background: rgba(53, 126, 83, 0.35); }
.pokedex-card__rarity--rare { background: rgba(177, 121, 39, 0.35); }
.pokedex-card__rarity--epic { background: rgba(115, 66, 171, 0.38); }
.pokedex-card__rarity--legendary { background: rgba(111, 18, 18, 0.38); box-shadow: 0 0 0 1px rgba(244, 208, 111, 0.22), 0 8px 18px rgba(167, 42, 42, 0.16); text-shadow: 0 1px 0 rgba(56, 9, 9, 0.45); }
.pokedex-card__rarity--special { background: linear-gradient(135deg, rgba(14, 165, 233, 0.42), rgba(20, 184, 166, 0.42)); box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.22), 0 8px 18px rgba(20, 184, 166, 0.14); text-shadow: 0 1px 0 rgba(8, 47, 73, 0.35); }
.pokedex-card__rarity--mythical { background: rgba(115, 66, 171, 0.38); }

.pokedex-card__form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(100%, 10rem);
  padding: 0.22rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(15, 23, 42, 0.24);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pokedex-card__region {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--region-color) 80%, rgba(0,0,0,0.2));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--region-color) 40%, rgba(255,255,255,0.2));
}

.pokedex-card__sprite-shell {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.65rem 0.35rem 0.35rem 0;
  z-index: 1;
  pointer-events: none;
}

.pokedex-card__sprite {
  width: 148px;
  height: 148px;
  object-fit: contain;
  position: relative;
  image-rendering: pixelated;
  z-index: 1;
  align-self: center;
  justify-self: flex-end;
  filter: drop-shadow(0 12px 22px rgba(36, 48, 74, 0.26));
}

.pokedex-card__sprite--fallback {
  display: grid;
  place-items: center;
  border-radius: var(--border-radius-10);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
}

.pokedex-pill {
  gap: 0.42rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.16);
}

.pokedex-pill__icon svg {
  width: 15px;
  height: 15px;
}

@keyframes pokedexShinyIconPulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.9;
  }
  35% {
    transform: scale(1.08) rotate(-6deg);
    opacity: 1;
  }
  60% {
    transform: scale(0.96) rotate(5deg);
    opacity: 0.96;
  }
}

.btn-pokedex-history  {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.65;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, color 0.28s ease;
}

.btn-pokedex-history :hover,
.btn-pokedex-history:focus-visible {
  transform: scale(1.1);
  opacity: 1;
}

.btn-pokedex-history svg {
  width: 18px;
  height: 18px;
  transition: color 0.28s ease;
}

#pokemon-history-table tbody tr td {
  background: transparent;
}

#pokemon-history-table tbody tr:nth-last-of-type(2) td {
  border-bottom-width: none;
}

.pokemon-history-count-info {
  font-size: 0.9rem;
  color: #4b5879;
  font-weight: 500;
}

.xds-pagniation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0;
}

.xds-pagniation .page-link {
  display: inline-flex;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #34405f;
  text-align: center;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.xds-pagniation .xds-pagniation__current {
  min-width: 96px;
  color: #34405f;
  font-weight: 700;
}

.xds-pagniation button.page-link:hover,
.xds-pagniation button.page-link:focus-visible {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #2d63d3;
}

.xds-pagniation .page-item.disabled .page-link {
  opacity: 0.35;
}

[data-bs-theme="dark"] .xds-pagniation .page-link {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #dbe4f3;
}

[data-bs-theme="dark"] .xds-pagniation .xds-pagniation__current {
  color: #dbe4f3;
}

[data-bs-theme="dark"] .xds-pagniation button.page-link:hover,
[data-bs-theme="dark"] .xds-pagniation button.page-link:focus-visible {
  color: #8fb3ff;
}

#pokemonHistoryPagination,
#pokeslotsHistoryPagination,
#marketHistoryPagination,
.pokemon-history-pagination,
.pokemon-battle-history-pagination {
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pokemon-battle-history-modal-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
}

.pokemon-battle-history-stat {
  display: grid;
  gap: 0.15rem;
  padding: 0.72rem 0.8rem;
}

.pokemon-battle-history-stat strong {
  font-size: 1.15rem;
  line-height: 1;
}

.pokemon-battle-history-stat small {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pokemon-battle-history-modal-panel {
  min-width: 0;
}

.pokemon-battle-history-modal-table-wrap {
  max-height: 60vh;
  overflow: auto;
}

.pokemon-battle-history-modal-table {
  min-width: 680px;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: transparent;
  --bs-table-border-color: rgba(75, 88, 121, 0.14);
}

.pokemon-battle-history-modal-table th,
.pokemon-battle-history-modal-table td {
  background: transparent !important;
}

.pokemon-battle-history-modal-table th {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pokemon-battle-history-opponent {
  color: inherit;
}

.pokemon-battle-history-result {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.pokemon-battle-history-result--victory,
.pokemon-battle-history-result--capture {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.14);
}

.pokemon-battle-history-result--defeat {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.14);
}

.pokemon-battle-history-result--flee {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.12);
}

.pokemon-battle-history-result--draw {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.14);
}

.pokemon-battle-history-state {
  border: 1px solid rgba(75, 88, 121, 0.12);
  border-radius: var(--border-radius-10);
  padding: 0.85rem;
  background: transparent;
}

.pokemon-battle-history-state--danger {
  border-color: rgba(239, 68, 68, 0.28);
}

#pokemonHistoryPagination .page-link,
#pokeslotsHistoryPagination .page-link,
#marketHistoryPagination .page-link,
.pokemon-history-pagination .page-link,
#pokemonBattleHistoryModal .page-link,
#marketModalContent .page-link {
  border: 1px solid #d8deeb2c;
  background: #fff;
  color: #34405f;
  border-radius: var(--border-radius-10);
  min-width: 40px;
  text-align: center;
}

#marketHistoryPagination .market-pagination-current,
.pokemon-history-pagination .market-pagination-current {
  min-width: 96px;
  color: #34405f;
  font-weight: 700;
}

#pokemonHistoryPagination .page-item.active .page-link,
#pokeslotsHistoryPagination .page-item.active .page-link,
#marketHistoryPagination .page-item.active .page-link,
.pokemon-history-pagination .page-item.active .page-link,
#pokemonBattleHistoryModal .page-item.active .page-link,
#marketModalContent .page-item.active .page-link {
  background: #2d63d3;
  border-color: #2d63d3;
  color: #fff;
}

@media (max-width: 1199.98px) {
  .pokemon-battle-history-modal-stats {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }
}

[data-bs-theme="dark"] .pokedex-region-filters .filter-btn {
  background: color-mix(in srgb, var(--region-color) 10%, transparent);
  color: color-mix(in srgb, var(--region-color) 80%, #fff);
  border-color: color-mix(in srgb, var(--region-color) 20%, transparent) !important;
}

[data-bs-theme="dark"] .pokedex-region-filters .filter-btn:hover,
[data-bs-theme="dark"] .pokedex-region-filters .filter-btn:focus-visible {
  background: color-mix(in srgb, var(--region-color) 80%, transparent);
  color: #fff;
  border-color: var(--region-color) !important;
}

[data-bs-theme="dark"] .pokedex-region-filters .filter-btn.active {
  background: var(--region-color);
  color: #fff;
  border-color: var(--region-color) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--region-color) 20%, transparent);
}

[data-bs-theme="dark"] .pokedex-shiny-filters .filter-btn,
[data-bs-theme="dark"] .pokedex-rarity-filters .filter-btn {
  background: color-mix(in srgb, var(--filter-color) 10%, transparent);
  color: color-mix(in srgb, var(--filter-color) 80%, #fff);
  border-color: color-mix(in srgb, var(--filter-color) 20%, transparent) !important;
}

[data-bs-theme="dark"] .pokedex-shiny-filters .filter-btn:hover,
[data-bs-theme="dark"] .pokedex-shiny-filters .filter-btn:focus-visible,
[data-bs-theme="dark"] .pokedex-rarity-filters .filter-btn:hover,
[data-bs-theme="dark"] .pokedex-rarity-filters .filter-btn:focus-visible {
  background: color-mix(in srgb, var(--filter-color) 80%, transparent);
  color: #fff;
  border-color: var(--filter-color) !important;
}

[data-bs-theme="dark"] .pokedex-shiny-filters .filter-btn.active,
[data-bs-theme="dark"] .pokedex-rarity-filters .filter-btn.active {
  background: var(--filter-color);
  color: #fff;
  border-color: var(--filter-color) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--filter-color) 20%, transparent);
}

[data-bs-theme="dark"] .pokedex-type-filters .filter-btn {
  background: color-mix(in srgb, var(--pokemon-type-chip) 12%, transparent);
  color: color-mix(in srgb, var(--pokemon-type-chip) 84%, #fff);
  border-color: color-mix(in srgb, var(--pokemon-type-chip) 24%, transparent) !important;
}

[data-bs-theme="dark"] .pokedex-type-filters .filter-btn:hover,
[data-bs-theme="dark"] .pokedex-type-filters .filter-btn:focus-visible {
  background: color-mix(in srgb, var(--pokemon-type-chip) 82%, transparent);
  color: #fff;
  border-color: var(--pokemon-type-chip) !important;
}

[data-bs-theme="dark"] .pokedex-type-filters .filter-btn.active {
  background: var(--pokemon-type-chip);
  color: #fff;
  border-color: var(--pokemon-type-chip) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--pokemon-type-chip) 20%, transparent);
}

[data-bs-theme="dark"] .pokemon-history-count-info {
  color: #b4c0d8;
}

[data-bs-theme="dark"] #pokemonHistoryPagination .page-link,
[data-bs-theme="dark"] #pokeslotsHistoryPagination .page-link,
[data-bs-theme="dark"] #marketHistoryPagination .page-link,
[data-bs-theme="dark"] .pokemon-history-pagination .page-link,
[data-bs-theme="dark"] #pokemonBattleHistoryModal .page-link,
[data-bs-theme="dark"] #marketModalContent .page-link {
  background: var(--my-dark-bg-subtle, #1f242a);
  color: #d0d8e6;
}

[data-bs-theme="dark"] #marketHistoryPagination .market-pagination-current,
[data-bs-theme="dark"] .pokemon-history-pagination .market-pagination-current {
  color: #d0d8e6;
}

[data-bs-theme="dark"] .pokedex-guide-text {
  color: #cbd5e1;
}

[data-bs-theme="dark"] .pokedex-guide-tag {
  color: #5eead4;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(20, 184, 166, 0.15));
}

[data-bs-theme="dark"] .pokedex-guide-block {
  background: linear-gradient(135deg, #c7444b0d, #ee77770d);
  box-shadow: none;
}

[data-bs-theme="dark"] .pokedex-guide-block__icon {
  background: linear-gradient(135deg, #c7444b25, #ee777725);
  color: #f28b91;
}

[data-bs-theme="dark"] .pokedex-guide-block__text strong,
[data-bs-theme="dark"] .pokedex-guide-block__text span {
  color: #e2e8f0;
}

[data-bs-theme="dark"] .pokedex-private-card {
  background: var(--private-block-color);
}



@media (hover: hover) and (pointer: fine) {
  .pokedex-private-card:hover .pokedex-private-card__image-shell {
    opacity: 0.8;
  }
}

@media (max-width: 991.98px) {
  .pokedex-private-card--interactive {
    justify-content: center;
    align-items: center;
    padding-top: 1rem !important;
  }

  .pokedex-private-card__image-shell {
    right: -8%;
    top: 50%;
    transform: translateY(-50%);
  }

  .pokedex-private-card__image-shell--inventory,
  .pokedex-private-card__image-shell--achievement {
    width: 172px;
    height: 172px;
  }

  .pokedex-private-card__image-shell--reserve {
    width: 150px;
    height: 150px;
    right: -1%;
  }

  .pokedex-private-card__image-shell--quest {
    width: 180px;
    height: 180px;
  }

  .pokedex-private-card__image-shell--market {
    width: 150px;
    height: 150px;
    right: -2%;
  }

  .pokedex-private-card__image-shell--casino {
    width: 200px;
    height: 200px;
  }

  .pokedex-private-card__image-shell--combat {
    width: 155px;
    height: 155px;
  }

  .pokedex-private-card__content {
    margin-left: 0;
    text-align: left;
    width: 100%;
    text-shadow: none;
  }
}

@media (max-width: 575.98px) {
  .pokedex-private-card--interactive {
    min-height: 150px;
    padding-top: 0.9rem !important;
  }

  .pokedex-private-card__image-shell {
    top: 87%;
    left: 20%;
    transform: translateY(-50%) rotate(356deg);
  }
  .pokedex-private-card__image-shell--inventory,
  .pokedex-private-card__image-shell--achievement {
    width: 220px;
    height: 220px;
    left: 12%;
  }

  .pokedex-private-card__image-shell--reserve {
    width: 160px;
    height: 160px;
    top: 70%;
    left: 31%;
  }

  .pokedex-private-card__image-shell--battle {
    width: 140px;
    height: 140px;
    left: 45%;
  }

  .pokedex-private-card__image-shell--market {
    width: 132px;
    height: 132px;
    left: 26%;
  }

  .pokedex-private-card__image-shell--casino {
    width: 180px;
    height: 180px;
    left: 26%;
  }

  .pokedex-private-card__content p {
    font-size: 0.92rem;
    line-height: 1.45;
  }

}

@media (max-width: 1399px) {
  .pokedex-card {
    width: calc(100% / 3 - var(--card-spacing));
  }
}

@media (min-width: 768px) {
  .pokedex-card {
    width: calc(100% / 4 - var(--card-spacing));
  }

  .pokedex-card__row--obtention {
    display: flex !important;
  }
}

@media (max-width: 640px) {
  #pokemon-world-wrapper .parallax-item > .row {
    width: auto;
    max-width: none;
    margin-inline: 0;
  }

  .pokedex-card {
    width: calc(100% / 2 - var(--card-spacing));
    height: 140px;
    padding: 12px;
  }

  .pokedex-card::after {
    right: -10px;
    width: 130px;
    height: 130px;
    opacity: 0.12;
  }

  .pokedex-card__number {
    font-size: 0.82rem;
  }

  .pokedex-card__shiny svg {
    width: 16px;
    height: 16px;
  }

  .pokedex-card__form-toggle svg {
    width: 16px;
    height: 16px;
  }

  .pokedex-card__name {
    font-size: 0.95rem;
    line-height: 1.15;
    max-width: 9ch;
  }

  .pokedex-card__meta {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  }

  .pokedex-card__info-bottom .pokedex-card__meta {
    max-width: 100%;
  }

  .pokedex-card__row + .pokedex-card__row {
    margin-top: 0.45rem;
  }

  .pokedex-card__types {
    gap: 0.28rem;
  }

  .pokedex-type-chip {
    padding: 0.14rem 0.36rem;
    font-size: 0.46rem;
    border-radius: var(--border-radius-10);
  }

  .pokedex-type-chip__icon svg {
    width: 10px;
    height: 10px;
  }

  .pokedex-card__rarity,
  .pokedex-card__region {
    padding: 0.14rem 0.36rem;
    font-size: 0.46rem;
    letter-spacing: 0.02em;
  }

  .pokedex-card__form {
    min-height: 1.1rem;
    padding: 0.14rem 0.36rem;
    font-size: 0.46rem;
  }

  .pokedex-card__sprite-shell {
    inset: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    padding: 0.65rem 0.1rem 0.2rem 0;
  }

  .pokedex-card__sprite {
    width: 102px;
    height: 102px;
    flex: none;
  }

  .pokedex-card {
    min-height: 140px;
    padding: 12px;
  }
}

@media (max-width: 360px) {
  .pokedex-card {
    width: calc(100% / 2 - var(--card-spacing));
  }
}

.pokedex-list-footer {
  gap: 0.75rem;
}

.pokedex-count-info {
  font-size: 0.9rem;
  color: #1f1f1f;
  font-weight: 500;
}

#pokedexPagination {
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#pokedexPagination .page-link {
  border: 1px solid #d8deeb;
  background: #fff;
  color: #1d1d1d;
  border-radius: var(--border-radius-10);;
  min-width: 40px;
  text-align: center;
}

#pokedexPagination .page-item.active .page-link {
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
  border-color: #0ea5e9;
  color: #fff;
}

[data-bs-theme="dark"] .pokedex-count-info {
  color: #94a3b8;
}

[data-bs-theme="dark"] #pokedexPagination .page-link {
  background: var(--my-dark-bg-subtle, #1f242a);
  color: #cbd5e1;
  border-color: rgba(14, 165, 233, 0.2);
}

[data-bs-theme="dark"] #pokedexPagination .page-item.active .page-link {
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
  border-color: #0ea5e9;
  color: #000000;
}

@media (max-width: 640px) {
  .pokedex-list-footer {
    flex-direction: column;
    align-items: center !important;
    text-align: center;
  }

  #pokedexPagination {
    justify-content: center;
  }

  #pokemonHistoryPagination,
  #pokeslotsHistoryPagination,
  #marketHistoryPagination,
  .pokemon-history-pagination,
  .pokemon-battle-history-pagination {
    justify-content: center;
  }
}
.dreamticket-badge__content {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dreamticket-refill-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.9;
  margin-right: 0.2rem;
}

.dreamticket-refill-inline__time {
  white-space: nowrap;
}

.dreamticket-hourglass-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 50%;
  animation: dreamticket-hourglass-rotation 3.8s ease-in-out infinite;
}

.dreamticket-hourglass-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes dreamticket-hourglass-rotation {
  0% {
    transform: rotate(-180deg);
  }
  34% {
    transform: rotate(-180deg);
  }
  52% {
    transform: rotate(180deg);
  }
  86% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(-180deg);
  }
}

.dreamticket-inline-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* The category overview and achievement rows share one scrolling region. */
:is(#pokemonAchievementsModal, #profileAchievementsModal) > .modal-dialog > .modal-content {
  height: min(850px, calc(100dvh - 3.5rem));
}

:is(#pokemonAchievementsModal, #profileAchievementsModal) > .modal-dialog > .modal-content > .modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.pokemon-achievements-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 3px;
}

.pokemon-achievement-category {
  color: var(--bs-body-color);
  font: inherit;
  cursor: pointer;
}

.pokemon-achievement-category:focus-visible {
  outline: 3px solid var(--bs-primary);
  outline-offset: 2px;
}

.pokemon-achievement-category-banner {
  min-height: 64px;
  transition: background-color .3s ease, color .3s ease;
}

.pokemon-achievement-category:is(:hover, :focus-visible) .pokemon-achievement-category-banner {
  background-color: color-mix(in srgb, var(--achievement-category-subtle) 90%, var(--achievement-category-emphasis) 10%) !important;
}

.pokemon-achievement-category:is(:hover, :focus-visible) .pokemon-achievement-category-icon {
  opacity: 1;
}
.pokemon-achievement-gift {
  background-color: rgb(255 255 255 / 18%);
  color: inherit;
}

.pokemon-achievement-gift.btn:is(:hover, :focus-visible) {
  background-color: rgb(255 255 255 / 28%);
}

.pokemon-achievement-category-title { font-size: .95rem; line-height: 1.2; }
.pokemon-achievement-category-icon { opacity: .5; }
.pokemon-achievement-category-icon svg { width: 42px; height: 42px; }

@media (max-width: 991.98px) {
  .pokemon-achievement-category-banner { min-height: 58px; }
  .pokemon-achievement-category-title { font-size: .8rem; }
  .pokemon-achievement-category-icon svg { width: 32px; height: 32px; }
}

:is(#pokemonAchievementsModal, #profileAchievementsModal) [hidden] {
  display: none !important;
}


/* Zarbi album: compact slots, shared Bootstrap navigation and modal surfaces. */
.unown-collection-modal { --unown-accent: #9c79d1; }
.unown-album-header { padding: 1.25rem 1.5rem .85rem; }
.unown-album-header .modal-title { font-size: clamp(1rem, 2vw, 1.3rem); margin: .2rem 0 .35rem; }
.unown-album-kicker { font-size: .65rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--xds-modal-accent-text); }
.unown-album-tabs-anchor { padding: 0 1.5rem .75rem; }
.unown-album-tabs { width: 100%; }
.unown-album-tabs .xds-modal-tabs__item > span { opacity: .6; font-size: .7rem; }
.unown-album-body { padding: 1rem 1.5rem 1.25rem; }
.unown-album-progress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.5rem; margin-bottom: 1rem; }
.unown-album-progress__count { font-size: 2rem; line-height: 1.1; letter-spacing: -.04em; }
.unown-album-progress__count > span { font-size: 1rem; color: var(--bs-secondary-color); font-weight: 400; }
.unown-album-progress__states { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem; font-size: .75rem; margin-bottom: .35rem; }
.unown-album-progress__detail { min-width: 0; }
.unown-album-progress progress { display: block; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 4px; overflow: hidden; margin-bottom: .4rem; background: var(--xds-modal-line); }
.unown-album-progress progress::-webkit-progress-bar { background: var(--xds-modal-line); }
.unown-album-progress progress::-webkit-progress-value { background: linear-gradient(90deg, #9c79d1, #d49bb9); border-radius: 4px; }
.unown-album-progress progress::-moz-progress-bar { background: linear-gradient(90deg, #9c79d1, #d49bb9); }
.unown-album-progress__detail p { font-size: .7rem; }
.unown-album-legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--bs-secondary-color); font-size: .65rem; margin-bottom: .6rem; }
.unown-album-legend > :last-child { margin-left: auto; }
.unown-collection-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.unown-collection-card.pokedex-card {
    --pokemon-type-primary: #8062ad;
    --pokemon-type-secondary: #57427f;
    width: 100%; height: 124px; margin: 0; padding: .6rem; border: 1px solid rgb(255 255 255 / 16%); border-radius: 12px;
    box-shadow: none; color: #fff; opacity: .65;
}
.unown-collection-card.is-owned { opacity: 1; }
.unown-collection-card::after { width: 140px; height: 140px; right: -50px; }
.unown-collection-card__head { position: relative; z-index: 1; display: flex; align-items: center; gap: .35rem; height: 20px; font-size: .9rem; line-height: 1; }
.unown-collection-card__seal { font-size: .65rem; opacity: .8; }
.unown-glyph-stage { position: absolute; inset: 20px 0 24px; display: grid; place-items: center; z-index: 1; }
.unown-collection-sprite { position: static; display: block; width: 76px; height: 76px; max-width: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 3px 2px rgb(255 255 255 / 25%)); }
.unown-collection-placeholder { font-size: 1.6rem; }
.unown-collection-card__status, .unown-collection-card__counts { position: absolute; z-index: 1; inset: auto .3rem .6rem; text-align: center; font-size: .65rem; line-height: 1.4; color: rgb(255 255 255 / 90%); }
.unown-collection-card__counts { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.unown-collection-card__counts > span { white-space: nowrap; }
.unown-shiny-count { color: #fff7a8; }
.unown-shiny-toggle.pokedex-card__shiny { position: absolute; top: .35rem; right: .35rem; z-index: 3; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; opacity: .65; }
.unown-shiny-toggle[aria-pressed="true"], .unown-shiny-toggle:hover { opacity: 1; background: rgb(0 0 0 / 15%); }
.unown-shiny-toggle:focus-visible { outline: 2px solid #fff7a8; outline-offset: 1px; }
.unown-shiny-toggle img { filter: brightness(0) saturate(100%) invert(94%) sepia(36%) saturate(627%) hue-rotate(333deg); }
.unown-album-intro { margin-bottom: 1.25rem; }
.unown-album-intro h3 { font-size: 1rem; margin-bottom: .4rem; }
.unown-album-intro p { font-size: .8rem; max-width: 40rem; margin-bottom: 0; }
.unown-word-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; }
.unown-word { padding: 1rem; border: 1px solid var(--xds-modal-line); border-radius: 12px; background: var(--xds-modal-control-surface); }
.unown-word.is-complete { border-color: color-mix(in srgb, var(--unown-accent) 45%, transparent); }
.unown-word__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.unown-word__state { font-size: .7rem; color: var(--bs-secondary-color); }
.is-complete .unown-word__state { color: var(--xds-modal-accent-text); }
.unown-word__title { font-size: .85rem; font-weight: 700; letter-spacing: .08em; margin: 0; }
.unown-word__letters { display: flex; flex-wrap: wrap; gap: .35rem; margin: .9rem 0 .6rem; }
.unown-rune { display: grid; place-items: center; flex: 0 0 2rem; max-width: 2rem; min-width: 0; height: 2rem; border: 1px dashed var(--xds-modal-line); border-radius: 7px; color: var(--bs-secondary-color); font-weight: 700; font-size: .85rem; }
.unown-rune.is-found { color: var(--xds-modal-accent-text); border: 1px solid color-mix(in srgb, var(--unown-accent) 35%, transparent); background: color-mix(in srgb, var(--unown-accent) 13%, transparent); }
.unown-word__hint { color: var(--bs-secondary-color); font-size: .7rem; margin: 0; }
.unown-album-footer { padding: .65rem 1.5rem; justify-content: space-between; border-top: 1px solid var(--xds-modal-line) !important; }
.unown-album-footer > span { font-size: .7rem; }
@media (max-width: 767.98px) {
    .unown-album-header { padding: 1rem; }
    .unown-album-tabs-anchor { padding: 0 1rem .65rem; }
    .unown-album-tabs .xds-modal-tabs__item { font-size: .7rem; padding-inline: .5rem; }
    .unown-album-body { padding: 1rem; }
    .unown-collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
    .unown-album-progress { gap: .9rem; }
    .unown-album-legend > :last-child { display: none; }
    .unown-word-grid { grid-template-columns: 1fr; }
    .unown-album-footer { padding-inline: 1rem; }
}
@media (max-width: 359.98px) {
    .unown-collection-card { padding-inline: .35rem; }
    .unown-collection-card__counts { gap: .35rem; font-size: .55rem; }
    .unown-word { padding: .85rem; }
}

/* Compact entry point with artwork straddling its edges. */
.unown-collection-section { padding-block: 2.5rem; }
/* Keep the shared page width without the full-viewport height of parallax sections. */
.unown-collection-section.parallax-item { min-height: 0; }
.unown-collection-entry {
    isolation: isolate;
    background:
        radial-gradient(300px 180px at 10% 0%, rgb(255 255 255 / 35%), transparent 70%),
        linear-gradient(120deg,
            color-mix(in srgb, var(--bs-purple) 15%, var(--my-white-bg-subtle-solid)),
            color-mix(in srgb, var(--bs-pink) 9%, var(--my-white-bg-subtle-solid)) 55%,
            color-mix(in srgb, var(--bs-blue) 12%, var(--my-white-bg-subtle-solid)));
    color: var(--bs-body-color);
    transition: box-shadow .2s ease;
}
[data-bs-theme="dark"] .unown-collection-entry {
    background:
        radial-gradient(300px 180px at 10% 0%, rgb(191 163 239 / 15%), transparent 70%),
        linear-gradient(120deg,
            color-mix(in srgb, var(--bs-purple) 24%, var(--my-dark-bg-subtle-solid)),
            color-mix(in srgb, var(--bs-pink) 12%, var(--my-dark-bg-subtle-solid)) 55%,
            color-mix(in srgb, var(--bs-blue) 18%, var(--my-dark-bg-subtle-solid)));
}
.unown-collection-entry:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 4px;
}
.unown-collection-entry:hover { box-shadow: var(--xds-shadow-mini); }
.unown-collection-entry__copy { max-width: 52rem; }
.unown-collection-entry__sprite {
    position: absolute;
    width: clamp(88px, 9vw, 120px);
    height: auto;
    image-rendering: pixelated;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgb(255 255 255 / 85%)) drop-shadow(0 5px 8px rgb(116 80 166 / 30%));
    animation: unown-collection-float 5s ease-in-out infinite;
}
.unown-collection-entry__sprite--1 { left: 5%; top: -72px; animation-delay: -.8s; }
.unown-collection-entry__sprite--2 { left: 17%; bottom: -50px; animation-delay: -2.1s; }
.unown-collection-entry__sprite--3 { right: 8%; top: -68px; animation-delay: -3.4s; }
.unown-collection-entry__sprite--4 { right: 20%; bottom: -54px; animation-delay: -1.5s; }
.unown-collection-modal { --xds-modal-accent: var(--unown-accent); }
@keyframes unown-collection-float {
    0%, 100% { transform: translateY(0) rotate(-7deg); }
    50% { transform: translateY(-9px) rotate(5deg); }
}
@media (max-width: 575.98px) {
    .unown-collection-entry__copy .hanson { font-size: 1rem; }
    .unown-collection-entry__sprite--1 { left: 0; top: -60px; }
    .unown-collection-entry__sprite--2 { left: 6%; bottom: -40px; }
    .unown-collection-entry__sprite--3 { right: 0; top: -60px; }
    .unown-collection-entry__sprite--4 { right: 6%; bottom: -40px; }
}
@media (prefers-reduced-motion: reduce) {
    .unown-collection-entry { transition: none; }
    .unown-collection-entry__sprite { animation: none; }
}

.unown-collection-entry { min-height: 184px; color: #fff; }
.unown-collection-entry__scenery { border-radius: inherit; background: #272438; }
.unown-collection-entry__scenery > img { object-position: center 58%; }
.unown-collection-entry__scenery::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(18 15 34 / 12%), rgb(18 15 34 / 65%) 40%, rgb(18 15 34 / 60%) 60%, rgb(18 15 34 / 12%)); }
.unown-collection-entry__copy { text-shadow: 0 2px 12px rgb(0 0 0 / 65%); }
.unown-collection-entry__copy > :last-child { border: 1px solid rgb(228 207 165 / 50%); border-radius: 999px; padding: .3rem .9rem; background: rgb(33 28 42 / 45%); color: #f5e7c9; }
@media (max-width: 575.98px) {
    .unown-collection-card.pokedex-card { padding: .4rem; }
    .unown-collection-card__head { font-size: .6rem; }
    .unown-collection-sprite { width: 68px; height: 68px; }
    .unown-collection-card__counts { gap: .35rem; }
    .unown-collection-entry__scenery > img { object-position: 70% center; }
    .unown-collection-entry__scenery::after { background: rgb(22 18 37 / 48%); }
}


/* Quiet dust and temple glow stay inside the banner, beneath its text. */
.unown-collection-entry__particles { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.unown-collection-entry__particle { position: absolute; left: var(--dust-x); top: var(--dust-y); width: var(--dust-size); height: var(--dust-size); border-radius: 50%; background: #f6dca3; box-shadow: 0 0 8px 2px rgb(209 175 255 / 45%); opacity: 0; animation: unown-dust var(--dust-duration) ease-in-out var(--dust-delay) infinite; }
.unown-collection-entry__scenery::before { content: ''; position: absolute; z-index: 1; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgb(223 179 255 / 22%), transparent 35%); opacity: .4; transition: opacity .5s ease; }
.unown-collection-entry:hover .unown-collection-entry__scenery::before, .unown-collection-entry:focus-visible .unown-collection-entry__scenery::before { opacity: 1; }
@keyframes unown-dust { 0%, 100% { opacity: 0; transform: translate3d(0, 12px, 0); } 30%, 65% { opacity: .7; } 90% { opacity: 0; transform: translate3d(16px, -42px, 0); } }
.unown-word__reward { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .85rem; padding-top: .7rem; border-top: 1px solid var(--xds-modal-line); font-size: .7rem; color: var(--bs-secondary-color); }
.unown-word__gift { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--unown-accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--unown-accent) 35%, transparent); }
.unown-word__gift img { width: 20px; height: 20px; opacity: .4; filter: invert(48%) sepia(20%) saturate(1100%) hue-rotate(220deg); }
.is-complete .unown-word__gift img { opacity: 1; }
.is-complete .unown-word__gift { box-shadow: 0 0 12px rgb(156 121 209 / 14%); }
@media (prefers-reduced-motion: reduce) { .unown-collection-entry__particle { animation: none; opacity: .4; } .unown-collection-entry__scenery::before { transition: none; } }

.unown-word__gift { color: var(--xds-modal-accent-text); cursor: pointer; }
.unown-word__gift:disabled { cursor: default; }
.unown-word__gift:focus-visible { outline: 2px solid var(--unown-accent); outline-offset: 3px; }
.unown-word__reward.is-pending .unown-word__gift img { opacity: 1; animation: unown-gift-waiting 2.5s ease-in-out infinite; }
.has-earned-reward .unown-word__gift img { opacity: 1; }
@keyframes unown-gift-waiting { 0%, 65%, 100% { transform: rotate(0); } 72% { transform: rotate(-10deg); } 80% { transform: rotate(10deg); } 88% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .unown-word__reward.is-pending .unown-word__gift img { animation: none; } }

/* Seasonal hunt: the same ruins, glyphs and violet surfaces as the alphabet. */
.unown-season, .unown-season-word-section { --season-violet: #8062ad; --season-ink:#735197; --season-text: var(--bs-body-color, #24202e); --season-muted: var(--bs-secondary-color, #746c80); --season-line: color-mix(in srgb, #8062ad 22%, transparent); }
.unown-season-hero { position:relative; display:grid; grid-template-columns:1.2fr .8fr; min-height:258px; overflow:hidden; border-radius:16px; background:#302542; color:#fff; isolation:isolate; }
.unown-season-hero__art { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:center 60%; }
.unown-season-hero::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg, #20182ff5, #302345cd 45%, #33254b22 100%); }
.unown-season-hero__copy { padding:1.75rem; align-self:center; min-width:0; }
.unown-season-eyebrow { display:flex; align-items:center; gap:.5rem; color:#d7c3ee; font-size:.62rem; font-weight:750; text-transform:uppercase; letter-spacing:.13em; }
.unown-season-beacon { width:6px; height:6px; border-radius:50%; background:#c5a5f1; box-shadow:0 0 12px #c5a5f188; flex-shrink:0; }
.unown-season-hero h3 { font-size:clamp(1.25rem, 2.3vw, 1.85rem); font-weight:750; line-height:1.15; margin:.8rem 0; letter-spacing:-.035em; overflow-wrap:anywhere; text-wrap:balance; }
.unown-season-hero__intro { color:#e1d6ed; font-size:.82rem; line-height:1.65; margin:0 0 1.1rem; }
.unown-season-hero__dates { color:#cbbbdc; font-size:.65rem; line-height:1.6; margin:0; max-width:24rem; }
.unown-season-preview { position:relative; align-self:stretch; min-height:258px; overflow:hidden; }
.unown-season-preview__label { position:absolute; right:1rem; top:1rem; padding:.35rem .6rem; border:1px solid #e0cdf12b; border-radius:20px; background:#20182f66; color:#eadcf8; font-size:.58rem; letter-spacing:.05em; }
.unown-season-preview__shadow { position:absolute; right:-32px; bottom:37px; width:180px; height:180px; animation:unown-season-arrival 12s ease-in-out infinite; }
.unown-season-preview__shadow img { width:180px; height:180px; object-fit:contain; image-rendering:pixelated; filter:brightness(.14) drop-shadow(0 2px 2px #000b) drop-shadow(0 0 15px #b38bdf88); transform:rotate(-12deg); }
.unown-season-preview__shadow i { position:absolute; left:45%; top:55%; width:3px; height:3px; border-radius:50%; background:#dfc6fa; box-shadow:0 0 9px #ab80df; animation:unown-season-dust 10s ease-in-out infinite; }
.unown-season-preview__shadow i:nth-child(3) { --dust-x:-60px; --dust-y:-45px; animation-delay:-3s; }
.unown-season-preview__shadow i:nth-child(4) { --dust-x:30px; --dust-y:-70px; animation-delay:-6s; }
.unown-season-preview__shadow i:nth-child(5) { --dust-x:-50px; --dust-y:35px; animation-delay:-8s; }
.unown-season-preview__caption { position:absolute; bottom:1rem; right:1rem; left:.5rem; color:#e4d6f5; font-size:.62rem; text-align:right; }
.unown-season-preview__eye { color:#cfb0f3; margin-right:.25rem; }
.unown-season-ledger { display:grid; grid-template-columns:1fr 1fr 1.1fr; margin:1rem 0 1.35rem; padding:.85rem 0; border:1px solid var(--season-line); border-radius:12px; background:color-mix(in srgb, #8062ad 5%, var(--bs-body-bg)); }
.unown-season-ledger__entry { display:flex; flex-direction:column; justify-content:center; gap:.15rem; padding:0 1.2rem; color:var(--season-muted); font-size:.67rem; }
.unown-season-ledger__entry + .unown-season-ledger__entry { border-left:1px solid var(--season-line); }
.unown-season-ledger__number { display:block; color:var(--season-text); font-size:1.4rem; font-weight:750; line-height:1.2; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.unown-season-ledger__entry--tickets { flex-direction:row; align-items:center; justify-content:flex-start; gap:.55rem; }
.unown-season-ledger__entry--tickets img { width:46px; height:46px; object-fit:contain; }
.unown-season-ledger__entry--tickets > div { min-width:0; }
.unown-season-guide { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.1rem; padding:0 0 1.35rem; margin:0; list-style:none; border-bottom:1px solid var(--season-line); }
.unown-season-guide li { display:flex; gap:.6rem; min-width:0; }
.unown-season-guide__number { color:#a287bf; font-size:.7rem; font-weight:800; padding-top:.1rem; }
.unown-season-guide h4 { color:var(--season-text); font-size:.78rem; font-weight:750; margin:0 0 .35rem; }
.unown-season-guide p { color:var(--season-muted); font-size:.7rem; line-height:1.65; margin:0; }
.unown-season-guide strong { color:var(--season-text); font-weight:650; }
.unown-season-objectives { margin-top:1.35rem; }
.unown-season-objectives__heading { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:.5rem; margin-bottom:.85rem; }
.unown-season-objectives__heading h4 { margin:.25rem 0 0; font-size:1rem; font-weight:750; }
.unown-season-objectives__hint { font-size:.67rem; color:var(--season-muted); }
.unown-season-word-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.unown-season-word { min-width:0; padding:1rem; border:1px solid var(--season-line); border-radius:12px; background:var(--xds-modal-control-surface, var(--bs-body-bg)); }
.unown-season-word.is-ready { border-color:color-mix(in srgb, #9c79d1 65%, transparent); background:linear-gradient(145deg,#9c79d110,transparent),var(--xds-modal-control-surface,var(--bs-body-bg)); }
.unown-season-word__heading { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.unown-season-word__name { font-size:.8rem; font-weight:800; letter-spacing:.1em; margin:0; overflow-wrap:anywhere; }
.unown-season-word__state { color:var(--season-muted); font-size:.6rem; white-space:nowrap; }
.unown-season-word.is-ready .unown-season-word__state { color:var(--season-ink); }
.unown-season-word__season { display:block; color:var(--season-muted); font-size:.62rem; margin-top:.3rem; }
.unown-season-word__letters { display:flex; flex-wrap:wrap; gap:.35rem; margin:.9rem 0 .65rem; }
.unown-season-word__rune { display:grid; place-items:center; width:30px; height:34px; border:1px dashed var(--season-line); border-radius:7px; color:var(--season-muted); font-size:.8rem; font-weight:700; }
.unown-season-word__rune.is-found { border-style:solid; border-color:#8062ad44; color:var(--season-ink); background:linear-gradient(145deg,#8062ad1c,#57427f0a); }
.unown-season-word__progress { display:flex; align-items:center; gap:.6rem; margin-bottom:.8rem; color:var(--season-muted); font-size:.6rem; }
.unown-season-word__progress progress { flex:1; min-width:0; height:3px; appearance:none; border:0; border-radius:5px; overflow:hidden; background:var(--season-line); }
.unown-season-word__progress progress::-webkit-progress-bar { background:var(--season-line); }
.unown-season-word__progress progress::-webkit-progress-value { background:#9c79d1; }
.unown-season-word__progress progress::-moz-progress-bar { background:#9c79d1; }
.unown-season-word__footer { display:flex; align-items:center; justify-content:space-between; gap:.65rem; border-top:1px solid var(--season-line); padding-top:.8rem; }
.unown-season-word__gift { min-width:0; color:var(--season-text); font-size:.68rem; line-height:1.5; overflow-wrap:anywhere; }
.unown-season-word__gift small { display:block; color:var(--season-muted); font-size:.58rem; }
.unown-season-word__claim { flex-shrink:0; min-height:38px; border:1px solid #8062ad55; border-radius:8px; padding:.4rem .65rem; background:#8062ad; color:#fff; font-size:.65rem; font-weight:700; }
.unown-season-word__claim:hover:not(:disabled) { background:#6b4f93; }
.unown-season-word__claim:focus-visible { outline:3px solid #9c79d1; outline-offset:3px; }
.unown-season-word__claim:disabled { background:transparent; color:var(--season-muted); border-color:var(--season-line); }
.unown-season-notes { border-top:1px solid var(--season-line); padding-top:.85rem; margin-top:1.1rem; color:var(--season-muted); font-size:.7rem; }
.unown-season-notes summary { cursor:pointer; color:var(--season-text); padding:.25rem 0; }
.unown-season-notes p { margin:.65rem 0 0; line-height:1.65; }
.unown-season-feedback { margin:.6rem 0 0; color:var(--season-text); font-size:.75rem; }
.unown-season-feedback:empty { display:none; }
.unown-season-empty, .unown-season-guest { color:var(--season-muted); font-size:.75rem; line-height:1.6; }
.unown-season-empty { grid-column:1/-1; padding:1.2rem; border:1px dashed var(--season-line); border-radius:12px; margin:0; }
.unown-season.is-paused .unown-season-beacon { background:#cabfd5; box-shadow:none; }
@keyframes unown-season-arrival { 0%,15%,100% { transform:translateX(150px) rotate(8deg); opacity:0; } 28%,75% { transform:translateX(0) rotate(-3deg); opacity:1; } 48% { transform:translate(-3px,-5px) rotate(0); opacity:1; } 88% { transform:translateX(150px) rotate(8deg); opacity:0; } }
@keyframes unown-season-dust { 0%,100% { opacity:0; transform:translate(0,0); } 35% { opacity:.65; } 85% { opacity:0; transform:translate(var(--dust-x,-65px),var(--dust-y,-25px)); } }
@media(max-width:767.98px) {
    .unown-season-hero { grid-template-columns:1fr; }
    .unown-season-hero__copy { padding:1.25rem 1.15rem .4rem; }
    .unown-season-hero::before { background:linear-gradient(180deg,#20182fee,#302345cc 48%,#33254b33); }
    .unown-season-preview { min-height:140px; }
    .unown-season-preview__label { left:1.15rem; right:auto; top:1rem; }
    .unown-season-preview__shadow { bottom:13px; right:-30px; width:150px; height:150px; }
    .unown-season-preview__shadow img { width:150px; height:150px; }
    .unown-season-preview__caption { right:auto; left:1.15rem; bottom:1rem; max-width:52%; text-align:left; }
    .unown-season-ledger__entry { padding:0 .65rem; font-size:.57rem; }
    .unown-season-ledger__number { font-size:1.15rem; }
    .unown-season-ledger__entry--tickets { gap:.15rem; }
    .unown-season-ledger__entry--tickets img { width:32px; height:32px; }
    .unown-season-guide { grid-template-columns:1fr; gap:.8rem; }
    .unown-season-guide li { gap:.8rem; }
    .unown-season-guide h4 { margin-bottom:.15rem; }
    .unown-season-word-grid { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) { .unown-season-preview__shadow, .unown-season-preview__shadow i { animation:none; } }

.unown-season .unown-album-kicker { color:var(--season-ink); }
[data-bs-theme="dark"] :is(.unown-season, .unown-season-word-section) { --season-ink:#c9adee; }

/* Season context belongs to the album header and its entry point. */
.unown-current-season { display:inline-flex; margin-left:.6rem; padding:.25rem .5rem; border:1px solid #9c79d144; border-radius:6px; color:var(--xds-modal-accent-text,#8062ad); font-size:.62rem; font-weight:700; vertical-align:middle; }
.unown-entry-season { display:table; margin:0 auto .65rem; padding:.25rem .65rem; border:1px solid #d7c3ee55; border-radius:20px; background:#30254266; color:#efddff; font-size:.65rem; }
.unown-season-word-section { margin-top:1rem; padding-bottom:1rem; border-bottom:1px solid var(--xds-modal-line); }
.unown-season-words-link { display:flex; align-items:center; justify-content:space-between; gap:1rem; width:100%; padding:.8rem 1rem; border:1px solid var(--season-line); border-radius:10px; color:var(--season-ink); background:color-mix(in srgb,#8062ad 7%,var(--bs-body-bg)); font-size:.8rem; font-weight:700; text-align:left; }
.unown-season-words-link:hover { background:color-mix(in srgb,#8062ad 12%,var(--bs-body-bg)); }
.unown-season-words-link:focus-visible { outline:2px solid #9c79d1; outline-offset:3px; }
.unown-season-preview { display:flex; align-items:center; padding:1rem; overflow:visible; }
.unown-season-browser { position:relative; width:100%; min-height:222px; overflow:hidden; border:1px solid #bca4d34d; border-radius:12px; color:var(--bs-body-color); background:var(--xds-modal-control-surface,var(--bs-body-bg)); box-shadow:0 12px 24px #1c122633; }
.unown-season-browser__toolbar { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:.65rem .75rem; border-bottom:1px solid #8062ad22; font-size:.6rem; }
.unown-season-browser__toolbar > span { color:#9c79d1; font-size:.5rem; letter-spacing:.1em; }
.unown-season-browser__page { padding:1rem .8rem; }
.unown-season-browser__page > small { display:block; color:var(--bs-secondary-color); font-size:.45rem; letter-spacing:.12em; }
.unown-season-browser__page > strong { display:block; margin-top:.25rem; font-size:.85rem; }
.unown-season-browser__cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.45rem; margin-top:.7rem; }
.unown-season-browser__cards > span { display:grid; justify-items:center; gap:.4rem; padding:.65rem .2rem; border:1px solid #8062ad22; border-radius:7px; background:#8062ad08; }
.unown-season-browser__cards i { width:55%; height:3px; background:#8062ad33; border-radius:2px; }
.unown-season-browser .unown-season-preview__label { top:auto; right:auto; left:.8rem; bottom:.55rem; border:0; border-radius:0; padding:0; background:none; color:var(--bs-secondary-color); font-size:.5rem; }
.unown-season-browser .unown-season-preview__shadow { bottom:30px; right:-32px; width:150px; height:150px; }
.unown-season-browser .unown-season-preview__shadow img { width:150px; height:150px; }
.unown-season-browser .unown-season-preview__caption { bottom:1.4rem; left:.8rem; right:.8rem; color:var(--bs-secondary-color); font-size:.53rem; text-align:left; max-width:none; }
@media(max-width:767.98px) { .unown-current-season { margin-left:0; margin-top:.35rem; } .unown-season-preview { min-height:0; padding:1rem 1.15rem; } .unown-season-browser { min-height:226px; } }

/* Scoped badges preserve the palette of the other Pokédex cards. */
.pokedex-guide-card :is(.pokedex-summary-kicker,.pokedex-guide-tag) { color:#a92d36; background:linear-gradient(135deg,#c7444b20,#ee777720); }
[data-bs-theme="dark"] .pokedex-guide-card :is(.pokedex-summary-kicker,.pokedex-guide-tag,.pokedex-guide-block__text strong,.pokedex-guide-collapse-toggle) { color:#f28b91; }
