/* Pokémon Sun & Moon zone — "Alola Guide".
   Night-navy page, cream cards, a 3DS console hero with a Rotom Pokédex bottom screen.
   The Sun/Moon switch sets html[data-sm-version="moon"], which swaps the accent color.
   Sections: tokens · chrome · console hero · page sections · footer · responsive */

/* ===== Tokens ===== */
body.zone-pokemon-sun-moon {
  color-scheme: light;
  --sm-navy: #1a2444;
  --sm-console: #101524;
  --sm-console-2: #0b0f1d;
  --sm-screen: #04050d;
  --sm-cream: #fdfcf9;
  --sm-ink: #252d42;
  --sm-mist: #e5ecf3;
  --sm-mist-ink: #5c6375;
  --sm-frame: #1c2a44;
  --sm-sun: #f7511f;
  --sm-moon: #7b61e8;
  --sm-sky: #5ad0e7;
  --sm-gold: #ffcd3f;
  --sm-accent: var(--sm-sun);
  --sm-accent-deep: #c2410c;
  --sm-on-dark: #eef1f8;
  --sm-on-dark-2: #a9b3cc;
  --sm-display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shared component tokens (site.css / zone.css) */
  --bg: var(--sm-navy);
  --card: var(--sm-cream);
  --card-2: #f0f3f7;
  --line: #d9e1ea;
  --bevel: #0a0f20;
  --ink: var(--sm-ink);
  --ink-2: #4a5368;
  --ink-3: #697186;
  --link: var(--sm-accent-deep);
  --btn-top: #ffffff;
  --btn-bot: #eef2f6;
  --title-top: #fdfcf9;
  --title-bot: #eef2f6;
  --shell: var(--sm-accent);
  --shell-hi: #ffb08f;
  --shell-lo: var(--sm-accent-deep);
  --shell-ink: #ffffff;
  --cursor: var(--sm-sky);
  --cursor-2: #a5ecf8;
  --glow: rgba(90, 208, 231, .4);
  --radius: 18px;
  --z-display: var(--sm-display);
  --z-nav-bg: rgba(12, 16, 30, .92);

  background-color: var(--sm-navy);
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.6px);
  background-size: 22px 22px;
}
html[data-sm-version="moon"] body.zone-pokemon-sun-moon {
  --sm-accent: var(--sm-moon);
  --sm-accent-deep: #5b3fd1;
  --shell-hi: #c4b6ff;
}

