:root {
  color-scheme: light;
  --ink: #17203a;
  --muted: #5b6681;
  --line: #d6e2f6;
  --soft: #f3f8ff;
  --panel: rgba(255, 255, 255, 0.94);
  --red: #e93f36;
  --blue: #286df0;
  --sky: #27c8f7;
  --yellow: #ffd33d;
  --green: #22a866;
  --violet: #7a55ff;
  --orange: #ff8a3d;
  --shadow: 0 22px 55px rgba(28, 66, 130, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 211, 61, 0.32), transparent 260px),
    radial-gradient(circle at 82% 0%, rgba(39, 200, 247, 0.26), transparent 320px),
    linear-gradient(180deg, #edf6ff 0%, #f8fbff 42%, #fff 100%);
  color: var(--ink);
  line-height: 1.58;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.icon, .nav-icon, .path-icon, .media-icon, .tactic-icon, .format-icon {
  display: inline-block;
  flex: 0 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(214, 226, 246, 0.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1220px;
  padding: 12px 20px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  animation: badge-pulse 2.8s ease-in-out infinite;
  background: conic-gradient(from 20deg, var(--red), var(--yellow), var(--blue), var(--green), var(--red));
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(23, 32, 58, 0.14), 0 8px 20px rgba(40, 109, 240, 0.24);
  height: 24px;
  width: 24px;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links a,
.nav-more summary {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #3e4b66;
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  gap: 5px;
  min-height: 34px;
  padding: 6px 9px;
  transition: background 160ms ease, transform 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-more summary:hover {
  background: #eef6ff;
  color: var(--blue);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-more {
  position: relative;
}

.nav-more summary {
  cursor: pointer;
  list-style: none;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary::after {
  content: "▾";
  font-size: 10px;
  margin-left: 2px;
}

.nav-more-menu {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  min-width: 170px;
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 60;
}

.nav-more[open] .nav-more-menu,
.nav-more:hover .nav-more-menu,
.nav-more:focus-within .nav-more-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-more-menu a {
  justify-content: flex-start;
}

.nav-more::after {
  bottom: -8px;
  content: "";
  display: block;
  height: 10px;
  left: 0;
  position: absolute;
  right: 0;
}

.nav-icon { height: 16px; width: 16px; }

.nav-toggle {
  align-items: center;
  background: #17203a;
  border: 2px solid rgba(255, 211, 61, 0.72);
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: none;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
}

.language-switcher {
  align-items: center;
  background: #17203a;
  border: 2px solid rgba(255, 211, 61, 0.72);
  border-radius: 999px;
  color: white;
  cursor: default;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  min-height: 36px;
  padding: 7px 12px;
  position: relative;
  white-space: nowrap;
}

.language-switcher::after {
  content: "▾";
  margin-left: 8px;
}

.language-menu {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  min-width: 150px;
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% - 2px);
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 50;
}

.language-switcher:hover .language-menu,
.language-switcher:focus-within .language-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-switcher::before {
  content: "";
  height: 12px;
  left: 0;
  position: absolute;
  right: 0;
  top: 100%;
}

.language-menu a {
  border-radius: 10px;
  color: var(--ink);
  padding: 8px 10px;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
  background: #eef6ff;
  text-decoration: none;
}

.hero {
  background:
    linear-gradient(120deg, rgba(18, 32, 72, 0.96), rgba(28, 86, 172, 0.78)),
    radial-gradient(circle at 18% 18%, rgba(255, 211, 61, 0.38), transparent 28%),
    radial-gradient(circle at 80% 40%, rgba(39, 200, 247, 0.42), transparent 32%),
    linear-gradient(135deg, #1e3b9a, #111d40);
  color: white;
  overflow: hidden;
  position: relative;
}

.hero::before {
  animation: float-grid 10s ease-in-out infinite alternate;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  opacity: 0.45;
  position: absolute;
}

@keyframes float-grid {
  from { transform: translateY(0); }
  to { transform: translateY(-18px); }
}

.hero-inner {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  margin: 0 auto;
  max-width: 1220px;
  min-height: 480px;
  padding: 54px 20px 42px;
  position: relative;
}

.hero h1 {
  font-size: clamp(38px, 5.3vw, 74px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 18px;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  margin: 0 0 22px;
  max-width: 690px;
}

.hero-actions, .language-row, .quick-grid, .card-grid, .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  align-items: center;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 850;
  min-height: 42px;
  padding: 8px 15px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transform: translateY(-2px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

main .button.secondary,
.dex-shell .button.secondary,
.article .button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

main .button.secondary:hover,
.dex-shell .button.secondary:hover,
.article .button.secondary:hover {
  border-color: rgba(40, 109, 240, 0.46);
  box-shadow: 0 12px 24px rgba(28, 66, 130, 0.14);
}

.quick-search {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  margin-top: 18px;
  max-width: 620px;
  padding: 12px;
}

.quick-search label {
  color: rgba(255, 255, 255, 0.86);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 6px;
}

.quick-search input {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.search-results {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.search-results a {
  background: white;
  border-radius: 10px;
  color: var(--ink);
  display: block;
  padding: 8px 10px;
}

.search-results small {
  color: var(--muted);
  display: block;
}

.hero-visual {
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
}

.hero-visual img {
  animation: slow-drift 9s ease-in-out infinite alternate;
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  transform-origin: center;
  width: 100%;
}

.hero-visual::after {
  animation: scan-line 3.8s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  content: "";
  inset: 0;
  opacity: 0.34;
  position: absolute;
  transform: translateX(-120%);
}

@keyframes slow-drift { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes scan-line { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }

main {
  margin: 0 auto;
  max-width: 1220px;
  padding: 30px 20px 58px;
}

.section { margin: 34px 0; }

.section-heading-row {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading-row > a:not(.button) {
  align-items: center;
  background: #17203a;
  border: 2px solid rgba(255, 211, 61, 0.82);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 950;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  text-align: center;
  white-space: nowrap;
}

.section-heading-row > a:not(.button):hover {
  box-shadow: 0 12px 24px rgba(28, 66, 130, 0.16);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.section-heading-row h2, .pathfinder h2, .section h2, .article h2 {
  font-size: 29px;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0 0 8px;
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
  margin: -4px 0 18px;
  max-width: 780px;
}

.pathfinder, .format-hub, .article {
  background: var(--panel);
  border: 1px solid rgba(214, 226, 246, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.pathfinder {
  display: grid;
  gap: 22px;
  grid-template-columns: 0.86fr 1.14fr;
  margin: -12px 0 34px;
  padding: 24px;
}

.format-hub {
  margin: 0 0 34px;
  padding: 24px;
}

.eyebrow {
  color: var(--red);
  display: inline-block;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pathfinder p {
  color: var(--muted);
  margin: 0;
}

.path-grid, .format-grid {
  display: grid;
  gap: 12px;
}

.path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.format-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.path-card, .format-card, .card {
  background: linear-gradient(135deg, #ffffff, #f1f8ff);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.path-card, .format-card {
  display: block;
  min-height: 126px;
  padding: 14px;
}

.path-card:hover, .format-card:hover, .card:hover {
  border-color: rgba(40, 109, 240, 0.42);
  box-shadow: 0 14px 28px rgba(28, 66, 130, 0.16);
  text-decoration: none;
  transform: translateY(-3px);
}

.path-icon, .format-icon {
  background: linear-gradient(135deg, var(--yellow), #fff1a3);
  border: 2px solid rgba(24, 33, 58, 0.1);
  border-radius: 15px;
  color: #694400;
  height: 48px;
  margin-bottom: 10px;
  padding: 10px;
  width: 48px;
}

.format-icon {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: white;
}

.path-card span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.path-card strong, .path-card small, .format-card strong, .format-card small {
  display: block;
}

.path-card small, .format-card small {
  color: var(--muted);
  margin-top: 5px;
}

.sprite-stack,
.card-sprites {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  min-height: 38px;
}

.card-sprites {
  margin: -22px 0 10px 10px;
  position: relative;
  z-index: 2;
}

.mini-sprite {
  background: linear-gradient(145deg, #ffffff, #eaf4ff);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(40, 109, 240, 0.18);
  height: 46px;
  margin-right: -8px;
  object-fit: contain;
  padding: 3px;
  width: 46px;
}

.mini-sprite.fallback {
  align-items: center;
  color: var(--blue);
  display: inline-flex;
  justify-content: center;
}

.mini-sprite.user-initial {
  background: #f4f8ff;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(40, 109, 240, 0.18);
  color: #33445c;
  font-size: 14px;
  font-weight: 950;
  height: 46px;
  justify-content: center;
  margin-right: -8px;
  width: 46px;
}

.card-grid {
  align-items: stretch;
}

.card {
  flex: 1 1 250px;
  overflow: hidden;
  padding: 16px;
}

.card-image {
  aspect-ratio: 16 / 9;
  border-radius: 13px;
  display: block;
  margin: 0 0 14px;
  object-fit: cover;
  width: 100%;
}

.card h3 {
  font-size: 19px;
  line-height: 1.24;
  margin: 0 0 8px;
}

.strategy-card { border-top: 5px solid var(--blue); }
.card p { color: var(--muted); margin: 0 0 10px; }

.tag {
  background: #f7faff;
  border: 1px solid #d9e5f5;
  border-radius: 8px;
  color: #33445c;
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  padding: 7px 10px;
}

.article {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) 280px;
  padding: 28px;
}

.article.wide-article {
  grid-template-columns: minmax(0, 1fr);
}

.article.wide-article .sidebar {
  border-left: 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-left: 0;
  padding-top: 22px;
}

.article h1 {
  font-size: clamp(32px, 4vw, 54px);
  letter-spacing: 0;
  line-height: 1.03;
  margin: 0 0 12px;
}

.article p, .article li { color: #2e3748; }

.answer-box {
  background: linear-gradient(135deg, #fff8d9, #eaf8ff);
  border: 1px solid #f2d46d;
  border-radius: 16px;
  margin: 20px 0;
  padding: 16px;
}

.answer-box p {
  font-size: 18px;
  margin: 4px 0 0;
}

.article-cover {
  border-radius: 16px;
  margin: 22px 0 8px;
  overflow: hidden;
}

.article-cover img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.team-media-grid, .tactic-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 20px 0;
}

.pokemon-media-card {
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #eff7ff);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  gap: 12px;
  min-height: 86px;
  padding: 10px;
}

.pokemon-media-card img, .pokemon-media-fallback {
  border-radius: 14px;
  flex: 0 0 62px;
  height: 62px;
  width: 62px;
}

.pokemon-media-card img { object-fit: contain; }

.pokemon-media-card img {
  transition: transform 180ms ease;
}

.pokemon-media-card:hover img {
  transform: translateY(-4px) scale(1.06);
}

.pokemon-media-fallback {
  align-items: center;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
}

.media-icon { height: 30px; width: 30px; }

.pokemon-media-card h3 {
  font-size: 15px;
  margin: 0 0 2px;
}

.pokemon-media-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.easy-box {
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(255, 211, 61, 0.3), rgba(39, 200, 247, 0.18)),
    white;
  border: 2px solid rgba(255, 211, 61, 0.72);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(255, 138, 61, 0.12);
  display: flex;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
}

.easy-icon {
  background: var(--yellow);
  border-radius: 50%;
  color: #703c00;
  flex: 0 0 auto;
  height: 42px;
  padding: 9px;
  width: 42px;
}

.easy-box span {
  color: #8a4f00;
  display: block;
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.easy-box p {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.source-quality li {
  margin-bottom: 8px;
}

.battle-sidebar {
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 14px;
}

.battle-sidebar h2 {
  font-size: 15px;
  margin: 0 0 10px;
}

.battle-sidebar p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 10px;
}

.battle-shortcuts {
  display: grid;
  gap: 8px;
}

.battle-shortcuts a,
.sidebar-cta {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  display: block;
  padding: 10px;
}

.battle-shortcuts a:hover,
.sidebar-cta:hover {
  border-color: rgba(40, 109, 240, 0.45);
  text-decoration: none;
}

.battle-shortcuts strong,
.battle-shortcuts span {
  display: block;
}

.battle-shortcuts span {
  color: var(--muted);
  font-size: 12px;
}

.reveal-item {
  min-width: 0;
  opacity: 0;
  overflow-wrap: anywhere;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease, box-shadow 180ms ease, border-color 160ms ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tactic-chip {
  align-items: center;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  border-radius: 16px;
  color: white;
  display: flex;
  gap: 10px;
  min-height: 78px;
  padding: 12px;
}

.tactic-chip:nth-child(2n) { background: linear-gradient(135deg, var(--red), var(--orange)); }
.tactic-chip:nth-child(3n) { background: linear-gradient(135deg, var(--green), #5bd488); }
.tactic-chip:nth-child(4n) { background: linear-gradient(135deg, var(--violet), #b08cff); }

.tactic-icon {
  color: white;
  height: 26px;
  width: 26px;
}

.tactic-chip strong, .tactic-chip small { display: block; }
.tactic-chip small { color: rgba(255, 255, 255, 0.86); line-height: 1.3; margin-top: 2px; }

.article ul, .article ol { padding-left: 22px; }

.article table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  width: 100%;
}

.article th, .article td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
}

.article th { background: #e8f3ff; }

.sidebar {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.fact-box {
  background: linear-gradient(135deg, #ffffff, #f6fbff);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 14px;
}

.toc-box {
  position: sticky;
  top: 84px;
}

.toc-box ol { margin: 0; padding-left: 18px; }
.toc-box a { color: var(--muted); }
.toc-level-3 { margin-left: 10px; }

.fact-box h2, .fact-box h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.fact-box p, .fact-box li {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 6px;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.site-footer {
  background: #101b3a;
  color: rgba(255, 255, 255, 0.76);
  padding: 28px 20px;
}

.footer-inner {
  margin: 0 auto;
  max-width: 1220px;
}

.site-footer a { color: white; }

.dex-shell {
  margin: 0 auto;
  max-width: 1280px;
  padding: 18px 20px 56px;
}

.dex-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 247, 255, 0.94)),
    radial-gradient(circle at 16% 10%, rgba(255, 211, 61, 0.38), transparent 240px),
    radial-gradient(circle at 84% 18%, rgba(233, 63, 54, 0.18), transparent 260px);
  border: 1px solid rgba(164, 190, 232, 0.75);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(28, 66, 130, 0.15);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  min-height: 520px;
  overflow: hidden;
  padding: 34px;
  position: relative;
}

.dex-hero::before {
  background:
    linear-gradient(90deg, rgba(40, 109, 240, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(40, 109, 240, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.dex-hero-copy,
.dex-hero-board {
  position: relative;
}

.dex-hero h1 {
  font-size: clamp(42px, 5.4vw, 76px);
  letter-spacing: 0;
  line-height: 0.96;
  margin: 8px 0 18px;
  max-width: 780px;
}

.dex-hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 18px;
  max-width: 720px;
}

.dex-search {
  background: white;
  border: 2px solid rgba(40, 109, 240, 0.18);
  box-shadow: 0 16px 36px rgba(40, 109, 240, 0.12);
}

.dex-search label {
  color: var(--ink);
}

.mini-language-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mini-lang {
  background: #f6fbff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  padding: 6px 10px;
}

.dex-hero-board {
  align-items: center;
  display: grid;
  min-height: 420px;
}

.battle-orbit {
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgba(255,255,255,0.95) 0 24%, transparent 25%),
    conic-gradient(from 10deg, rgba(233,63,54,0.26), rgba(255,211,61,0.3), rgba(39,200,247,0.27), rgba(34,168,102,0.23), rgba(122,85,255,0.2), rgba(233,63,54,0.26));
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: inset 0 0 0 16px rgba(255,255,255,0.38), 0 24px 56px rgba(40, 109, 240, 0.18);
  margin: 0 auto;
  max-width: 520px;
  position: relative;
  width: 100%;
}

.orbit-slot {
  align-items: center;
  animation: orbit-pop 700ms ease both;
  background: white;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(28, 66, 130, 0.18);
  color: var(--ink);
  display: grid;
  justify-items: center;
  min-width: 104px;
  padding: 8px;
  position: absolute;
  text-align: center;
}

.orbit-slot:hover {
  text-decoration: none;
  transform: translateY(-4px) scale(1.03);
}

.orbit-slot span {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.orbit-sprite {
  height: 74px;
  object-fit: contain;
  width: 74px;
}

.slot-1 { left: 50%; top: 0; transform: translate(-50%, -4%); }
.slot-2 { right: 2%; top: 24%; }
.slot-3 { bottom: 12%; right: 8%; }
.slot-4 { bottom: 12%; left: 8%; }
.slot-5 { left: 2%; top: 24%; }
.slot-6 { left: 50%; top: 44%; transform: translate(-50%, -50%); }

@keyframes orbit-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to { opacity: 1; }
}

.battle-card {
  background: rgba(23, 32, 58, 0.95);
  border: 2px solid rgba(255, 211, 61, 0.72);
  border-radius: 18px;
  bottom: 8px;
  color: white;
  left: 50%;
  max-width: 380px;
  padding: 16px;
  position: absolute;
  transform: translateX(-50%);
  width: calc(100% - 44px);
}

.battle-card strong,
.battle-card span {
  display: block;
}

.battle-card span,
.battle-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.dex-nav {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 18px 0;
}

.dex-nav-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  min-height: 132px;
  padding: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dex-nav-card:hover {
  border-color: rgba(40, 109, 240, 0.5);
  box-shadow: 0 18px 40px rgba(28, 66, 130, 0.15);
  text-decoration: none;
  transform: translateY(-3px);
}

.dex-nav-icon {
  background: linear-gradient(135deg, var(--yellow), #fff3ab);
  border-radius: 14px;
  color: #704800;
  height: 42px;
  margin-bottom: 10px;
  padding: 9px;
  width: 42px;
}

.dex-nav-card strong,
.dex-nav-card small {
  display: block;
}

.dex-nav-card small {
  color: var(--muted);
  margin-top: 4px;
}

.dex-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}

.two-column-dex {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pokemon-stat-list {
  display: grid;
  gap: 10px;
}

.pokemon-stat-card {
  align-items: center;
  background: linear-gradient(135deg, #fff, #f2f8ff);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 78px minmax(0, 1fr);
  min-height: 104px;
  padding: 10px;
}

.rank-badge {
  align-items: center;
  background: var(--ink);
  border-radius: 12px;
  color: white;
  display: inline-flex;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.stat-sprite {
  height: 76px;
  object-fit: contain;
  width: 76px;
}

.pokemon-stat-card h3 {
  margin: 0 0 4px;
}

.pokemon-stat-card p {
  margin: 6px 0 0;
}

.pokemon-stat-card p strong,
.pokemon-stat-card p span {
  display: block;
}

.pokemon-stat-card p span {
  color: var(--muted);
  font-size: 13px;
}

.type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.type-badge {
  align-items: center;
  background: #e9f2ff;
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  gap: 4px;
  padding: 4px 8px;
}

.type-icon {
  flex: 0 0 auto;
  height: 13px;
  width: 13px;
}
.type-flying { background: #e3edff; color: #2a4d95; }
.type-rock { background: #eee3c4; color: #5d4a11; }
.type-ghost { background: #e9e2ff; color: #3c2879; }

.core-dex {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 18px 0;
  padding: 20px;
}

.core-tools {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  margin: 16px 0;
}

.core-tools label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
}

.core-tools input {
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
}

.core-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.core-filters button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  min-height: 38px;
  padding: 7px 11px;
}

.core-filters button[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.core-scenario-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 18px 0;
}

.core-scenario-card {
  background: linear-gradient(180deg, #fffdf3, #f7fbff);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(28, 66, 130, 0.08);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 7px;
  grid-template-rows: auto auto auto minmax(48px, 1fr) auto;
  min-height: 190px;
  min-width: 0;
  padding: 13px;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.core-scenario-card:hover,
.core-scenario-card[aria-pressed="true"] {
  border-color: rgba(255, 211, 61, 0.95);
  box-shadow: 0 18px 34px rgba(28, 66, 130, 0.14);
  transform: translateY(-2px);
}

.scenario-icon {
  align-items: center;
  background: #17203a;
  border-radius: 14px;
  color: var(--yellow);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.scenario-svg {
  height: 21px;
  width: 21px;
}

.core-scenario-card strong {
  font-size: 15px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.core-scenario-card small {
  color: var(--blue);
  font-weight: 950;
}

.core-scenario-card span:not(.scenario-icon):not(.scenario-sprites) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.scenario-sprites {
  align-items: end;
  display: flex;
  min-height: 34px;
}

.mini-sprite {
  height: 38px;
  margin-right: -9px;
  object-fit: contain;
  width: 38px;
}

.core-dex-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.core-dex-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(28, 66, 130, 0.08);
  min-width: 0;
  overflow: hidden;
  padding: 14px;
}

.core-dex-card[hidden] {
  display: none;
}

.core-card-top,
.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.core-format,
.difficulty,
.metric-row span {
  background: #eef6ff;
  border-radius: 999px;
  color: #25446f;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.difficulty {
  background: #fff1be;
  color: #745000;
}

.core-team-line {
  align-items: center;
  background: linear-gradient(135deg, #f7fbff, #ffffff);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  margin: 12px 0;
  min-height: 98px;
  overflow: hidden;
  padding: 8px;
}

.core-team-line:hover {
  text-decoration: none;
}

.core-sprite {
  height: 74px;
  margin: 0 -5px;
  object-fit: contain;
  transition: transform 160ms ease;
  width: 74px;
}

.core-team-line:hover .core-sprite {
  transform: translateY(-4px);
}

.core-dex-card h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.core-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.core-tags span {
  align-items: center;
  background: #f4f8ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #25446f;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  gap: 4px;
  padding: 5px 7px;
}

.chip-icon {
  height: 14px;
  width: 14px;
}

.easy-note {
  align-items: start;
  background: linear-gradient(135deg, rgba(255, 211, 61, 0.32), rgba(255,255,255,0.9));
  border: 1px solid rgba(255, 211, 61, 0.72);
  border-radius: 14px;
  display: flex;
  gap: 8px;
  margin: 12px 0;
  padding: 10px;
}

.easy-note p {
  font-weight: 850;
  margin: 0;
}

.easy-note-icon {
  color: #8a5a00;
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

.core-use-case {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.core-use-case p {
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 9px;
}

.core-use-case strong {
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.core-flow {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin: 12px 0;
}

.core-flow article {
  background: #17203a;
  border-radius: 14px;
  color: white;
  display: grid;
  gap: 5px;
  min-height: 122px;
  padding: 10px;
}

.core-flow strong {
  color: var(--yellow);
  font-size: 12px;
  text-transform: uppercase;
}

.core-flow span {
  font-size: 12px;
  line-height: 1.35;
}

.flow-icon {
  height: 20px;
  width: 20px;
}

.core-dex-card dl {
  display: grid;
  gap: 4px;
  margin: 0;
}

.core-dex-card dt {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.core-dex-card dd {
  color: var(--muted);
  margin: 0 0 8px;
}

.core-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.core-actions a {
  align-items: center;
  background: var(--blue);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 13px;
  font-weight: 950;
  justify-content: center;
  line-height: 1.15;
  min-height: 38px;
  padding: 8px 10px;
  text-align: center;
  white-space: normal;
  word-break: normal;
}

.core-actions a:nth-child(2) {
  background: #17203a;
}

.core-actions a:hover {
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.tournament-board {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}

.counter-coach,
.player-intel,
.source-map {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 18px 0;
  padding: 20px;
}

.counter-grid,
.player-grid,
.source-map-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.counter-card,
.player-card,
.source-map-grid article {
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  padding: 14px;
}

.counter-card h3,
.source-map-grid h3 {
  margin: 8px 0 6px;
}

.counter-card p,
.source-map-grid p {
  color: var(--muted);
  margin: 0 0 10px;
}

.counter-card strong {
  background: rgba(255, 211, 61, 0.32);
  border: 1px solid rgba(255, 211, 61, 0.7);
  border-radius: 12px;
  display: block;
  padding: 9px;
}

.counter-team {
  display: flex;
  min-height: 42px;
}

.player-card {
  display: grid;
  gap: 6px;
}

.player-card:hover {
  border-color: rgba(40, 109, 240, 0.45);
  text-decoration: none;
  transform: translateY(-2px);
}

.player-icon {
  background: linear-gradient(135deg, var(--yellow), #fff2a8);
  border-radius: 14px;
  color: #6c4700;
  height: 42px;
  padding: 9px;
  width: 42px;
}

.player-card span,
.player-card small {
  color: var(--muted);
}

.source-map .player-intel,
.source-map .counter-coach {
  border: 0;
  margin-left: -20px;
  margin-right: -20px;
  padding-bottom: 0;
}

.tournament-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tournament-card {
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.tournament-card strong,
.tournament-card span {
  display: block;
}

.tournament-card span {
  color: var(--muted);
  font-size: 13px;
}

.team-row {
  display: flex;
}

.team-dot {
  background: white;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(28, 66, 130, 0.15);
  height: 42px;
  margin-left: -8px;
  object-fit: contain;
  width: 42px;
}

.easy-learning {
  background: linear-gradient(135deg, #fff4bd, #e8f9ff 58%, #f0f8ff);
  border: 1px solid rgba(255, 211, 61, 0.72);
  border-radius: 20px;
  margin-top: 18px;
  padding: 20px;
}

.easy-steps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.easy-steps article {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 14px;
}

.easy-step-icon {
  background: white;
  border-radius: 14px;
  color: var(--blue);
  height: 42px;
  margin-bottom: 8px;
  padding: 9px;
  width: 42px;
}

.easy-steps strong {
  display: block;
  font-size: 18px;
}

.easy-steps p {
  color: var(--muted);
  margin: 4px 0 0;
}

.pokedex-hero {
  align-items: end;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 211, 61, 0.38), transparent 220px),
    radial-gradient(circle at 88% 18%, rgba(39, 200, 247, 0.28), transparent 260px),
    linear-gradient(135deg, #ffffff, #edf7ff);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
  padding: 24px;
}

.pokedex-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 12px;
}

.pokedex-hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  max-width: 760px;
}

.pokedex-counts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
}

.pokedex-counts article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
  padding: 14px;
}

.pokedex-counts strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.pokedex-counts span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.pokedex-tools {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 18px;
  padding: 14px;
}

.pokedex-tools label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
  text-transform: uppercase;
}

.pokedex-tools input {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 16px;
  padding: 12px;
}

.pokedex-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pokedex-filter-row button {
  align-items: center;
  background: #f4f9ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  gap: 5px;
  padding: 7px 10px;
}

.pokedex-filter-row button[aria-pressed="true"],
.pokedex-filter-row button:hover {
  background: #17203a;
  border-color: #17203a;
  color: white;
}

.pokedex-results-bar {
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 14px;
  padding: 12px 14px;
}

.pokedex-results-bar > strong {
  color: var(--ink);
  font-size: 15px;
}

.pokedex-page-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.pokedex-page-controls span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  min-width: 86px;
  text-align: center;
}

.pokedex-page-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.pokedex-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pokedex-card {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 130px;
  padding: 12px;
  position: relative;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.pokedex-card[hidden] {
  display: none;
}

.pokedex-card:hover {
  border-color: rgba(40, 109, 240, 0.42);
  box-shadow: 0 18px 40px rgba(28, 66, 130, 0.12);
  text-decoration: none;
  transform: translateY(-2px);
}

.pokedex-card > strong {
  background: rgba(255, 211, 61, 0.35);
  border: 1px solid rgba(255, 211, 61, 0.72);
  border-radius: 999px;
  font-size: 11px;
  padding: 3px 7px;
  position: absolute;
  right: 10px;
  top: 10px;
}

.pokedex-card h3 {
  font-size: 18px;
  line-height: 1.12;
  margin: 2px 0 6px;
  padding-right: 44px;
}

.pokedex-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 0;
}

.dex-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.pokedex-sprite {
  height: 74px;
  object-fit: contain;
  width: 74px;
}

.pokemon-detail {
  display: grid;
  gap: 18px;
}

.pokemon-detail section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}

.pokemon-profile {
  align-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 211, 61, 0.42), transparent 220px),
    linear-gradient(135deg, #ffffff, #f0f8ff);
  display: grid;
  gap: 20px;
  grid-template-columns: 240px minmax(0, 1fr);
}

.pokemon-profile h1 {
  font-size: clamp(38px, 5vw, 72px);
  letter-spacing: 0;
  line-height: 1;
  margin: 4px 0 12px;
}

.pokemon-profile-art {
  align-items: center;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 22px;
  display: flex;
  justify-content: center;
  min-height: 240px;
}

.profile-sprite {
  height: 210px;
  object-fit: contain;
  width: 210px;
}

.profile-summary {
  color: var(--muted);
  font-size: 17px;
  max-width: 780px;
}

.pokemon-quick-read {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pokemon-read-card {
  align-items: start;
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: 52px minmax(0, 1fr);
  min-width: 0;
  padding: 14px;
}

.pokemon-read-icon,
.ability-role-icon {
  background: #17203a;
  border: 2px solid var(--yellow);
  border-radius: 16px;
  color: white;
  height: 48px;
  padding: 10px;
  width: 48px;
}

.pokemon-read-card span,
.pokemon-ability-card span {
  color: var(--blue);
  display: block;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.pokemon-read-card strong {
  display: block;
  font-size: 21px;
  line-height: 1.08;
  margin: 3px 0 5px;
}

.pokemon-read-card p {
  color: var(--muted);
  line-height: 1.38;
  margin: 0;
}

.pokemon-stat-panel {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.8fr 1.2fr;
}

.stat-pills {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-pills span {
  background: #f4f9ff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
}

.stat-bars {
  display: grid;
  gap: 9px;
}

.stat-bar {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 72px 42px minmax(0, 1fr);
}

.stat-bar span,
.stat-bar strong {
  font-size: 13px;
  font-weight: 900;
}

.stat-bar i {
  background: linear-gradient(90deg, var(--blue), var(--sky), var(--yellow));
  border-radius: 999px;
  display: block;
  height: 10px;
  width: var(--stat);
}

.pokemon-matchup-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.matchup-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.matchup-card strong {
  font-size: 13px;
  text-transform: uppercase;
}

.matchup-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.matchup-card.danger {
  background: linear-gradient(135deg, #fff7f5, #ffffff);
  border-color: rgba(233, 63, 54, 0.32);
}

.matchup-card.safe {
  background: linear-gradient(135deg, #f0fff8, #ffffff);
  border-color: rgba(34, 168, 102, 0.3);
}

.matchup-card.immune {
  background: linear-gradient(135deg, #f4f9ff, #ffffff);
  border-color: rgba(40, 109, 240, 0.25);
}

.pokemon-empty-chip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.ability-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ability-card,
.move-chip {
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.ability-card h3 {
  margin: 0 0 6px;
}

.ability-card p {
  color: var(--muted);
  margin: 0;
}

.pokemon-ability-card {
  display: grid;
  gap: 10px;
  grid-template-columns: 52px minmax(0, 1fr);
  min-width: 0;
}

.pokemon-ability-card h3 {
  line-height: 1.12;
}

.pokemon-ability-card small {
  color: #52617a;
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 8px;
}

.move-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.move-chip {
  display: grid;
  gap: 5px;
}

.move-title {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.move-title strong {
  line-height: 1.12;
}

.move-type-icon,
.type-token-icon {
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  color: currentColor;
  flex: 0 0 auto;
  height: 28px;
  padding: 5px;
  width: 28px;
}

.move-chip span,
.move-chip small {
  color: var(--muted);
  font-size: 12px;
}

.move-chip span b {
  color: var(--ink);
}

.pokemon-detail .move-grid {
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pokemon-move-card {
  min-width: 0;
}

.pokemon-move-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
  margin: 3px 0 0;
}

.move-pool-details {
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 14px;
  padding: 12px;
}

.move-pool-details summary {
  cursor: pointer;
  font-weight: 950;
}

.compact-move-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.compact-move-cloud span,
.compact-move-cloud a {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  gap: 4px;
  padding: 5px 8px;
}

.compact-move-cloud a > span {
  display: grid;
  gap: 1px;
}

.compact-move-cloud a small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.mini-item-icon {
  flex: 0 0 auto;
  height: 24px;
  object-fit: contain;
  width: 24px;
}

.compact-move-cloud a:hover {
  border-color: rgba(40, 109, 240, 0.42);
  text-decoration: none;
}

.lazy-list-tools {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 200px) auto minmax(180px, auto);
  margin-top: 14px;
}

.lazy-list-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  grid-column: 1 / -1;
  line-height: 1.35;
  margin: 0;
}

.lazy-list-tools input,
.lazy-list-tools select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  min-height: 44px;
  min-width: 0;
  padding: 9px 12px;
}

.lazy-list-tools [data-lazy-count],
.lazy-list-tools [data-move-pool-count] {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.lazy-list-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.move-pool-more {
  margin-top: 10px;
}

.database-detail-grid.single-detail {
  grid-template-columns: minmax(0, 760px);
}

.source-note a {
  font-weight: 900;
}

.builder-page {
  display: grid;
  gap: 18px;
}

.builder-hero {
  align-items: center;
  background:
    radial-gradient(circle at 10% 16%, rgba(255, 211, 61, 0.48), transparent 220px),
    radial-gradient(circle at 86% 16%, rgba(233, 63, 54, 0.22), transparent 230px),
    linear-gradient(135deg, #ffffff, #edf7ff 62%, #fff5d0);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: 24px;
}

.builder-hero h1 {
  font-size: clamp(36px, 5.4vw, 68px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 12px;
}

.builder-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
}

.builder-hero-stack {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.builder-hero-stack a {
  align-items: center;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: 18px;
  color: var(--ink);
  display: flex;
  font-weight: 950;
  gap: 8px;
  min-height: 84px;
  padding: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.builder-hero-stack a:hover {
  box-shadow: 0 16px 34px rgba(28, 66, 130, 0.14);
  text-decoration: none;
  transform: translateY(-2px);
}

.team-builder-hero-sprite {
  height: 62px;
  object-fit: contain;
  width: 62px;
}

.builder-shell {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.builder-main {
  display: grid;
  gap: 18px;
}

.team-board,
.builder-steps,
.quick-picks,
.simple-warning,
.builder-picker,
.type-map,
.builder-tips {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.builder-steps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.builder-steps article {
  align-items: start;
  background: linear-gradient(135deg, #ffffff, #f3f8ff);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 8px 14px;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 92px;
  padding: 14px;
}

.builder-steps span {
  align-items: center;
  background: #17203a;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-size: 20px;
  font-weight: 950;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.builder-steps strong,
.builder-steps small {
  display: block;
  grid-column: 2;
  min-width: 0;
}

.builder-steps strong {
  align-self: end;
  font-size: 19px;
  line-height: 1.12;
}

.builder-steps small {
  color: var(--muted);
  line-height: 1.35;
}

.builder-steps span {
  grid-row: 1 / span 2;
}

.builder-count {
  align-items: center;
  background: #17203a;
  border: 3px solid var(--yellow);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 20px;
  font-weight: 950;
  min-height: 46px;
  padding: 6px 16px;
}

.quick-pick-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-pick {
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
  border: 2px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-rows: 96px auto 34px;
  min-height: 198px;
  padding: 12px;
  position: relative;
  text-align: center;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.quick-pick:hover,
.quick-pick.picked {
  border-color: rgba(40, 109, 240, 0.45);
  box-shadow: 0 16px 34px rgba(28, 66, 130, 0.14);
  transform: translateY(-2px);
}

.quick-pick.picked {
  background: linear-gradient(135deg, #fff8d8, #edf7ff);
}

.quick-pick-sprite {
  height: 96px;
  justify-self: center;
  object-fit: contain;
  width: 96px;
}

.quick-pick strong {
  display: block;
  font-size: 17px;
  line-height: 1.12;
  margin-bottom: 6px;
}

.quick-pick em {
  align-items: center;
  background: var(--blue);
  border: 3px solid white;
  border-radius: 50%;
  bottom: 10px;
  color: white;
  display: inline-flex;
  font-size: 26px;
  font-style: normal;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  justify-self: center;
  width: 38px;
}

.team-slots {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-slot {
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 142px;
  overflow: hidden;
  position: relative;
}

.team-slot.empty {
  align-items: center;
  background: repeating-linear-gradient(135deg, #f5f9ff 0 10px, #ffffff 10px 20px);
  color: var(--muted);
  display: grid;
  justify-items: center;
  padding: 18px;
  text-align: center;
}

.team-slot.empty span {
  align-items: center;
  background: #17203a;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.team-slot.empty strong {
  color: var(--ink);
  font-size: 18px;
}

.team-slot.filled {
  background: linear-gradient(135deg, #ffffff, #f2f8ff);
}

.team-slot.filled a {
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 142px;
  padding: 14px;
}

.team-slot.filled a:hover {
  text-decoration: none;
}

.team-slot button {
  align-items: center;
  background: var(--red);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 30px;
  z-index: 2;
}

.team-slot-sprite {
  align-self: center;
  height: 86px;
  object-fit: contain;
  width: 86px;
}

.team-slot strong {
  display: block;
  font-size: 18px;
  line-height: 1.12;
  margin: 4px 28px 6px 0;
}

.simple-warning {
  align-items: center;
  background: linear-gradient(135deg, #fff8d8, #ffffff);
  border: 2px solid rgba(255, 211, 61, 0.82);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.simple-warning > div {
  align-items: center;
  display: flex;
  gap: 12px;
}

.warning-icon {
  background: white;
  border-radius: 16px;
  color: var(--red);
  flex: 0 0 auto;
  height: 48px;
  padding: 10px;
  width: 48px;
}

.simple-warning span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.simple-warning strong {
  display: block;
  font-size: 26px;
  line-height: 1.05;
  text-transform: capitalize;
}

.simple-warning p {
  color: var(--muted);
  margin: 0;
}

.builder-report {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-card {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  gap: 12px;
  min-height: 98px;
  padding: 14px;
}

.report-card.primary {
  background: linear-gradient(135deg, #17203a, #286df0);
  color: white;
}

.report-icon {
  background: rgba(255,255,255,0.88);
  border-radius: 14px;
  color: var(--blue);
  flex: 0 0 auto;
  height: 44px;
  padding: 10px;
  width: 44px;
}

.report-card span {
  color: inherit;
  display: block;
  font-size: 12px;
  font-weight: 950;
  opacity: 0.76;
  text-transform: uppercase;
}

.report-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
}

.type-map h2 {
  margin-top: 0;
}

.type-radar {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.type-token {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: white;
  display: grid;
  gap: 4px 10px;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 76px;
  padding: 12px;
  text-transform: capitalize;
  width: 100%;
}

.type-token-icon {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 14px;
  grid-row: span 2;
  height: 42px;
  margin-bottom: 0;
  padding: 8px;
  width: 42px;
}

.type-token b,
.type-token small {
  color: inherit;
  line-height: 1.1;
}

.type-token b {
  font-size: 21px;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: normal;
}

.type-token small {
  font-size: 12px;
  font-weight: 850;
  opacity: 0.82;
  overflow-wrap: anywhere;
  white-space: normal;
}

.type-token.danger {
  animation: danger-pulse 1.8s ease-in-out infinite;
  border-color: rgba(233, 63, 54, 0.95);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.32), 0 0 0 3px rgba(233, 63, 54, 0.28), 0 16px 30px rgba(233, 63, 54, 0.24);
}

.type-token.safe {
  box-shadow: inset 0 0 0 3px rgba(34, 168, 102, 0.38);
}

.type-token.neutral {
  opacity: 0.72;
}

@keyframes danger-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.type-coach-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.type-coach-card {
  align-items: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(28, 66, 130, 0.08);
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr);
  min-width: 0;
  padding: 12px;
}

.type-coach-card.danger {
  background: linear-gradient(135deg, #fff7f5, #ffffff);
  border-color: rgba(233, 63, 54, 0.36);
}

.type-coach-card.safe {
  background: linear-gradient(135deg, #f0fff8, #ffffff);
  border-color: rgba(34, 168, 102, 0.32);
}

.type-coach-card.empty {
  grid-column: 1 / -1;
}

.type-coach-icon {
  background: #17203a;
  border: 2px solid var(--yellow);
  border-radius: 15px;
  color: white;
  height: 46px;
  padding: 10px;
  width: 46px;
}

.type-coach-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
}

.type-coach-card p,
.type-coach-card small {
  color: var(--muted);
  display: block;
  line-height: 1.35;
  margin: 4px 0 0;
}

.type-guide-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.type-guide-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(28, 66, 130, 0.08);
  color: white;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.type-guide-title {
  align-items: center;
  display: flex;
  gap: 10px;
}

.type-guide-title h3 {
  color: white;
  font-size: 20px;
  line-height: 1.08;
  margin: 0;
}

.type-guide-icon {
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  flex: 0 0 auto;
  height: 44px;
  padding: 9px;
  width: 44px;
}

.type-guide-card > div:not(.type-guide-title) {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 14px;
  display: grid;
  gap: 6px;
  padding: 9px;
}

.type-guide-card strong {
  color: white;
  font-size: 12px;
  text-transform: uppercase;
}

.type-guide-card span {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.type-guide-card em {
  color: rgba(255,255,255,0.82);
  font-style: normal;
  font-weight: 850;
}

.mini-type-pill {
  align-items: center;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  gap: 4px;
  padding: 5px 7px;
}

.mini-type-icon {
  height: 15px;
  width: 15px;
}

.builder-picker {
  max-height: calc(100vh - 96px);
  overflow: auto;
  position: sticky;
  top: 82px;
}

.builder-picker label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 950;
  gap: 6px;
  text-transform: uppercase;
}

.builder-picker input {
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-size: 16px;
  padding: 12px;
}

.builder-filter-row,
.builder-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.builder-filter-row button,
.builder-type-row button {
  align-items: center;
  background: #f4f9ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 5px;
  padding: 7px 10px;
}

.builder-filter-row button[aria-pressed="true"],
.builder-type-row button[aria-pressed="true"],
.builder-filter-row button:hover,
.builder-type-row button:hover {
  background: #17203a;
  border-color: #17203a;
  color: white;
}

.builder-results {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.builder-pick {
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f5f9ff);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  min-height: 78px;
  padding: 9px;
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.builder-pick:hover,
.builder-pick.picked {
  border-color: rgba(40, 109, 240, 0.4);
  box-shadow: 0 10px 24px rgba(28, 66, 130, 0.11);
  transform: translateY(-1px);
}

.builder-pick.picked {
  opacity: 0.54;
}

.builder-pick-sprite {
  height: 56px;
  object-fit: contain;
  width: 56px;
}

.builder-pick strong,
.builder-pick small,
.builder-pick em {
  display: block;
}

.builder-pick small,
.builder-pick em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.empty-results {
  color: var(--muted);
  margin: 0;
}

.builder-tips {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.builder-tips article {
  align-items: start;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: 48px minmax(0, 1fr);
}

.builder-tips article > strong,
.builder-tips p {
  grid-column: 2;
  min-width: 0;
}

.builder-tips article > strong {
  align-self: end;
  font-size: 18px;
  line-height: 1.12;
}

.builder-tips p {
  color: var(--muted);
  line-height: 1.38;
  margin: 0;
}

.builder-tips .tip-icon {
  grid-row: 1 / span 2;
}

.tip-icon {
  background: #f4f9ff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--blue);
  height: 42px;
  padding: 9px;
  width: 42px;
}

.type-normal { background: #929aa3; }
.type-fire { background: #f37b2e; }
.type-water { background: #2b8de8; }
.type-electric { background: #e4b600; }
.type-grass { background: #34a853; }
.type-ice { background: #43bfc7; }
.type-fighting { background: #c43d44; }
.type-poison { background: #9b52b6; }
.type-ground { background: #b8793a; }
.type-flying { background: #6e9be8; }
.type-psychic { background: #e85c9c; }
.type-bug { background: #7fa51a; }
.type-rock { background: #9b8546; }
.type-ghost { background: #5c5aa8; }
.type-dragon { background: #5269d8; }
.type-dark { background: #4a4451; }
.type-steel { background: #6f8da0; }
.type-fairy { background: #e574c9; }

.play-mode-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
}

.play-mode-card {
  background: linear-gradient(135deg, #ffffff, #f3f8ff);
  border: 2px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 16px;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.play-mode-card:hover {
  border-color: rgba(40, 109, 240, 0.46);
  box-shadow: 0 18px 42px rgba(28, 66, 130, 0.15);
  text-decoration: none;
  transform: translateY(-3px);
}

.play-mode-icon {
  background: #17203a;
  border: 3px solid var(--yellow);
  border-radius: 16px;
  color: white;
  height: 48px;
  padding: 10px;
  width: 48px;
}

.play-mode-sprites {
  display: flex;
  min-height: 72px;
}

.play-mode-sprite {
  background: white;
  border: 2px solid white;
  border-radius: 50%;
  height: 70px;
  margin-right: -12px;
  object-fit: contain;
  width: 70px;
}

.play-mode-card strong {
  font-size: 24px;
  line-height: 1.05;
}

.play-mode-card small {
  color: var(--muted);
  font-size: 14px;
}

.database-page {
  display: grid;
  gap: 18px;
}

.database-hero {
  align-items: end;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 211, 61, 0.42), transparent 230px),
    radial-gradient(circle at 86% 12%, rgba(39, 200, 247, 0.3), transparent 250px),
    linear-gradient(135deg, #ffffff, #edf7ff);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 420px;
  padding: 24px;
}

.database-hero h1 {
  font-size: clamp(36px, 5vw, 66px);
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 12px;
}

.database-hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.database-scoreboard {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.database-scoreboard article,
.database-card,
.database-list-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.database-scoreboard strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.database-scoreboard span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.database-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.database-card {
  color: var(--ink);
  display: grid;
  gap: 8px;
  min-height: 168px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.database-card:hover {
  border-color: rgba(40, 109, 240, 0.46);
  box-shadow: 0 16px 36px rgba(28, 66, 130, 0.13);
  text-decoration: none;
  transform: translateY(-2px);
}

.database-card,
.pokedex-card,
.dex-nav-card,
.core-dex-card,
.move-result-card {
  position: relative;
}

.database-card::after,
.pokedex-card::after,
.dex-nav-card::after,
.core-dex-card::after,
.move-result-card::after {
  align-items: center;
  background: #17203a;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  color: white;
  content: "Open";
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  justify-content: center;
  padding: 4px 8px;
  position: absolute;
  right: 12px;
  top: 12px;
}

.database-detail-card,
.database-help-strip article,
.builder-steps article,
.report-card,
.type-token {
  cursor: default;
}

.database-icon {
  background: #17203a;
  border: 3px solid var(--yellow);
  border-radius: 16px;
  color: white;
  height: 46px;
  padding: 10px;
  width: 46px;
}

.database-card strong {
  font-size: 22px;
}

.database-card span {
  color: var(--blue);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.database-card small {
  color: var(--muted);
}

.database-help-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0 16px;
}

.database-help-strip article {
  align-items: start;
  background: linear-gradient(135deg, #fffdf3, #f4f9ff);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.database-help-strip strong {
  font-size: 14px;
}

.database-help-strip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.database-detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.database-detail-card {
  background: linear-gradient(135deg, #ffffff, #f6faff);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(28, 66, 130, 0.08);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.database-detail-top {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.database-detail-top h3 {
  font-size: 20px;
  line-height: 1.08;
  margin: 0 0 3px;
}

.database-detail-top span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.database-detail-type {
  background: #17203a;
  border: 2px solid rgba(255, 211, 61, 0.85);
  border-radius: 15px;
  color: white;
  flex: 0 0 auto;
  height: 44px;
  padding: 10px;
  width: 44px;
}

.database-item-icon {
  background: #f7fbff;
  border: 2px solid rgba(255, 211, 61, 0.85);
  border-radius: 15px;
  flex: 0 0 auto;
  height: 48px;
  object-fit: contain;
  padding: 6px;
  width: 48px;
}

.database-detail-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.database-scope-note {
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: -4px 0 14px;
  padding: 10px 12px;
}

.database-scope-note strong {
  color: var(--ink);
}

.database-fact-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.database-fact-row span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 2px;
  padding: 8px;
}

.database-fact-row b {
  color: var(--ink);
  font-size: 10px;
  text-transform: uppercase;
}

.database-kid-note {
  align-items: start;
  background: linear-gradient(135deg, rgba(255, 211, 61, 0.28), #ffffff);
  border: 1px solid rgba(255, 211, 61, 0.74);
  border-radius: 14px;
  display: flex;
  gap: 8px;
  padding: 10px;
}

.database-note-icon {
  color: #8a5a00;
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

.database-kid-note div {
  display: grid;
  gap: 3px;
}

.database-kid-note strong {
  font-size: 12px;
  text-transform: uppercase;
}

.database-kid-note span {
  color: #514018;
  font-size: 13px;
  line-height: 1.35;
}

.database-users {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.database-users > strong {
  flex: 0 0 100%;
  font-size: 11px;
  text-transform: uppercase;
}

.database-users a {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  flex: 0 1 auto;
  font-size: 12px;
  font-weight: 900;
  gap: 5px;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  padding: 4px 8px 4px 4px;
}

.database-users a .database-user-sprite {
  flex: 0 0 34px;
  height: 34px;
  margin-right: 0;
  object-fit: contain;
  padding: 2px;
  width: 34px;
}

.database-users a .user-initial {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  justify-content: center;
}

.database-users a:hover {
  border-color: rgba(40, 109, 240, 0.46);
  text-decoration: none;
}

.move-finder-hero,
.move-finder-tool,
.move-search-panel,
.coverage-panel,
.move-results-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(28, 66, 130, 0.08);
}

.move-finder-hero {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: 24px;
}

.move-finder-hero h1 {
  font-size: clamp(36px, 5vw, 68px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 12px;
}

.move-finder-hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.move-finder-counts {
  display: grid;
  gap: 10px;
}

.move-finder-counts article {
  background: linear-gradient(135deg, #fffdf3, #f3f9ff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.move-finder-counts strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.move-finder-counts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.move-finder-tool {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
}

.move-search-panel,
.coverage-panel,
.move-results-panel {
  padding: 16px;
}

.move-search-panel label {
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 950;
  gap: 7px;
  text-transform: uppercase;
}

.move-search-panel input {
  border: 2px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  min-height: 52px;
  padding: 12px 14px;
  text-transform: none;
}

.move-finder-actions,
.move-finder-chip-row,
.move-match-mode,
.coverage-type-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.move-finder-chip-row button,
.move-match-mode button,
.coverage-type-buttons button {
  align-items: center;
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  gap: 6px;
  min-height: 38px;
  padding: 7px 10px;
}

.move-finder-chip-row button {
  background: #17203a;
  border-color: rgba(255, 211, 61, 0.8);
  color: white;
}

.quick-move-row button {
  background: white;
  border-color: rgba(40, 109, 240, 0.22);
  color: var(--ink);
}

.move-match-mode button[aria-pressed="true"],
.coverage-type-buttons button[aria-pressed="true"] {
  background: #17203a;
  border-color: var(--yellow);
  color: white;
}

.coverage-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.coverage-bucket {
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.coverage-bucket.danger {
  background: linear-gradient(135deg, #fff1ef, #ffffff);
  border-color: rgba(233, 63, 54, 0.32);
}

.coverage-bucket.safe {
  background: linear-gradient(135deg, #f0fff8, #ffffff);
  border-color: rgba(34, 168, 102, 0.28);
}

.coverage-bucket.immune {
  background: linear-gradient(135deg, #f3f4f8, #ffffff);
}

.coverage-bucket > strong {
  font-size: 16px;
}

.coverage-bucket > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.coverage-bucket div {
  display: grid;
  gap: 6px;
}

.coverage-bucket a {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: grid;
  gap: 6px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  min-width: 0;
  padding: 4px 8px 4px 4px;
}

.coverage-bucket img {
  height: 28px;
  object-fit: contain;
  width: 28px;
}

.coverage-bucket b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coverage-bucket em {
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.move-results-bar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.move-result-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.move-result-card {
  background: linear-gradient(135deg, #ffffff, #f7fbff);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.move-result-card:hover {
  border-color: rgba(40, 109, 240, 0.46);
  box-shadow: 0 16px 34px rgba(28, 66, 130, 0.12);
  text-decoration: none;
  transform: translateY(-2px);
}

.move-result-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 78px minmax(0, 1fr);
}

.move-result-sprite {
  background: #f1f6ff;
  border: 2px solid var(--line);
  border-radius: 18px;
  height: 78px;
  object-fit: contain;
  padding: 4px;
  width: 78px;
}

.move-result-sprite.fallback {
  align-items: center;
  display: inline-flex;
  font-size: 34px;
  font-weight: 950;
  justify-content: center;
}

.move-result-card h3 {
  font-size: 22px;
  line-height: 1.05;
  margin: 0 0 6px;
  padding-right: 58px;
}

.move-result-card p,
.move-result-card small {
  color: var(--muted);
  margin: 0;
}

.stat-mini-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-mini-grid span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  display: grid;
  font-weight: 950;
  padding: 6px;
}

.stat-mini-grid b {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.battle-search-page {
  display: grid;
  gap: 18px;
}

.battle-search-tool {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.battle-filter-panel,
.battle-results-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(28, 66, 130, 0.08);
  padding: 16px;
}

.battle-filter-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.battle-filter-panel label {
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 950;
  gap: 7px;
  text-transform: uppercase;
}

.battle-filter-panel input {
  border: 2px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  min-height: 48px;
  padding: 10px 12px;
  text-transform: none;
}

.battle-filter-group {
  display: grid;
  gap: 8px;
}

.battle-filter-group > strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.selected-filter-row {
  background: #f7fbff;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 10px;
}

.selected-filter-row .empty-results {
  margin: 0;
}

.battle-results-panel {
  grid-column: 1 / -1;
}

.database-more-list {
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 14px;
  padding: 12px;
}

.database-more-list summary {
  cursor: pointer;
  font-weight: 950;
}

.database-more-list .chip-cloud {
  margin-top: 12px;
}

.sources-simple-page h1 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0;
  line-height: 1;
  margin: 6px 0 18px;
}

.source-link-list {
  display: grid;
  gap: 10px;
}

.source-link-row {
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 12px;
}

.source-link-row:hover {
  border-color: rgba(40, 109, 240, 0.46);
  text-decoration: none;
}

.source-link-row span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.calculator-page {
  display: grid;
  gap: 18px;
}

.calculator-shell {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 420px;
  padding: 18px;
}

.calculator-shell.advanced-calculator {
  grid-template-columns: minmax(0, 1fr) 440px;
}

.calculator-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-form fieldset {
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
}

.calculator-form legend {
  color: var(--blue);
  font-weight: 950;
  padding: 0 6px;
}

.calculator-picker-fieldset {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calculator-picker-fieldset .calc-picked-strip {
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  grid-column: 1 / -1;
  line-height: 1.45;
  padding: 10px 12px;
}

.calc-picked-strip strong {
  color: var(--ink);
}

.calc-warning {
  color: var(--red);
  display: inline-block;
  font-weight: 950;
  margin-left: 6px;
}

.calculator-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
}

.calculator-form input,
.calculator-form select {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 9px 10px;
}

.calculator-form .check-label {
  align-items: center;
  display: flex;
  gap: 8px;
}

.calculator-form .check-label input {
  min-height: auto;
}

.calculator-result {
  display: grid;
  gap: 12px;
}

.result-card {
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 7px;
  padding: 16px;
}

.result-card.primary {
  background: linear-gradient(135deg, #17203a, #286df0);
  color: white;
}

.result-card span {
  color: inherit;
  font-size: 12px;
  font-weight: 950;
  opacity: 0.78;
  text-transform: uppercase;
}

.result-card strong {
  font-size: 32px;
  line-height: 1;
}

.result-card p {
  color: inherit;
  margin: 0;
  opacity: 0.82;
}

.season-archive {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  margin: 18px 0;
  padding: 18px;
}

.season-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.season-card {
  background: linear-gradient(135deg, #ffffff, #f5f9ff);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.season-card-top,
.season-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.season-card-top span,
.season-card-top strong,
.season-meta-row span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

.season-card-top strong {
  color: var(--blue);
}

.season-team-line {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  overflow: hidden;
  padding: 4px 0;
}

.season-team-line .core-sprite {
  height: 54px;
  margin: 0 -4px;
  width: 54px;
}

.season-card h3 {
  font-size: 22px;
  line-height: 1.08;
  margin: 0;
}

.season-card p {
  color: var(--muted);
  margin: 0;
}

.season-card ul {
  margin: 0;
  padding-left: 18px;
}

.season-card li {
  color: #2e3748;
  margin-bottom: 4px;
}

.season-action {
  align-items: center;
  background: #17203a;
  border: 2px solid rgba(255, 211, 61, 0.82);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
}

.season-action:hover {
  color: white;
  text-decoration: none;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-cloud span {
  background: #f4f9ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  padding: 7px 10px;
}

@media (max-width: 1180px) {
  .core-scenario-grid,
  .core-dex-grid,
  .database-detail-grid,
  .database-help-strip,
  .calculator-shell,
  .pokemon-detail .move-grid,
  .pokemon-quick-read,
  .pokemon-matchup-grid,
  .type-coach-grid,
  .type-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .core-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hero-inner, .article { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; padding-top: 32px; }
  .hero-visual { order: -1; }
  .pathfinder, .path-grid, .format-grid { grid-template-columns: 1fr; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .section-heading-row > a:not(.button) {
    width: 100%;
  }
  .nav {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px 12px;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .brand span:last-child {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .language-switcher {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .nav-links {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(28, 66, 130, 0.16);
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding: 10px;
    width: 100%;
  }
  .nav.nav-open .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links a,
  .nav-more summary {
    background: #f7fbff;
    border-color: var(--line);
    border-radius: 14px;
    justify-content: flex-start;
    min-height: 44px;
    padding: 9px 10px;
  }
  .nav-more {
    grid-column: 1 / -1;
  }
  .nav-more summary {
    width: 100%;
  }
  .nav-more-menu {
    box-shadow: none;
    gap: 6px;
    margin-top: 6px;
    opacity: 1;
    padding: 0;
    pointer-events: auto;
    position: static;
    transform: none;
  }
  .nav-more:not([open]) .nav-more-menu {
    display: none;
  }
  .language-menu {
    left: auto;
    right: 0;
  }
  .dex-shell { padding: 12px 12px 40px; }
  .dex-hero,
  .move-finder-hero,
  .battle-search-tool,
  .move-finder-counts,
  .coverage-summary,
  .move-result-grid,
  .pokedex-hero,
  .builder-hero,
  .builder-shell,
  .builder-steps,
  .quick-pick-grid,
  .play-mode-grid,
  .database-hero,
  .database-grid,
  .calculator-shell,
  .calculator-form,
  .calculator-picker-fieldset,
  .database-detail-grid,
  .database-help-strip,
  .database-fact-row,
  .type-coach-grid,
  .type-guide-grid,
  .database-scoreboard,
  .season-grid,
  .team-media-grid,
  .tactic-strip,
  .core-scenario-grid,
  .pokemon-profile,
  .pokemon-quick-read,
  .pokemon-stat-panel,
  .pokemon-matchup-grid,
  .two-column-dex,
  .core-tools,
  .core-dex-grid,
  .core-flow,
  .core-actions,
  .counter-grid,
  .player-grid,
  .source-map-grid,
  .tournament-grid,
  .pokedex-grid,
  .ability-grid,
  .move-grid,
  .team-slots,
  .builder-report,
  .type-radar,
  .builder-tips,
  .easy-steps {
    grid-template-columns: 1fr;
  }
  .article {
    padding: 18px;
    width: 100%;
  }
  .article > div,
  .easy-box,
  .answer-box {
    min-width: 0;
  }
  .easy-box {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .builder-picker {
    max-height: none;
    position: static;
  }
  .lazy-list-tools {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
  .lazy-list-tools [data-lazy-count],
  .lazy-list-tools [data-move-pool-count] {
    white-space: normal;
  }
  .builder-hero-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pokedex-counts { grid-template-columns: 1fr; }
  .pokedex-results-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .pokedex-page-controls {
    justify-content: stretch;
  }
  .pokedex-page-controls button,
  .pokedex-page-controls span {
    flex: 1 1 100%;
  }
  .database-hero.calculator-hero,
  .calculator-shell.advanced-calculator {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
  .calculator-result,
  .calculator-form,
  .calculator-picker-fieldset {
    min-width: 0;
    width: 100%;
  }
  .move-results-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .battle-results-panel {
    grid-column: auto;
  }
  .move-result-head {
    grid-template-columns: 68px minmax(0, 1fr);
  }
  .move-result-sprite {
    height: 68px;
    width: 68px;
  }
  .stat-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .builder-page .type-token.neutral,
  .builder-page .type-token.safe {
    display: none;
  }
  .builder-page .type-radar:empty::after {
    background: #f7fbff;
    border: 1px dashed var(--line);
    border-radius: 16px;
    color: var(--muted);
    content: "Pick Pokemon first.";
    display: block;
    font-weight: 900;
    padding: 14px;
  }
  .pokemon-detail .move-grid { grid-template-columns: 1fr; }
  .pokemon-profile-art { min-height: 180px; }
  .profile-sprite { height: 160px; width: 160px; }
  .dex-hero { min-height: auto; padding: 18px; }
  .dex-hero-board { min-height: 360px; }
  .dex-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orbit-slot { min-width: 86px; padding: 6px; }
  .orbit-sprite { height: 56px; width: 56px; }
  .core-sprite { height: 58px; width: 58px; }
  .pokemon-stat-card { grid-template-columns: 38px 64px minmax(0, 1fr); }
  .stat-sprite { height: 62px; width: 62px; }
  .tournament-card { grid-template-columns: 1fr; }
  .sidebar {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark, .hero::before, .hero-visual img, .hero-visual::after, .path-card, .format-card, .card, .button, .nav-links a {
    animation: none;
    transition: none;
  }
}
