:root {
  color-scheme: dark;
  --bg: #0d1118;
  --bg-2: #111722;
  --surface: #171e2a;
  --surface-2: #1d2634;
  --surface-3: #252f3e;
  --line: #2a3544;
  --text: #f7f9fb;
  --muted: #a4afbd;
  --muted-2: #738092;
  --lime: #c8ff5a;
  --lime-ink: #142000;
  --cyan: #62d8ff;
  --coral: #ff796d;
  --violet: #ad8cff;
  --gold: #ffc85a;
  --blue: #6fa8ff;
  --shadow: 0 16px 44px rgba(0, 0, 0, .32);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f2f5f7;
    --bg-2: #eef1f4;
    --surface: #fff;
    --surface-2: #f7f9fb;
    --surface-3: #e9eef3;
    --line: #dce3e9;
    --text: #10151c;
    --muted: #586574;
    --muted-2: #7f8b98;
    --shadow: 0 14px 38px rgba(24, 36, 48, .12);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input { font: inherit; }
button { color: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--lime) 70%, transparent); outline-offset: 2px; }
img { max-width: 100%; }
a { color: inherit; }
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding-top: env(safe-area-inset-top);
}
.brand {
  height: 58px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
}
.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  font-size: 1.45rem;
}
.brand-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  background: transparent;
  text-align: left;
  letter-spacing: .06em;
}
.brand-copy > span:last-child { display: flex; flex-direction: column; }
.brand-copy b { font-size: .86rem; letter-spacing: .18em; line-height: 1.1; }
.brand-copy small { color: var(--muted); font-size: .58rem; letter-spacing: .1em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 900;
  box-shadow: inset 0 0 0 5px var(--surface);
}
.quick-tabs {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px 9px;
  scrollbar-width: none;
}
.quick-tabs::-webkit-scrollbar { display: none; }
.quick-tabs button, .quick-tabs a {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}
.quick-tabs button.active {
  border-color: color-mix(in srgb, var(--lime) 30%, transparent);
  background: color-mix(in srgb, var(--lime) 12%, var(--surface));
  color: var(--lime);
}
.page { display: none; min-height: calc(100vh - 100px); padding-bottom: calc(90px + var(--safe-bottom)); }
.page.active { display: block; animation: page-in .22s ease-out; }
@keyframes page-in { from { opacity: .4; transform: translateY(4px); } }
.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 20px 26px;
  background:
    radial-gradient(circle at 90% 10%, rgba(200,255,90,.22), transparent 27%),
    radial-gradient(circle at 10% 90%, rgba(98,216,255,.12), transparent 30%),
    linear-gradient(150deg, #161d28, #0d1118 70%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "C";
  position: absolute;
  right: -22px;
  top: 2px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.055);
  font-size: 15rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-kicker, .eyebrow { color: var(--lime); font-size: .67rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero-kicker { display: flex; align-items: center; gap: 7px; }
.hero-kicker span { width: 22px; height: 2px; background: var(--lime); }
.hero h1, .page-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(2.15rem, 10vw, 4.25rem);
  line-height: 1.07;
  letter-spacing: -.055em;
}
.hero h1 em { color: var(--lime); font-style: normal; }
.hero > p { max-width: 590px; margin: 0; color: #c0c9d4; font-size: .95rem; }
.hero-search {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 590px;
  min-height: 54px;
  margin-top: 25px;
  padding: 0 12px 0 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  color: #dce4ec;
  text-align: left;
}
.hero-search kbd { padding: 5px 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #aeb8c5; font: inherit; font-size: .7rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 590px; margin-top: 22px; }
.hero-stats div { padding: 12px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.045); text-align: center; }
.hero-stats b { display: block; color: #fff; font-size: 1.32rem; line-height: 1.05; }
.hero-stats span { color: #98a5b5; font-size: .7rem; }
.content { width: min(100%, 1000px); margin: 0 auto; padding: 22px 15px; }
.home-content { margin-top: -1px; }
.alert, .compact-alert {
  display: grid;
  gap: 5px;
  padding: 15px 16px;
  border: 1px solid color-mix(in srgb, var(--lime) 26%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--lime) 7%, var(--surface));
}
.alert b { color: var(--lime); font-size: .75rem; letter-spacing: .08em; }
.alert span, .compact-alert { color: var(--muted); font-size: .85rem; }
.compact-alert.warning { border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 30px 2px 13px; }
.section-heading h2 { margin: 2px 0 0; font-size: 1.25rem; letter-spacing: -.025em; }
.text-button { min-height: 40px; border: 0; background: transparent; color: var(--lime); font-size: .82rem; font-weight: 750; }
.steps { display: grid; gap: 9px; }
.steps article { display: grid; grid-template-columns: 42px 1fr; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.steps article > span { display: grid; place-items: center; align-self: start; aspect-ratio: 1; border-radius: 12px; background: var(--lime); color: var(--lime-ink); font-weight: 900; font-size: .78rem; }
.steps b { font-size: .93rem; }
.steps p { margin: 3px 0 0; color: var(--muted); font-size: .81rem; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.portal-grid button, .portal-grid a { display: grid; justify-items: start; min-height: 126px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); text-align: left; text-decoration: none; box-shadow: 0 1px 0 rgba(255,255,255,.02); }
.portal-icon { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 14px; border-radius: 11px; color: #0b1016; font-weight: 900; }
.portal-icon.coral { background: var(--coral); }.portal-icon.cyan { background: var(--cyan); }.portal-icon.lime { background: var(--lime); }.portal-icon.violet { background: var(--violet); }.portal-icon.gold { background: var(--gold); }.portal-icon.blue { background: var(--blue); }
.portal-grid b { font-size: .91rem; }
.portal-grid small { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.h-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 9px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.mini-pokemon { flex: 0 0 154px; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.mini-pokemon .image { position: relative; height: 126px; background: radial-gradient(circle, color-mix(in srgb, var(--lime) 16%, var(--surface-2)), var(--surface)); }
.mini-pokemon img { width: 100%; height: 100%; object-fit: contain; padding: 8px; filter: drop-shadow(0 10px 10px rgba(0,0,0,.22)); }
.mini-pokemon .tier { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); font-weight: 900; }
.mini-pokemon > div:last-child { padding: 11px 12px 13px; }
.mini-pokemon b { display: block; }
.mini-pokemon small { color: var(--muted); font-size: .7rem; }
.source-card { margin-top: 26px; padding: 21px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, var(--surface), var(--surface-2)); }
.source-card > span, .ball-card > span { color: var(--lime); font-size: .67rem; font-weight: 850; letter-spacing: .13em; }
.source-card h3 { margin: 7px 0 5px; }
.source-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.source-card > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.source-card a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: .75rem; text-decoration: none; }
.page-hero { padding: 32px 18px 27px; border-bottom: 1px solid var(--line); background: linear-gradient(155deg, var(--surface), var(--bg)); }
.page-hero h1 { margin: 5px 0 5px; font-size: clamp(2rem, 9vw, 3.5rem); }
.page-hero p { margin: 0; color: var(--muted); font-size: .87rem; }
.timeline { position: relative; margin-top: 21px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline article { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 12px; margin-bottom: 12px; }
.timeline .node { z-index: 1; display: grid; place-items: center; align-self: start; width: 40px; height: 40px; border: 4px solid var(--bg); border-radius: 50%; background: var(--surface-3); color: var(--lime); font-size: .72rem; font-weight: 900; }
.timeline .body { width: 100%; padding: 14px 54px 14px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; }
.story-check { position: absolute; z-index: 2; right: 10px; top: 10px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--muted); font-weight: 900; }
.story-check.done { border-color: var(--lime); background: var(--lime); color: var(--lime-ink); }
.timeline .body:active { border-color: var(--lime); transform: scale(.995); }
.timeline .top { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.timeline h3 { margin: 0; font-size: .96rem; }
.timeline .level { flex: none; padding: 4px 8px; border-radius: 8px; background: color-mix(in srgb, var(--lime) 12%, var(--surface-2)); color: var(--lime); font-size: .68rem; font-weight: 850; }
.timeline .type { display: inline-block; margin-top: 6px; color: var(--cyan); font-size: .72rem; font-weight: 750; }
.timeline p { margin: 7px 0 0; color: var(--muted); font-size: .8rem; }
.timeline .tap-hint { display: flex; justify-content: space-between; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--lime); font-size: .68rem; font-weight: 800; }
.map-tabs, .filter-chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.map-tabs button, .filter-chips button { flex: none; min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .78rem; font-weight: 750; }
.map-tabs button.active, .filter-chips button.active { border-color: var(--lime); background: var(--lime); color: var(--lime-ink); }
.map-card { overflow: hidden; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.map-canvas { position: relative; background: #5596a4; }
.map-card img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }
.map-card figcaption { padding: 10px 13px; color: var(--muted); font-size: .72rem; }
.map-pins { position: absolute; inset: 0; pointer-events: none; }
.map-pins button { position: absolute; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 3px solid white; border-radius: 50%; background: #111927; color: white; box-shadow: 0 3px 10px rgba(0,0,0,.48); transform: translate(-50%, -50%); pointer-events: auto; }
.map-pins button span { font-size: .65rem; font-weight: 950; }
.map-pins button.selected { width: 38px; height: 38px; border-color: var(--lime); background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 7px color-mix(in srgb, var(--lime) 24%, transparent), 0 5px 16px rgba(0,0,0,.5); }
.map-legend { display: flex; gap: 6px; overflow-x: auto; padding: 10px 10px 4px; scrollbar-width: none; }
.map-legend::-webkit-scrollbar { display: none; }
.map-legend button { display: flex; align-items: center; flex: none; min-height: 39px; padding: 5px 9px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.map-legend b { display: grid; place-items: center; width: 27px; height: 27px; margin-right: 6px; border-radius: 50%; background: var(--surface-3); color: var(--lime); font-size: .65rem; }
.map-legend span { font-size: .68rem; font-weight: 750; }
.map-legend button.selected { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 9%, var(--surface)); }
.map-legend button.selected b { background: var(--lime); color: var(--lime-ink); }
.stack { display: grid; gap: 9px; }
.wild-card, .index-card, .item-card { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.wild-card .top, .index-card .top, .item-card .top { display: flex; justify-content: space-between; gap: 8px; }
.wild-card h3, .index-card h3, .item-card h3 { margin: 0; font-size: .95rem; }
.wild-card.map-highlight { border-color: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 14%, transparent); }
.level-pill, .count-pill { flex: none; color: var(--lime); font-size: .7rem; font-weight: 850; }
.card-label { display: block; margin-bottom: 3px; color: var(--muted-2); font-size: .58rem; font-weight: 850; letter-spacing: .09em; }
.area-finder { margin-top: 11px; padding: 11px; border-radius: 12px; background: var(--surface-2); }
.area-finder > div { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.area-finder > div span, .area-finder p span { color: var(--muted-2); font-size: .61rem; font-weight: 800; }
.area-finder > div b { color: var(--lime); font-size: .77rem; text-align: right; }
.area-finder p { display: grid; grid-template-columns: 55px 1fr; gap: 7px; margin: 8px 0 0; color: var(--muted); font-size: .72rem; }
.area-finder button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; margin-top: 10px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--cyan); font-size: .69rem; font-weight: 850; }
.pick-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.pick-tags button, .pick-tags span, .type-badge { min-height: 30px; padding: 4px 8px; border: 0; border-radius: 7px; background: var(--surface-3); color: var(--cyan); font-size: .68rem; font-weight: 750; }
.pick-tags span { display: inline-flex; align-items: center; color: var(--muted); }
.pick-tags button { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 3px; }
.pick-tags button img { width: 30px; height: 30px; object-fit: contain; }
.pick-tags button span { min-height: 0; padding: 0; background: transparent; color: var(--cyan); }
.wild-card p, .index-card p, .item-card p { margin: 9px 0 0; color: var(--muted); font-size: .79rem; }
.wild-preview { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.wild-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wild-preview-head b { font-size: .74rem; }
.wild-preview-head span { color: var(--lime); font-size: .67rem; font-weight: 850; }
.wild-name-grid, .wild-area-species { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wild-name-grid button, .wild-area-species button { position: relative; display: grid; grid-template-columns: 45px minmax(0, 1fr); align-items: center; min-width: 0; min-height: 57px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); text-align: left; }
.wild-name-grid button.recommended, .wild-area-species button.recommended { border-color: color-mix(in srgb, var(--lime) 45%, var(--line)); background: color-mix(in srgb, var(--lime) 6%, var(--surface-2)); }
.wild-name-grid button.alternate, .wild-area-species button.alternate { border-color: color-mix(in srgb, var(--violet) 45%, var(--line)); background: color-mix(in srgb, var(--violet) 7%, var(--surface-2)); }
.wild-name-grid button > img, .wild-area-species button > img { width: 43px; height: 43px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0,0,0,.18)); }
.wild-name-grid button > span, .wild-area-species button > span { display: block; min-width: 0; overflow: hidden; }
.wild-name-grid b, .wild-area-species b { display: block; overflow: hidden; color: var(--text); font-size: .7rem; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.wild-name-grid small, .wild-area-species small { display: block; overflow: hidden; margin-top: 2px; color: var(--muted-2); font-size: .59rem; white-space: nowrap; text-overflow: ellipsis; }
.wild-name-grid button { min-height: 73px; }
.wild-name-grid small.pick-reason { display: -webkit-box; margin-top: 3px; overflow: hidden; color: var(--lime); line-height: 1.25; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wild-alternates { margin-top: 8px; }
.wild-alternates summary { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 8px 11px; border: 1px solid color-mix(in srgb, var(--violet) 38%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--violet) 7%, var(--surface-2)); color: var(--violet); cursor: pointer; font-size: .7rem; font-weight: 850; list-style: none; }
.wild-alternates summary::-webkit-details-marker { display: none; }
.wild-alternates summary::after { content: "＋"; font-size: .92rem; }
.wild-alternates[open] summary { margin-bottom: 7px; }
.wild-alternates[open] summary::after { content: "－"; }
.wild-alternates .pick-reason { color: var(--violet) !important; }
.wild-area-species button em { position: absolute; right: 5px; top: 5px; padding: 2px 4px; border-radius: 5px; background: var(--lime); color: var(--lime-ink); font-size: .51rem; font-style: normal; font-weight: 900; }
.wild-area-species button em.alternate-label { background: var(--violet); color: #fff; }
.area-open { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; margin-top: 8px; padding: 0 11px; border: 1px solid color-mix(in srgb, var(--lime) 35%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--lime) 7%, var(--surface)); color: var(--lime); font-size: .7rem; font-weight: 850; }
.section-note { margin: -8px 0 12px; color: var(--muted); font-size: .76rem; }
.fixed-encounters { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.fixed-encounters button { min-height: 61px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); text-align: left; }
.fixed-encounters b { display: block; font-size: .76rem; }
.fixed-encounters span { display: block; margin-top: 3px; color: var(--muted); font-size: .62rem; }
.inline-search { display: grid; grid-template-columns: 25px 1fr; align-items: center; min-height: 50px; margin: 0 0 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--muted); }
.inline-search input { width: 100%; height: 48px; border: 0; outline: 0; background: transparent; color: var(--text); }
.result-line { margin: 4px 2px 12px; color: var(--muted); font-size: .76rem; }
.result-line b { color: var(--text); }
.index-card .methods { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.index-card .methods span { padding: 3px 7px; border-radius: 6px; background: var(--surface-3); color: var(--gold); font-size: .65rem; }
.load-more { width: 100%; min-height: 48px; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); color: var(--text); font-weight: 750; }
.pokemon-grid, .legend-grid { display: grid; gap: 12px; }
.pokemon-card, .legend-card { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: 0 2px 0 rgba(255,255,255,.015); }
.pokemon-card button, .legend-card button { width: 100%; border: 0; background: transparent; text-align: left; padding: 0; }
.pokemon-visual, .legend-visual { position: relative; height: 186px; background:
  radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--lime) 17%, transparent), transparent 43%),
  linear-gradient(155deg, var(--surface-2), var(--surface)); }
