:root {
  color-scheme: light;
  --paper: #f5f3e7;
  --ink: #253f35;
  --muted: #607368;
  --green: #25533f;
  --line: #d1d8c7;
  --yellow: #ead486;
  --orange: #a35a31;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.55 ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ba6a30;
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
.top {
  background: var(--green);
  color: #f8f6e6;
  padding: 18px max(24px, calc((100vw - 1370px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 5px solid #d5be76;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.16em;
  line-height: 1.5;
}
.brand b {
  font-size: 16px;
  letter-spacing: 0.09em;
}
.ball {
  width: 33px;
  height: 33px;
  border: 2px solid #fbf5d7;
  border-radius: 50%;
  background: linear-gradient(#e8b871 43%, #fbf5d7 43%, #fbf5d7 56%, transparent 56%);
  position: relative;
}
.ball:after {
  content: '';
  position: absolute;
  border: 2px solid #fbf5d7;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  left: 8px;
  top: 9px;
  background: var(--green);
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 13px;
}
nav a {
  text-decoration: none;
}
.play {
  border: 1px solid #92a391;
  padding: 9px 14px;
  border-radius: 4px;
}
main {
  max-width: 1418px;
  margin: auto;
  padding: 0 24px;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 46px 4px 28px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 750;
  margin: 0 0 14px;
  color: var(--muted);
}
h1 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
}
.intro {
  max-width: 600px;
  color: var(--muted);
  margin: 16px 0 0;
  font-size: 16px;
}
.guide-stamp {
  width: 176px;
  height: 154px;
  flex-shrink: 0;
  border: 1px solid #8fa28a;
  outline: 1px solid #c6d0bb;
  outline-offset: 5px;
  border-radius: 50%;
  display: grid;
  align-content: center;
  text-align: center;
  background: #eaf0dc;
  transform: rotate(5deg);
  gap: 1px;
  margin-right: 28px;
}
.guide-stamp > span {
  font-size: 35px;
  line-height: 1.2;
}
.guide-stamp strong {
  font:
    700 20px Georgia,
    serif;
}
.guide-stamp small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 12px;
}
.summary span {
  padding: 2px 14px;
  border-right: 1px solid var(--line);
}
.summary b {
  color: var(--ink);
}
.atlas {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.navigator {
  position: sticky;
  top: 18px;
}
.navigator > label {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 750;
}
.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #a8b79e;
  background: #fffef6;
  border-radius: 5px;
  margin: 8px 0 10px;
  padding-left: 11px;
}
.search-box > span {
  font-size: 24px;
  color: #648264;
}
input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  padding: 12px 8px;
  color: var(--ink);
}
select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #eeefe3;
  color: var(--ink);
}
.result-count {
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 8px;
}
.area-list {
  max-height: 54vh;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: 5px;
}
.area-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid transparent;
  border-bottom-color: #dde1d3;
  background: none;
  text-align: left;
  padding: 11px 9px;
  color: var(--ink);
  border-radius: 4px;
}
.area-button:hover {
  background: #e7ebda;
}
.area-button[aria-current='true'] {
  background: var(--green);
  color: #fffde9;
  border-color: var(--green);
}
.area-button strong {
  font-size: 13px;
  font-weight: 650;
  display: block;
}
.area-button small {
  display: block;
  font-size: 10px;
  opacity: 0.75;
}
.level-badge {
  font:
    700 11px ui-monospace,
    monospace;
  white-space: nowrap;
  border: 1px solid currentColor;
  padding: 3px 6px;
  border-radius: 3px;
  opacity: 0.8;
}
.downloads {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding: 14px 8px;
  font-size: 12px;
}
.downloads strong {
  font-size: 11px;
}
.downloads a {
  color: var(--muted);
  text-decoration: none;
}
.detail {
  min-width: 0;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 0 0 18px;
}
.detail-head .eyebrow {
  margin-bottom: 4px;
  font-size: 10px;
}
h2 {
  font:
    500 clamp(27px, 3vw, 37px)/1.15 Georgia,
    serif;
  margin: 0;
}
.wild-level {
  background: var(--yellow);
  border: 1px solid #c4ad61;
  padding: 7px 12px;
  font:
    700 14px ui-monospace,
    monospace;
  border-radius: 4px;
  white-space: nowrap;
}
.access {
  background: #e9eddd;
  border: 1px solid #d1dbc5;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 5px;
  font-size: 12px;
}
.access p {
  margin: 2px 0;
}
.access strong {
  color: #31583e;
}
.map-links {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 6px 0;
}
.map-link {
  border: 1px solid #b3c4a6;
  background: #f8faed;
  color: #365d40;
  border-radius: 4px;
  padding: 4px 8px;
  text-decoration: none;
  font-size: 11px;
  display: inline-flex;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  gap: 20px;
  align-items: start;
}
.map-panel {
  min-width: 0;
  background: #e0e6d5;
  border: 1px solid #a9b99d;
  border-radius: 7px;
  padding: 7px;
  overflow: hidden;
}
.map-tools {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 2px 4px 8px;
  font-size: 10px;
  color: #496441;
}
.map-tools label {
  display: flex;
  gap: 5px;
  align-items: center;
}
.map-tools input {
  width: auto;
  accent-color: var(--green);
}
.map-tools a {
  font-size: 10px;
}
.map-image {
  position: relative;
  line-height: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #b8d0af;
}
.map-image img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}
.map-image svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.zone-overlay {
  fill: #fff4a9;
  fill-opacity: 0.38;
  stroke: #ffe077;
  stroke-width: 0.12;
  cursor: pointer;
}
.zone-overlay:hover {
  fill-opacity: 0.65;
}
.pin-number {
  fill: #244b38;
  stroke: #fff1b9;
  stroke-width: 0.16;
}
.pin-text {
  fill: #fff5d9;
  font: bold 1.15px system-ui;
  paint-order: stroke;
  pointer-events: none;
}
.special-pin {
  fill: #f4bc45;
  stroke: #4c4428;
  stroke-width: 0.12;
}
.map-caption {
  font-size: 11px;
  color: #516249;
  padding: 10px 5px 4px;
  line-height: 1.5;
  margin: 0;
}
.captures {
  display: grid;
  gap: 14px;
}
.habitat {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdf3;
  overflow: hidden;
  scroll-margin-top: 20px;
}
.habitat-head {
  padding: 11px 12px;
  background: #e9eddd;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.number {
  font:
    700 11px ui-monospace,
    monospace;
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  background: var(--green);
  color: #fff7dc;
  border-radius: 50%;
}
h3 {
  font-size: 13px;
  margin: 0;
  line-height: 1.3;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  margin: 9px 12px 7px;
}
.pokemon-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  border-top: 1px solid #e8eadc;
}
.pokemon-row:first-of-type {
  border: 0;
}
.pokemon-row img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
}
.pokemon-row strong {
  font-size: 12px;
  display: block;
}
.pokemon-row small {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.pokemon-row .stat {
  text-align: right;
  font-size: 11px;
  white-space: nowrap;
}
.pokemon-row .stat b {
  display: block;
  font:
    700 12px ui-monospace,
    monospace;
}
.rare {
  background: #fff3d3;
}
.tag {
  font-size: 9px;
  color: #966322;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.special {
  border-color: #cfb573;
}
.special .habitat-head {
  background: #f1e3b4;
}
.notes {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}
.notes p {
  margin: 6px 0;
}
.opponents {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 11px;
}
.opponents summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 650;
  padding: 5px 0;
}
.opponents h4 {
  margin: 14px 0 6px;
}
.opponents .pokemon-row {
  padding: 3px 0;
  grid-template-columns: 28px minmax(0, 1fr) auto;
}
.opponents img {
  width: 28px;
  height: 28px;
}
.empty {
  background: #eeefe4;
  border: 1px dashed #a8b59a;
  border-radius: 6px;
  padding: 22px;
  color: #53664e;
  font-size: 13px;
}
.search-note {
  background: #fff2cb;
  color: #6c571a;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 0 0 16px;
  font-size: 12px;
}
footer {
  margin-top: 45px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  display: flex;
  gap: 30px;
  justify-content: space-between;
}
footer p {
  margin: 0;
  max-width: 690px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .atlas {
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 20px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .captures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-panel {
    max-width: 640px;
  }
}
@media (max-width: 680px) {
  .top {
    padding: 14px 16px;
  }
  .brand b {
    font-size: 12px;
  }
  .brand {
    font-size: 9px;
  }
  .ball {
    width: 29px;
    height: 29px;
  }
  .ball:after {
    left: 6px;
    top: 7px;
  }
  nav {
    gap: 8px;
  }
  nav > a:first-child {
    display: none;
  }
  .play {
    font-size: 11px;
    padding: 7px 9px;
  }
  main {
    padding: 0 14px;
  }
  .hero {
    padding: 30px 0 20px;
    gap: 8px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .intro {
    font-size: 13px;
  }
  .guide-stamp {
    display: none;
  }
  .summary {
    font-size: 10px;
    gap: 2px;
    padding: 8px 0;
    margin-bottom: 18px;
  }
  .summary span {
    padding: 3px 8px;
  }
  .atlas {
    display: flex;
    flex-direction: column;
    gap: 23px;
  }
  .navigator {
    position: static;
    width: 100%;
  }
  .navigator > label {
    font-size: 9px;
  }
  .search-box {
    margin-bottom: 7px;
  }
  input {
    font-size: 16px;
  }
  .area-list {
    max-height: 168px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .area-button {
    padding: 8px;
  }
  .area-button strong {
    font-size: 12px;
  }
  .area-button small {
    font-size: 9px;
  }
  .downloads {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 0;
    border: 0;
    font-size: 10px;
  }
  .downloads strong {
    display: none;
  }
  .result-count {
    margin: 9px 0 5px;
    font-size: 10px;
  }
  .detail {
    width: 100%;
  }
  .detail-head {
    margin-bottom: 12px;
    gap: 10px;
  }
  h2 {
    font-size: 28px;
  }
  .wild-level {
    font-size: 11px;
    padding: 6px 8px;
  }
  .detail-grid {
    gap: 14px;
  }
  .captures {
    grid-template-columns: 1fr;
  }
  .access {
    font-size: 11px;
    padding: 10px;
  }
  .map-tools {
    font-size: 10px;
  }
  .map-caption {
    font-size: 10px;
  }
  .pokemon-row strong {
    font-size: 13px;
  }
  .pokemon-row small {
    font-size: 11px;
  }
  .pokemon-row {
    padding: 7px 12px;
  }
  .hint {
    font-size: 12px;
  }
  footer {
    display: block;
    margin-top: 28px;
  }
  footer p + p {
    margin-top: 12px;
  }
}
