:root {
  --bg: #0f1722;
  --paper: rgba(24, 34, 49, 0.92);
  --text: #edf4ff;
  --muted: #a9b8cf;
  --accent: #4ca37a;
  --accent-dark: #367a5a;
  --border: rgba(190, 210, 240, 0.2);
}

.dictionary { width: 100%; max-width: 1100px; min-width: 0; margin: 0 auto; }
.dictionary-hero { max-width: 1100px; margin-inline: auto; }
.dictionary-toolbar { display: flex; align-items: end; gap: 1rem; flex-wrap: wrap; }
.dictionary-search { display: flex; flex: 1 1 18rem; min-width: 0; flex-direction: column; gap: .4rem; }
.dictionary-search input { width: 100%; min-width: 0; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: rgba(8, 14, 24, .7); font: inherit; }
.dictionary-toolbar button { padding: .7rem 1rem; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-dark); color: #fff; font: inherit; font-weight: bold; cursor: pointer; }
.dictionary-toolbar button:hover { background: var(--accent); }
.dictionary-toolbar :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dictionary-switch { display: flex; align-items: center; gap: .65rem; padding-block: .8rem; cursor: pointer; }
.dictionary-switch input { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }
.dictionary-scope-note, .dictionary-results { color: var(--muted); font-size: .95rem; }
.dictionary-tabs { margin-block: 1.5rem 1rem; }
.dictionary-tabs a { text-decoration: none; }
.dictionary-tabs [aria-current="page"] { background: var(--accent-dark); color: var(--text); border-color: var(--accent); }
.dictionary-count { opacity: .75; margin-left: .4rem; font-size: .85em; }
.dictionary-list { display: flex; flex-direction: column; gap: 1rem; }
.dictionary-entry { min-width: 0; padding: 1.25rem; }
.dictionary-entry-heading { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.dictionary-entry-heading :is(h1, h2) { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.dictionary-entry-heading h1 { font-size: 1.6rem; }
.dictionary-entry-heading h2 a { color: inherit; text-underline-offset: .18em; }
.dictionary-entry-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-left: auto; }
.dictionary-usage, .dictionary-entry-back .share-btn { display: inline-block; text-decoration: none; font-size: .9rem; }
.dictionary-entry-back { margin: 0 0 1rem; }
.dictionary-item-icon { object-fit: contain; image-rendering: pixelated; flex-shrink: 0; }
.dictionary-tm { font-size: 1rem; cursor: help; }
.dictionary-origin { max-width: 100%; overflow-wrap: anywhere; color: var(--muted); padding: .25rem .6rem; border: 1px solid var(--border); border-radius: 2rem; font-size: .8rem; }
.dictionary-move-badges { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.dictionary-category { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; }
.dictionary-stats { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin: 1rem 0; padding: .8rem 0; border-block: 1px solid var(--border); }
.dictionary-stats dt { color: var(--muted); font-size: .8rem; }
.dictionary-stats dd { margin: .25rem 0 0; font-weight: bold; }
.dictionary-description { line-height: 1.6; margin-block: 1rem .5rem; white-space: pre-line; }
.dictionary-details { margin: .8rem 0 0; font-size: .95rem; }
.dictionary-details > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: .75rem; padding: .45rem 0; }
.dictionary-details dt { color: var(--muted); }
.dictionary-details dd { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.dictionary-flags { display: flex; flex-wrap: wrap; gap: .4rem; }
.dictionary-flags a { background: #0b142380; border: 1px solid var(--border); border-radius: .4rem; padding: .15rem .5rem; font-size: .85rem; color: inherit; text-decoration: none; }
.dictionary-flags a:hover { background: var(--accent-dark); border-color: var(--accent); }
.dictionary-flags a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dictionary-details a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: .2em; }
.item-recipes { margin-top: 2rem; }
.recipe-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; align-items: start; }
.recipe-card { min-width: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--paper); }
.recipe-card:only-child { width: fit-content; max-width: min(100%, 600px); justify-self: start; }
.recipe-card h3 { margin: 0 0 .8rem; font-size: 1.05rem; }
.recipe-board { --slot-size: clamp(30px, 8vw, 44px); position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; width: fit-content; max-width: 100%; padding: 16px; color: #242424; background: #c6c6c6; border: 4px solid; border-color: #fff #555 #555 #fff; box-shadow: 0 0 0 1px #111; border-radius: 0; font-family: Arial, sans-serif; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, var(--slot-size)); gap: 4px; }
.recipe-slot { position: relative; box-sizing: border-box; width: var(--slot-size); height: var(--slot-size); background: #8b8b8b; border: 2px solid; border-color: #373737 #fff #fff #373737; flex: 0 0 auto; }
.recipe-slot--output { width: calc(var(--slot-size) + 10px); height: calc(var(--slot-size) + 10px); }
.recipe-alternative { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; }
.recipe-alternative[hidden] { display: none; }
.recipe-alternative:hover { background: #ffffff30; }
.recipe-alternative:focus-visible { outline: 3px solid #222; outline-offset: 2px; z-index: 2; }
.recipe-alternative img { width: min(32px, calc(var(--slot-size) - 6px)); height: min(32px, calc(var(--slot-size) - 6px)); object-fit: contain; image-rendering: pixelated; }
.recipe-stack { position: absolute; right: 1px; bottom: -1px; font: bold 16px/1.1 monospace; color: #fff; text-shadow: 2px 2px #222; }
.recipe-tag { display: grid; place-items: center; height: 100%; font: bold 24px monospace; color: #ececec; text-shadow: 1px 2px #333; }
.recipe-tag-marker { position: absolute; top: 0; right: 1px; z-index: 1; color: #fff; font: bold 16px/1 monospace; text-shadow: 1px 1px #222; pointer-events: none; }
.recipe-chance { position: absolute; right: -2px; bottom: -17px; color: #333; font-size: 10px; white-space: nowrap; pointer-events: none; }
.recipe-slots { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; }
.recipe-arrow { display: block; width: 34px; height: 28px; flex: 0 0 34px; background: #8b8b8b; clip-path: polygon(0 32%, 58% 32%, 58% 0, 100% 50%, 58% 100%, 58% 68%, 0 68%); }
.recipe-arrow--down { transform: rotate(90deg); }
.recipe-shapeless { position: absolute; right: 5px; top: 0; color: #666; font-size: 22px; }
.recipe-caption { display: block; margin: .3rem 0; color: #333; font: 11px/1.3 Arial, sans-serif; text-align: center; }
.recipe-pot-result, .recipe-furnace, .recipe-brewing { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.recipe-pot-result { align-self: stretch; justify-content: space-between; }
.recipe-fuel { display: flex; flex-direction: column; align-items: center; }
.recipe-flame { font-size: 30px; line-height: 1; color: #cb6417; text-shadow: 0 -2px #ffe270; }
.recipe-brewing-stem { height: 22px; width: calc(var(--slot-size) * 2); border: 3px solid #666; border-bottom: 0; position: relative; }
.recipe-brewing-stem::before { content: ''; position: absolute; top: -24px; height: 44px; width: 3px; background: #666; left: calc(50% - 1px); }
.recipe-reagent { margin-bottom: 10px; }
.recipe-smithing { display: flex; gap: 5px; align-items: start; }
.recipe-smithing > div { min-width: 0; }
.recipe-process { display: flex; flex-direction: column; gap: 6px; padding: 10px; max-width: 120px; border: 2px solid; border-color: #fff #555 #555 #fff; background: #aaa; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.recipe-flow-side { max-width: 150px; }
.recipe-board--flow .recipe-slots { row-gap: 22px; }
.recipe-notes, .recipe-source, .recipe-conditional { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.recipe-notes { margin: 1rem 0 .5rem; }
.recipe-source { margin-bottom: 0; }
.recipe-ingredients { margin-top: 1rem; font-size: .85rem; line-height: 1.6; }
.recipe-ingredients summary { cursor: pointer; color: var(--muted); }
.recipe-ingredients ul { padding-left: 1.3rem; }
.recipe-ingredients a { color: var(--text); text-underline-offset: .2em; }
@media (max-width: 620px) {
  .recipe-board { padding: 12px; gap: 10px; }
  .recipe-board--flow { flex-direction: column; }
  .recipe-board--flow > .recipe-arrow { transform: rotate(90deg); flex-basis: 28px; }
}
@media (max-width: 600px) {
  .dictionary-entry { padding: 1rem; }
  .dictionary-details > div { grid-template-columns: 1fr; gap: .25rem; }
  .dictionary-tabs { flex-wrap: wrap; }
  .dictionary-stats { gap: .8rem 1.2rem; }
  .dictionary-move-badges { width: 100%; order: 3; }
  .dictionary-entry-heading :is(h1, h2) { flex: 1 1 auto; }
}

.addon-config { position: relative; }
.addon-config > summary { display: block; cursor: pointer; list-style: none; white-space: nowrap; }
.addon-config summary::-webkit-details-marker { display: none; }
.addon-panel { position: absolute; right: 0; top: calc(100% + .5rem); width: min(26rem, calc(100vw - 2rem)); padding: 1rem; border: 1px solid var(--border); border-radius: .8rem; background: #182231; box-shadow: 0 1rem 3rem #0008; z-index: 100; }
.addon-intro { margin: 0 0 .8rem; }
.addon-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.addon-actions .share-btn { font-family: inherit; font-size: inherit; line-height: inherit; }
.addon-actions .share-btn:disabled { opacity: .6; cursor: wait; }
.addon-list { max-height: min(55vh, 30rem); overflow-y: auto; }
.addon-option { display: flex; align-items: center; gap: .75rem; padding: .75rem .25rem; cursor: pointer; border-bottom: 1px solid var(--border); }
.addon-option img { object-fit: contain; border-radius: .35rem; flex-shrink: 0; }
.addon-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.addon-label strong { font-size: 1rem; }
.addon-label small { display: block; color: var(--muted); font-size: .875rem; margin-top: .25rem; }
.addon-option input { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); flex-shrink: 0; }
.addon-help { font-size: .875rem; line-height: 1.5; color: var(--muted); }
#addon-status:empty { display: none; }
.addon-notice { padding: .85rem 1rem; background: var(--paper); border: 1px solid var(--border); border-radius: .6rem; line-height: 1.5; }
@media (max-width: 600px) {
  .addon-config { position: static; }
  .addon-panel { left: 1rem; right: 1rem; top: auto; margin-top: .5rem; }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  --grid-size: 40px;
  --ambient-a: rgba(36, 52, 76, 0.92);
  --ambient-b: rgba(24, 54, 69, 0.86);
  --ambient-c: rgba(76, 163, 122, 0.34);
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  isolation: isolate;
  background: var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: -30vmax;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 14% 18%, var(--ambient-a) 0%, transparent 38%),
    radial-gradient(circle at 84% 20%, var(--ambient-b) 0%, transparent 34%),
    radial-gradient(circle at 48% 86%, var(--ambient-c) 0%, transparent 32%),
    linear-gradient(135deg, #0f1722 0%, #0a1420 100%);
  opacity: 0.95;
  will-change: transform;
  transform-origin: center;
  animation: ambient-gradient-orbit 28s linear infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: calc(var(--grid-size) * -1);
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-position: 0 0;
  opacity: 0.72;
  will-change: transform;
  animation: grid-drift 16s linear infinite;
}

body.entry-page {
  background: #0b1220;
}

body.entry-page::after {
  background:
    radial-gradient(circle at 18% 34%, color-mix(in srgb, var(--entry-type-1) 92%, white 8%) 0%, transparent 58%),
    radial-gradient(circle at 82% 34%, color-mix(in srgb, var(--entry-type-2) 92%, white 8%) 0%, transparent 56%),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--entry-type-1) 62%, #0b1220 38%) 0%,
      color-mix(in srgb, var(--entry-type-1) 30%, var(--entry-type-2) 70%) 50%,
      color-mix(in srgb, var(--entry-type-2) 62%, #0b1220 38%) 100%
    );
  animation-name: entry-gradient-orbit;
  animation-duration: 30s;
}

@keyframes grid-drift {
  to {
    transform: translate3d(var(--grid-size), var(--grid-size), 0);
  }
}

@keyframes ambient-gradient-orbit {
  0% {
    transform: rotate(0deg) scale(1.02);
  }
  50% {
    transform: rotate(180deg) scale(1.08);
  }
  100% {
    transform: rotate(360deg) scale(1.02);
  }
}

@keyframes entry-gradient-orbit {
  0% {
    transform: rotate(0deg) scale(1.02);
  }
  50% {
    transform: rotate(180deg) scale(1.07);
  }
  100% {
    transform: rotate(360deg) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::before,
  body::after {
    animation: none;
  }
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(16, 24, 37, 0.82);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  min-width: 0;
}

.site-logo {
  width: 52px;
  height: 52px;
  border-radius: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
  display: block;
  padding: 0;
}

.brand-name {
  text-decoration: none;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  order: 2;
}

.nav > a,
.nav > .addon-config > summary {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.nav > .addon-config[open] > summary,
.nav > .addon-config > summary:hover {
  text-decoration: underline;
}

.site-header-search-wrap {
  position: relative;
  order: 3;
  width: min(260px, 40vw);
  min-width: 170px;
}

.site-header-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.site-header-search input {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(8, 14, 24, 0.7);
  color: var(--text);
}

.site-header-search button {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(21, 33, 52, 0.9);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.site-header-search button:hover {
  background: rgba(30, 46, 69, 0.95);
}

.site-header-search-wrap .suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  margin-top: 0;
  z-index: 1001;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: .25rem 1.25rem 1.25rem;
  color: var(--muted);
  font-size: .875rem;
}
.footer-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1rem 0; }
.footer-social { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; padding: .5rem .8rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; }
.footer-social:hover { background: var(--paper); border-color: var(--accent); }
.footer-social:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.footer-social img { flex-shrink: 0; filter: brightness(0) invert(1); }
.footer-social span { overflow-wrap: anywhere; }

.hero {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* The blurred hero creates a stacking context above which menus cannot escape. */
.hero:has(.combo-picker[open]) {
  position: relative;
  z-index: 60;
}

.hero.compact {
  padding: 1rem 1.25rem;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(8, 14, 24, 0.7);
  color: var(--text);
}

.search-form button {
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: 100%;
}

.filter-separator {
  width: 100%;
  border-top: 1px solid var(--border);
}

.browse-filters {
  min-width: 0;
}

.browse-filters > summary,
.sightings-filters > summary,
.stats-filters > summary {
  cursor: pointer;
  color: #d8e6ff;
  font-weight: 700;
  padding: 0.45rem 0;
}

.browse-filters > summary:focus-visible,
.sightings-filters > summary:focus-visible,
.stats-filters > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.browse-filter-content {
  display: grid;
  min-width: 0;
  gap: 0.55rem;
  padding-top: 0.35rem;
}

.sightings-filters,
.stats-filters {
  border-block: 1px solid var(--border);
  padding: 0.35rem 0;
  min-width: 0;
  scroll-margin-top: 6.5rem;
}

.stats-filters {
  border-top: 0;
}

.sightings-filters .statline {
  margin: 0.2rem 0;
}

.combo-picker--sighting-resource .combo-picker-panel {
  right: auto;
  width: min(26rem, calc(100vw - 3rem));
  min-width: 100%;
}

.sightings-filters .combo-option-list {
  max-height: 320px;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.sightings-filters .combo-option {
  align-items: flex-start;
  line-height: 1.4;
}

.sightings-filters .combo-option input {
  flex: 0 0 auto;
  margin-top: 0.2em;
}

.sightings-filters .combo-option span {
  min-width: 0;
  overflow-wrap: break-word;
}

.spawn-card a.spawn-condition-chip,
.spawn-card a.spawn-fact,
.spawn-card a.spawn-context,
.spawn-card a.spawn-rarity,
.spawn-card a.spawn-kind {
  text-decoration: none;
  cursor: pointer;
}

.spawn-card a.spawn-condition-chip:hover,
.spawn-card a.spawn-fact:hover,
.spawn-card a.spawn-context:hover,
.spawn-card a.spawn-rarity:hover,
.spawn-card a.spawn-kind:hover {
  text-decoration: underline;
  filter: brightness(1.2);
}

.scope-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(21, 33, 52, 0.9);
  border: 1px solid var(--border);
  color: #d8e6ff;
  font-weight: 700;
  cursor: pointer;
}

.scope-chip input {
  margin: 0;
  accent-color: var(--accent);
}

.search-form button:hover {
  background: var(--accent-dark);
}

.combo-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.combo-search-main {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  min-width: 0;
}

.combo-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.55rem;
  width: 100%;
}

.move-method-filters {
  min-width: 0;
  margin: 0;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.move-method-filters legend {
  padding: 0 0.3rem;
  font-weight: 700;
}

.combo-picker {
  position: relative;
  min-width: 0;
}

.combo-picker[open] {
  z-index: 51;
}

.combo-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  list-style: none;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(21, 33, 52, 0.9);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.combo-picker summary::-webkit-details-marker {
  display: none;
}

.combo-picker summary::after {
  content: "v";
  color: var(--muted);
  font-size: 0.95rem;
}

.combo-picker[open] summary {
  border-color: color-mix(in srgb, var(--accent) 60%, white 40%);
}

.combo-picker-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.combo-picker-panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(13, 22, 36, 0.98);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.combo-picker--types .combo-picker-panel,
.combo-picker-panel--types,
.combo-picker:has(.combo-option-list--types) .combo-picker-panel {
  left: 50%;
  right: auto;
  width: min(calc(100vw - 2rem), 400px);
  transform: translateX(-50%);
}

.combo-option-list {
  display: grid;
  gap: 0.22rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.combo-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  min-width: 0;
  padding: 0.34rem 0.45rem;
  border-radius: 8px;
  cursor: pointer;
}

.combo-option:hover {
  background: rgba(40, 60, 88, 0.7);
}

.combo-option input,
.region-filter-chip input {
  width: auto;
  accent-color: var(--accent);
}

.combo-option input:disabled + span,
.combo-option input:disabled ~ span {
  opacity: 0.45;
}

.combo-option[hidden] {
  display: none;
}

.combo-option-list--types {
  grid-template-columns: repeat(2, 158px);
  justify-content: center;
  column-gap: 0.7rem;
  row-gap: 0.28rem;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding-right: 0.55rem;
}

.type-option {
  gap: 0.3rem;
  padding: 0.18rem 0.22rem;
  min-width: 0;
  justify-content: flex-start;
}

.type-option input {
  flex: 0 0 auto;
}

.type-option .type-pill {
  flex: 0 0 128px;
  width: 128px;
  justify-content: flex-start;
  min-width: 0;
  min-height: 26px;
  overflow: hidden;
  pointer-events: none;
}

.type-option .type-icon {
  width: 26px;
  height: 26px;
}

.type-option .type-icon img {
  width: 16px;
  height: 16px;
}

.type-option .type-name {
  flex: 1;
  justify-content: flex-start;
  min-width: 0;
  height: 26px;
  padding: 0 0.48rem;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-filter-bar {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem 0.65rem;
}

.region-filter-bar legend {
  padding: 0 0.25rem;
  color: var(--muted);
  font-weight: 700;
}

.region-filter-chip {
  cursor: pointer;
}

.region-filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stat-filter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
}

.stat-filter {
  flex: 0 1 calc((100% - 1.65rem) / 4);
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8, 14, 24, 0.55);
}

.stat-filter-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
}

.sort-panel {
  justify-self: center;
  width: min(100%, 760px);
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem 0.75rem;
  background: rgba(8, 14, 24, 0.38);
}

.sort-panel legend {
  padding: 0 0.25rem;
  color: #d8e6ff;
  font-weight: 700;
}

.sort-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr)) minmax(138px, 1.2fr);
  gap: 0.55rem;
  align-items: center;
}

.sort-chip,
.sort-direction-chip {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-width: 0;
  cursor: pointer;
}

.sort-chip input,
.sort-direction-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sort-chip span,
.sort-direction-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #d8e6ff;
  font-weight: 800;
  line-height: 1;
}

.sort-chip span {
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  background: rgba(21, 33, 52, 0.9);
}

.sort-chip span::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #d8e6ff;
  box-shadow: 0 0 0 1px rgba(216, 230, 255, 0.75);
}

.sort-chip input:checked + span {
  border-color: color-mix(in srgb, var(--accent) 68%, white 32%);
}

.sort-chip input:checked + span::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px #d8e6ff inset;
}

.sort-direction-chip span {
  padding: 0.45rem 1rem;
  border-color: var(--accent-dark);
  background: var(--accent);
  color: #fff;
}

.sort-chip input:focus-visible + span,
.sort-direction-chip input:focus-visible + span {
  outline: 2px solid #d7ffee;
  outline-offset: 2px;
}

.range-pair {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 28px;
  --min-pct: 0%;
  --max-pct: 100%;
}

.range-pair::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 7px;
  border-radius: 999px;
  transform: translateY(-50%);
  background:
    linear-gradient(
      to right,
      rgba(194, 210, 232, 0.45) 0 var(--min-pct),
      var(--accent) var(--min-pct) var(--max-pct),
      rgba(194, 210, 232, 0.45) var(--max-pct) 100%
    );
  box-shadow: 0 0 0 1px rgba(5, 10, 18, 0.5) inset;
}

.range-pair input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  grid-area: 1 / 1;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}

.range-pair input[type="range"]:focus {
  outline: none;
}

.range-pair input[type="range"]::-webkit-slider-runnable-track {
  height: 7px;
  border: 0;
  background: transparent;
}

.range-pair input[type="range"]::-moz-range-track,
.range-pair input[type="range"]::-moz-range-progress {
  height: 7px;
  border: 0;
  background: transparent;
}

.range-pair input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -4.5px;
  border: 2px solid #9fe2c4;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  cursor: grab;
}

.range-pair input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #9fe2c4;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  cursor: grab;
}

.range-pair input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid #d7ffee;
  outline-offset: 2px;
}

.range-pair input[type="range"]:focus-visible::-moz-range-thumb {
  outline: 2px solid #d7ffee;
  outline-offset: 2px;
}

.range-pair input[type="range"].is-active-range {
  z-index: 2;
}

.stat-number-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.stat-number-pair label {
  display: grid;
  gap: 0.18rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-number-pair input[type="number"] {
  width: 100%;
  min-width: 0;
  padding: 0.42rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(8, 14, 24, 0.7);
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.suggestions {
  margin-top: 0.5rem;
}

.suggestion-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.35rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.suggestion-item a {
  text-decoration: none;
  color: inherit;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.8rem;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(230px, 300px));
  justify-content: center;
}

.featured-title {
  text-align: center;
}

.card,
.panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.card h3,
.panel h2 {
  margin-top: 0;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.entry-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.entry-grid > *,
.entry-top-grid > *,
.moves-tab-panels {
  min-width: 0;
}

.entry-side-stack {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.entry { --entry-control-fill: var(--paper); --entry-control-hover: var(--accent-dark); }
.entry-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(140px, .85fr)) minmax(0, 1fr);
  align-items: center;
  padding: .75rem 0;
  margin-bottom: 0.8rem;
}

.entry-header-top {
  grid-area: 1 / 2 / 2 / 4;
  display: flex;
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 150px;
  margin-inline: -24px;
  padding: 1rem 2rem;
  text-align: center;
  background: linear-gradient(var(--paper), var(--paper)), var(--bg);
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
}

.entry-header-top h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.entry-header-region {
  white-space: nowrap;
}
.entry-header-top .entry-dex { font-size: 1.2rem; font-weight: 600; color: var(--muted); }
.entry-neighbor { display: flex; align-items: center; gap: .5rem; min-height: 76px; padding: 1rem; border: 1px solid var(--border); background: var(--entry-control-fill); color: var(--text); font-size: 1.05rem; text-decoration: none; overflow-wrap: anywhere; }
.entry-neighbor--previous { grid-area: 1 / 1 / 2 / 3; border-radius: 14px 0 0 14px; padding-right: 30px; }
.entry-neighbor--next { grid-area: 1 / 3 / 2 / 5; justify-content: end; text-align: right; border-radius: 0 14px 14px 0; padding-left: 30px; }
.entry-neighbor > span:not([aria-hidden]) { max-width: calc(54% - 44px); }
.entry-neighbor:hover { background: var(--entry-control-hover); }
.entry-neighbor:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.entry-neighbor.is-empty { visibility: hidden; }
.share-btn.entry-share-btn { display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; padding: 0; border-radius: 10px; background: var(--entry-control-fill); }
.share-btn.entry-share-btn:hover { background: var(--entry-control-hover); }
.copy-confirmation { width: min(400px, calc(100vw - 2rem)); padding: 1.75rem; border: 1px solid var(--border); border-radius: 18px; color: var(--text); background: linear-gradient(var(--paper), var(--paper)), var(--bg); box-shadow: 0 18px 60px #0008; }
.copy-confirmation::backdrop { background: #040a1499; backdrop-filter: blur(3px); }
.copy-confirmation form { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.copy-confirmation h2, .copy-confirmation p { margin: 0; }
.copy-confirmation h2 { font-size: 1.35rem; }
.copy-confirmation p { color: var(--muted); }
.copy-confirmation [data-copy-success] { color: var(--accent); }
.copy-confirmation[data-copy-state="error"] [data-copy-success] { display: none; }
.copy-confirmation .share-btn { background: var(--entry-control-fill); padding-inline: 1.5rem; }

.entry-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.entry-type-stack {
  display: grid;
  gap: 0.35rem;
}

.entry-type-stack .type-list {
  margin-bottom: 0;
  align-items: center;
}

.shiny-toggle {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(8, 14, 24, 0.45);
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.shiny-toggle:hover:not(:disabled),
.shiny-toggle[aria-pressed="true"] {
  border-color: #f1ce63;
  background: rgba(241, 206, 99, 0.18);
}

.shiny-toggle:focus-visible {
  outline: 2px solid #f1ce63;
  outline-offset: 3px;
}

.shiny-toggle:disabled {
  opacity: 0.4;
  cursor: default;
}

.shiny-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .entry-top-meta { flex-wrap: wrap; }
  .entry-type-stack { flex: 1 1 100%; }
  .entry-id-block { margin-left: auto; }
  .entry-type-stack .type-name {
    min-width: 0;
    padding-inline: 0.55rem;
  }
}

.ride-style-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.entry-id-block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.entry-id-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-items: end;
}

.entry-model-anim-controls {
  display: inline-grid;
  grid-template-columns: repeat(3, 32px);
  align-items: center;
  gap: 1px;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(21, 33, 52, 0.9);
  min-height: 32px;
}

.entry-model-anim-controls.is-loading {
  opacity: 0.78;
}

.entry-model-anim-controls[hidden] {
  display: none !important;
}

.entry-model-anim-btn {
  width: 32px;
  height: 32px;
  border-radius: 0;
  border: 0;
  background: rgba(80, 105, 142, 0.3);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.entry-model-anim-btn:hover {
  background: rgba(90, 115, 150, 0.6);
}
.entry-model-anim-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }

.entry-model-anim-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(30, 46, 69, 0.35);
}

.entry-model-anim-icon {
  display: grid;
  place-items: center;
  height: 32px;
  background: rgba(30, 46, 69, .72);
  font-size: 0.98rem;
  line-height: 1;
}

.entry-dex {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
}

.entry-art {
  position: relative;
  min-height: 260px;
  margin-top: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(9, 14, 22, 0.82);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.entry-art img {
  display: block;
  box-sizing: border-box;
  padding: 0.65rem;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}
.entry-art .shiny-transition-frame { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-height: none; padding: 0; object-fit: fill; pointer-events: none; }

.entry-art .pokemon-model-viewer {
  width: 100%;
  height: 300px;
  --poster-color: transparent;
}

.entry-art-fallback {
  color: var(--muted);
  font-weight: 700;
}

.entry-measurements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 0;
}

.entry-measurements > div {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.entry-measurements dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.entry-measurements dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
}

.entry-description-block {
  margin-top: 0.9rem;
}

.entry-description-block h2 {
  margin-bottom: 0.45rem;
}

.ability-table {
  width: 100%;
  border-collapse: collapse;
}

.ability-table th,
.ability-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  text-align: left;
}

.ability-table th {
  width: 130px;
  color: var(--muted);
  font-weight: 700;
}

.ability-table td span[title],
.moves-table td span[title],
.ability-table td a[title],
.moves-table td a[title] {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: color-mix(in srgb, var(--muted) 70%, transparent);
  text-underline-offset: 0.14em;
  cursor: help;
}

.tooltip-search-link {
  color: inherit;
}

.stats-list {
  display: grid;
  gap: 0.45rem;
}

.stat-row {
  display: grid;
  grid-template-columns: 84px 36px 1fr;
  align-items: center;
  gap: 0.6rem;
}

.stat-name {
  font-weight: 700;
}

.stat-value {
  text-align: right;
  color: var(--text);
  font-weight: 700;
}

.stat-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(191, 213, 242, 0.22);
  overflow: hidden;
}

.stat-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--stat-color, #8ccf65);
}

.stat-total {
  margin-top: 2.0rem;
  font-size: 1.5rem;
}

.forms-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 320px);
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  max-width: 100%;
}

.item-cosmetics-row {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.item-cosmetics-list,
.interaction-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.interaction-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(12, 20, 34, 0.6);
  overflow-wrap: anywhere;
}

a.interaction-item, a.evo-requirement-chip {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.interaction-item img {
  flex: 0 0 36px;
  object-fit: contain;
  image-rendering: pixelated;
}

.interaction-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 0.8rem;
}

.interaction-card {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.interaction-flow {
  display: grid;
  grid-template-columns: fit-content(42%) 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.interaction-flow > .interaction-step {
  justify-self: start;
}

.interaction-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 0.65rem;
  min-width: 0;
}

.interaction-results .interaction-step {
  max-width: 100%;
}

.interaction-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.interaction-step-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.interaction-arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-top: 1.2rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

.evo-item-icon {
  flex: 0 0 24px;
  margin-right: 0.35rem;
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: middle;
}

.interaction-pokemon {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.interaction-pokemon:hover,
.interaction-pokemon:focus-visible {
  border-color: var(--accent);
}

.interaction-notes {
  color: var(--muted);
  font-size: 0.82rem;
}

.interaction-notes span + span::before {
  content: "·";
  margin-right: 0.65rem;
}

@media (max-width: 540px) {
  .interaction-flow { grid-template-columns: minmax(0, 1fr); }
  .interaction-arrow { justify-self: start; margin: 0 0 0 1rem; transform: rotate(90deg); }
}

.form-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(12, 20, 34, 0.9);
}

.form-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 65%, white 35%);
  box-shadow: 0 0 0 1px rgba(76, 163, 122, 0.55) inset;
}

.form-card h3 {
  margin: 0 0 0.45rem;
}

.form-card p {
  margin: 0 0 0.45rem;
}

.evo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  max-width: 100%;
}