.pokemon-visual img, .legend-visual img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 10px; filter: drop-shadow(0 15px 12px rgba(0,0,0,.25)); }
.tier-badge { position: absolute; left: 13px; top: 13px; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: var(--lime); color: var(--lime-ink); font-weight: 950; }
.phase-badge { position: absolute; right: 12px; top: 12px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--muted); font-size: .67rem; }
.saved-badge { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--lime); font-weight: 900; }
.pokemon-body, .legend-body { padding: 15px; }
.pokemon-body h2, .legend-body h2 { margin: 0; font-size: 1.14rem; }
.kicker-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; }
.kicker-line small { color: var(--muted); font-size: .7rem; }
.pick-source { display: inline-block; margin-top: 5px; padding: 3px 6px; border-radius: 6px; background: color-mix(in srgb, var(--violet) 16%, var(--surface-2)); color: var(--violet); font-size: .58rem; font-weight: 850; }
.pick-source.core { background: color-mix(in srgb, var(--lime) 10%, var(--surface-2)); color: var(--lime); }
.pre-evo-line { display: grid; grid-template-columns: 39px 1fr; align-items: center; gap: 7px; margin-top: 10px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); }
.pre-evo-line img { width: 39px; height: 39px; object-fit: contain; }
.pre-evo-line > span:last-child { min-width: 0; }
.pre-evo-line small, .pre-evo-line b { display: block; }.pre-evo-line small { color: var(--muted-2); font-size: .58rem; }.pre-evo-line b { margin-top: 1px; font-size: .7rem; }
.evo-dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); color: var(--lime); font-weight: 900; }
.type-row { display: flex; gap: 5px; margin-top: 9px; }
.location-line { display: grid; grid-template-columns: 16px 1fr; gap: 5px; margin-top: 11px; color: var(--muted); font-size: .75rem; }
.quick-build { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.quick-build div { padding: 8px 9px; border-radius: 10px; background: var(--surface-2); }
.quick-build span { display: block; color: var(--muted-2); font-size: .59rem; letter-spacing: .05em; }
.quick-build b { display: block; margin-top: 2px; font-size: .72rem; }
.ability-preview, .ability-slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 7px; }
.ability-preview > div, .ability-slot-grid > div { position: relative; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.ability-preview span, .ability-slot-grid span { display: block; color: var(--muted-2); font-size: .55rem; font-weight: 750; }
.ability-preview b, .ability-slot-grid b { display: block; overflow: hidden; margin-top: 2px; color: var(--text); font-size: .64rem; white-space: nowrap; text-overflow: ellipsis; }
.ability-preview > div.recommended, .ability-slot-grid > div.recommended { border-color: color-mix(in srgb, var(--lime) 52%, var(--line)); background: color-mix(in srgb, var(--lime) 8%, var(--surface-2)); }
.ability-preview > div.recommended span, .ability-preview > div.recommended b, .ability-slot-grid > div.recommended span, .ability-slot-grid > div.recommended b { color: var(--lime); }
.ability-preview > div.unavailable, .ability-slot-grid > div.unavailable { opacity: .55; }
.ability-preview em { display: none; }
.pokemon-card-head { cursor: pointer; }
.card-ability-slots { padding: 0 15px; margin-top: 5px; }
.pokemon-card .open-detail { cursor: pointer; margin-top: 13px; padding: 11px 15px 15px; border-top: 1px solid var(--line); color: var(--lime); font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: space-between; }
.legend-groups { margin-top: 4px; }
.legend-card .group { color: var(--violet); font-size: .68rem; font-weight: 850; letter-spacing: .06em; }
.legend-visual { height: 170px; }
.raid-table { display: grid; gap: 8px; }
.raid-row { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.raid-row > b { display: grid; place-items: center; align-self: start; min-height: 40px; border-radius: 10px; background: var(--gold); color: #241900; font-size: .78rem; }
.raid-row h3 { margin: 0; font-size: .85rem; }
.raid-row p { margin: 3px 0 0; color: var(--muted); font-size: .74rem; }
.raid-row small { display: block; margin-top: 6px; color: var(--cyan); font-size: .67rem; }
.raid-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.raid-picks article { min-height: 112px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.raid-picks b { display: block; }
.raid-picks span { color: var(--lime); font-size: .68rem; font-weight: 750; }
.raid-picks p { margin: 9px 0 0; color: var(--muted); font-size: .72rem; }
.howto, .money-card, .ball-card, .compare-card { margin-top: 25px; padding: 19px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.howto h2, .money-card h2, .ball-card h2 { margin: 0 0 13px; font-size: 1.15rem; }
.howto ol { margin: 0; padding-left: 20px; }
.howto li { margin: 8px 0; color: var(--muted); font-size: .8rem; }
.money-card { background: linear-gradient(145deg, color-mix(in srgb, var(--lime) 10%, var(--surface)), var(--surface)); }
.money-card > div { display: grid; grid-template-columns: 32px 1fr; gap: 8px; align-items: center; margin-top: 10px; }
.money-card > div b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--lime); color: var(--lime-ink); }
.money-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.ball-card p { margin: 0; color: var(--muted); font-size: .82rem; }
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.system-card { padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.system-card .icon { font-size: 1.25rem; }
.system-card h2 { margin: 9px 0 7px; font-size: .91rem; }
.system-card ul { margin: 0; padding-left: 16px; color: var(--muted); font-size: .7rem; }
.system-card li + li { margin-top: 5px; }
.system-detail-list { display: grid; gap: 10px; }
.system-detail { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.system-detail summary { display: grid; grid-template-columns: 30px 1fr 20px; gap: 9px; align-items: center; padding: 15px; cursor: pointer; list-style: none; }
.system-detail summary::-webkit-details-marker { display: none; }
.system-detail summary > span { font-size: 1.25rem; }
.system-detail summary b, .system-detail summary small { display: block; }
.system-detail summary b { font-size: .82rem; }
.system-detail summary small { margin-top: 3px; color: var(--muted); font-size: .63rem; }
.system-detail summary i { color: var(--lime); font-style: normal; font-size: 1.1rem; transition: transform .18s ease; }
.system-detail[open] summary i { transform: rotate(45deg); }
.system-detail-body { display: grid; gap: 7px; padding: 0 11px 11px; }
.method-row { padding: 11px 12px; border-radius: 12px; background: var(--surface-2); }
.method-row b { display: block; color: var(--text); font-size: .72rem; }
.method-row p { margin: 4px 0 0; color: var(--muted); font-size: .65rem; line-height: 1.55; }
.method-row em { color: var(--lime); font-style: normal; font-weight: 800; }
.method-row.warning-row { border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.method-link { width: 100%; padding: 12px; border: 1px solid color-mix(in srgb, var(--lime) 45%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--lime) 9%, var(--surface-2)); color: var(--lime); font-weight: 800; text-align: left; }
.compare-card { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 8px; align-items: center; }
.compare-card > div:not(.arrow) { padding: 12px; border-radius: 12px; background: var(--surface-2); }
.compare-card span { color: var(--muted-2); font-size: .61rem; letter-spacing: .1em; }
.compare-card b { display: block; margin-top: 5px; font-size: .82rem; }
.compare-card p { margin: 4px 0 0; color: var(--muted); font-size: .68rem; }
.compare-card .arrow { color: var(--lime); text-align: center; }
.source-list { margin-top: 28px; }
.source-list h2 { font-size: 1.15rem; }
.source-list a { display: flex; justify-content: space-between; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.source-list b { font-size: .8rem; }
.source-list span { color: var(--muted); font-size: .68rem; text-align: right; }
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.58); opacity: 0; transition: opacity .2s; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(84vw, 340px); padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + var(--safe-bottom)); background: var(--bg-2); box-shadow: var(--shadow); transform: translateX(-102%); transition: transform .25s ease; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; letter-spacing: .12em; }
.drawer-close { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface); font-size: 1.6rem; }
.drawer-panel > p { margin: 4px 0 18px; color: var(--muted); font-size: .75rem; }
.drawer-links { display: grid; gap: 4px; }
.drawer-links button, .drawer-links a { display: grid; grid-template-columns: 28px 1fr; align-items: center; min-height: 48px; padding: 0 11px; border: 0; border-radius: 12px; background: transparent; text-align: left; text-decoration: none; }
.drawer-links button:active, .drawer-links a:active { background: var(--surface); }
.drawer-links button > span, .drawer-links a > span { font-weight: 750; }
.drawer-note { position: absolute; left: 16px; right: 16px; bottom: calc(18px + var(--safe-bottom)); padding: 13px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: .7rem; }
.search-sheet { position: fixed; inset: 0; z-index: 90; visibility: hidden; background: rgba(0,0,0,.66); opacity: 0; transition: opacity .18s; }
.search-sheet.open { visibility: visible; opacity: 1; }
.search-panel { position: absolute; left: 0; right: 0; bottom: 0; height: min(88vh, 760px); padding: 12px 14px calc(20px + var(--safe-bottom)); border-radius: 24px 24px 0 0; background: var(--bg); transform: translateY(105%); transition: transform .26s ease; }
.search-sheet.open .search-panel { transform: translateY(0); }
.search-head { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.search-head label { display: grid; grid-template-columns: 24px 1fr; align-items: center; min-height: 52px; padding: 0 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.search-head input { width: 100%; height: 50px; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-close { min-width: 48px; min-height: 48px; border: 0; background: transparent; color: var(--lime); font-weight: 750; }
.search-hint { padding: 9px 3px 12px; color: var(--muted-2); font-size: .7rem; }
.search-results { height: calc(100% - 98px); overflow-y: auto; display: grid; align-content: start; gap: 7px; }
.search-result { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; min-height: 66px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.search-result > span:first-child { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface-3); color: var(--lime); }
.search-result b { display: block; font-size: .84rem; }
.search-result small { display: block; overflow: hidden; color: var(--muted); font-size: .68rem; white-space: nowrap; text-overflow: ellipsis; }
.search-result .kind { color: var(--muted-2); font-size: .62rem; }
.search-empty { padding: 50px 15px; color: var(--muted); text-align: center; font-size: .85rem; }
.bottom-nav {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 7px calc(7px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.bottom-nav button { min-height: 50px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); }
.bottom-nav button span { display: block; font-size: 1.05rem; line-height: 1; }
.bottom-nav button small { display: block; margin-top: 4px; font-size: .61rem; }
.bottom-nav button.active { background: color-mix(in srgb, var(--lime) 10%, transparent); color: var(--lime); }
dialog {
  width: min(calc(100% - 22px), 680px);
  max-height: 88vh;
  margin: auto auto 10px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.detail { padding-bottom: calc(16px + var(--safe-bottom)); }
.detail-hero { position: relative; height: 230px; background: radial-gradient(circle, color-mix(in srgb, var(--lime) 18%, var(--surface)), var(--surface)); }
.detail-hero img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 12px; filter: drop-shadow(0 15px 14px rgba(0,0,0,.28)); }
.detail-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--bg) 80%, transparent); font-size: 1.4rem; }
.detail-body { padding: 18px; }
.detail-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-title h2 { margin: 0; font-size: 1.5rem; }
.detail-title .tier-badge { position: static; flex: none; }
.detail-save, .inline-check { min-height: 40px; margin-top: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); font-size: .72rem; font-weight: 850; }
.detail-save.active, .inline-check.done { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 10%, var(--surface)); color: var(--lime); }
.inline-check { width: 100%; }
.detail-section { margin-top: 19px; }
.detail-section > span { color: var(--muted-2); font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
.detail-section h3 { margin: 3px 0 7px; font-size: .9rem; }
.detail-section p { margin: 0; color: var(--muted); font-size: .81rem; }
.evolution-card { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface); }
.evolution-card > img { width: 72px; height: 72px; object-fit: contain; }
.evolution-card small, .evolution-card b { display: block; }.evolution-card small { color: var(--muted-2); font-size: .61rem; }.evolution-card b { margin-top: 2px; font-size: .78rem; }.evolution-card p { margin-top: 5px; font-size: .7rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 15px; }
.detail-grid div { padding: 10px; border-radius: 11px; background: var(--surface); }
.detail-grid span { display: block; color: var(--muted-2); font-size: .61rem; }
.detail-grid b { display: block; margin-top: 3px; font-size: .77rem; }
.ability-slot-grid { gap: 7px; margin-top: 8px; }
.ability-slot-grid > div { min-height: 73px; padding: 10px 8px; background: var(--surface); }
.ability-slot-grid span { font-size: .59rem; }
.ability-slot-grid b { margin-top: 4px; font-size: .72rem; }
.ability-slot-grid em { display: inline-block; margin-top: 6px; padding: 2px 5px; border-radius: 5px; background: var(--lime); color: var(--lime-ink); font-size: .5rem; font-style: normal; font-weight: 900; }
.detail-section p.ability-note { margin-top: 8px; padding: 9px 10px; border-radius: 9px; background: color-mix(in srgb, var(--violet) 8%, var(--surface)); color: var(--violet); font-size: .68rem; }
.move-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.move-list span { padding: 8px 9px; border-radius: 9px; background: var(--surface); color: var(--text); font-size: .75rem; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pros-cons div { padding: 11px; border-radius: 12px; background: var(--surface); }
.pros-cons b { display: block; color: var(--lime); font-size: .68rem; }
.pros-cons div:last-child b { color: var(--coral); }
.pros-cons p { margin-top: 5px; font-size: .73rem; }
.story-detail-hero { display: flex; flex-direction: column; justify-content: end; align-items: start; height: 190px; padding: 22px 20px; background:
  radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--lime) 24%, transparent), transparent 32%),
  linear-gradient(145deg, var(--surface-3), var(--surface)); }
