:root {
  color-scheme: light;
  --bg: #eef0f3;
  --surface: #fff;
  --ink: #18181b;
  --muted: #52525b;
  --stroke: #d4d4d8;
  --accent: #c00824;
  --red: #dc0a2d;
  --red-shadow: #a3061f;
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #a3061f; outline-offset: 3px; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
.wrap { max-width: 1104px; width: calc(100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -10rem; z-index: 9; background: white; padding: .5rem 1rem; }
.skip:focus { top: .75rem; }
.top { position: sticky; top: 0; z-index: 5; background: #fffffff5; border-bottom: 1px solid #e4e4e7; }
.top-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; }
.top-inner { min-height: 64px; gap: .5rem; }
.logo { color: var(--ink); font-weight: 800; font-size: 1.12rem; letter-spacing: -.035em; text-decoration: none; }
.logo span { color: #2563eb; }
.top nav, .footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.top nav a { padding: .45rem .65rem; border-radius: 7px; color: var(--muted); font-size: .88rem; text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { background: #f4f4f5; color: var(--ink); }
.top nav a[aria-current] { font-weight: 750; }
.dex-banner { background: var(--red); color: #fff; box-shadow: inset 0 -6px var(--red-shadow); }
.dex-banner-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-block: 22px 27px; }
.dex-banner-copy { flex: 1; }
.dex-banner h1 { font-size: clamp(1.5rem, 4vw, 1.875rem); font-weight: 900; letter-spacing: -.045em; }
.dex-banner p { color: #fff1f2; font-size: .875rem; margin-top: .15rem; }
.dex-lights { display: flex; align-items: flex-start; gap: .6rem; }
.dex-lights span { position: relative; width: 61px; height: 61px; border: 4px solid #fff; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #d9f1ff, #59b7ff 32%, #1166c5 78%); box-shadow: 0 0 0 3px #0004, inset 0 -4px 8px #0004; }
.dex-lights span::after { content: ""; position: absolute; width: 22%; height: 22%; left: 22%; top: 18%; border-radius: 50%; background: #fffc; }
.dex-lights i { width: 13px; height: 13px; margin-top: .125rem; border-radius: 50%; border: 1px solid #0005; background: #ff4a4a; box-shadow: inset 0 -2px 3px #0002; }
.dex-lights i:nth-child(3) { background: #ffd53d; }
.dex-lights i:nth-child(4) { background: #4ccf5a; }
.dex-switch { display: flex; padding: 4px; border-radius: 12px; background: var(--red-shadow); }
.dex-switch a { display: block; flex: auto; padding: 6px 13px; text-decoration: none; text-align: center; color: #fff1f2; border-radius: 8px; font-size: .83rem; font-weight: 750; }
.dex-switch a[aria-current] { color: var(--accent); background: white; }
.dex-switch a:hover:not([aria-current]) { background: #fff2; }
.dex-switch a:focus-visible { outline-color: white; }
.guide-links { display: flex; gap: 6px; padding: 12px 2px 3px; overflow: auto; scrollbar-width: thin; }
.guide-links a { flex: none; color: #3f3f46; background: white; border: 1px solid #e4e4e7; border-radius: 8px; padding: .3rem .65rem; font-weight: 750; font-size: .76rem; text-decoration: none; }
.guide-links a:hover { border-color: #27272a; }
.browse { padding-top: 12px; }
.filters { border-bottom: 1px solid #0001; padding-bottom: 10px; }
.search-row { display: flex; gap: 8px; position: relative; }
.query, .filter-drawer > summary { display: flex; align-items: center; gap: .65rem; border: 2px solid #27272a; border-radius: 12px; background: #fff; box-shadow: 0 3px #27272a; }
.query { flex: 1; min-width: 0; padding-inline: .8rem; }
.query:focus-within { border-color: var(--red); box-shadow: 0 3px var(--red-shadow); }
.query input { width: 100%; height: 44px; border: 0; outline: 0; background: transparent; padding: 0; font-size: 16px; }
.search-icon { position: relative; flex: none; width: 14px; height: 14px; border: 2px solid #71717a; border-radius: 50%; margin-right: 3px; }
.search-icon::after { content: ""; position: absolute; background: #71717a; width: 6px; height: 2px; right: -4px; bottom: -2px; transform: rotate(45deg); }
.filter-drawer > summary { height: 48px; padding: 0 .85rem; font-size: .9rem; font-weight: 750; list-style: none; }
.filter-drawer > summary::-webkit-details-marker { display: none; }
.filter-drawer[open] > summary { background: #27272a; color: #fff; }
.filter-fields { position: absolute; top: calc(100% + 9px); right: 0; z-index: 4; width: min(100%,360px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 1px solid var(--stroke); border-radius: 12px; background: #fff; box-shadow: 0 6px 18px #0002; padding: 12px; }
.filter-fields label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: .8rem; font-weight: 700; }
.filter-fields select { width: 100%; min-height: 42px; border: 1px solid #a1a1aa; border-radius: 7px; background: #fff; padding-inline: .35rem; font-size: 16px; }
.region-tabs { display: flex; gap: 6px; margin-top: 13px; overflow: auto; }
.region-tabs button { white-space: nowrap; padding: .28rem .8rem; min-height: 36px; border: 1px solid var(--stroke); border-radius: 999px; background: #fff; color: #3f3f46; font-size: .88rem; font-weight: 750; }
.region-tabs button[aria-pressed=true] { color: #fff; background: #18181b; border-color: #18181b; }
.results { margin: 10px 0; color: #3f3f46; font-weight: 700; font-size: .88rem; }
.mon-grid, .guide-grid { display: grid; list-style: none; padding: 0; gap: 12px; }
.mon-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
.guide-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.mon-card { min-width: 0; }
.mon-card .link { text-decoration: none; }
.form-fallback { width: 32%; aspect-ratio: 1; border: 2px solid #d4d4d8; border-radius: 50%; background: #fafafa; }
.more { display: block; margin: 1.25rem auto 0; padding: .55rem 1.25rem; border: 1px solid var(--stroke); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 750; }
.more:hover { border-color: #27272a; }
.empty { border: 2px dashed var(--stroke); border-radius: 14px; padding: 2rem 1rem; text-align: center; background: #fff; color: var(--muted); }
.related { margin-top: 34px; }
.heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: 12px; }
.heading h2, .route-panel h2 { font-size: 1.35rem; letter-spacing: -.035em; }
.heading a, .footer { font-size: .875rem; }
.guide-card { display: block; height: 100%; background: #fff; border: 1px solid #e4e4e7; border-radius: 12px; padding: 16px; color: var(--ink); text-decoration: none; }
.guide-card:hover { border-color: var(--red); }
.guide-card span, .eyebrow { display: block; color: var(--accent); font-weight: 800; font-size: .8rem; }
.guide-card strong { display: block; font-size: 1.06rem; line-height: 1.35; margin-top: .3rem; }
.guide-card p { margin-top: .4rem; color: var(--muted); font-size: .86rem; }
.breadcrumbs { margin: 17px 0 12px; display: flex; flex-wrap: wrap; gap: .45rem; color: var(--muted); font-size: .84rem; }
.entry { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: stretch; gap: 12px; padding: 12px; border-radius: 22px; background: var(--red); box-shadow: 0 6px 20px #0002; }
.entry-screen { display: grid; place-items: center; min-height: 170px; background: radial-gradient(ellipse at 50% 60%, #fff 30%, #dce4e6 70%); border: 6px solid #dedede; box-shadow: inset 0 0 0 2px #3f3f46; border-radius: 14px; overflow: hidden; }
.entry-screen img { width: min(78%, 200px); height: auto; object-fit: contain; image-rendering: auto; }
.entry-text, .profile { min-width: 0; background: #fff; padding: clamp(14px, 3vw, 28px); border-radius: 14px; }
.entry-text h1, .profile h1, .reading h1 { font-size: clamp(1.65rem, 4vw, 2.7rem); font-weight: 900; letter-spacing: -.05em; }
.entry-text h1, .profile h1 { margin: .12em 0 .22em; }
.profile { margin-block: 20px; border: 1px solid #e4e4e7; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 7px; }
.pill, .route-tag { color: #3f3f46; background: #f4f4f5; border-radius: 4px; font-size: .74rem; font-weight: 700; padding: .17rem .43rem; line-height: 1.4; }
.entry-summary { margin-top: .75rem; }
.entry-summary h2 { color: var(--accent); font-size: .85rem; margin-bottom: .2rem; }
.version { color: var(--muted); margin-top: .45rem; font-size: .77rem; }
.jump { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; margin: 17px 0; }
.jump h2 { font-size: 1rem; }
.jump div { display: flex; flex-wrap: wrap; gap: .3rem .85rem; }
.route-panels { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.route-panel { scroll-margin-top: 80px; background: #fff; border: 1px solid #e4e4e7; border-radius: 12px; padding: clamp(14px, 3vw, 23px); min-width: 0; }
.routes { list-style: none; padding: 0; }
.route { display: grid; grid-template-columns: 90px 1fr; align-items: start; gap: 6px 10px; padding: .8rem 0; }
.route + .route { border-top: 1px solid #e4e4e7; }
.route-tag { justify-self: start; }
.route h3 { font-size: 1rem; }
.route p { font-size: .86rem; margin-top: .18rem; }
.route-meta { color: var(--muted); }
.rates { font-variant-numeric: tabular-nums; }
.route-panel summary { color: var(--accent); font-weight: 750; padding-block: .4rem; }
.source-note { color: var(--muted); font-size: .85rem; margin-top: 1rem; }
.guide-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reading { background: #fff; border: 1px solid #e4e4e7; max-width: 790px; border-radius: 12px; padding: clamp(20px, 5vw, 48px); }
.reading h1 { margin: .12em 0 .25em; }
.reading > header > p:last-child { color: var(--muted); }
.reading section { margin-top: 1.6rem; }
.reading section h2 { font-size: 1.22rem; }
.reading section p { margin-top: .55rem; overflow-wrap: anywhere; }
.footer { margin-top: 45px; border-top: 1px solid #e4e4e7; background: #fff; color: var(--muted); padding: 20px 0; }
.footer-inner { gap: .55rem 1rem; flex-wrap: wrap; }
.footer nav { gap: .3rem .8rem; }
.text-button { background: transparent; color: var(--accent); padding: 0; border: 0; text-decoration: underline; text-underline-offset: .2em; }
#analytics-choice { position: fixed; bottom: 0; z-index: 8; width: 100%; border-top: 1px solid #d4d4d8; background: white; box-shadow: 0 -3px 16px #0002; }
.analytics-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-block: .75rem; font-size: .86rem; }
.analytics-inner button { padding: .4rem .7rem; border: 1px solid #a1a1aa; border-radius: 7px; background: #fff; font-weight: 700; }
.analytics-inner button + button { margin-left: .35rem; background: #18181b; color: #fff; border-color: #18181b; }
@media (max-width: 1099px) { .mon-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (max-width: 900px) { .mon-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 750px) {
  .wrap { width: calc(100% - 32px); }
  .dex-switch { width: 100%; }
  .mon-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .guide-grid, .route-panels { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .top-inner { min-height: 57px; }
  .top nav { gap: 2px; }
  .top nav a { padding-inline: .48rem; }
  .dex-banner-inner { gap: 10px; padding-block: 16px 20px; }
  .dex-lights { gap: .35rem; }
  .dex-lights span { width: 45px; height: 45px; }
  .dex-lights i { width: 8px; height: 8px; }
  .dex-banner h1 { font-size: 1.43rem; }
  .region-tabs button { padding-inline: .72rem; }
  .mon-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .guide-grid { gap: 8px; }
  .guide-card { padding: 12px; }
  .entry { grid-template-columns: 1fr; gap: 8px; padding: 9px; }
  .entry-screen { min-height: 112px; }
  .entry-screen img { width: 120px; }
  .entry-screen .form-fallback { width: 44px; }
  .route-panels { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mon-card .link, .mon-card .sprite { transition: none; }
  .mon-card .link:hover, .mon-card .link:hover .sprite { transform: none; }
}