.evo-cards--single {
  grid-template-columns: minmax(0, 1fr);
}

.evo-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(12, 20, 34, 0.9);
}

.evo-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.evo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.55rem;
}

.evo-item {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.68rem;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 10px;
  background: rgba(21, 33, 52, 0.72);
}

.evo-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-width: 0;
}

.evo-target {
  min-width: 0;
  color: #acd3ff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.evo-target > span {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 650;
}

.evo-method {
  flex: 0 0 auto;
  padding: 0.26rem 0.48rem;
  border: 1px solid rgba(158, 200, 255, 0.2);
  border-radius: 999px;
  background: rgba(34, 54, 82, 0.82);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.evo-method--item {
  border-color: rgba(192, 139, 255, 0.32);
  background: rgba(93, 57, 128, 0.42);
  color: #dec3ff;
}

.evo-method--level {
  border-color: rgba(105, 219, 142, 0.3);
  background: rgba(45, 112, 73, 0.42);
  color: #b8f3ca;
}

.evo-method--trade {
  border-color: rgba(91, 194, 219, 0.3);
  background: rgba(32, 91, 111, 0.46);
  color: #b9edf8;
}

.evo-requirement-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.evo-requirement-chip {
  max-width: 100%;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(158, 200, 255, 0.18);
  border-radius: 999px;
  background: rgba(9, 16, 28, 0.62);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.evo-requirement-chip[title]:not(a) {
  cursor: help;
}

.evo-requirement-chip--item {
  border-color: rgba(192, 139, 255, 0.32);
}

.evo-requirement-chip--level,
.evo-requirement-chip--friendship {
  border-color: rgba(105, 219, 142, 0.3);
}

.evo-requirement-chip--time,
.evo-requirement-chip--season,
.evo-requirement-chip--weather {
  border-color: rgba(104, 170, 255, 0.32);
}

.evo-requirement-chip--location,
.evo-requirement-chip--party {
  border-color: rgba(91, 213, 199, 0.3);
}

.evo-requirement-chip--battle,
.evo-requirement-chip--stat {
  border-color: rgba(255, 125, 125, 0.3);
}

.evo-requirement-chip--advancement {
  border-color: rgba(240, 203, 86, 0.34);
}

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

.panel.full {
  grid-column: 1 / -1;
}

.muted {
  color: var(--muted);
  font-size: 0.95em;
}

.statline {
  color: var(--muted);
}

.share-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.share-btn {
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(21, 33, 52, 0.9);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.share-btn:hover {
  background: rgba(30, 46, 69, 0.95);
}

.share-feedback {
  color: var(--muted);
}

.region-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.region-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(21, 33, 52, 0.9);
  color: #d8e6ff;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.region-badge:hover {
  background: rgba(30, 46, 69, 0.95);
  color: #eef6ff;
}

.region-badge.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
}

.browse-pagination {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.browse-pagination--top {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.moves-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.moves-table th,
.moves-table td {
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
}

.moves-table th {
  background: rgba(228, 236, 250, 0.9);
  color: #0f1722;
}

.moves-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.moves-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  background: var(--paper);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero,
.suggestion-item,
.card,
.panel,
.form-card,
.evo-card,
.moves-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.moves-card h3 {
  margin: 0 0 0.55rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  max-width: 100%;
}

.scroll-fade.is-scrollable {
  --scroll-fade-size: 18px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--scroll-fade-size),
    #000 calc(100% - var(--scroll-fade-size)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--scroll-fade-size),
    #000 calc(100% - var(--scroll-fade-size)),
    transparent 100%
  );
}

.table-scroll .moves-table {
  min-width: 680px;
  width: 100%;
}

.moves-card.full-width {
  grid-column: 1 / -1;
}

.moves-table.compact td,
.moves-table.compact th {
  padding: 0.42rem 0.5rem;
}

.moves-table.detailed td,
.moves-table.detailed th {
  white-space: nowrap;
}

.moves-col-center,
.moves-cell-center {
  text-align: center !important;
}

.moves-table .type-pill {
  min-height: 26px;
}

.moves-table .type-icon {
  width: 26px;
  height: 26px;
}

.moves-table .type-icon img {
  width: 16px;
  height: 16px;
}

.moves-table .type-name {
  height: 26px;
  min-width: 66px;
  padding: 0 0.6rem;
}

.move-category-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}