.story-detail-hero > span { color: var(--lime); font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.story-detail-hero > strong { margin-top: 8px; font-size: 1.55rem; }
.story-detail-hero > small { margin-top: 5px; color: var(--muted); font-size: .75rem; }
.story-team div { min-height: 68px; }
.battle-plan { margin: 0; padding: 0; list-style: none; counter-reset: battle-step; }
.battle-plan li { counter-increment: battle-step; display: grid; grid-template-columns: 27px 1fr; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .79rem; }
.battle-plan li::before { content: counter(battle-step); display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--lime); color: var(--lime-ink); font-size: .67rem; font-weight: 900; }
.caution-box, .prep-box { padding: 13px; border: 1px solid color-mix(in srgb, var(--coral) 30%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--coral) 6%, var(--surface)); }
.prep-box { border-color: color-mix(in srgb, var(--cyan) 30%, var(--line)); background: color-mix(in srgb, var(--cyan) 5%, var(--surface)); }
.detail-source-note { margin: 18px 0 2px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .66rem; line-height: 1.55; }
.wild-region-list { display: grid; gap: 8px; }
.wild-region-row { padding: 11px; border-radius: 12px; background: var(--surface); }
.wild-region-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wild-region-row b { font-size: .78rem; }
.wild-region-row > div:first-child span { color: var(--lime); font-size: .61rem; font-weight: 800; }
.wild-region-row p { margin-top: 6px; font-size: .73rem; }
.wild-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.wild-flags span { padding: 4px 6px; border-radius: 6px; background: var(--surface-3); color: var(--gold); font-size: .59rem; }
.form-notice { margin-top: 12px; }
.area-find-detail { padding: 13px; border: 1px solid color-mix(in srgb, var(--lime) 30%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--lime) 6%, var(--surface)); }
.area-find-detail > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; padding: 9px; border-radius: 9px; background: var(--surface); }
.area-find-detail > div span { color: var(--muted-2); font-size: .62rem; }
.area-find-detail > div b { color: var(--lime); font-size: .77rem; text-align: right; }
.area-find-detail p + p { margin-top: 5px; }
.area-find-detail > button { width: 100%; min-height: 42px; margin-top: 11px; border: 1px solid color-mix(in srgb, var(--lime) 35%, var(--line)); border-radius: 10px; background: var(--surface); color: var(--lime); font-size: .7rem; font-weight: 850; }
.verified-battle { margin-top: 14px; padding: 13px; border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--gold) 6%, var(--surface)); }
.verified-battle b { color: var(--gold); font-size: .75rem; }
.verified-battle p { margin: 5px 0 0; color: var(--muted); font-size: .75rem; }
.home-progress { display: grid; gap: 12px; margin-top: 13px; padding: 17px; border: 1px solid color-mix(in srgb, var(--lime) 30%, var(--line)); border-radius: 18px; background: linear-gradient(145deg, color-mix(in srgb, var(--lime) 8%, var(--surface)), var(--surface)); }
.home-progress h2 { margin: 4px 0; font-size: 1.05rem; }
.home-progress p { margin: 0; color: var(--muted); font-size: .77rem; }
.home-progress p b { color: var(--text); }
.home-progress button { min-height: 42px; border: 0; border-radius: 11px; background: var(--lime); color: var(--lime-ink); font-size: .73rem; font-weight: 900; }
.planner-card { margin-bottom: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.planner-card > h2 { margin: 5px 0 14px; font-size: 1.14rem; }
.section-heading.compact { margin: 0 0 13px; }
.select-label { display: block; margin-bottom: 6px; color: var(--muted-2); font-size: .68rem; font-weight: 800; }
.planner-card select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); }
.next-objective { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.next-objective > span { color: var(--lime); font-size: .65rem; font-weight: 850; }
.next-objective h3 { margin: 4px 0 1px; }
.next-objective p { margin: 0; color: var(--muted); font-size: .73rem; }
.next-objective > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.next-objective > div b { padding: 5px 7px; border-radius: 7px; background: var(--surface-3); color: var(--cyan); font-size: .65rem; }
.next-objective > button { width: 100%; min-height: 40px; margin-top: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--lime); font-size: .7rem; font-weight: 850; }
.team-search-results { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.team-search-results button { display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; min-width: 0; min-height: 54px; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); text-align: left; }
.team-search-results button:disabled { opacity: .45; }
.team-search-results img { width: 42px; height: 42px; object-fit: contain; }
.team-search-results span { min-width: 0; }
.team-search-results b, .team-search-results small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.team-search-results b { font-size: .69rem; }.team-search-results small { color: var(--muted); font-size: .57rem; }.team-search-results em { color: var(--lime); font-style: normal; }
.team-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.team-slots article { display: grid; grid-template-columns: 48px 1fr 30px; align-items: center; min-width: 0; min-height: 61px; padding: 6px; border-radius: 12px; background: var(--surface-2); }
.team-slots img { width: 48px; height: 48px; object-fit: contain; }
.team-slots div { min-width: 0; }.team-slots b, .team-slots small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.team-slots b { font-size: .72rem; }.team-slots small { color: var(--muted); font-size: .58rem; }
.team-slots button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--surface-3); color: var(--muted); }
.empty-team { grid-column: 1 / -1; margin: 0; padding: 20px 8px; color: var(--muted); font-size: .75rem; text-align: center; }
.team-analysis { display: grid; gap: 7px; margin-top: 12px; }
.team-analysis > div { padding: 11px; border-radius: 11px; background: var(--surface-2); }
.team-analysis span { color: var(--muted-2); font-size: .62rem; font-weight: 800; }
.team-analysis p { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 0; }
.team-analysis p b { padding: 4px 6px; border-radius: 6px; background: var(--surface-3); color: var(--cyan); font-size: .63rem; }
.team-analysis p b.danger { color: var(--coral); }
.check-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.check-summary div { padding: 12px; border-radius: 11px; background: var(--surface-2); }
.check-summary b { display: block; color: var(--lime); font-size: 1.2rem; }.check-summary span { color: var(--muted); font-size: .63rem; }
.planner-note { margin: 12px 0 0; color: var(--muted); font-size: .7rem; }
.area-detail { min-height: min(78vh, 700px); }
.area-detail-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 19px 18px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(15px); }
.area-detail-head h2 { margin: 3px 0 2px; font-size: 1.32rem; }
.area-detail-head p { margin: 0; color: var(--muted); font-size: .7rem; }
.area-detail-head .detail-close { position: static; flex: none; }
.area-detail-body { padding: 14px 14px calc(18px + var(--safe-bottom)); }
.area-detail-body .compact-alert { margin-bottom: 12px; }
.area-list-tools { margin: 0 -4px 8px; padding: 4px; border-radius: 15px; background: color-mix(in srgb, var(--bg) 92%, transparent); }
.area-list-tools .inline-search { margin-bottom: 7px; }
.area-type-filters { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 4px; scrollbar-width: none; }
.area-type-filters::-webkit-scrollbar { display: none; }
.area-type-filters button { flex: none; min-height: 35px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .68rem; font-weight: 800; }
.area-type-filters button.active { border-color: var(--lime); background: var(--lime); color: var(--lime-ink); }
.area-modal-route { display: grid; grid-template-columns: 36px 1fr; gap: 10px; margin-bottom: 11px; padding: 12px; border-radius: 13px; background: var(--surface); }
.area-modal-route > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--lime); color: var(--lime-ink); font-weight: 900; }
.area-modal-route b { font-size: .8rem; }
.area-modal-route p { margin: 3px 0; color: var(--muted); font-size: .7rem; }
.area-modal-route small { color: var(--cyan); font-size: .65rem; }
.wild-area-species .search-empty { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .brand { height: 64px; }
  .hero { padding: 72px max(22px, calc((100vw - 1000px) / 2)) 44px; }
  .page-hero { padding: 48px max(22px, calc((100vw - 1000px) / 2)) 38px; }
  .portal-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps article { grid-template-columns: 1fr; }
  .pokemon-grid { grid-template-columns: repeat(2, 1fr); }
  .legend-grid { grid-template-columns: repeat(3, 1fr); }
  .system-grid { grid-template-columns: repeat(4, 1fr); }
  .raid-picks { grid-template-columns: repeat(3, 1fr); }
  .wild-name-grid, .wild-area-species, .fixed-encounters { grid-template-columns: repeat(3, 1fr); }
  .bottom-nav { left: 50%; right: auto; width: 520px; transform: translateX(-50%); bottom: 12px; border: 1px solid var(--line); border-radius: 18px; padding-bottom: 7px; box-shadow: var(--shadow); }
  dialog { margin: auto; }
}
@media (min-width: 1020px) {
  .pokemon-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-search { max-width: 650px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* === NEW FEATURES & INTERACTIVE UI === */
.boss-team-box { margin: 12px 0; padding: 13px; border: 1px solid color-mix(in srgb, var(--lime) 30%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--lime) 5%, var(--surface)); }
.boss-team-box b { display: block; margin-bottom: 8px; color: var(--lime); font-size: .72rem; font-weight: 850; letter-spacing: .05em; }
.boss-team-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.boss-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: .68rem; font-weight: 750; }
.boss-chip small { color: var(--muted-2); font-weight: 700; }
.terra-badge { padding: 2px 5px; border-radius: 4px; background: color-mix(in srgb, var(--coral) 20%, var(--surface-3)); color: var(--coral); font-size: .58rem; font-weight: 900; }