.zone-pokemon-sun-moon .sm-tile-icon,
.zone-pokemon-sun-moon .sm-badge { background-color: var(--sm-accent); color: #fff; }
.zone-pokemon-sun-moon .tone-sun { background-color: var(--sm-accent); color: #fff; }
.zone-pokemon-sun-moon .tone-sky { background-color: var(--sm-sky); color: #0f3a4a; }
.zone-pokemon-sun-moon .tone-gold { background-color: var(--sm-gold); color: #4a3500; }
.zone-pokemon-sun-moon .tone-mist { background-color: var(--sm-mist); color: var(--sm-ink); }
.zone-pokemon-sun-moon .tone-grass { background-color: #8fd47a; color: #173d0f; }
.zone-pokemon-sun-moon .tone-moon { background-color: #9a88f2; color: #1d1450; }

/* Poké Ball mark (pure CSS) */
.sm-ball { --s: 34px; position: relative; flex: none; display: inline-block; width: var(--s); height: var(--s); border: calc(var(--s) * .08) solid #1b1f2e; border-radius: 50%; background: linear-gradient(#f2492a 0 44%, #1b1f2e 44% 56%, #ffffff 56%); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.sm-ball::after { content: ""; position: absolute; inset: 0; margin: auto; width: 38%; height: 38%; border: calc(var(--s) * .07) solid #1b1f2e; border-radius: 50%; background: #ffffff; }
.sm-ball-xs { --s: 16px; box-shadow: none; }
.sm-ball-lg { --s: 64px; }

/* Type chips */
.sm-type { display: inline-block; flex: none; padding: 0 9px; border-radius: 99px; background: #7c8596; color: #ffffff; font-size: .7rem; font-weight: 900; line-height: 1.7; white-space: nowrap; }
.t-normal { background: #85855a; } .t-fighting { background: #c22e28; } .t-flying { background: #7a65d4; }
.t-poison { background: #9a3d98; } .t-ground { background: #e2bf65; color: #3d2e08; } .t-rock { background: #9c8a2e; }
.t-ghost { background: #6a4f8f; } .t-steel { background: #b7c0cf; color: #2b3443; } .t-fire { background: #e0641c; }
.t-water { background: #4a7be0; } .t-grass { background: #4f9e2d; } .t-electric { background: #f7d02c; color: #3d3100; }
.t-psychic { background: #e9467a; } .t-dragon { background: #6040e0; } .t-dark { background: #5f4b3e; } .t-fairy { background: #cf5f98; }

/* ===== Chrome ===== */
.sm-header { background: rgba(8, 11, 22, .97); border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--sm-on-dark); }
.sm-header-inner { width: min(1180px, 100% - 32px); min-height: 68px; margin: 0 auto; display: flex; align-items: center; gap: 18px; }
.sm-brand { display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; color: inherit; text-decoration: none; }
.sm-brand-text { display: grid; min-width: 0; }
.sm-brand strong { font-family: var(--sm-display); font-size: 1.25rem; font-weight: 900; line-height: 1.15; }
.sm-brand small { color: var(--sm-sky); font-size: .66rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.sm-exit { color: var(--sm-on-dark-2); font-size: .82rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.sm-exit:hover { color: #ffffff; text-decoration: underline; }
.zone-search.sm-search { width: min(280px, 28vw); height: 38px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); box-shadow: none; }
.zone-search.sm-search:focus-within { border-color: var(--sm-sky); box-shadow: 0 0 0 3px rgba(90, 208, 231, .25); }
.zone-search.sm-search input[type="search"] { color: var(--sm-on-dark); }
.zone-search.sm-search input::placeholder { color: #8a94b0; }
.zone-search.sm-search button { background: var(--sm-accent); }

.sm-version { display: flex; flex: none; padding: 3px; border-radius: 99px; background: var(--sm-cream); }
.sm-version[hidden] { display: none; }
.sm-version button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 99px; background: transparent; color: var(--sm-ink); font-size: .85rem; font-weight: 900; cursor: pointer; }
.sm-version button:hover { background: var(--sm-mist); }
.sm-version .sm-version-sun[aria-pressed="true"] { background: var(--sm-sun); color: #ffffff; }
.sm-version .sm-version-moon[aria-pressed="true"] { background: var(--sm-moon); color: #ffffff; }

.zone-pokemon-sun-moon .zone-nav { background: var(--z-nav-bg); border-bottom-color: rgba(255, 255, 255, .07); }
.zone-pokemon-sun-moon .zone-nav-inner { gap: 2px; }
.zone-pokemon-sun-moon .zone-nav a { padding: 7px 12px; color: var(--sm-on-dark-2); font-size: .88rem; }
.zone-pokemon-sun-moon .zone-nav a:hover { background: rgba(255, 255, 255, .08); color: #ffffff; }
.zone-pokemon-sun-moon .zone-nav a[aria-current] { background: var(--sm-accent); color: #ffffff; }

.zone-pokemon-sun-moon .crumbs li { color: var(--sm-on-dark-2); }
.zone-pokemon-sun-moon .crumbs a[aria-current] { color: var(--sm-on-dark); }
.zone-pokemon-sun-moon .result-count { color: var(--sm-on-dark-2); }
.zone-pokemon-sun-moon .window-title .i { color: var(--sm-accent); }
html:has(.zone-pokemon-sun-moon) { scroll-padding-top: 76px; }

/* ===== Console hero ===== */
.sm-console { width: min(980px, 100% - 32px); margin: 34px auto 0; }
.sm-lid { padding: 22px 22px 12px; border-radius: 34px 34px 16px 16px; background: linear-gradient(180deg, #161c30, #0d1222); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 3px #060911, 0 26px 50px -24px rgba(0, 0, 0, .7); }
.sm-screen { position: relative; overflow: hidden; border-radius: 14px; background: var(--sm-screen); box-shadow: 0 0 0 6px var(--sm-screen); }

.sm-top { isolation: isolate; }
.sm-sky { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.sm-top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 34, .62) 0%, rgba(10, 14, 34, .12) 42%, rgba(10, 14, 34, .3) 100%); }
html[data-sm-version="moon"] .sm-top::before { background: linear-gradient(180deg, rgba(22, 16, 64, .72) 0%, rgba(30, 22, 80, .3) 42%, rgba(14, 12, 40, .5) 100%); }
.sm-top-inner { display: grid; gap: 26px; padding: 26px 26px 24px; }
.sm-top-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sm-kicker { margin: 0 0 8px; color: var(--sm-gold); font-size: .78rem; font-weight: 900; letter-spacing: .24em; text-transform: uppercase; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.sm-title { margin: 0; color: #ffffff; font-family: var(--sm-display); font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 900; line-height: 1.05; letter-spacing: -.01em; text-shadow: 0 3px 14px rgba(0, 0, 0, .45); }
.sm-title span { display: block; color: #ffe9b8; }
.sm-dexchip { display: inline-flex; flex: none; align-items: center; gap: 8px; margin: 0; padding: 6px 13px 6px 9px; border-radius: 99px; background: rgba(253, 252, 249, .95); color: var(--sm-ink); font-size: .8rem; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }

.sm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sm-tile { display: grid; justify-items: center; align-content: start; gap: 5px; padding: 14px 10px 13px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 16px; background: rgba(253, 252, 249, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--sm-ink); text-align: center; text-decoration: none; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .55); transition: transform .15s ease, box-shadow .15s ease; }
.sm-tile:hover, .sm-tile:focus-visible { outline: none; transform: translateY(-3px); box-shadow: 0 0 0 3px var(--sm-sky), 0 10px 20px -8px rgba(0, 0, 0, .55); }
.sm-tile strong { font-size: .95rem; font-weight: 900; line-height: 1.2; }
.sm-tile small { color: var(--sm-mist-ink); font-size: .72rem; font-weight: 700; line-height: 1.3; }
.sm-tile-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 2px solid rgba(0, 0, 0, .08); border-radius: 50%; font-size: 19px; }

.sm-hinge { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 12px 0 0; color: #5d6787; font-size: .64rem; font-weight: 800; letter-spacing: .42em; text-transform: uppercase; }
.sm-hinge span { width: 6px; height: 6px; border-radius: 50%; background: var(--sm-gold); box-shadow: 0 0 8px var(--sm-gold); }

.sm-base { display: grid; grid-template-columns: 1fr minmax(0, 580px) 1fr; grid-template-areas: "pad screen abxy" ". sys ."; align-items: center; gap: 16px 24px; margin-top: 8px; padding: 24px 22px 18px; border-radius: 16px 16px 34px 34px; background: linear-gradient(180deg, #121829, #0b0f1d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 3px #060911, 0 26px 50px -24px rgba(0, 0, 0, .7); }
.sm-pad { grid-area: pad; justify-self: center; display: grid; justify-items: center; gap: 30px; }
.sm-stick { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3b4362, #1a1f33 70%); box-shadow: 0 0 0 5px #070a14, 0 4px 8px rgba(0, 0, 0, .5); }
.sm-dpad { position: relative; width: 76px; height: 76px; }
.sm-dpad::before, .sm-dpad::after { content: ""; position: absolute; inset: 0; margin: auto; border-radius: 6px; background: #1e2438; box-shadow: 0 3px 0 #05070e; }
.sm-dpad::before { width: 26px; height: 76px; }
.sm-dpad::after { width: 76px; height: 26px; }
.sm-abxy { grid-area: abxy; justify-self: center; position: relative; width: 108px; height: 108px; }
.sm-abxy span { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #1e2438; color: #8a93ae; font-size: .75rem; font-weight: 900; box-shadow: 0 3px 0 #05070e; }
.sm-abxy .k-x { top: 0; left: 37px; } .sm-abxy .k-y { top: 37px; left: 0; }
.sm-abxy .k-a { top: 37px; right: 0; } .sm-abxy .k-b { bottom: 0; left: 37px; }
.sm-bottom { grid-area: screen; }
.sm-system { grid-area: sys; display: flex; justify-content: center; gap: 12px; }
.sm-sys { display: grid; justify-items: center; min-width: 92px; padding: 6px 14px; border: 0; border-radius: 99px; background: #1a2033; color: #c3cadf; font-size: .72rem; font-weight: 900; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 0 #05070e; }
.sm-sys small { color: #7b85a3; font-size: .62rem; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.sm-sys:hover { background: #262d47; color: #ffffff; }
.sm-sys[hidden] { display: none; }

.sm-rotom { padding: 12px; border-radius: 14px; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .09) 0 6px, transparent 6px 14px), var(--sm-accent); }
.sm-rotom-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sm-eye { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #14324a 0 30%, var(--sm-sky) 32% 58%, #ffffff 60%); box-shadow: 0 0 0 2px var(--sm-frame); }
.sm-rotom-title { margin: 0; padding: 3px 16px; border: 2px solid var(--sm-frame); border-radius: 99px; background: var(--sm-cream); color: var(--sm-ink); font-size: .82rem; font-weight: 900; }
.sm-map { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 3px solid var(--sm-frame); border-radius: 12px; background: #2bb6d9; }
.sm-map img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.sm-pin { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 3px; border: 2px solid var(--sm-frame); border-radius: 99px; background: var(--sm-cream); color: var(--sm-ink); font-size: .78rem; font-weight: 900; text-decoration: none; white-space: nowrap; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); transition: transform .15s ease, box-shadow .15s ease; }
.sm-pin:hover, .sm-pin:focus-visible, .sm-pin.is-active { outline: none; transform: translateY(-2px); box-shadow: 0 0 0 3px var(--sm-gold), 0 3px 0 rgba(0, 0, 0, .25); }
.sm-pin-num { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sm-accent); color: #ffffff; font-size: .7rem; }
.sm-pin-melemele { top: 6%; left: 4%; }
.sm-pin-akala { top: 9%; right: 4%; }
.sm-pin-ulaula { bottom: 20%; left: 4%; }
.sm-pin-poni { bottom: 7%; right: 4%; }
.sm-goal { display: flex; align-items: center; gap: 10px; min-height: 42px; margin: 10px 0 0; padding: 6px 14px 6px 6px; border: 2px solid var(--sm-frame); border-radius: 22px; background: var(--sm-cream); color: var(--sm-ink); font-size: .86rem; font-weight: 800; line-height: 1.35; }
.sm-goal-tag { flex: none; padding: 3px 10px; border-radius: 99px; background: var(--sm-gold); color: #4a3500; font-size: .72rem; font-weight: 900; }

/* ===== Page sections ===== */
.sm-page { padding-top: 0; }
.sm-section { margin-top: 56px; }
.sm-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; color: var(--sm-on-dark); font-family: var(--sm-display); font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 900; line-height: 1.2; }
.sm-heading::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, .2), transparent); }
.sm-badge { flex: none; padding: 3px 12px; border-radius: 99px; font-family: var(--font); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.sm-lede { max-width: 760px; margin: -4px 0 22px; color: var(--sm-on-dark-2); }

.layout-2.sm-latest { margin-top: 0; }
.sm-news-title { background: var(--sm-console); color: #e8ecf6; border-bottom: 0; }
.sm-news-title .count { border: 0; background: var(--sm-accent); color: #ffffff; }
.sm-news-list { margin: 0; padding: 6px 0; list-style: none; }
.sm-news-list li + li { border-top: 1px dashed var(--line); }
.sm-news-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 18px; color: var(--ink); text-decoration: none; }
.sm-news-list a:hover, .sm-news-list a:focus-visible { background: var(--card-2); }
.sm-news-cat { padding: 2px 10px; border-radius: 99px; background: var(--sm-mist); color: var(--sm-mist-ink); font-size: .72rem; font-weight: 900; white-space: nowrap; }
.sm-news-text { min-width: 0; }
.sm-news-text strong { display: block; font-weight: 800; }
.sm-news-text small { display: block; overflow: hidden; color: var(--ink-3); font-size: .82rem; white-space: nowrap; text-overflow: ellipsis; }
.sm-news-list time { color: var(--ink-3); font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sm-news-empty { display: flex; align-items: center; gap: 20px; padding: 30px 26px; color: var(--ink-2); }
.sm-news-empty p { margin: 0; max-width: 46ch; }
.sm-news-empty strong { display: block; color: var(--ink); font-size: 1.05rem; }

.sm-card-title { background-image: none; border-bottom: 0; }
.zone-pokemon-sun-moon .sm-card-title .i { color: currentColor; }
.sm-quick { margin: 0; padding: 6px 8px 10px; list-style: none; }
.sm-quick a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-size: .92rem; font-weight: 800; text-decoration: none; }
.sm-quick a:hover, .sm-quick a:focus-visible { background: var(--card-2); }

.sm-subheading { margin: 10px 0 -6px; color: var(--sm-on-dark); font-size: 1.05rem; font-weight: 900; }
.sm-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sm-cat { padding: 16px; scroll-margin-top: 80px; }
.sm-cat-title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--ink); font-size: 1rem; font-weight: 900; line-height: 1.25; }
.sm-cat-title .sm-tile-icon { width: 34px; height: 34px; font-size: 16px; }
.sm-cat-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sm-cat-list a { font-size: .9rem; font-weight: 700; }
.sm-cat-empty { margin: 0; color: var(--ink-3); font-size: .86rem; }

.sm-islands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sm-island, .sm-mon, .sm-ver { overflow: hidden; border: 3px solid #ffffff; border-radius: var(--radius); background: var(--card); box-shadow: 0 3px 0 var(--bevel), 0 16px 30px -20px rgba(0, 0, 0, .7); }
.sm-island { display: flex; flex-direction: column; scroll-margin-top: 80px; }
.sm-cat:target, .sm-island:target { box-shadow: 0 0 0 4px var(--sm-sky), 0 16px 30px -20px rgba(0, 0, 0, .7); }
.sm-island-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sm-console); color: #ffffff; }
.sm-island-head h3 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.sm-island-num { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sm-gold); color: #4a3500; font-weight: 900; }
.sm-trials { flex: 1; margin: 0; padding: 0; list-style: none; }
.sm-trials li { padding: 12px 14px; }
.sm-trials li + li { border-top: 1px solid var(--line); }
.sm-trials p { margin: 0; }
.sm-trial-who { display: flex; align-items: center; gap: 6px; font-size: .92rem; }
.sm-trial-who .i { color: var(--sm-accent); }
.sm-trial-who .sm-type { margin-left: auto; }
.sm-trials .sm-trial-site, .sm-trials .sm-trial-meta { padding-left: 21px; }
.sm-trials .sm-trial-site { margin-top: 1px; color: var(--ink-3); font-size: .78rem; font-weight: 800; }
.sm-trials .sm-trial-meta { margin-top: 6px; color: var(--ink-2); font-size: .83rem; }
.sm-trials .sm-trial-z { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ink-2); font-size: .8rem; font-weight: 800; }
.sm-trial-z .i { width: 15px; height: 15px; color: #b08a00; }
.sm-kahuna { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--card-2); font-size: .9rem; }
.sm-kahuna .i { color: #b08a00; }
.sm-kahuna .sm-type { margin-left: auto; }
.sm-kahuna small { flex-basis: 100%; padding-left: 24px; color: var(--ink-3); font-size: .78rem; font-weight: 800; }
html.sm-ready:not([data-sm-version="moon"]) [data-only="moon"],
html[data-sm-version="moon"] [data-only="sun"] { opacity: .45; }

.sm-mons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sm-mon-art { position: relative; display: grid; place-items: center; height: 118px; background-image: radial-gradient(rgba(255, 255, 255, .3) 1.5px, transparent 2px); background-size: 14px 14px; }
.sm-mon-no { position: absolute; top: 8px; left: 11px; font-family: var(--mono); font-size: .72rem; font-weight: 700; opacity: .8; }
.sm-mon-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; padding: 12px 16px 16px; }
.sm-mon-body h3 { margin: 0; font-size: 1.1rem; font-weight: 900; }
.sm-mon-types { display: flex; gap: 5px; margin: 0; }
.sm-mon-note { grid-column: 1 / -1; margin: 2px 0 0; color: var(--ink-3); font-size: .85rem; }

.sm-versions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sm-ver { transition: box-shadow .2s ease, transform .2s ease; }
.sm-ver-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: #ffffff; }
.sm-ver-sun .sm-ver-head { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .1) 0 6px, transparent 6px 14px), var(--sm-sun); }
.sm-ver-moon .sm-ver-head { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .06) 0 6px, transparent 6px 14px), #2c2a58; }
.sm-ver-head h3 { margin: 0; font-size: 1.2rem; font-weight: 900; line-height: 1.2; }
.sm-ver-head p { margin: 0; font-size: .82rem; opacity: .88; }
.sm-ver-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #ffffff; color: var(--sm-sun); font-size: 20px; }
.sm-ver-moon .sm-ver-icon { color: #4b3cb0; }
.sm-ver-current { display: none; margin-left: auto; padding: 2px 10px; border-radius: 99px; background: rgba(255, 255, 255, .95); color: var(--sm-ink); font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
html.sm-ready:not([data-sm-version="moon"]) .sm-ver-sun,
html[data-sm-version="moon"] .sm-ver-moon { transform: translateY(-3px); box-shadow: 0 0 0 4px var(--sm-accent), 0 20px 34px -18px rgba(0, 0, 0, .8); }
html.sm-ready:not([data-sm-version="moon"]) .sm-ver-sun .sm-ver-current,
html[data-sm-version="moon"] .sm-ver-moon .sm-ver-current { display: inline-block; }
.sm-ver-body { padding: 16px 18px 18px; }
.sm-ver-clock { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border-radius: 99px; background: var(--sm-mist); color: var(--ink-2); font-size: .88rem; font-weight: 800; }
.sm-ver-label { margin: 16px 0 8px; color: var(--ink-3); font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.sm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sm-chips li { padding: 3px 12px; border: 1.5px solid var(--line); border-radius: 99px; background: #ffffff; font-size: .8rem; font-weight: 800; }
.sm-ver-notes { margin: 16px 0 0; padding: 12px 0 0 18px; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: .86rem; }
.sm-ver-notes li + li { margin-top: 4px; }

/* ===== Article: figures and the Alola Pokédex checklist ===== */
.zone-pokemon-sun-moon .prose img { max-width: 100%; height: auto; }
.zone-pokemon-sun-moon .prose figure img { width: 100%; border: 3px solid #ffffff; border-radius: 16px; box-shadow: 0 3px 0 var(--line), 0 14px 28px -20px rgba(10, 15, 32, .6); }
.zone-pokemon-sun-moon .prose td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.zone-pokemon-sun-moon .prose td img { display: inline-block; width: 40px; height: 40px; margin: -9px 6px -9px -4px; border: 0; border-radius: 0; box-shadow: none; vertical-align: middle; }
.zone-pokemon-sun-moon .prose td:nth-child(2) { white-space: nowrap; }
/* ===== Rotom Pokédex checklist (full-width band, in-game list styling) ===== */
.sm-band { margin: 6px 0 0; padding: 0 16px; }
.sm-dex { --plate-h: 50px; position: relative; max-width: 1680px; margin: 0 auto; padding: 18px 20px 22px; border: 4px solid #0b0f1d; border-radius: 28px; background: #2bc4cf url("dex/ui/bg-lower.webp") center / cover; box-shadow: 0 0 0 3px #060911, 0 30px 60px -30px rgba(0, 0, 0, .8); color: #ffffff; }
.sm-dex-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.sm-dex-title { display: flex; align-items: center; gap: 14px; min-width: 0; max-width: 860px; }
.sm-dex-rotom { flex: none; width: 56px; height: 56px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .25)); }
.sm-dex-titletext h1, .sm-dex-titletext h2 { margin: 0; color: #ffffff; font-family: var(--sm-display); font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 900; line-height: 1.15; text-shadow: 0 2px 0 #0a6d78, 0 0 14px rgba(0, 60, 70, .35); }
.sm-dex-titletext p { margin: 4px 0 0; color: #f2feff; font-size: .95rem; font-weight: 700; line-height: 1.45; text-shadow: 0 1px 2px rgba(0, 70, 80, .6); }
.sm-dex-count { display: flex; flex: none; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; border: 3px solid #0b0f1d; border-radius: 99px; background: #331111; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.sm-dex-count strong { font-family: var(--sm-display); font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.sm-dex-count span { color: #ffd9d4; font-size: .85rem; font-weight: 800; }
.sm-dex-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 18px; margin: 16px 0 14px; }
.sm-dex-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-dex-tab { padding: 8px 16px; border: 3px solid #0b0f1d; border-radius: 12px 12px 12px 4px; background: #fdfcf9; color: #252d42; font: inherit; font-size: .9rem; font-weight: 900; cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); transform: skewX(-8deg); }
.sm-dex-tab[aria-selected="true"] { background: #ff5544; color: #ffffff; }
.sm-dex-tab:focus-visible { outline: 3px solid #ffcd3f; outline-offset: 2px; }
.sm-dex-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; padding: 10px 12px; border: 3px solid #0b0f1d; border-radius: 16px; background: rgba(253, 252, 249, .96); color: #252d42; font-size: .86rem; }
.sm-dex-field { display: grid; gap: 3px; color: #5c6375; font-size: .7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.sm-dex-field input, .sm-dex-field select { width: 160px; height: 34px; padding: 0 10px; border: 1.5px solid #d9e1ea; border-radius: 10px; background: #ffffff; color: #252d42; font: inherit; font-size: .88rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.sm-dex-check { display: inline-flex; align-items: center; gap: 6px; height: 34px; font-weight: 800; }
.sm-dex-check input { width: 16px; height: 16px; accent-color: #ff5544; }
.sm-dex-view { height: 34px; padding: 0 12px; border: 2px solid #252d42; border-radius: 10px; background: #ffffff; color: #252d42; font: inherit; font-weight: 900; cursor: pointer; }
.sm-dex-view[aria-pressed="true"] { background: #252d42; color: #ffffff; }
.sm-dex-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 20px; align-items: start; }
.sm-dex-listbox { max-height: min(78vh, 980px); overflow-y: auto; padding: 10px 14px 18px 4px; border-radius: 18px; background: rgba(4, 70, 80, .18); scrollbar-color: #ff5544 rgba(0, 0, 0, .15); }
.sm-dex-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px 16px; margin: 0; padding: 0; list-style: none; }
.sm-plate { position: relative; height: var(--plate-h); transition: transform .18s ease; }
.sm-plate.is-alt { transform: translateX(26px); }
.sm-plate[hidden] { display: none; }
.sm-plate-main { position: relative; display: block; width: calc(100% - 26px); height: 100%; padding: 0; border: 0; background: url("dex/ui/plate-left.png") left center / auto 100% no-repeat, url("dex/ui/plate-right.png") right center / auto 100% no-repeat; color: #ffffff; font: inherit; text-align: left; cursor: pointer; filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, .35)); }
.sm-plate-main::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--plate-h) * 3.36 - 2px); right: calc(var(--plate-h) * 1.68 - 2px); background: url("dex/ui/plate-mid.png") left center / auto 100% repeat-x; }
.sm-plate-main:hover, .sm-plate-main:focus-visible, .sm-plate.is-sel .sm-plate-main { outline: none; filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 6px #ffcd3f); }
.sm-plate.is-sel .sm-plate-main { transform: translateX(-4px); }
.sm-plate-no { position: absolute; top: 1px; left: calc(var(--plate-h) * 1.8); color: #ffffff; font-family: var(--sm-display); font-size: .78rem; font-weight: 900; letter-spacing: .04em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.sm-plate-icon { position: absolute; top: -9px; left: 8px; width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); }
.sm-plate-name { position: absolute; top: calc(var(--plate-h) * .34); left: calc(var(--plate-h) * 1.44); right: 58px; overflow: hidden; color: #ffffff; font-family: var(--sm-display); font-size: 1rem; font-weight: 900; line-height: 1.6; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 2px 0 #8a1b1b, 1px 0 0 #8a1b1b, -1px 0 0 #8a1b1b; }
.sm-plate-tag { position: absolute; top: calc(var(--plate-h) * .36); right: 40px; padding: 0 6px; border-radius: 6px; background: #ffffff; color: #252d42; font-size: .62rem; font-weight: 900; letter-spacing: .04em; line-height: 1.6; text-transform: uppercase; }
.sm-plate-tag:empty { display: none; }
.sm-plate-tag[data-kind="sun"] { background: #ffcd3f; color: #4a3500; }
.sm-plate-tag[data-kind="moon"] { background: #c4b6ff; color: #1d1450; }
.sm-plate-tag[data-kind="trade"] { background: #5ad0e7; color: #0f3a4a; }
.sm-plate-tag[data-kind="opt"] { background: #d9e1ea; color: #4a5368; }
.sm-plate-ball { position: absolute; top: 50%; right: 36px; width: 28px; height: 28px; margin-top: -11px; padding: 0; border: 0; border-radius: 50%; background: url("dex/ui/ball-seen.png") center / 22px 22px no-repeat; cursor: pointer; }
.sm-plate-ball[aria-pressed="true"] { background-image: url("dex/ui/ball-caught.png"); }
.sm-plate-ball:focus-visible { outline: 3px solid #ffcd3f; outline-offset: 1px; }
.sm-plate.is-owned .sm-plate-name { color: #fffbe0; }
.sm-dex-empty { margin: 24px 0; color: #ffffff; font-weight: 900; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.sm-dex-tablebox { margin-top: 6px; padding: 12px; border-radius: 16px; background: #fdfcf9; color: #252d42; }
.sm-dex-tablebox table { display: block; overflow-x: auto; margin: 0; border: 1px solid #d9e1ea; border-radius: 12px; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.sm-dex-tablebox th, .sm-dex-tablebox td { padding: 8px 12px; border-bottom: 1px solid #d9e1ea; text-align: left; vertical-align: middle; }
.sm-dex-tablebox td img { display: inline-block; width: 40px; height: 40px; margin: -8px 6px -8px 0; vertical-align: middle; }

.sm-dex-detail { position: sticky; top: 84px; display: grid; overflow: hidden; border: 4px solid #0b0f1d; border-radius: 22px; background: #1a7fd0 url("dex/ui/bg-upper.webp") center / cover; box-shadow: 0 0 0 3px #060911; color: #252d42; }
.sm-dd-idle { display: grid; justify-items: center; gap: 10px; padding: 48px 24px; color: #ffffff; font-weight: 900; text-align: center; text-shadow: 0 1px 3px rgba(0, 30, 70, .6); }
.sm-dd-plate { display: flex; align-items: baseline; gap: 12px; padding: 10px 16px 9px; background: #331111; color: #ffffff; }
.sm-dd-no { color: #ffd9d4; font-family: var(--sm-display); font-size: .9rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.sm-dd-name { margin: 0; color: #ffffff; font-family: var(--sm-display); font-size: 1.45rem; font-weight: 900; line-height: 1.15; }
.sm-dd-stage { position: relative; display: grid; place-items: center; height: 250px; padding: 14px; }
.sm-dd-stage::before { content: ""; position: absolute; left: 50%; bottom: 18px; width: 62%; height: 26px; border-radius: 50%; background: rgba(0, 30, 70, .35); transform: translateX(-50%); filter: blur(4px); }
.sm-dd-art { position: relative; max-width: 100%; max-height: 222px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 20, 60, .35)); }
.sm-dd-info { margin: 0 10px 10px; padding: 14px 16px; border: 3px solid #0b0f1d; border-radius: 16px; background: #fdfcf9; }
.sm-dd-cat { margin: 0; color: #4a5368; font-size: .9rem; font-weight: 800; }
.sm-dd-types { display: flex; gap: 6px; margin: 8px 0 10px; }
.sm-dd-list { display: grid; gap: 0; margin: 0; font-size: .88rem; line-height: 1.4; }
.sm-dd-row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px dashed #d9e1ea; }
.sm-dd-row dt { color: #697186; font-weight: 900; }
.sm-dd-row dd { margin: 0; color: #252d42; font-weight: 700; }
.sm-dd-own { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 9px 12px; border: 3px solid #0b0f1d; border-radius: 12px; background: #ffffff; color: #252d42; font: inherit; font-weight: 900; cursor: pointer; }
.sm-dd-own[aria-pressed="true"] { background: #ff5544; color: #ffffff; }
.sm-dd-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 10px; }
.sm-dd-step, .sm-dd-close { height: 34px; border: 2px solid #252d42; border-radius: 10px; background: #ffffff; color: #252d42; font: inherit; font-weight: 900; cursor: pointer; }
.sm-dd-close { display: none; padding: 0 12px; }
.sm-article-tail { padding-top: 18px; }
.sm-tool { margin-top: 18px; }
.sm-tool-wrap { padding-top: 18px; }
.sm-tool-wrap > * + * { margin-top: 18px; }
.sm-dex-guide { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 0 0; }
.sm-dex-guide a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 2px solid #0b0f1d; border-radius: 99px; background: #fdfcf9; color: #252d42; font-size: .88rem; font-weight: 900; text-decoration: none; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.sm-dex-guide a::after { content: "\203A"; font-size: 1.1em; line-height: 1; }
.sm-dex-guide a:hover, .sm-dex-guide a:focus-visible { background: #ffcd3f; outline: none; }
.sm-dex-guide span { color: #f2feff; font-size: .85rem; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 70, 80, .6); }
.sm-dd-why { margin-left: 2px; color: #c2410c; font-size: .8rem; font-weight: 900; white-space: nowrap; }
.sm-tail-spacer { min-height: 1px; }
@media (max-width: 960px) {
  .sm-dex-body { grid-template-columns: minmax(0, 1fr); }
  .sm-dex-listbox { max-height: none; overflow: visible; padding-right: 4px; }
  .sm-dex-detail { position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 86vh; overflow-y: auto; border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .25s ease; }
  body.sm-sheet-open .sm-dex-detail { transform: none; }
  .sm-dd-close { display: block; }
  .sm-dd-idle { display: none; }
  .sm-tail-spacer { display: none; }
}
@media (max-width: 560px) {
  .sm-band { padding: 0 8px; }
  .sm-dex { --plate-h: 46px; padding: 12px 10px 16px; border-radius: 20px; }
  .sm-dex-list { grid-template-columns: minmax(0, 1fr); }
  .sm-dex-field { flex: 1 1 140px; }
  .sm-dex-field input, .sm-dex-field select { width: 100%; }
  .sm-dex-tab { padding: 7px 11px; font-size: .82rem; }
  .sm-dex-guide span { display: none; }
  .sm-dex-guide a { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-plate, .sm-dex-detail { transition: none; }
}

/* ===== Footer ===== */
.sm-footer { margin-top: 72px; border-top: 1px solid rgba(255, 255, 255, .07); background: #0a0e1c; color: #b9c2d9; }
.sm-footer-inner { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 30px 0 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px 40px; }
.sm-footer-brand { display: flex; align-items: center; gap: 14px; }
.sm-footer-brand strong { color: #ffffff; font-family: var(--sm-display); font-size: 1.15rem; }
.sm-footer-brand p { margin: 2px 0 0; font-size: .88rem; opacity: .8; }
.sm-footer-links { display: flex; flex-wrap: wrap; align-content: center; gap: 6px 18px; max-width: 600px; font-size: .88rem; font-weight: 800; }
.sm-footer-links a { color: inherit; text-decoration: none; }
.sm-footer-links a:hover { color: #ffffff; text-decoration: underline; }
.sm-footer-base { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 14px 0 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.sm-footer-base a, .sm-footer-base .linklike { color: #dfe5f3; font-weight: 800; }
.sm-legal { flex-basis: 100%; margin: 4px 0 0; color: #7f89a6; font-size: .78rem; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .sm-base { grid-template-columns: minmax(0, 1fr); grid-template-areas: "screen" "sys"; }
  .sm-pad, .sm-abxy { display: none; }
  .sm-islands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-exit { display: none; }
}
@media (max-width: 760px) {
  .sm-mons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-versions { grid-template-columns: minmax(0, 1fr); }
  .sm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sm-tile { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 2px 10px; padding: 10px; text-align: left; }
  .sm-tile .sm-tile-icon { grid-row: span 2; width: 32px; height: 32px; font-size: 15px; }
  .sm-tile strong { min-width: 0; font-size: .86rem; overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  .sm-header-inner { min-height: 60px; gap: 12px; }
  .sm-brand .sm-ball { --s: 30px; }
  .sm-brand strong { font-size: 1.1rem; }
  .sm-brand small { font-size: .6rem; letter-spacing: .1em; }
  .sm-version button { height: 30px; padding: 0 10px; font-size: .8rem; }
  .sm-console { width: calc(100% - 20px); margin-top: 18px; }
  .sm-lid { padding: 12px 12px 8px; border-radius: 24px 24px 12px 12px; }
  .sm-base { padding: 14px 12px 14px; border-radius: 12px 12px 24px 24px; }
  .sm-top-inner { gap: 18px; padding: 18px 14px 16px; }
  .sm-top-head { flex-direction: column; gap: 12px; }
  .sm-sys { min-width: 0; flex: 1; padding: 6px 8px; }
  .sm-rotom { padding: 8px; }
  .sm-map { aspect-ratio: 4 / 3; }
  .sm-pin { font-size: .7rem; padding-right: 8px; }
  .sm-pin-ulaula { bottom: 24%; }
  .sm-goal { font-size: .8rem; }
  .sm-section { margin-top: 44px; }
  .sm-islands { grid-template-columns: minmax(0, 1fr); }
  .sm-news-list a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; }
  .sm-news-cat { grid-column: 1 / -1; justify-self: start; }
  .sm-news-empty { flex-direction: column; text-align: center; }
}
@media (max-width: 420px) {
  .sm-brand small { display: none; }
  .sm-cat { padding: 12px; }
  .sm-cat-title { margin: 0; font-size: .86rem; gap: 8px; }
  .sm-cat-title .sm-tile-icon { width: 28px; height: 28px; font-size: 14px; }
  .sm-cat-title .count { display: none; }
  .sm-cat-empty { display: none; }
  .sm-mons { grid-template-columns: minmax(0, 1fr); }
  .sm-tile small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-tile, .sm-pin, .sm-ver { transition: none; }
  .sm-tile:hover, .sm-tile:focus-visible, .sm-pin:hover, .sm-pin.is-active,
  html.sm-ready .sm-ver { transform: none !important; }
}