.moves-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.moves-tab-btn {
  border: 1px solid var(--border);
  background: rgba(21, 33, 52, 0.9);
  color: #d8e6ff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.moves-tab-btn:hover {
  background: rgba(30, 46, 69, 0.95);
}

.moves-tab-btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
}

.moves-tab-panel {
  display: none;
}

.moves-tab-panel.is-active {
  display: block;
}

.spawn-tab-panels {
  min-width: 0;
}

.spawn-grid {
  --spawn-grid-gap: 0.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  align-items: start;
  gap: var(--spawn-grid-gap);
}

.spawn-grid.is-masonry {
  grid-auto-flow: row dense;
  grid-auto-rows: 1px;
  row-gap: 0;
}

.spawn-card {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(12, 20, 34, 0.9);
}

.spawn-card--herd {
  border-color: rgba(91, 211, 132, 0.3);
}

.spawn-card--alpha {
  border-color: rgba(255, 105, 105, 0.34);
}

.spawn-card--habitat {
  border-color: rgba(78, 211, 205, 0.34);
}

.spawn-card--blood-moon {
  border-color: rgba(219, 75, 101, 0.5);
}

.spawn-card-heading {
  display: grid;
  gap: 0.48rem;
}

.spawn-card-heading h3 {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
}

.spawn-heading-badges,
.spawn-facts,
.spawn-condition-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.34rem;
}