.interactive-tag { cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.interactive-tag:active { transform: scale(0.96); }

.ability-slot-grid .ability-box { position: relative; cursor: pointer; transition: border-color .2s ease; }
.ability-slot-grid .ability-box:hover { border-color: var(--lime); }
.ability-slot-grid .ability-box::after { content: ' ⓘ'; font-size: .65rem; color: var(--lime); opacity: .8; }

.evo-chain-box { margin: 12px 0; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.evo-chain-box b { display: block; margin-bottom: 8px; color: var(--cyan); font-size: .7rem; font-weight: 850; }
.evo-chain-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.evo-step { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: .7rem; font-weight: 750; }
.evo-step small { display: block; color: var(--muted); font-size: .59rem; font-weight: 600; }
.evo-arrow { color: var(--muted-2); font-weight: 900; font-size: .8rem; }

.ability-trace-box { margin: 10px 0; padding: 11px 13px; border-radius: 12px; background: color-mix(in srgb, var(--cyan) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--cyan) 25%, var(--line)); font-size: .69rem; }
.ability-trace-box b { color: var(--cyan); }
.ability-trace-box p { margin: 4px 0 0; color: var(--text); font-size: .72rem; line-height: 1.45; }

.toast-popup { position: fixed; top: clamp(20px, 8vh, 60px); left: 50%; transform: translateX(-50%) translateY(-20px); z-index: 2147483647; width: min(92%, 440px); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1.5px solid var(--lime); border-radius: 16px; background: #121824; color: var(--text); box-shadow: 0 14px 40px rgba(0,0,0,0.85); opacity: 0; pointer-events: none; transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1), transform .25s cubic-bezier(0.16, 1, 0.3, 1); }
.toast-popup.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-content { flex: 1; min-width: 0; }
.toast-popup h4 { margin: 0 0 3px; color: var(--lime); font-size: .83rem; font-weight: 900; }
.toast-popup p { margin: 0; font-size: .76rem; color: #d0d7e5; line-height: 1.45; }
.toast-close { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--muted); font-size: 1.1rem; font-weight: 700; cursor: pointer; }

.modal-ability-banner { margin: 0 0 16px 0; padding: 14px 16px; border: 1.5px solid var(--lime); border-radius: 14px; background: color-mix(in srgb, var(--lime) 12%, var(--surface-2)); box-shadow: 0 6px 20px rgba(0,0,0,0.4); animation: bannerSlideIn .2s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes bannerSlideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.modal-ability-banner .banner-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.modal-ability-banner .banner-head span { color: var(--lime); font-size: .84rem; font-weight: 900; }
.modal-ability-banner .banner-close { padding: 3px 9px; border: 1px solid color-mix(in srgb, var(--lime) 40%, transparent); border-radius: 8px; background: var(--surface); color: var(--text); font-size: .7rem; font-weight: 850; cursor: pointer; }
.inline-tooltip-bubble { position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); z-index: 1000; width: max-content; min-width: 180px; max-width: min(280px, 82vw); padding: 10px 30px 10px 13px; border: 1.5px solid var(--lime); border-radius: 12px; background: #111824; box-shadow: 0 10px 30px rgba(0,0,0,0.75); text-align: left; animation: bubblePop .18s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes bubblePop { from { opacity: 0; transform: translateX(-50%) scale(.93); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.tooltip-arrow { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-bottom-color: var(--lime); }
.tooltip-content b { display: block; color: var(--lime); font-size: .78rem; font-weight: 900; }
.tooltip-content p { margin: 3px 0 0; color: #d5deee; font-size: .73rem; line-height: 1.4; white-space: normal; }
.tooltip-close { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--muted); font-size: .95rem; font-weight: 700; cursor: pointer; }

.team-weakness-warning { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--coral) 12%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--coral) 30%, var(--line)); font-size: .74rem; color: var(--text); }
.team-weakness-warning.safe { background: color-mix(in srgb, var(--lime) 10%, var(--surface-2)); border-color: color-mix(in srgb, var(--lime) 30%, var(--line)); }
.team-weakness-warning b { color: var(--coral); display: block; margin-bottom: 4px; }
.team-weakness-warning.safe b { color: var(--lime); }
.danger-chip { display: inline-block; margin: 2px 3px 2px 0; padding: 3px 7px; border-radius: 6px; background: var(--coral); color: white; font-size: .67rem; font-weight: 850; }
.move-tm-tag { cursor: pointer; border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent); background: color-mix(in srgb, var(--cyan) 10%, var(--surface-2)); color: var(--cyan); }
.sandwich-card { background: linear-gradient(145deg, color-mix(in srgb, var(--gold) 12%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--gold) 30%, var(--line)); }
.sandwich-card h2 { color: var(--gold); }
.sw-effect, .sw-recipe, .sw-shop { margin: 4px 0; font-size: .77rem; color: var(--muted); }
.sw-effect b { color: var(--lime); }
.sw-recipe b { color: var(--text); }
.sw-shop b { color: var(--cyan); }
.sw-tip { display: block; margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--line); color: var(--muted-2); font-size: .68rem; }

