@font-face {
  font-family: Cond;
  src: url("/fonts/PLCond.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Sans;
  src: url("/fonts/PLSans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Icons;
  src: url("/fonts/site-icons.woff2") format("woff2");
  font-display: block;
}
:root {
  color-scheme: dark;
  --bg: #191b22;
  --surface: #252830;
  --line: #3c404b;
  --muted: #b2b6c2;
  --ink: #f3f0e9;
  --gold: #ffce69;
  --teal: #93e4b9;
  --type: #b4c9d7;
  font:
    16px/1.45 Sans,
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
html:has(dialog:modal) {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
button {
  border: 0;
  background: transparent;
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
.ico {
  font: normal 1em/1 Icons;
  display: inline-block;
  text-align: center;
}
.pin::before {
  content: "\f041";
}
.clone::before {
  content: "\f0c5";
}
.lock::before {
  content: "\f023";
}
.ico.search-icon {
  display: inline-block;
  flex: none;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  background: url("/art/pokedex/search.png") center / contain no-repeat;
}
.refresh-icon::before {
  content: "\f021";
}
.sliders::before {
  content: "\f1de";
}
.list::before {
  content: "\f03a";
}
[data-type="water"],
[data-type="ice"] {
  --type: #92d9e8;
}
[data-type="grass"],
[data-type="bug"] {
  --type: #b5dc95;
}
[data-type="poison"],
[data-type="ghost"] {
  --type: #c4abe9;
}
[data-type="psychic"],
[data-type="fairy"] {
  --type: #edacd0;
}
[data-type="fire"],
[data-type="fighting"] {
  --type: #efb297;
}
[data-type="dragon"],
[data-type="flying"] {
  --type: #aebdfa;
}
[data-type="ground"],
[data-type="rock"],
[data-type="electric"] {
  --type: #e8c77d;
}
.mast {
  position: relative;
  z-index: 12;
  border-bottom: 1px solid var(--line);
  background: #17191f;
}
.mast-inner,
.shell,
.foot-inner {
  max-width: 1240px;
  margin: auto;
  padding-inline: clamp(18px, 4vw, 58px);
}
.mast-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  font:
    750 30px/1 Cond,
    sans-serif;
  letter-spacing: -1px;
}
.brand img {
  margin-right: 8px;
}
.brand span {
  color: var(--gold);
}
.mast-nav {
  display: flex;
  align-self: stretch;
  gap: clamp(12px, 1.8vw, 28px);
}
.mast-menu { position: relative; }
.mast-menu > summary, .mast-raffle {
  display: flex;
  height: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 10px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-size: clamp(1rem, .92rem + .26vw, 1.15rem);
  font-weight: 600;
}
.mast-menu > summary::-webkit-details-marker { display: none; }
.mast-menu > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  color: var(--muted);
}
.mast-menu[open] > summary::after { margin-top: 3px; transform: rotate(225deg); }
.mast-menu > summary:hover, .mast-menu[open] > summary,
.mast-menu:has([aria-current]) > summary, .account-link:hover { color: var(--gold); }
.mast-raffle { gap: 5px; white-space: nowrap; }
.mast-raffle-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 18px; padding: 0 5px;
  position: relative; border-radius: 3px; background: #9be0c5;
  color: #15392d; font: 800 .84rem/1 Sans, sans-serif; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0,100% 0,100% 36%,92% 50%,100% 64%,100% 100%,0 100%,0 64%,8% 50%,0 36%);
}
@media (max-width: 420px) {
  .mast-nav .mast-raffle:has(.mast-raffle-badge:not([hidden])) { position: relative; padding-top: 8px; }
  .mast-raffle-badge { position: absolute; right: 1px; top: 1px; min-width: 21px; height: 14px; font-size: .72rem; }
}
.mast-raffle:hover, .mast-raffle[aria-current] { color: var(--gold); }
.mast-menu > summary:focus-visible, .mast-raffle:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 6px; }
.mast-panel {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 0;
  display: grid;
  width: max-content;
  max-height: 68vh;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #21242c;
  box-shadow: 0 12px 32px #08090e66;
}
.mast-panel-wide { width: 370px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mast-panel-wide:has(.mast-tier-link) { width: 414px; }
.mast-section + .mast-section { border-left: 1px solid var(--line); padding-left: 6px; }
.mast-section > strong {
  display: block;
  padding: 7px 9px;
  color: var(--muted);
  font-size: .73rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mast-section a { display: flex; align-items: center; min-height: 38px; padding: 5px 9px; border-radius: 5px; font-size: 1rem; }
.mast-catcher-icon { flex: none; margin-inline-start: 8px; color: var(--gold); opacity: .76; }
.mast-section .mast-tier-link {
  position: relative; overflow: hidden; margin-block: 2px; padding-right: 50px;
  background: #282b33;
}
.mast-tier-ribbon {
  position: absolute; top: 10px; right: -16px; width: 76px;
  transform: rotate(35deg); text-align: center; pointer-events: none;
  background: linear-gradient(105deg, #dfa949, #ffe7a5 52%, #e9b75c); color: #342407;
  font: 750 11px/14px Cond, sans-serif; letter-spacing: .025em; box-shadow: 0 1px 3px #0006;
}
.mast-section a:hover, .mast-section a:focus-visible { background: #30343e; color: var(--gold); }
.mast-section a[aria-current] { color: var(--gold); font-weight: 650; }
.mast-account { position: relative; display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); white-space: nowrap; }
.account-link { font-size: clamp(1rem, .96rem + .16vw, 1.1rem); font-weight: 550; }
.discord-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; }
.discord-badge-face {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px;
  padding-inline: 10px; border: 1px solid #555a7d; border-radius: 9px;
  background: linear-gradient(125deg, #383c56, #292d40); color: #ebedff;
  font: 650 .85rem/1 Sans,sans-serif;
}
.discord-badge:hover { text-decoration: none; }
.discord-badge:hover .discord-badge-face { background: #3b405c; border-color: #9499cd; }
.discord-count { border-left: 1px solid #676d91; padding-left: 7px; color: #d9ddff; font-variant-numeric: tabular-nums; }
@media (min-width: 621px) and (max-width: 1100px) {
  .mast-account:has(.discord-badge) { gap: 10px; }
}
@media (max-width: 374px) {
  .mast-inner:has(.discord-badge) .brand { font-size: 1.25rem; }
  .mast-inner:has(.discord-badge) .brand img { width: 22px; margin-right: 3px; }
}
.ticket-stamp { display: none; }
.mast .premium-pass-link:any-link { display: inline-flex; border-radius: 6px; text-decoration: none; }
.member-ticket, .premium-ticket {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding-inline: 11px;
  color: #30210f;
  background: linear-gradient(112deg, #edb357, #ffe7a9 27%, #ffd47d 54%, #ecb256 84%, #ffdc91);
  box-shadow: inset 0 1px #fff2c7, inset 0 -1px #ae7838, 0 2px 6px #0005;
  font: 750 1.12rem/1 Cond, sans-serif;
}
.member-ticket {
  /* Tear along the perforations without shifting the printed label. */
  clip-path: polygon(
    10px 0, calc(100% - 10px) 0, calc(100% - 8px) 13%, calc(100% - 11px) 25%, calc(100% - 8px) 38%,
    calc(100% - 12px) 53%, calc(100% - 8px) 67%, calc(100% - 11px) 81%, calc(100% - 8px) 93%, calc(100% - 10px) 100%,
    10px 100%, 8px 88%, 11px 73%, 8px 61%, 12px 45%, 8px 31%, 11px 17%, 8px 7%
  );
}
.premium-ticket {
  overflow: hidden;
  border-radius: 6px;
  transition: box-shadow 160ms ease;
}
.member-ticket > span, .premium-ticket > span {
  position: relative;
  padding-inline: 10px;
  border-inline: 1px dashed #8d652b;
  line-height: 1.35;
  text-shadow: 0 1px #fff3;
}
.member-ticket > span { border-color: transparent; }
.premium-ticket::before, .premium-ticket::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.premium-ticket::before {
  background: linear-gradient(112deg, transparent 25%, #fff4cc66 42%, #fff9e0ec 48%, transparent 53%, #fff5d588 58%, transparent 70%);
  transform: translateX(-100%);
  animation: premium-foil 6.5s ease-in-out .7s infinite;
}
.premium-ticket::after {
  background:
    radial-gradient(circle at left center, #17191f 3px, #bd853e 3.5px, transparent 4.3px),
    radial-gradient(circle at right center, #17191f 3px, #bd853e 3.5px, transparent 4.3px);
}
@keyframes premium-foil {
  0% { transform: translateX(-100%); }
  18%, 100% { transform: translateX(100%); }
}
.premium-pass-link:is(:hover, :focus-visible) .premium-ticket {
  box-shadow: inset 0 1px #fff6da, inset 0 -1px #cc9148, 0 0 0 1px #eab66366, 0 2px 12px #ffbf533d;
}
.premium-pass-link:active .premium-ticket {
  box-shadow: inset 0 1px 3px #86581f80;
}
.premium-preview {
  position: absolute;
  z-index: 10;
  top: 100%;
  right: 0;
  width: min(19rem, calc(100vw - 2rem));
  padding-top: 8px;
  white-space: normal;
  visibility: hidden;
  opacity: 0;
  transition: opacity 140ms ease, visibility 0s linear 140ms;
}
.premium-pass-link:not([data-preview-dismissed]):focus-visible .premium-preview {
  --preview-map: url("/art/vip-map.webp");
  visibility: visible; opacity: 1; transition-delay: 0s;
}
@media (hover: hover) {
  .premium-pass-link:not([data-preview-dismissed]):hover .premium-preview {
    --preview-map: url("/art/vip-map.webp");
    visibility: visible; opacity: 1; transition-delay: 100ms;
  }
}
.premium-preview-card {
  overflow: hidden;
  border: 1px solid #897047;
  border-radius: 12px;
  background: #24262c;
  color: var(--ink);
  box-shadow: 0 12px 32px #0007;
}
.premium-preview-cover {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px;
  background: linear-gradient(100deg, #ffe4a7 12%, #f6cd80e6 45%, #daa35270), var(--preview-map, none) center / cover;
  color: #372812;
  font: 750 1.7rem/.98 Cond, sans-serif;
}
.premium-preview-cover img { object-fit: contain; }
.premium-preview-card ul { list-style: none; display: grid; gap: 9px; padding: 16px; margin: 0; }
.premium-preview-card li { position: relative; padding-left: 17px; color: var(--muted); font-size: .925rem; line-height: 1.35; }
.premium-preview-card li::before {
  content: ""; position: absolute; left: 1px; top: .35em; width: 5px; height: 9px;
  border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.premium-preview-card li strong { color: var(--ink); }
.premium-preview-compare {
  display: block; padding: 10px 16px; border-top: 1px dashed #736348;
  color: var(--gold); font-weight: 680; font-size: .925rem;
}
.site-foot {
  border-top: 1px solid #514939;
  background: #13151b;
  color: var(--muted);
}
.foot-main {
  display: grid;
  grid-template-columns: minmax(270px, .88fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 74px);
  padding-block: clamp(24px, 3vw, 42px);
}
.foot-finder {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 32px);
  padding-right: 135px;
  border: 1px solid #494435;
  border-radius: 12px;
  background: linear-gradient(110deg, #222329, #27251f);
  color: var(--ink);
}
.foot-radar {
  --sweep-period: 6.4s;
  position: absolute;
  z-index: -1;
  top: 55%;
  right: -90px;
  width: 258px;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border: 1px solid #ffce6933;
  border-radius: 50%;
  background:
    linear-gradient(to right, transparent calc(50% - .5px), #ffce6940 50%, transparent calc(50% + .5px)),
    linear-gradient(to bottom, transparent calc(50% - .5px), #ffce6940 50%, transparent calc(50% + .5px)),
    repeating-radial-gradient(circle, transparent 0 29px, #ffce6936 30px, transparent 31px);
}
.foot-radar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from 280deg, transparent 294deg, #e6b75a06 317deg, #e6b75a16 339deg,
    #f8bf4f33 353deg, #f7c45e44 358.9deg, #ffde91ba 359.5deg, #fff1c2cc 360deg);
  animation: foot-sweep var(--sweep-period) linear infinite;
}
.foot-radar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: repeating-conic-gradient(from 0deg, #ffdc955c 0deg .5deg, transparent .5deg 10deg);
  mask: radial-gradient(closest-side, transparent calc(100% - 4px), black calc(100% - 3px));
}
.foot-contact {
  position: absolute;
  width: var(--contact-size);
  aspect-ratio: 1;
  translate: -50% -50%;
}
/* Delays are the clockwise fraction of a turn from the beam's 280deg starting bearing. */
.foot-dragonite {
  left: 26%;
  top: 31%;
  --contact-size: 56px;
  --hit-delay: calc(var(--sweep-period) * .0788);
  --scan-direction: 38.37deg;
  --scan-start: 100% 0%;
  --scan-end: 0% 100%;
}
.foot-rayquaza {
  left: 40%;
  top: 73%;
  --contact-size: 64px;
  --hit-delay: calc(var(--sweep-period) * .7875);
  --scan-direction: 293.50deg;
  --scan-start: 0% 0%;
  --scan-end: 100% 100%;
  --rim-light: #f5e8c8bb;
}
.foot-contact::before, .foot-contact::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
}
.foot-contact::before {
  width: 4px;
  height: 4px;
  background: #f7cd7c;
  box-shadow: 0 0 0 3px #c6933a30;
  animation: foot-pip var(--sweep-period) linear var(--hit-delay) infinite;
}
.foot-contact::after {
  width: 100%;
  height: 100%;
  border: 1px solid #ffe0a1;
  opacity: 0;
  animation: foot-echo var(--sweep-period) var(--hit-delay) infinite;
}
.foot-lock {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: foot-lock var(--sweep-period) linear var(--hit-delay) infinite;
}
.foot-lock::before, .foot-lock::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border: solid #ebcc8d;
}
.foot-lock::before { top: 2px; left: 2px; border-width: 1px 0 0 1px; }
.foot-lock::after { bottom: 2px; right: 2px; border-width: 0 1px 1px 0; }
.foot-lock img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 .8px var(--rim-light, #e9d8b980)) drop-shadow(0 1px 2px #0a0a0bdc);
  mask-image: linear-gradient(var(--scan-direction), black 44%, transparent 54%);
  mask-size: 260% 260%;
  animation: foot-resolve var(--sweep-period) ease-out var(--hit-delay) infinite;
}
@keyframes foot-pip {
  0% { opacity: 1; }
  2%, 18% { opacity: 0; }
  25%, 100% { opacity: .8; }
}
@keyframes foot-echo {
  0% { scale: .12; opacity: .85; }
  9% { scale: 1.16; opacity: 0; }
  100% { scale: 1.16; opacity: 0; }
}
@keyframes foot-lock {
  0% { opacity: 0; }
  2%, 15% { opacity: 1; }
  23%, 100% { opacity: 0; }
}
@keyframes foot-resolve {
  0% { mask-position: var(--scan-start); }
  5%, 100% { mask-position: var(--scan-end); }
}
@keyframes foot-sweep { to { transform: rotate(1turn); } }
.foot-finder[data-radar-state="playing"] { --radar-play-state: running; }
.foot-radar::before, .foot-contact::before, .foot-contact::after, .foot-lock, .foot-lock img {
  animation-play-state: var(--radar-play-state, paused);
}
.foot-radar-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #d4c7a8;
}
.foot-radar-toggle::before {
  content: "";
  grid-area: 1 / 1;
  width: 24px;
  height: 24px;
  border: 1px solid #5a5343;
  border-radius: 50%;
  background: #262621;
}
.foot-radar-toggle::after {
  content: "";
  grid-area: 1 / 1;
  width: 8px;
  height: 9px;
  box-sizing: border-box;
  border-inline: 3px solid currentColor;
}
.foot-finder[data-radar-state="paused"] .foot-radar-toggle::after {
  width: 9px;
  border: 0;
  background: currentColor;
  clip-path: polygon(15% 0, 100% 50%, 15% 100%);
}
.foot-radar-toggle:is(:hover, :focus-visible) { color: var(--gold); }
.foot-wordmark {
  display: flex;
  width: max-content;
  align-items: center;
  color: var(--ink);
  font: 800 clamp(38px, 3.5vw, 52px)/1 Cond, sans-serif;
  letter-spacing: -.045em;
}
.foot-wordmark img { margin-right: 7px; }
.foot-wordmark span { color: var(--gold); }
.foot-finder p { max-width: 23ch; margin-block: 12px 18px; color: #d0ccc2; font-size: .94rem; }
.foot-finder-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--gold);
  color: #272014;
  font-size: .9rem;
  font-weight: 750;
}
.foot-finder-link:hover { background: #ffdfa0; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.6vw, 36px); align-self: center; }
.foot-group h2 { margin-bottom: 9px; color: var(--ink); font: 700 1.35rem/1.2 Cond, sans-serif; }
.foot-group ul { margin: 0; padding: 0; list-style: none; }
.foot-label-short { display: none; }
.foot-group a { display: inline-block; padding-block: 5px; font-size: .92rem; }
.foot-nav a:is(:hover, [aria-current]), .foot-base a:is(:hover, [aria-current]), .foot-base button:hover { color: var(--gold); }
.foot-base {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 22px;
  border-top: 1px solid #34363c;
  padding-block: 12px 18px;
  font-size: .82rem;
}
.foot-base a, .foot-base button { display: inline-flex; align-items: center; min-height: 36px; }
.foot-base button { padding: 0; }
.foot-top { gap: 6px; margin-left: auto; }
.foot-top span { color: var(--gold); }
.foot-notices, .foot-base .membership { flex-basis: 100%; }
.foot-notices { display: flex; align-items: baseline; gap: 6px 24px; }
.foot-notices small { color: #838895; font-size: .75rem; line-height: 1.45; }
.foot-notices .foot-affiliation { margin-inline-start: auto; text-align: end; }
@media (max-width: 700px) {
  .foot-notices { flex-direction: column; }
  .foot-notices .foot-affiliation { margin-inline-start: 0; text-align: start; }
}
@media (min-width: 801px) and (max-width: 1060px) {
  .foot-finder { min-height: 274px; }
}
@media (max-width: 800px) {
  .foot-main { grid-template-columns: 1fr; gap: 24px; }
  .foot-finder { min-height: 208px; padding-right: 196px; }
  .foot-radar { right: -28px; }
  .foot-finder p { max-width: 33ch; }
}
@media (max-width: 540px) {
  .foot-finder { min-height: 196px; padding-right: 108px; }
  .foot-radar { right: -113px; }
  .foot-dragonite { --contact-size: 48px; }
  .foot-rayquaza { --contact-size: 54px; }
  .foot-finder p { max-width: 23ch; }
  .foot-group h2 { font-size: 1.18rem; }
  .foot-label-full { display: none; }
  .foot-label-short { display: inline; white-space: nowrap; }
  .foot-nav { grid-template-columns: minmax(max-content, 1fr) repeat(2, minmax(0, 1fr)); }
  .foot-group a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 6px; font-size: .86rem; line-height: 1.35; }
  .foot-base { column-gap: 15px; }
}
@media (max-width: 360px) {
  .foot-wordmark { font-size: 34px; }
  .foot-wordmark img { width: 34px; height: 34px; }
}
.dex-reference, .species-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.dex-reference { margin: -8px 0 18px; color: var(--teal); }
.guide-reader { padding-bottom: 36px; }
.guide-prose h2 { font: 660 1.55rem/1.2 Cond,sans-serif; margin: 0 0 10px; }
.guide-heading nav { color: var(--muted); }
.guide-heading { max-width: 78ch; margin: 30px 0 24px; }
.guide-heading h1 { line-height: 1.05; margin: 12px 0; }
.guide-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.guide-heading nav, .guide-end, .guide-contents { font-size: .94rem; }
.guide-reader a { color: var(--teal); }
.guide-prose p a { text-decoration: underline; text-underline-offset: 3px; }
.guide-columns { display: grid; grid-template-columns: minmax(195px,1fr) minmax(0,3fr); gap: clamp(20px,4vw,50px); max-width: 1040px; align-items: start; }
.guide-contents { padding: 15px 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.guide-contents strong { color: var(--gold); }
.guide-contents ul, .guide-sources ul { margin: 7px 0 0; padding-left: 18px; }
.guide-contents li, .guide-sources li { margin-top: 6px; }
.guide-prose { line-height: 1.65; max-width: 71ch; }
.guide-prose section { scroll-margin-top: 12px; margin-bottom: 22px; }
.guide-prose section:target h2 { color: var(--gold); }
.guide-prose p { margin: 0 0 10px; }
.guide-sources { padding-top: 16px; border-top: 1px solid var(--line); }
.guide-sources h2 { font-size: 1.2rem; }
.guide-end { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
@media (max-width: 720px) {
  .guide-columns { grid-template-columns: 1fr; }
  .guide-heading { margin-top: 22px; }
}
.observed-odds { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; color: var(--muted); font-size: .82rem; }
.observed-odds b { color: var(--gold); font-weight: 650; }
.species-rate-link { display: inline-block; margin-top: 8px; }
.ditto-hunt { container-type: inline-size; margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.ditto-hunt h2 { margin: 0; font-size: 1.35rem; }
.ditto-hunt p { margin: 6px 0 0; }
.ditto-hunt p a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.ditto-disguises { display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 0; margin: 10px 0; list-style: none; }
.ditto-disguises a { display: inline-flex; align-items: center; gap: 3px; color: var(--teal); }
.ditto-disguises img { object-fit: contain; }
.ditto-hunt .ditto-disguises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin: 14px 0 16px; }
.ditto-hunt .ditto-disguises a { display: flex; gap: 8px; }
.ditto-hunt .ditto-disguises img { width: 48px; height: 48px; flex: none; }
@container (max-width: 29rem) {
  .ditto-hunt .ditto-disguises { column-gap: 4px; }
  .ditto-hunt .ditto-disguises a { flex-direction: column; gap: 0; text-align: center; font-size: clamp(.85rem, 5.8cqi, .95rem); }
}
@container (min-width: 39rem) {
  .ditto-hunt .ditto-disguises { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container (min-width: 59rem) {
  .ditto-hunt .ditto-disguises { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.card-body .observed-odds, .dex-tile .observed-odds { margin-top: 5px; }
.form-page, .billing-page { padding: clamp(28px,5vw,68px) 0 28px; }
.form-page { max-width: 490px; margin-inline: auto; }
.arspoofing-wordmark { display: block; width: 168px; max-width: 100%; height: auto; margin-bottom: 12px; }
.form-page h1, .billing-page h1 { margin: 0 0 18px; }
.form-page > p, .billing-note, .lede, .price-plan > p, .subscription p, .account-section > p { color: var(--muted); }
.lede { max-width: 60ch; font-size: 1.05rem; }
.account-form, .account-form label { display: grid; gap: 8px; }
.account-form { gap: 15px; margin: 18px 0; }
.account-form input, .account-form select, .account-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; color: var(--ink); background: var(--surface);
}
.account-form button { justify-self: start; }
.account-form small { color: var(--muted); margin-top: -8px; }
.form-links { display: flex; gap: 18px; flex-wrap: wrap; }
.form-links a, .notice a { color: var(--gold); }
.notice { margin: 12px 0; padding: 12px 15px; background: var(--surface); border-left: 3px solid var(--teal); }
.notice.error { border-color: #e89c92; }
.billing-period { display: inline-flex; gap: 3px; margin: 16px 0 12px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
.billing-period a { display: inline-flex; gap: 6px; align-items: center; min-height: 42px; border-radius: 6px; padding-inline: 12px; }
.billing-period a[aria-current] { background: var(--gold); color: #302410; }
.billing-period small { font-size: .73rem; }
.billing-page .price-plan { max-width: 31rem; margin-bottom: 18px; }
.membership-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); gap: 14px; max-width: 58rem; }
.membership-offers .price-plan { max-width: none; }
.membership-offers #vip { border-color: var(--gold); }
.membership-offers ul { padding-inline-start: 20px; flex-grow: 1; }
.membership-offers li { margin-bottom: 8px; }
.alert-links { margin-bottom: 16px; }
.raid-card.public-alert { display: flex; align-items: center; gap: 14px; }
.public-alert img { object-fit: contain; }
.public-alert h2, .public-alert p { margin: 2px 0; }
.public-alert small { color: var(--muted); }
.public-alert:hover, .public-alert:focus-visible { border-color: var(--gold); }
.price-plan, .account-section { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 20px; }
.price-plan .price { margin: 12px 0 2px; }
.price-plan { display: flex; flex-direction: column; align-items: flex-start; scroll-margin-top: 20px; }
.price-plan:target { border-color: var(--accent, #89dbc4); }
.price-plan .saving { margin: 0 0 12px; font-size: .9rem; }
.price-plan > a.secondary, .price-plan > form { margin-top: auto; }
.price strong { font: 700 2.6rem/1 Cond,sans-serif; color: var(--gold); }
.price-plan .primary, .price-plan .secondary, .account-section .secondary { margin-top: 16px; }
.billing-note + .billing-note { margin-top: 5px; }
.subscription { padding: 16px 0; border-top: 1px solid var(--line); margin-top: 12px; }
.account-section { margin: 15px 0; }
.account-page > p { overflow-wrap: anywhere; }
.shell {
  padding-bottom: 3rem;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 2.15rem 0 1.4rem;
}
.eyebrow,
.dex-code {
  font:
    650 0.76rem/1.3 ui-monospace,
    Consolas,
    monospace;
  letter-spacing: 0.13em;
}
.eyebrow {
  color: var(--gold);
  margin-bottom: 7px;
  text-transform: uppercase;
}
.slash {
  margin: 0 9px;
  opacity: 0.5;
}
h1,
h2,
h3,
.identity strong,
.stats dd,
.dex-tile strong {
  font-family: Cond, "Arial Narrow", sans-serif;
}
h1 {
  font-weight: 720;
  font-size: clamp(2.2rem, 4.5vw, 3.85rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.subline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
  color: var(--muted);
  margin-top: 10px;
  font-size: 0.94rem;
}
.subline span {
  margin: 0 0.25rem;
}
.subline b {
  font-weight: 650;
  color: var(--ink);
}
.searchbar {
  display: flex;
  align-items: center;
  background: #23262e;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px 4px 3px 14px;
  max-width: 780px;
  gap: 8px;
}
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  color: var(--muted);
  min-width: 0;
}
.search input {
  background: transparent;
  border: 0;
  padding: 9px 0;
  width: 100%;
  min-width: 0;
  font-size: 1rem;
}
.search input:focus-visible {
  outline: 0;
}
.searchbar:focus-within {
  border-color: var(--gold);
}
.board-search {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 350px;
  gap: 4px;
  border-radius: 7px;
}
.board-search .search { gap: 9px; }
.board-search input::placeholder { color: #abb0bb; opacity: 1; }
.board-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.board-search-clear {
  display: grid; place-items: center; flex: none; width: 34px; min-height: 36px;
  color: var(--muted); font-size: 1.4rem; line-height: 1; border-radius: 4px;
}
.board-search-clear:hover, .board-search-clear:focus-visible { color: var(--ink); background: #ffffff0c; }
.rocket-toolbar .board-search { margin-left: auto; }
@media (max-width: 900px) {
  .raid-toolbar:has(.board-search), .filterbar:has(.board-search) { flex-wrap: wrap; row-gap: 6px; }
  .board-search { order: -1; flex: 1 0 100%; max-width: 100%; }
  .raid-toolbar:has(.board-search) .raid-filters { flex: 1; min-width: 0; }
}
.search-submit,
.secondary,
.mini,
.refresh,
.pagination a {
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--ink);
  background: #2c303a;
  font-size: 0.88rem;
  font-weight: 650;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 25px;
}
.filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}
.filterbar .filters { margin: 0; }
.hunt-tools { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; margin: -8px 0 18px; }
.hunt-options { flex: 1 1 250px; min-width: 0; }
.hunt-options summary, .hunt-save button, .hunt-save a, .saved-search-menu summary, .saved-search-list summary { font: 600 .9rem Sans, sans-serif; color: var(--ink); cursor: pointer; }
.hunt-options summary { display: inline-flex; align-items: center; gap: 8px; padding: 9px 0; }
.hunt-options summary::-webkit-details-marker { display: none; }
.hunt-options summary:focus-visible, .hunt-fields select:focus-visible, .hunt-fields input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.filter-count { border-radius: 1em; padding: 2px 7px; background: var(--gold); color: #272014; }
.hunt-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(150px,100%),1fr)); align-items: end; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 16px; margin-top: 4px; }
.hunt-fields label { display: grid; gap: 5px; font-size: .9rem; }
.hunt-fields input:not([type=checkbox]), .hunt-fields select { width: 100%; min-width: 0; padding: 9px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; }
.ball-switch, .hunt-fields .ball-switch, .account-form .ball-switch {
  position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; cursor: pointer;
}
.ball-switch > input[type="checkbox"] {
  position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; min-height: 0;
  margin: 0; padding: 0; opacity: 0; cursor: pointer;
}
.ball-track {
  position: relative; display: inline-block; flex: none; width: 44px; height: 24px;
  border: 1px solid #676d7d; border-radius: 18px; background: #181a22;
  transition: background .18s, border-color .18s;
}
.ball-thumb {
  position: absolute; left: 2px; top: 2px; width: 18px; height: 18px;
  border: 1.5px solid #191c24; border-radius: 50%; box-shadow: 0 1px 2px #0008;
  background: linear-gradient(to bottom, #959cac 0 42%, #252933 42% 57%, #d3d7df 57%);
  transform: rotate(-28deg); transition: transform .2s ease-out;
}
.ball-thumb::after {
  content: ""; position: absolute; width: 6px; height: 6px; left: 50%; top: 50%;
  border-radius: 50%; border: 1.5px solid #252933; background: #f8f5eb; transform: translate(-50%, -50%);
}
.ball-switch input:checked + .ball-track { background: #3e3528; border-color: var(--gold); }
.ball-switch input:checked + .ball-track .ball-thumb {
  background: linear-gradient(to bottom, #ff5d51 0 42%, #252933 42% 57%, #fff7e7 57%);
  transform: translateX(20px) rotate(0deg);
}
.ball-switch input:focus-visible + .ball-track { outline: 2px solid var(--gold); outline-offset: 3px; }
.ball-switch:hover .ball-track { border-color: var(--ink); }
.hunt-apply, .hunt-save, .applied-hunt { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.hunt-apply { grid-column: 1/-1; }
.applied-hunt a, .hunt-save a { color: var(--teal); }
.applied-hunt a { display: inline-flex; align-items: center; min-height: 44px; }
.hunt-save button, .saved-search-actions button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.hunt-save form, .saved-search-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.hunt-save input[type=text], .saved-search-actions input[type=text] {
  max-width: 100%; padding: 8px 10px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
}
.saved-search-menu { flex-basis: 100%; }
.saved-search-list { padding: 0; margin: 8px 0 12px; list-style: none; }
.saved-search-list li { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.saved-search-list summary small { margin-left: 6px; color: var(--muted); font-weight: 400; }
.saved-search-actions { margin-top: 8px; }
.saved-search-actions a { color: var(--teal); padding: 4px 8px 4px 0; }
.applied-hunt { margin: -6px 0 16px; color: var(--muted); font-size: .9rem; }
.applied-hunt span { padding: 2px 8px; background: var(--surface); border-radius: 4px; }
.identity .shiny-mark, .dex-tile .shiny-mark, .shiny-mark { color: var(--gold); }
.shiny-status { font-size: .87rem; color: var(--muted); margin-top: 6px; }
.art-caption { position: absolute; z-index: 2; bottom: 8px; padding: 5px 9px; border-radius: 5px; background: var(--bg); color: var(--ink); font-size: .8rem; }
.art-caption { left: 8px; }
.gallery-link { color: var(--teal); font-size: .9rem; }
.gallery-link { display: inline-block; margin: 6px 0; }
@media (max-width: 520px) {
  .hunt-tools { gap: 4px 12px; }
  .hunt-fields { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; gap: 10px; }
  .hunt-options summary { min-height: 40px; }
}
.country-filter select {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  font: inherit;
  font-size: .88rem;
}
@media (pointer: coarse) {
  .country-filter select, .pagination a { min-height: 44px; }
  .board-search-clear { width: 44px; min-height: 44px; }
}
.filters a {
  padding: 6px 13px;
  border-radius: 24px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 600;
}
.filters a[aria-current] {
  background: var(--gold);
  border-color: var(--gold);
  color: #302510;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.section-heading h2 {
  font-size: 1.55rem;
  letter-spacing: 0.015em;
}
.refresh,
.secondary,
.actions,
.mini,
.primary,
.locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.refresh {
  background: transparent;
  font-weight: 500;
}
.refresh.new {
  border-color: var(--gold);
  color: var(--gold);
}
.deck {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
}
.queue,
.rail,
.selected {
  min-width: 0;
}
.rail {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 18px;
}
.rail > .selected:empty {
  display: none;
}
.row {
  border-bottom: 1px solid #343842;
  background: #21242b;
}
.row:first-child {
  border-radius: 9px 9px 0 0;
}
.row:has(.pick[aria-pressed="true"]) {
  background: #303038;
  box-shadow: inset 3px 0 var(--gold);
}
.row-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content 36px 82px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  min-height: 66px;
}
.pick {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-align: left;
  padding: 0;
}
.thumb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--type) 11%, #282b34);
  border-radius: 9px;
  flex: none;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.identity {
  display: grid;
  min-width: 0;
}
.weather-art { object-fit: contain; vertical-align: middle; flex: none; }
.weather-muted { filter: grayscale(1); opacity: .65; }
.types img.encounter-weather { margin-inline-start: auto; width: 20px; height: 20px; }
.identity strong,
.dex-tile strong {
  line-height: 1.1;
  font-size: 1.25rem;
  font-weight: 660;
  overflow-wrap: anywhere;
}
.identity small,
.dex-tile small {
  color: var(--muted);
  font-size: 0.79rem;
}
.row-stat,
.timer,
.locked {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.row-stat {
  font-weight: 600;
}
.perfect {
  color: var(--gold);
}
.timer {
  text-align: right;
  color: var(--muted);
}
.locked {
  color: #d8c697;
}
a.locked:hover { color: var(--gold); }
.mini {
  font-size: 0.85rem;
  background: #383a40;
  min-height: 36px;
  padding: 6px 10px;
}
.mini:hover,
.secondary:hover,
.search-submit:hover {
  border-color: var(--gold);
}
.actions button {
  white-space: nowrap;
}
.row .action-feedback:not(:empty) {
  margin: 0 12px 10px 15px;
}
.encounter,
.dex-links,
.empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.artfield {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(165px, 18vw, 220px);
  background:
    repeating-linear-gradient(
      127deg,
      transparent 0 31px,
      #ffffff0d 32px,
      transparent 33px 61px
    ),
    radial-gradient(
      ellipse at 68% 60%,
      color-mix(in srgb, var(--type) 40%, #292b37),
      color-mix(in srgb, var(--type) 13%, #22242c)
    );
  border-bottom: 1px solid #ffffff15;
}
.dex-code {
  position: absolute;
  top: 14px;
  left: 18px;
  color: var(--type);
  z-index: 1;
  font-size: 0.72rem;
}
.dex-watermark {
  position: absolute;
  left: 4%;
  bottom: 7%;
  font:
    800 clamp(110px, 13vw, 180px)/0.85 Cond,
    sans-serif;
  letter-spacing: -0.05em;
  color: color-mix(in srgb, var(--type) 25%, transparent);
}
.orbit {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid #ffffff18;
  border-radius: 50%;
  right: 12%;
  top: 12%;
  box-shadow:
    0 0 0 13px #ffffff07,
    0 0 0 40px #ffffff07;
}
.portrait-stage {
  display: block;
  position: absolute;
  right: 3%;
  top: 2%;
  width: 64%;
  height: 96%;
}
.hero-art, .portrait-toggle, .portrait-glint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
}
.hero-art, .portrait-glint {
  object-fit: scale-down;
}
.hero-art {
  filter: drop-shadow(0 8px 5px #17172259);
}
.portrait-toggle { overflow: hidden; border-radius: 12px; }
.portrait-toggle:focus-visible { outline-offset: -4px; }
.raid-tiers { flex-wrap: wrap; margin: 12px 0 20px; }
.raid-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 14px; }
.raid-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 15px; min-width: 0; }
.raid-card-head { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--muted); }
.raid-card-head > :first-child { color: var(--gold); font-weight: 700; }
.raid-card time { font-variant-numeric: tabular-nums; color: var(--ink); }
.raid-boss { display: flex; align-items: center; gap: 14px; margin: 10px 0 15px; }
.raid-boss img { object-fit: scale-down; }
.raid-boss h3 { font: 700 1.65rem/1.15 Cond,sans-serif; }
.raid-boss p, .raid-boss small { color: var(--muted); font-size: .88rem; }
.raid-unknown { width: 86px; text-align: center; font: 700 3rem/86px Cond,sans-serif; color: var(--muted); }
.raid-card .actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
.raid-card .actions button { font-size: .84rem; padding: 8px 10px; }
.raid-empty { grid-column: 1 / -1; }
.portrait-toggle .hero-art { transition: opacity .48s ease; }
.shiny-layer, [data-show-shiny] .hero-art:first-child { opacity: 0; }
[data-show-shiny] .shiny-layer { opacity: 1; }
.portrait-label { position: absolute; right: 4px; bottom: 4px; pointer-events: none; padding: 3px 7px; border-radius: 5px; font-size: .73rem; color: var(--ink); background: #191b22e8; }
.hover-hint, .shiny-caption, [data-show-shiny] .portrait-hint { display: none; }
[data-show-shiny] .shiny-caption { display: inline; color: var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .hover-hint { display: inline; }
  .tap-hint { display: none; }
}
.portrait-glint {
  pointer-events: none;
  opacity: 0;
  filter: brightness(0) invert(1);
  mask: linear-gradient(112deg, transparent 43%, black 50%, transparent 57%) 100% 50% / 250% 100% no-repeat;
}
@keyframes portrait-glint {
  0% { mask-position: 100% 50%; opacity: 0; }
  30% { opacity: .55; }
  100% { mask-position: 0 50%; opacity: 0; }
}
.card-body {
  padding: 18px clamp(15px, 2vw, 24px) 20px;
}
.types {
  display: flex;
  gap: 6px;
}
.types span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--type);
  font-size: 0.77rem;
  font-weight: 650;
}
.types img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.card-body h2 {
  font-size: 2.65rem;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 7px 0 2px;
}
.place,
.variant {
  color: var(--muted);
  font-size: 0.9rem;
}
.place .ico {
  margin-right: 6px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 17px 0 7px;
  padding: 11px 0;
  border-block: 1px solid var(--line);
}
.stats > div + div {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.stats dt {
  color: var(--muted);
  font-size: 0.78rem;
}
.stats dd {
  font-weight: 650;
  font-size: 1.65rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.iv-spread {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.73rem;
  color: var(--muted);
  margin: 8px 0;
}
.iv-spread b {
  color: var(--ink);
  font-weight: 600;
}
.card-body > .actions,
.card-body > .locked {
  margin-top: 10px;
}
.primary,
.secondary {
  min-height: 43px;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 0.91rem;
  font-weight: 650;
}
.primary {
  background: var(--gold);
  color: #302410;
}
.primary:hover {
  background: #ffdb8a;
}
.card-body > .actions {
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
}
.species-link,
.dex-all,
.dex-links .section-heading a,
.empty a {
  display: inline-block;
  color: var(--gold);
  font-size: 0.9rem;
}
.species-link {
  margin-top: 15px;
}
.species-link i {
  margin-left: 4px;
}
.dex-links {
  padding: 14px 19px;
}
.dex-links .section-heading {
  margin: 0;
}
.dex-links h2 {
  font-size: 1.35rem;
}
.dex-link {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.dex-link span {
  font:
    0.8rem/1.8 ui-monospace,
    monospace;
  color: var(--muted);
}
.dex-all {
  margin-top: 9px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 18px 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.pagination a {
  min-width: 70px;
  display: inline-grid;
  place-items: center;
}
.empty {
  padding: 28px;
  text-align: center;
}
.empty h3 {
  font-size: 1.55rem;
}
.empty p {
  margin: 6px auto 14px;
  color: var(--muted);
  max-width: 38ch;
}
.empty img {
  object-fit: contain;
}
.empty .empty-pokemon {
  display: block;
  max-width: 100%;
  object-fit: scale-down;
  margin: 0 auto 12px;
}
.action-feedback {
  color: var(--gold);
  font-size: 0.87rem;
}
.action-feedback:not(:empty) {
  margin-top: 10px;
}
.action-feedback input {
  display: block;
  width: 100%;
  padding: 8px;
  margin: 4px 0;
  background: var(--bg);
  border: 1px solid var(--line);
}
.directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.dex-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 8px;
}
.dex-tile > span + span {
  display: grid;
  gap: 3px;
}
.dex-tile:hover {
  border-color: var(--gold);
  text-decoration: none;
}
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  font-size: 0.9rem;
}
.dialog-head button {
  font-size: 1.5rem;
  min-width: 44px;
  min-height: 44px;
}
dialog {
  width: min(440px, 94vw);
  max-height: 92dvh;
  overscroll-behavior: contain;
  padding: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
dialog::backdrop {
  background: #0a0a11bb;
}
@media (max-width: 760px) {
  .mast-inner {
    height: 57px;
    gap: 22px;
  }
  .brand {
    font-size: 25px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .deck {
    grid-template-columns: 1fr;
  }
  .rail {
    position: static;
  }
  .selected {
    display: none;
  }
  .row > .encounter {
    margin: 3px 10px 12px;
  }
  .queue:has(.empty) + .rail {
    margin-top: 0;
  }
  .intro {
    margin: 24px 0 17px;
  }
  .row-body {
    grid-template-columns: minmax(0, 1fr) max-content 30px 76px;
  }
  .artfield {
    height: 170px;
  }
  .filters {
    margin-bottom: 17px;
  }
  .pick,
  .mini,
  .filters a,
  .search-submit {
    min-height: 44px;
  }
  .filters a {
    display: inline-flex;
    align-items: center;
  }
  .card-body .actions {
    gap: 7px;
  }
}
@media (max-width: 480px) {
  .shell,
  .mast-inner {
    padding-inline: 14px;
  }
  .mast-inner {
    gap: 15px;
  }
  .intro {
    align-items: flex-start;
    gap: 9px;
  }
  .intro h1 {
    font-size: 2.25rem;
  }
  .filters {
    gap: 5px;
  }
  .filters a {
    padding: 4px 9px;
    font-size: 0.8rem;
  }
  .row-body {
    padding: 6px 8px;
    gap: 5px;
    grid-template-columns: minmax(0, 1fr) max-content 24px 65px;
  }
  .pick {
    gap: 7px;
  }
  .thumb {
    width: 41px;
    height: 41px;
  }
  .identity strong {
    font-size: 1.1rem;
  }
  .identity small,
  .row-stat,
  .timer,
  .locked {
    font-size: 0.73rem;
  }
  .mini {
    font-size: 0.78rem;
    padding: 5px 7px;
  }
  .directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dex-tile {
    padding: 6px;
    gap: 7px;
  }
  .dex-tile strong {
    font-size: 1.05rem;
  }
  .kind-label {
    display: none;
  }
}
.allowance {
  display: flex; flex-wrap: wrap; column-gap: 12px;
  margin: -10px 0 16px;
  color: var(--muted);
  font-size: 0.85rem;
}
.allowance-next { white-space: nowrap; }
.allowance-next[data-empty] { visibility: hidden; }
.allowance [data-reset-minutes] { display: inline-block; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.matched-species {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.matched-species a {
  color: var(--gold);
}
@media (max-width: 980px) {
  .mast-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand account" "nav nav";
    height: auto;
    gap: 0 8px;
    padding-top: 9px;
  }
  .mast .brand { grid-area: brand; justify-self: start; }
  .mast-account { grid-area: account; }
  .mast .account-link { padding: 6px 0; }
  #site-top .mast-nav { position: relative; display: grid; grid-area: nav; grid-template-columns: auto auto auto auto; justify-content: space-around; gap: 0; }
  .mast-menu { position: static; }
  .mast-menu > summary, .mast-raffle { padding-inline: 4px; }
  .mast-panel { width: min(100%, 370px); }
  .mast-panel-wide:has(.mast-tier-link) { width: min(100%, 414px); }
  .mast-menu:nth-child(2) .mast-panel { left: 50%; transform: translateX(-50%); }
  .mast-menu:last-of-type .mast-panel { left: auto; right: 0; width: max-content; max-width: 100%; }
  .mast-section a { min-height: 44px; }
}
.actions .destination img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
@media (max-width: 620px) {
  .mast-account { gap: clamp(14px, 4vw, 18px); }
  .mast .discord-badge { min-width: 44px; min-height: 44px; }
  .discord-badge-face { min-width: 44px; min-height: 30px; padding-inline: 7px; gap: 4px; border-radius: 6px; }
  .discord-badge-face img { width: 20px; height: 20px; }
  .discord-count { padding-left: 4px; }
  .mast .premium-pass-link { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .mast .account-link { display: inline-flex; align-items: center; min-height: 44px; }
  .mast-account :is(.premium-ticket,.member-ticket) { width: 42px; min-height: 26px; padding: 0; border-radius: 5px; }
  .mast-account .member-ticket { width: 52px; }
  .mast-account #premium-ticket-label { display: none; }
  .ticket-stamp { display: block; }
}
@media (max-width: 379px) {
  .mast-nav :is(summary, .mast-raffle) { padding-inline: 2px; gap: 4px; font-size: .88rem; }
  .mast-section a { font-size: .9rem; }
  .foot-nav { grid-template-columns: 1fr; gap: 16px; }
  .foot-group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .foot-group h2 { margin-bottom: 3px; }
  .foot-group a { display: flex; }
}
@media (max-width: 374px) {
  .mast .discord-count { display: none; }
}
.card-body .actions--full, .raid-card .actions--full {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.actions--full .copy { grid-column: 1 / -1; }
.copy-ready { display: inline-flex; align-items: center; justify-content: center; gap: .45em; }
.action-feedback[data-quiet] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
.actions .copy { position: relative; }
.actions button.copy[data-copied] { background: var(--teal); border-color: var(--teal); color: #173628; }
.copy-inline-confirmation { display: none; }
.copy[data-copied] .copy-inline-confirmation { position: absolute; inset: 0; display: grid; place-items: center; }
.copy[data-copied] .copy-ready { visibility: hidden; }
.actions .destination { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 42px; padding: 5px; font-size: .8rem; }
.queue { container-type: inline-size; }
.pick .thumb { position: relative; }
.sighting-check {
  display: none; position: absolute; z-index: 2; width: 17px; height: 17px; place-items: center; border-radius: 50%;
  background: #a2e5bb; color: #173628; font: 800 11px/1 Sans,sans-serif; box-shadow: 0 0 0 2px #21242b;
}
.thumb .sighting-check { bottom: -1px; right: -1px; }
.artfield .sighting-check { top: 12px; right: 12px; }
.row[data-checked] > .row-body .sighting-check, .encounter[data-checked] .sighting-check { display: grid; }
.row[data-checked] .thumb img, .encounter[data-checked] .hero-art { filter: saturate(.65); }
.raid-card[data-checked] img:not(.destination img) { filter: saturate(.3); opacity: .65; }
.row[data-checked] .identity strong, .raid-card[data-checked] h3, .encounter[data-checked] h2 { color: var(--muted); }
.hunt-heading { flex-wrap: wrap; }
.hunt-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.hunt-buttons > * { flex: 1 0 auto; }
.hunt-buttons > form { display: grid; margin: 0; }
.hunt-buttons :is(button, .refresh) { min-height: 44px; padding: 6px 10px; gap: 6px; border-radius: 7px; font-size: .88rem; font-weight: 650; line-height: 1.25; white-space: nowrap; }
.hunt-buttons button { min-width: 8.75rem; }
@media (max-width: 450px) {
  .hunt-buttons { width: 100%; }
}
@media (max-width: 360px) {
  .hunt-buttons { gap: 6px; }
  .hunt-buttons button { min-width: max-content; }
  .hunt-buttons :is(button, .refresh) { padding-inline: 6px; gap: 4px; }
}
.shiny-check-start { color: var(--gold); }
.shiny-check-start[hidden], .check-retry[hidden] { display: none; }
#shiny-check { width: min(390px,94vw); }
#shiny-check .dialog-head { border-bottom: 1px solid var(--line); }
.check-card { padding: 16px 20px; }
.check-pokemon { display: flex; align-items: center; gap: 16px; }
.check-pokemon img { object-fit: contain; }
.check-pokemon h2, .check-pokemon p { margin: 0; }
.check-pokemon p, .check-pokemon small { color: var(--muted); }
.check-card .stats { margin: 14px 0; }
.check-card .actions--full { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 12px; }
.check-card .copy { min-height: 44px; }
.check-skip { display: block; margin: 12px auto 0; color: var(--muted); padding: 6px 12px; }
.check-status:not(:empty) { padding: 12px 20px; margin: 0; color: var(--muted); font-size: .9rem; }
.check-status:empty { display: none; }
.check-retry { margin: 0 20px 16px; }
.row-body:has(.actions--compact) { grid-template-columns: minmax(0, 1fr) max-content max-content; }
.actions--compact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 4px; }
.actions--compact .copy { font-size: .8rem; gap: .45em; }
.row .actions--compact { grid-column: 1 / -1; }
@container (min-width: 540px) {
  .row-body:has(.actions--compact) { grid-template-columns: minmax(0, 1fr) max-content 34px auto; }
  .row .actions--compact { grid-column: auto; grid-template-columns: auto repeat(3, 36px); }
  .row .actions--compact .copy { min-width: 6em; }
  .row .destination span { display: none; }
  .row .destination { min-height: 36px; }
}

/* Shared board masthead, phase tabs and country filter. */
.raid-board {
  --edge: #3a4047;
  --panel: #22262d;
  --paper: #f8f6f1;
  color: var(--paper);
  position: relative;
}
.raid-masthead {
  position: relative; isolation: isolate;
  padding: 30px 0 0;
  border-bottom: 1px solid var(--edge);
}
.raid-masthead h1 { font-size: clamp(2.5rem, 5vw, 3.9rem); letter-spacing: -.035em; }
.raid-phases { display: flex; gap: 24px; margin-top: 17px; }
.raid-phases a {
  display: grid; align-content: center; min-height: 46px; margin-bottom: -1px;
  border-bottom: 3px solid transparent; font-weight: 650; color: #b6bac4;
}
.raid-phases a[aria-current] { border-color: var(--gold); color: var(--paper); }
.raid-filters a, .raid-refresh, .raid-country-select select {
  border: 1px solid var(--edge); border-radius: 6px; background: #22252c;
  color: #c9ccd2; font: 600 .875rem/1.2 Sans,sans-serif;
}
.raid-country-select { position: relative; display: block; }
.raid-country-select .pin { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #b3bac3; pointer-events: none; }
.raid-country-select::after {
  content: ""; position: absolute; right: 12px; top: calc(50% - 4px); width: 6px; height: 6px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none;
}
.raid-country-select select { appearance: none; cursor: pointer; min-height: 38px; padding: 6px 28px 6px 31px; }
.raid-toolbar a:hover, .raid-country-select select:hover { border-color: #83858b; color: white; }
.raid-board :focus-visible { outline: 3px solid #ffd071; outline-offset: 2px; }
@media (max-width: 700px) {
  .raid-masthead { padding-top: 22px; }
  .raid-masthead h1 { font-size: 2.55rem; }
  .raid-phases { margin-top: 8px; }
}
@media (max-width: 420px) {
  .raid-country-select select { width: 119px; padding-left: 8px; padding-right: 19px; }
  .raid-country-select .pin { display: none; }
  .raid-country-select::after { right: 8px; }
}
@media (max-width: 355px) {
  .raid-masthead h1 { font-size: 2.1rem; }
}