.spawn-heading-badges {
  width: 100%;
  justify-content: flex-start;
}

.spawn-context,
.spawn-rarity,
.spawn-kind,
.spawn-fact,
.spawn-condition-chip {
  padding: 0.29rem 0.5rem;
  border: 1px solid rgba(158, 200, 255, 0.2);
  border-radius: 999px;
  background: rgba(21, 33, 52, 0.84);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.1;
}

.spawn-kind--herd {
  border-color: rgba(91, 211, 132, 0.52);
  background: rgba(35, 111, 62, 0.42);
  color: #bdf5cd;
}

.spawn-kind--alpha {
  border-color: rgba(255, 105, 105, 0.58);
  background: rgba(137, 39, 46, 0.48);
  color: #ffd0d0;
}

.spawn-kind--habitat {
  border-color: rgba(78, 211, 205, 0.54);
  background: rgba(27, 103, 104, 0.44);
  color: #bbf7f1;
}

.spawn-kind--blood-moon {
  border-color: rgba(219, 75, 101, 0.64);
  background: rgba(113, 26, 47, 0.48);
  color: #ffc1ce;
}

.spawn-kind--miniboss {
  border-color: rgba(241, 174, 77, 0.6);
  background: rgba(117, 69, 20, 0.45);
  color: #ffe0ac;
}

