:root {
  color-scheme: light;
  --paper: #f8f7ef;
  --ink: #1f372d;
  --muted: #58665a;
  --pine: #254d3b;
  --rule: #dddcd0;
  --white: #fffef8;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #37744e; outline-offset: 4px; }
svg { width: 20px; height: 20px; flex: none; }
.wrap { width: min(100% - 88px, 1240px); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--white);
}

.site-header {
  min-height: 83px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; }
.brand-mark {
  display: grid;
  width: 41px;
  height: 41px;
  border-radius: 12px;
  place-items: center;
  color: #faf7e4;
  background: var(--pine);
  flex: none;
}
.brand-mark svg { width: 27px; height: 27px; }
.brand strong, .footer-brand strong { display: block; font-size: 15px; font-weight: 780; letter-spacing: .055em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font: 600 9px var(--mono); letter-spacing: .12em; }
.site-header nav { display: flex; align-items: center; gap: 32px; color: var(--muted); font-size: 14px; font-weight: 600; }
.site-header nav a { padding-block: 8px; }
.site-header nav a:hover { color: var(--pine); text-decoration: underline; text-underline-offset: 5px; }
.random {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid #c9d1c2;
  border-radius: 9px;
  color: var(--pine);
  background: #edf0e6;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.random:hover { background: #e1e9dc; }
.random svg { width: 17px; height: 17px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(440px, 43vw, 550px);
  overflow: hidden;
  border-radius: 24px;
  background: #234537 url("assets/kanto-valley.webp") center center / cover no-repeat;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 38, 36, .67), rgba(14, 42, 34, .32) 42%, transparent 70%);
}
.hero-content {
  z-index: 1;
  padding: 48px clamp(40px, 5.3vw, 80px);
}
.hero-region {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ffffff51;
  border-radius: 99px;
  background: #1e3d35a6;
  padding: 7px 12px;
  color: #fffbed;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .1em;
}
.hero-region > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5d67d;
}
.hero-region b { font-weight: 400; color: #e6c580; }
.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(54px, 6.4vw, 97px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .015em;
}
.hero h1 em { font-style: normal; color: #f7e39c; }
.hero-description { color: #f9f7e7; font-size: 16px; line-height: 1.8; letter-spacing: .035em; }
.hero-button {
  margin-top: 25px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border-radius: 9px;
  background: #f8e5a4;
  color: #223d30;
  padding: 11px 15px 11px 18px;
  font-weight: 800;
  font-size: 14px;
}
.hero-button:hover { background: #fff2c6; }
.hero a:focus-visible { outline-color: #fff3c9; }
.hero-sighting { position: absolute; inset: 0; pointer-events: none; }
.hero-sighting > img {
  position: absolute;
  left: 72%;
  bottom: 23%;
  width: clamp(185px, 23.8%, 305px);
  transform: translateX(-50%);
  filter: drop-shadow(0 12px 10px #292a204f);
}
.hero-sighting figcaption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  border: 1px solid #fff9;
  border-radius: 12px;
  color: var(--ink);
  background: #fff9e9f5;
}
.sighting-icon { display: grid; place-items: center; width: 35px; height: 35px; color: #61480b; font: 800 24px system-ui; border-radius: 8px; background: #f7e09b; }
.hero-sighting small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 2px; }
.hero-sighting strong { display: block; font-size: 13px; }
.hero-sighting strong span { padding-left: 3px; color: var(--muted); font: 600 11px var(--mono); }

.catalog { padding-block: 65px 74px; }
.catalog-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #42634b; font: 750 12px var(--mono); letter-spacing: .18em; }
.eyebrow::before { content: ""; width: 20px; height: 2px; background: #607b52; }
.catalog h2 { margin-top: 8px; font-size: clamp(30px, 4vw, 45px); line-height: 1.18; letter-spacing: .025em; font-weight: 850; }
.intro { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.search-box {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 43px;
  width: min(100%, 252px);
  padding: 0 11px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--white);
  color: var(--muted);
}
.search-box:focus-within { border-color: var(--pine); outline: 2px solid #5f8168; outline-offset: 2px; }
.search-box input { flex: 1; min-width: 0; outline: none; padding: 10px 0; border: 0; background: transparent; font-size: 13px; }
.search-box input::placeholder { color: #647266; }
.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid var(--rule);
}
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filters button {
  min-width: 42px;
  padding: 6px 11px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--white);
  font-size: 13px;
  font-weight: 650;
}
.filters button:hover { border-color: #98ac9b; background: #ecf0e6; }
.filters button[aria-pressed="true"] { border-color: var(--pine); color: #fff; background: var(--pine); }
.count { color: var(--muted); font-size: 12px; white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.entry { min-width: 0; }
.entry-link {
  display: block;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--white);
  transition: box-shadow .18s ease, transform .18s ease;
}
.entry-link:hover { transform: translateY(-3px); box-shadow: 0 8px 18px #27423a15; }
.palette--electric { --tint: #f6e9b8; --ring: #c9962c; }
.palette--grass { --tint: #dcebd4; --ring: #6a925a; }
.palette--fire { --tint: #f7ded0; --ring: #bd7457; }
.palette--water { --tint: #d7e8ee; --ring: #5f8f9d; }
.palette--normal { --tint: #ede6d8; --ring: #a58761; }
.palette--fairy { --tint: #f4dfec; --ring: #af7899; }
.palette--bug { --tint: #e7edc9; --ring: #7a974b; }
.entry-art, .detail-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  overflow: hidden;
  min-height: 155px;
  height: clamp(155px, 14vw, 200px);
  background: var(--tint, #e8ece3);
}
.entry-art::before, .detail-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(circle at center, transparent 0 30px, var(--ring, #6a925a) 31px, transparent 32px 45px);
  opacity: .27;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 82%);
}
.entry-art img, .detail-art img {
  filter: drop-shadow(0 8px 6px #3028182b);
  width: auto;
  max-width: 89%;
  height: 86%;
  object-fit: contain;
}
.entry-number {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 13px;
  padding: 4px 7px;
  border: 1px solid #fff9;
  border-radius: 5px;
  color: #35453b;
  background: #fffdf5c9;
  font: 700 11px var(--mono);
  letter-spacing: .06em;
}
.entry-info { position: relative; padding: 14px 15px 15px; }
.entry-title h3 { font-size: 20px; line-height: 1.3; font-weight: 800; }
.entry-title > span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.2; color: var(--muted); }
.entry-types { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.entry-info .entry-types { margin-top: 12px; padding-right: 28px; }
.type { display: inline-block; padding: 3px 7px; border-radius: 4px; font-size: 11px; font-weight: 750; line-height: 1.25; }
.type--electric { color: #5f4912; background: #f7e9ae; }
.type--grass { color: #355b38; background: #e0edda; }
.type--poison { color: #624272; background: #eee1f4; }
.type--fire { color: #843e27; background: #f8e2d5; }
.type--water { color: #305c71; background: #e0eef4; }
.type--normal { color: #554d42; background: #efeae1; }
.type--fairy { color: #783f68; background: #f5e2ef; }
.type--bug { color: #495b28; background: #e9efcf; }
.entry-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  bottom: 13px;
  right: 13px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--pine);
}
.entry-arrow svg { width: 16px; height: 16px; }
.entry-link:hover .entry-arrow { background: var(--pine); color: white; border-color: var(--pine); }
.empty { min-height: 180px; display: grid; gap: 13px; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.empty button { border: 0; background: none; padding: 4px 8px; color: var(--pine); text-decoration: underline; text-underline-offset: 4px; }

.footer { background: #eeefe5; border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; padding-block: 25px; }
.footer-brand p, .credits { font-size: 12px; line-height: 1.65; color: var(--muted); }
.footer-brand p { margin-top: 4px; }
.credits span { margin: 0 7px; }
.credits a, .back-top { color: var(--pine); text-decoration: underline; text-decoration-color: #a2ac9b; text-underline-offset: 3px; }
.credits a:hover, .back-top:hover { text-decoration-color: currentColor; }
.back-top { font-size: 13px; font-weight: 700; }

.detail {
  width: min(440px, 100% - 24px);
  max-height: calc(100% - 24px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 16px 76px #0f281f4d;
}
.detail::backdrop { background: #142c24ad; }
body:has(.detail[open]) { overflow: hidden; }
.detail-art { height: 205px; }
.detail-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--white);
  font-size: 24px;
  line-height: 1;
}
.detail-close:hover { background: var(--paper); }
.detail-content { padding: 22px 24px 26px; }
.detail-heading { display: flex; gap: 10px; justify-content: space-between; align-items: start; }
.detail-heading h2 { font-size: 27px; line-height: 1.18; }
.detail-en { margin-top: 4px; color: var(--muted); font-size: 13px; }
.detail-note { margin-top: 16px; font-size: 14px; line-height: 1.8; }
.detail-stats {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  margin-block: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #eef0e8;
}
.detail-stats dt { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.detail-stats dd { font-weight: 700; font-size: 13px; }
.detail-source { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--pine); font-weight: 750; }
.detail-source:hover { text-decoration: underline; }
.detail-source svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .grid { gap: 12px; }
  .entry-info { padding-inline: 10px; }
  .entry-arrow { right: 9px; width: 26px; height: 26px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 30px); }
  .site-header { min-height: 70px; grid-template-columns: 1fr auto; gap: 10px; }
  .site-header nav { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .random { padding-inline: 9px; }
  .hero { min-height: 530px; align-items: start; border-radius: 17px; background-position: 61% center; }
  .hero::before { background: linear-gradient(156deg, #0c2624d6, #10292385 36%, transparent 73%); }
  .hero-content { padding: 27px 20px; }
  .hero h1 { margin-block: 15px 12px; font-size: clamp(46px, 11vw, 62px); }
  .hero-description { font-size: 14px; }
  .hero-button { margin-top: 16px; }
  .hero-sighting > img { left: 65%; bottom: 22%; width: min(53%, 230px); }
  .hero-sighting figcaption { right: 10px; bottom: 10px; gap: 7px; padding: 6px 9px 6px 7px; }
  .sighting-icon { width: 30px; height: 30px; }
  .catalog { padding-block: 48px 52px; }
  .catalog-heading { display: block; }
  .search-box { width: 100%; margin-top: 18px; }
  .catalog-controls { align-items: flex-end; gap: 9px; margin-top: 17px; padding-top: 12px; }
  .count { padding-bottom: 5px; }
  .filters { gap: 5px; }
  .filters button { min-width: 34px; padding-inline: 8px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  .entry-art { height: 145px; min-height: 0; }
  .entry-number { left: 8px; top: 8px; }
  .entry-title h3 { font-size: 18px; }
  .footer-inner { column-gap: 20px; }
}

@media (max-width: 365px) {
  .hero-sighting > img { left: 64%; }
  .entry-info .entry-types { padding-right: 0; padding-bottom: 0; }
  .entry-arrow { top: 13px; bottom: auto; width: 22px; height: 22px; }
  .entry-title h3 { font-size: 16px; padding-right: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entry-link { transition: none; }
}

/* The expanded field journal */
button, select { touch-action: manipulation; }
select { font: inherit; color: inherit; }
.field-summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 4px; border-bottom: 1px solid var(--rule); }
.summary-title .eyebrow { font-size: 10px; }
.summary-title p { font-size: 14px; margin-top: 9px; color: var(--muted); }
.summary-numbers { display: flex; gap: 42px; text-align: center; }
.summary-numbers strong { font: 600 28px var(--mono); display: block; letter-spacing: -.04em; }
.summary-numbers span { font-size: 11px; color: var(--muted); display: block; margin-top: 5px; }
.catalog { padding-top: 44px; }
.collection-toolbar { margin-top: 26px; padding: 18px 20px; border: 1px solid #d8dfcf; border-radius: 12px; background: #edf0e4; }
.collection-heading { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; }
#collection-label { font: 500 12px var(--mono); }
.collection-toolbar progress { appearance: none; display: block; width: 100%; height: 5px; margin: 12px 0 9px; border: 0; border-radius: 5px; overflow: hidden; background: #d9dfce; }
.collection-toolbar progress::-webkit-progress-bar { background: #d9dfce; }
.collection-toolbar progress::-webkit-progress-value { background: var(--pine); border-radius: 5px; }
.collection-toolbar progress::-moz-progress-bar { background: var(--pine); }
.collection-toolbar p { font-size: 11px; color: var(--muted); }
.catalog-tools { margin-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 16px; }
.group-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.group-filters button { border: 0; border-radius: 6px; padding: 9px 12px; background: transparent; font-size: 13px; color: var(--muted); }
.group-filters button:hover { background: #e9eddf; }
.group-filters button[aria-pressed="true"] { color: var(--pine); background: #e1e8d9; font-weight: 750; }
.sort-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.sort-label select { border: 1px solid var(--rule); border-radius: 7px; background: var(--white); padding: 8px 26px 8px 9px; max-width: 175px; }
.catalog-controls { margin-top: 15px; align-items: start; }
.count { padding-top: 9px; }
.filters button { min-height: 36px; }
.entry { position: relative; }
.favorite { position: absolute; top: 9px; right: 9px; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #fff9; border-radius: 50%; color: #647162; background: #fffdf5dd; }
.favorite svg { width: 17px; height: 17px; }
.favorite:hover { background: white; color: #94465c; }
.favorite[aria-pressed="true"] { color: #a84d63; background: #fff2f2; }
.favorite[aria-pressed="true"] svg { fill: #a84d63; }
.pagination { margin-top: 32px; display: grid; justify-items: center; gap: 12px; }
.pagination p { font-size: 12px; color: var(--muted); }
.pagination button, .detail-favorite { border: 1px solid #c3cfbc; border-radius: 8px; padding: 12px 24px; background: #e8eddf; color: var(--pine); font-size: 13px; font-weight: 700; }
.pagination button:hover { background: #dce6d1; }
.palette--poison { --tint: #e8ddee; --ring: #a379ae; }
.palette--flying { --tint: #e2e8f0; --ring: #91a6c2; }
.palette--ground { --tint: #eee2cb; --ring: #ac9366; }
.palette--fighting { --tint: #efdbd5; --ring: #af7e67; }
.palette--psychic { --tint: #f1dfe7; --ring: #bc8c9d; }
.palette--rock { --tint: #e8e4d4; --ring: #9e9471; }
.palette--ghost { --tint: #e4e0ee; --ring: #9185ac; }
.palette--ice { --tint: #def0ed; --ring: #77aaa5; }
.palette--dragon { --tint: #e0e3f0; --ring: #939abd; }
.palette--steel { --tint: #e2e9e7; --ring: #869f97; }
.type--flying { color: #4d5b78; background: #e5eaf6; }
.type--ground { color: #735a30; background: #eee3c8; }
.type--fighting { color: #7e4537; background: #f0ddd4; }
.type--psychic { color: #83405d; background: #f7e0e9; }
.type--rock { color: #685c32; background: #eae6d5; }
.type--ghost { color: #5d4e7c; background: #e9e3f3; }
.type--ice { color: #326861; background: #def1ed; }
.type--dragon { color: #4c578c; background: #e3e6f7; }
.type--steel { color: #48645c; background: #e2ece9; }
.detail { width: min(560px, 100% - 24px); }
.detail-art { height: 220px; }
.detail-content { padding: 24px 28px; }
.detail-favorite { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px; }
.detail-favorite svg { width: 16px; height: 16px; }
.detail-favorite[aria-pressed="true"] { color: #93495d; border-color: #d6b4b8; background: #f8ecec; }
.detail-favorite[aria-pressed="true"] svg { fill: currentColor; }
.stats-section, .evolution-section { border-top: 1px solid var(--rule); margin-top: 22px; padding-top: 20px; }
.detail h3 { font-size: 15px; }
.section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 15px; }
.section-heading > span { color: var(--muted); font-size: 11px; }
.section-heading b { color: var(--pine); font: 650 15px var(--mono); padding-left: 4px; }
.stat-row { display: grid; grid-template-columns: 42px 30px 1fr; align-items: center; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.stat-row strong { font: 600 12px var(--mono); color: var(--ink); }
.stat-row meter { appearance: none; width: 100%; height: 7px; background: #e8ecdf; border: 0; border-radius: 5px; }
.stat-row meter::-webkit-meter-bar { background: #e8ecdf; height: 7px; border: 0; }
.stat-row meter::-webkit-meter-optimum-value { background: #7a9a70; border-radius: 5px; }
.stat-row meter::-moz-meter-bar { background: #7a9a70; }
#evolution { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 13px; }
.evolution-node { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 10px 4px; border: 1px solid var(--rule); border-radius: 9px; background: var(--paper); }
.evolution-node:hover { background: #e9eedf; }
.evolution-node.is-current { border-color: #67835b; background: #edf1e6; }
.evolution-condition { min-height: 28px; font-size: 9px; line-height: 1.5; color: var(--muted); }
.evolution-node img { height: 65px; width: 65px; object-fit: contain; }
.evolution-node strong { font-size: 12px; }
.evolution-node small { font: 10px var(--mono); color: var(--muted); }
#evolution-note { margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.detail-nav { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--rule); padding-top: 15px; margin: 20px 0 15px; }
.detail-nav button { border: 0; background: #eef0e6; color: var(--pine); border-radius: 6px; padding: 9px 14px; font-size: 12px; }
.random:disabled { opacity: .5; cursor: default; }
@media (max-width: 680px) {
  .field-summary { padding: 22px 4px; gap: 14px; }
  .summary-title .eyebrow { font-size: 8px; letter-spacing: .06em; }
  .summary-title p { font-size: 11px; max-width: 110px; line-height: 1.6; }
  .summary-numbers { gap: 17px; }
  .summary-numbers strong { font-size: 22px; }
  .summary-numbers span { font-size: 9px; }
  .collection-toolbar { margin-top: 20px; padding: 15px; }
  .catalog-tools { align-items: start; gap: 14px; }
  .group-filters { width: 100%; gap: 3px; }
  .group-filters button { font-size: 11px; padding: 9px 7px; }
  .sort-label { margin-left: auto; }
  .catalog-controls { flex-wrap: wrap; gap: 7px; }
  .count { margin-left: auto; padding-top: 0; }
  .filters { gap: 6px; }
  .filters button { padding: 7px 10px; }
  .entry-number { font-size: 10px; padding: 4px 5px; }
  .favorite { width: 31px; height: 31px; top: 7px; right: 7px; }
  .detail-content { padding: 20px; }
  .detail-art { height: 185px; }
}

/* Language selection */
.header-actions { display: flex; align-items: center; justify-self: end; gap: 10px; }
.language-picker select { max-width: 112px; min-height: 38px; border: 1px solid #c9d1c2; border-radius: 9px; background: var(--white); padding: 7px 9px; font-size: 12px; }
.site-header { grid-template-columns: 1fr auto auto; }
html[lang="en"] .hero h1 { font-size: clamp(52px,6vw,82px); }
html[lang="en"] .hero-content { max-width: 65%; }
html[lang="en"] .hero-description { font-size: 15px; letter-spacing: 0; }
.hero-sighting strong .cover-name { padding: 0; font: inherit; color: inherit; }
html[lang="en"] .group-filters button { font-size: 12px; }
html[lang="en"] .entry-title h3 { font-size: 19px; overflow-wrap: anywhere; }
html[lang="en"] .filters { gap: 6px; }
html[lang="en"] .catalog-controls { align-items: end; }
html[lang="en"] .detail-stats { grid-template-columns: 1.5fr 1fr 1fr; }
html[lang="en"] .evolution-condition { min-height: 36px; }
@media (max-width: 900px) and (min-width: 681px) {
  .site-header nav { gap: 16px; }
  .site-header { gap: 16px; }
  html[lang="en"] .brand strong { font-size: 13px; }
}
@media (max-width: 680px) {
  .site-header { grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
  .header-actions { gap: 6px; }
  .language-picker select { width: 89px; padding: 6px; font-size: 11px; }
  .random-label { display: none; }
  .random { width: 36px; height: 38px; padding: 0; justify-content: center; }
  .brand { gap: 7px; }
  .brand strong { font-size: 12px; letter-spacing: 0; }
  .brand small { font-size: 7px; letter-spacing: .06em; }
  html[lang="en"] .hero h1 { font-size: clamp(43px,10vw,62px); }
  html[lang="en"] .hero-content { max-width: 100%; }
  html[lang="en"] .hero-description { font-size: 13px; }
  html[lang="en"] .group-filters button { padding: 8px 7px; font-size: 11px; }
  html[lang="en"] .entry-title h3 { font-size: 16px; }
  html[lang="en"] .summary-title p { max-width: 120px; }
  html[lang="en"] .summary-numbers { gap: 13px; }
  .evolution-condition { overflow-wrap: anywhere; }
}