.spawn-context {
  border-color: rgba(91, 194, 219, 0.28);
  color: #c4eff8;
}

.spawn-rarity--common {
  border-color: rgba(105, 219, 142, 0.3);
  color: #b8f3ca;
}

.spawn-rarity--uncommon {
  border-color: rgba(104, 170, 255, 0.32);
  color: #c5dcff;
}

.spawn-rarity--rare {
  border-color: rgba(192, 139, 255, 0.34);
  color: #dec3ff;
}

.spawn-rarity--ultra-rare {
  border-color: rgba(240, 203, 86, 0.38);
  color: #f8e5a2;
}

.spawn-rarity--boss {
  border-color: rgba(255, 112, 112, 0.4);
  color: #ffc0c0;
}

.spawn-fact {
  background: rgba(9, 16, 28, 0.58);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.spawn-fact--level {
  border-color: rgba(105, 219, 142, 0.28);
  color: var(--text);
}

.spawn-fact--preset {
  border-color: rgba(158, 200, 255, 0.16);
  color: #c7d6ea;
}

.spawn-fact--habitat-properties {
  border-color: rgba(78, 211, 205, 0.26);
  color: #c8efec;
}

.spawn-condition-chip {
  max-width: 100%;
  background: rgba(9, 16, 28, 0.68);
  overflow-wrap: anywhere;
}

.spawn-condition-chip[title] {
  cursor: help;
}

.spawn-condition-chip--biome,
.spawn-condition-chip--location,
.spawn-condition-chip--dimension,
.spawn-condition-chip--structure {
  border-color: rgba(91, 213, 199, 0.3);
}

.spawn-condition-chip--time,
.spawn-condition-chip--phase,
.spawn-condition-chip--season,
.spawn-condition-chip--weather,
.spawn-condition-chip--sky,
.spawn-condition-chip--light {
  border-color: rgba(104, 170, 255, 0.3);
}

.spawn-condition-chip--block,
.spawn-condition-chip--fishing {
  border-color: rgba(192, 139, 255, 0.3);
}

.spawn-condition-chips--excluded {
  padding-top: 0.48rem;
  border-top: 1px dashed rgba(255, 125, 125, 0.22);
}

.spawn-condition-chip--excluded {
  border-color: rgba(255, 125, 125, 0.34);
  color: #ffc5c5;
}

.herd-pool {
  display: grid;
  gap: 0.48rem;
  padding: 0.58rem;
  border: 1px solid rgba(158, 200, 255, 0.16);
  border-radius: 10px;
  background: rgba(7, 13, 23, 0.48);
}

.herd-pool-heading,
.herd-member-heading,
.herd-member-roles,
.herd-member-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.herd-pool-heading,
.herd-member-heading {
  justify-content: space-between;
  gap: 0.42rem 0.65rem;
}

.herd-pool-heading h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
}

.herd-pool-heading > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.herd-member-list {
  display: grid;
  gap: 0.4rem;
}

.herd-member {
  display: grid;
  gap: 0.35rem;
  padding: 0.48rem 0.52rem;
  border: 1px solid rgba(158, 200, 255, 0.13);
  border-radius: 8px;
  background: rgba(17, 27, 43, 0.72);
}

.herd-member--linked {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.spawn-card--herd .herd-member--linked:hover {
  border-color: rgba(91, 211, 132, 0.5);
  background: rgba(28, 69, 48, 0.62);
  transform: translateY(-1px);
}

.spawn-card--alpha .herd-member--linked:hover {
  border-color: rgba(255, 105, 105, 0.52);
  background: rgba(83, 35, 45, 0.58);
  transform: translateY(-1px);
}

.herd-member--linked:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.herd-member--focus {
  border-color: rgba(104, 170, 255, 0.42);
  background: rgba(30, 58, 94, 0.48);
}

.herd-member--alpha {
  border-color: rgba(255, 105, 105, 0.34);
}

.herd-member-heading strong {
  color: var(--text);
  font-size: 0.8rem;
}

.herd-member-link-mark {
  display: inline-block;
  margin-left: 0.28rem;
  color: #9ec8ff;
  font-size: 0.68rem;
  transform: translateY(-0.05rem);
}

.herd-member-roles,
.herd-member-facts {
  gap: 0.28rem;
}

.herd-role,
.herd-member-facts span {
  padding: 0.2rem 0.38rem;
  border: 1px solid rgba(158, 200, 255, 0.16);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.05;
}

.herd-role--follower,
.herd-role--member {
  border-color: rgba(91, 211, 132, 0.28);
  color: #bdf5cd;
}

.herd-role--leader {
  border-color: rgba(240, 203, 86, 0.36);
  color: #f8e5a2;
}

.herd-role--alpha {
  border-color: rgba(255, 105, 105, 0.5);
  background: rgba(137, 39, 46, 0.34);
  color: #ffd0d0;
}

.herd-role--focus {
  border-color: rgba(104, 170, 255, 0.38);
  color: #c5dcff;
}

.spawn-technical {
  margin-top: auto;
  padding-top: 0.18rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.spawn-technical summary {
  cursor: pointer;
  width: fit-content;
  color: var(--muted);
  font-weight: 700;
}

.spawn-technical dl {
  display: grid;
  gap: 0.35rem;
  margin: 0.55rem 0;
}

.spawn-technical dl > div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.45rem;
}

.spawn-technical dt {
  color: var(--text);
  font-weight: 750;
}

.spawn-technical dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.spawn-technical h4 {
  margin: 0.65rem 0 0.3rem;
  color: var(--text);
}

.spawn-technical pre {
  max-height: 210px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.drop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 0.7rem;
}

.drop-card {
  display: grid;
  grid-template-rows: 88px minmax(2.4rem, auto) auto;
  justify-items: center;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(21, 33, 52, 0.72);
  color: inherit;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease;
}

.drop-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 62%, white 38%);
  background: rgba(27, 42, 64, 0.86);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  color: inherit;
}

.drop-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white 28%);
  outline-offset: 3px;
}

.drop-icon-wrap {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background: rgba(9, 16, 28, 0.26);
}

.drop-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
}

.drop-icon-fallback {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, white 35%);
  border-radius: 12px;
  background: rgba(100, 139, 210, 0.22);
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 800;
}

.drop-card h3 {
  display: grid;
  place-items: center;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.2;
}

.drop-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  align-self: end;
  min-height: 1.8rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  background: rgba(9, 16, 28, 0.6);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.drop-meta-separator {
  color: var(--muted);
  font-weight: 500;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.25rem 0 0.1rem;
}

.ride-style-icon {
  text-decoration: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(21, 33, 52, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  font-size: 1rem;
  line-height: 1;
}

.ride-style-icon:hover,
.ride-style-icon:focus-visible {
  border-color: var(--entry-type-1, var(--border));
  outline: 2px solid var(--entry-type-1, var(--border));
  outline-offset: 2px;
}

.ride-seat-count {
  font-size: 0.85rem;
  align-self: center;
}

.type-pill {
  --type-main: #777;
  --type-dark: #555;
  --type-icon-bg: #9a9a9a;
  --type-divider: #ffffff30;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  min-height: 30px;
  overflow: hidden;
  color: #fff;
  background: var(--type-dark);
  font-weight: 700;
  line-height: 1;
}

.type-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--type-main);
  border-right: 1px solid var(--type-divider);
}

.type-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.type-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 0.72rem;
  min-width: 74px;
  text-align: center;
  background: var(--type-dark);
}

.card-title-link {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover {
  text-decoration: underline;
}

.card-block-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-block-link:hover h3 {
  text-decoration: underline;
}

.dex-card {
  display: flex;
  flex-direction: column;
  min-height: 255px;
  gap: 0.45rem;
}

.dex-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.dex-card-head h3 {
  margin: 0;
  line-height: 1.2;
}

.dex-card-number {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.dex-card-image {
  flex: 1;
  min-height: 122px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(9, 14, 22, 0.45);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dex-card-image img {
  max-width: 92%;
  max-height: 128px;
  object-fit: contain;
}

.dex-card-image .pokemon-model-viewer {
  width: 92%;
  height: 128px;
  --poster-color: transparent;
}

.dex-card-types {
  justify-content: center;
}

a {
  color: #9ec8ff;
}

a:hover {
  color: #c2dcff;
}

.type-normal { --type-main:#A8A77A; --type-dark:#7d7c59; --type-icon-bg:#8c8b62; }
.type-fire { --type-main:#EE8130; --type-dark:#C55E1A; --type-icon-bg:#d76b1f; }
.type-water { --type-main:#6390F0; --type-dark:#3f6fcb; --type-icon-bg:#4f7de0; }
.type-electric { --type-main:#F7D02C; --type-dark:#C8A617; --type-icon-bg:#debc1e; }
.type-grass { --type-main:#7AC74C; --type-dark:#5ea637; --type-icon-bg:#67b53e; }
.type-ice { --type-main:#96D9D6; --type-dark:#68b7b3; --type-icon-bg:#7ecac6; }
.type-fighting { --type-main:#C22E28; --type-dark:#8f1f1b; --type-icon-bg:#a82520; }
.type-poison { --type-main:#A33EA1; --type-dark:#7d2f7c; --type-icon-bg:#8f368d; }
.type-ground { --type-main:#E2BF65; --type-dark:#b08f44; --type-icon-bg:#cba652; }
.type-flying { --type-main:#A98FF3; --type-dark:#7b66c7; --type-icon-bg:#8c74dd; }
.type-psychic { --type-main:#F95587; --type-dark:#c83e68; --type-icon-bg:#df4b77; }
.type-bug { --type-main:#A6B91A; --type-dark:#7f8e13; --type-icon-bg:#8f9f16; }
.type-rock { --type-main:#B6A136; --type-dark:#8b7927; --type-icon-bg:#9c8a2e; }
.type-ghost { --type-main:#735797; --type-dark:#563f75; --type-icon-bg:#644a86; }
.type-dragon { --type-main:#6F35FC; --type-dark:#4e26b0; --type-icon-bg:#5e2fe0; }
.type-dark { --type-main:#705746; --type-dark:#4e3d31; --type-icon-bg:#604a3b; }
.type-steel { --type-main:#B7B7CE; --type-dark:#87879f; --type-icon-bg:#9e9eb6; }
.type-fairy { --type-main:#D685AD; --type-dark:#a76285; --type-icon-bg:#bf7398; }
.type-stellar { --type-main:#4fc5b3; --type-dark:#3a8f82; --type-icon-bg:#44aa9b; }
.type-unknown { --type-main:#6ca892; --type-dark:#4f7f6e; --type-icon-bg:#5c9480; }

@media (max-width: 980px) {
  .combo-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-filter {
    flex-basis: calc((100% - 0.55rem) / 2);
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(230px, 320px));
  }

  .forms-rail {
    grid-auto-columns: minmax(210px, 62vw);
  }

  .evo-cards:not(.evo-cards--single) {
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 62vw);
    grid-template-columns: none;
    overflow-x: auto;
  }

  .scroll-fade.is-scrollable {
    --scroll-fade-size: 12px;
  }
}

@media (max-width: 720px) {
  .combo-search-main {
    flex-wrap: wrap;
  }

  .combo-search-main input[type="search"] {
    flex-basis: 100%;
  }

  .combo-filter-grid {
    grid-template-columns: 1fr;
  }

  .stat-filter {
    flex-basis: 100%;
  }

  .sort-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sort-direction-chip {
    grid-column: 1 / -1;
  }

  .combo-picker-panel {
    position: static;
    margin-top: 0.35rem;
  }

  .combo-picker--sighting-resource .combo-picker-panel {
    width: 100%;
  }

  .combo-picker--types .combo-picker-panel,
  .combo-picker-panel--types,
  .combo-picker:has(.combo-option-list--types) .combo-picker-panel {
    left: auto;
    right: auto;
    width: 100%;
    transform: none;
  }

  .combo-option-list--types {
    grid-template-columns: 1fr;
  }

  .site-header {
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .brand {
    flex: 1 0 100%;
    margin-right: 0;
  }

  .nav {
    order: 2;
    gap: 0.75rem;
  }

  .site-header-search {
    margin-left: 0;
  }

  .site-header-search input {
    width: 100%;
    min-width: 0;
  }

  .site-header-search-wrap {
    order: 3;
    margin-left: auto;
    width: min(250px, 56vw);
    min-width: 160px;
  }

  .entry-header { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .entry-header-top { grid-column: 1 / -1; grid-row: 1; margin-inline: 0; min-height: 130px; padding: 1rem 2rem; }
  .entry-neighbor { grid-row: 2; min-height: 58px; padding: .6rem; border-radius: 10px; font-size: .9rem; }
  .entry-neighbor--previous { grid-column: 1; }
  .entry-neighbor--next { grid-column: 2; }
  .entry-neighbor > span:not([aria-hidden]) { max-width: none; }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .entry-top-grid {
    grid-template-columns: 1fr;
  }

  .moves-grid {
    grid-template-columns: 1fr;
  }

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

  .featured-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .forms-rail {
    grid-auto-columns: minmax(220px, 72vw);
  }

  .evo-cards:not(.evo-cards--single) {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 72vw);
    grid-template-columns: none;
    overflow-x: auto;
  }

  .spawn-grid {
    grid-template-columns: 1fr;
  }

  .spawn-heading-badges {
    justify-content: flex-start;
  }

  .scroll-fade.is-scrollable {
    --scroll-fade-size: 12px;
  }

  pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}
