.home-board {
  --home-edge: #393f49;
  --home-panel: #22262e;
  color: var(--ink);
}
.home-board [hidden] { display: none !important; }
.home-hero {
  position: relative; isolation: isolate; display: flex; align-items: center;
  min-height: clamp(184px, 19vw, 238px); border-bottom: 1px solid var(--line);
}
.home-hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(0deg, var(--bg), transparent 23%),
    linear-gradient(90deg, var(--bg) 2%, #191b22ed 19%, #191b222e 52%, transparent 75%),
    var(--park-scene, url("/art/home/park-overlook.webp")) 74% 54% / cover no-repeat;
  mask-image: linear-gradient(to right, transparent, black 9%, black 95%, transparent);
}
.home-hero-content { width: 64%; padding: 18px 0; }
.home-lapras {
  position: absolute; z-index: -1; pointer-events: none; left: 65%; bottom: 23%; height: 40%; width: auto; object-fit: contain;
  filter: saturate(.87) brightness(.94); mask-image: linear-gradient(#000 65%, #000c 80%, transparent 91%);
}
.home-hero h1 { font: 750 clamp(2.4rem, 5.3vw, 4.5rem)/1 Cond, sans-serif; letter-spacing: -.035em; }
.home-summary { display: flex; align-items: baseline; gap: .5em; margin: 10px 0 16px; color: #d2d6dd; font-size: .94rem; }
.home-summary strong { color: var(--ink); }
.home-summary span:not(.home-signal) { padding-inline: 3px; }
.home-signal { flex: 0 0 8px; height: 8px; border-radius: 50%; background: #8fe4b5; }
.home-dex { width: min(460px, 100%); }
.home-coordinates {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin: 18px 0 22px;
}
.home-coordinate {
  --accent: #9ce6ad;
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: end;
  min-height: clamp(180px, 17vw, 214px); padding: 18px; border: 1px solid color-mix(in srgb, var(--accent) 40%, #30363a);
  border-radius: 12px; background: #182425; color: #fff; box-shadow: 0 4px 12px #0003;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.coordinate-summit { --accent: #ffce82; }
.coordinate-trail { --accent: #b9c3ff; }
.coordinate-scene, .coordinate-pokemon { position: absolute; pointer-events: none; }
.home-coordinate picture { display: contents; }
.coordinate-scene { inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.coordinate-pokemon {
  z-index: -2; top: 1%; right: 1%; width: 49%; height: 77%; object-fit: contain;
  filter: drop-shadow(0 4px 4px #0a122b80); transition: transform .25s ease-out;
}
.home-coordinate::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(0deg, #0a1119f7, #0b141b80 28%, transparent 65%),
    linear-gradient(75deg, #0a121dc9, #10152240 46%, transparent 72%);
}
.coordinate-copy { text-shadow: 0 2px 6px #080d15b3; }
.coordinate-copy strong { display: block; font: 700 clamp(1.8rem, 2.65vw, 2.35rem)/.98 Cond, sans-serif; letter-spacing: -.02em; }
.coordinate-copy strong span { display: block; }
.coordinate-copy small { display: block; margin: 10px 32px 0 0; color: #edf1f4; font-size: .83rem; line-height: 1.3; }
.coordinate-arrow {
  position: absolute; bottom: 14px; right: 14px; display: grid; place-items: center; width: 29px; height: 29px;
  border: 1px solid color-mix(in srgb, var(--accent) 54%, transparent); border-radius: 50%; background: #111a23b3;
  color: var(--accent); font: 600 1rem/1 Sans, sans-serif;
}
.home-coordinate:is(:hover, :focus-visible) { border-color: var(--accent); color: white; text-decoration: none; box-shadow: 0 6px 18px #0005; }
.home-coordinate:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) {
  .home-coordinate:hover { transform: translateY(-2px); }
  .home-coordinate:hover .coordinate-pokemon { transform: translateY(-2px) scale(1.04); }
}
@media (max-width: 720px) {
  .home-coordinates { grid-template-columns: 1fr; gap: 8px; margin: 12px 0 14px; }
  .home-coordinate { min-height: 112px; padding: 13px 15px; }
  .coordinate-pokemon { inset: 0 3% auto auto; width: 35%; height: 100%; }
  .coordinate-copy { max-width: 66%; }
  .coordinate-copy strong { font-size: 1.7rem; }
  .coordinate-copy small { margin: 5px 0 0; font-size: .8rem; }
  .coordinate-arrow { width: 23px; height: 23px; bottom: 8px; right: 8px; }
}
.home-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.home-section-head h2 { font: 690 clamp(1.55rem, 3vw, 2rem)/1.1 Cond, sans-serif; }
.home-section-head a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: .88rem; font-weight: 620;
}
.home-section-head a span { color: var(--gold); }
.home-section-head a:hover, .home-access-note a:hover { color: var(--gold); text-decoration: underline; }
.home-jumps { display: flex; gap: 15px; }
.home-directory { margin-top: 15px; }
.home-map-card {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 9px 14px; margin-bottom: 9px;
  border: 1px solid #466b63; border-radius: 10px; color: #fff;
  background: linear-gradient(90deg, #10292ded, #10292dd9 min(260px, 65%), #10292d40 88%, #10292d8c),
    var(--map-scene, url("/art/home/world-map-banner.webp")) 75% center / cover no-repeat, #203635;
}
.home-map-card img { flex: none; image-rendering: pixelated; }
.home-map-card strong { display: block; font: 700 1.55rem/1.1 Cond, sans-serif; }
.home-map-card small { display: block; margin-top: 2px; color: #d8e8e2; font-size: .82rem; }
.home-map-arrow { margin-left: auto; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #10292dd9; color: #d5ffea; font-size: 1.1rem; }
.home-map-card:is(:hover, :focus-visible) { color: white; border-color: #9de7c5; text-decoration: none; }
.home-map-card:focus-visible { outline: 2px solid #9de7c5; outline-offset: 2px; }
.home-featured { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.home-feature {
  --accent: #9cd7a2; --ground: #233535;
  position: relative; isolation: isolate; display: flex; align-items: end; min-width: 0; min-height: 116px;
  padding: 14px; border: 1px solid color-mix(in srgb, var(--accent) 26%, #363b40); border-radius: 10px;
  overflow: hidden; background: var(--ground); color: #fff;
}
.feature-raids { --accent: #d6bbf3; --ground: #302b3c; }
.feature-invasions { --accent: #eaadb8; --ground: #39282e; }
.feature-tasks { --accent: #f0cc82; --ground: #3d352a; }
.home-feature::before, .home-feature::after { content: ""; position: absolute; z-index: -1; inset: 0; }
.home-feature::before { z-index: -3; background: var(--scene) 65% center / cover; opacity: .53; }
.home-feature::after { z-index: -2; background: linear-gradient(15deg, var(--ground) 4%, transparent 85%), linear-gradient(90deg, var(--ground), transparent 97%); }
.home-feature img {
  position: absolute; z-index: -1; right: 2px; top: 0; width: 42%; height: 88%;
  object-fit: contain; filter: drop-shadow(0 4px 5px #0006); transition: transform .16s ease-out;
}
.feature-invasions img { right: 5px; height: 82%; }
.feature-tasks img { right: 7px; height: 74%; top: 6px; }
.home-feature div { max-width: 83%; text-shadow: 0 1px 5px #17191de6; }
.home-feature strong, .home-feature small { display: block; }
.home-feature strong { font: 700 clamp(1.4rem, 2.4vw, 1.85rem)/1.08 Cond, sans-serif; letter-spacing: -.02em; }
.home-feature small { margin-top: 4px; font-size: .79rem; line-height: 1.2; font-weight: 540; color: #ece9e4; }
.home-feature:hover { text-decoration: none; border-color: var(--accent); }
.home-feature:hover img { transform: translateY(-2px) rotate(2deg); }
.home-feature:active img { transform: scale(.96); }
@media (min-width: 621px) {
  .home-feature { container: trainer-card / inline-size; }
  @container trainer-card (width > 225px) {
    .home-feature > img { inset-block: 0; margin-block: auto; }
  }
}
.home-more { margin-top: 9px; }
.home-more summary { display: none; }
.home-tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.home-tool { position: relative; display: grid; container-type: inline-size; isolation: isolate; overflow: hidden; border-radius: 8px; }
.home-tool-link {
  display: flex; align-items: center; gap: 9px;
  min-height: 46px; border: 1px solid var(--home-edge); border-radius: 8px; background: var(--home-panel);
  padding: 5px 10px; font-weight: 620; font-size: .9rem; line-height: 1.15;
}
.home-tool:has(.home-tool-ribbon) .home-tool-link { padding-right: 50px; }
.home-tool-ribbon {
  position: absolute; top: 10px; right: -20px; width: 84px; text-align: center; transform: rotate(35deg);
  background: linear-gradient(105deg, #dfa949, #ffe7a5 52%, #e9b75c); color: #342407;
  font: 750 10px/15px Cond, sans-serif; letter-spacing: .025em; box-shadow: 0 1px 3px #0006;
}
.home-tool-ribbon:is(:hover,:focus-visible) { color: #201604; background: #ffe5a0; text-decoration: underline; }
.home-tool-link:focus-visible { outline-offset: -3px; }
@container (max-width: 200px) {
  .home-tool:has(.home-tool-ribbon) > .home-tool-link { min-height: 60px; padding: 20px 18px 5px 6px; gap: 6px; }
  .home-tool:has(.home-tool-ribbon) > .home-tool-link span { padding-top: 5px; overflow-wrap: anywhere; }
}
@media (pointer: coarse) {
  .home-tool:has(.home-tool-ribbon) > .home-tool-link { padding: 6px 10px; border-radius: 8px 8px 0 0; }
  .home-tool:has(.home-tool-ribbon) > .home-tool-link span { padding-top: 0; }
  .home-tool-ribbon { position: static; transform: none; display: grid; place-items: center; width: auto; min-height: 44px; font-size: .9rem; }
  .home-tool-ribbon:focus-visible { outline-offset: -3px; }
}
.home-tools-grid .tool-lure       { --tool-ink: #ff99c9; }
.home-tools-grid .tool-shiny      { --tool-ink: #ffda72; }
.home-tools-grid .tool-navigation { --tool-ink: #71dfb1; }
.home-tools-grid .tool-alert      { --tool-ink: #ff8d85; }
.home-tools-grid .tool-reference  { --tool-ink: #97baff; }
.home-tools-grid .tool-device     { --tool-ink: #55ddcc; }
.home-tools-grid .tool-hatch      { --tool-ink: #bcdf81; }
.home-tools-grid .tool-schedule   { --tool-ink: #7bd9ed; }
.home-tools-grid .tool-reward     { --tool-ink: #c9a5ff; }
.home-tools-grid .tool-event      { --tool-ink: #ffad70; }
.home-tools-grid svg { flex: none; padding: 5px; box-sizing: content-box; width: 24px; height: 24px; border-radius: 7px;
  --tool-bg: color-mix(in srgb, var(--tool-ink) 16%, var(--home-panel));
  background: var(--tool-bg); color: var(--tool-ink); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.home-tool-link:hover { background: #292d35; border-color: var(--tool-ink); text-decoration: none; }
.home-socials {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px;
}
.home-social {
  --accent: #e1e5ec;
  position: relative; display: flex; align-items: center; gap: 11px; min-height: 68px; padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--home-edge)); border-radius: 9px;
  background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 13%, var(--home-panel)), var(--home-panel) 85%);
}
.social-discord { --accent: #afa7ff; }
.social-facebook { --accent: #82aeff; }
.social-instagram { --accent: #ffa1c9; }
.social-bluesky { --accent: #71cdff; }
.home-social :is(svg, img) { flex: none; color: var(--accent); }
.home-social strong { display: block; font: 680 1.35rem/1.1 Cond, sans-serif; }
.home-social small { display: block; margin-top: 3px; color: var(--muted); font-size: .78rem; }
.home-social-arrow { position: absolute; top: 5px; right: 8px; color: var(--accent); font-size: .8rem; }
.home-social:is(:hover, :focus-visible) { border-color: var(--accent); text-decoration: none; }
.home-social:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 620px) {
  .home-socials { gap: 6px; }
  .home-social { flex-direction: column; align-items: flex-start; gap: 7px; padding: 10px 7px; overflow-wrap: anywhere; }
  .home-social :is(svg, img) { width: 23px; height: 23px; }
  .home-social strong { font-size: 1.1rem; }
  .home-social small { font-size: .73rem; }
}
.home-community, .home-sightings, .home-events { margin-top: 28px; scroll-margin-top: 12px; }
.home-encounters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.home-encounter { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--home-edge); border-radius: 9px; background: var(--home-panel); }
.home-encounter-head { display: flex; justify-content: space-between; gap: 6px; align-items: center; padding: 8px 12px 8px 8px; flex: 1; }
.home-pokemon { display: flex; align-items: center; min-width: 0; gap: 9px; }
.home-pokemon:hover { color: var(--gold); }
.home-portrait {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 8px;
  background: radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--type) 21%, transparent), transparent 89%);
}
.home-portrait img { object-fit: contain; width: 100%; height: 100%; }
.home-portrait .sighting-check { right: 0; bottom: 0; }
.home-encounter[data-checked] .sighting-check { display: grid; }
.home-encounter[data-checked] .home-portrait img { filter: saturate(.55); }
.home-identity > * { display: block; }
.home-identity strong { font: 660 1.4rem/1.12 Cond, sans-serif; overflow-wrap: anywhere; }
.home-identity small, .home-identity > span, .home-stats > span { color: var(--muted); font-size: .78rem; }
.home-stats { flex: none; margin-left: auto; text-align: right; }
.home-stats > * { display: block; }
.home-stats strong { color: var(--gold); font: 670 1.3rem/1.2 Cond, sans-serif; }
.home-stats small { font: 650 .7rem Sans, sans-serif; }
.home-encounter-foot { border-top: 1px solid #ffffff0e; padding: 4px 7px; }
.home-encounter .actions { display: grid; grid-template-columns: minmax(70px,1fr) repeat(3, minmax(0,1fr)); gap: 4px; }
.home-encounter .actions button, .home-locked { min-height: 40px; }
.home-encounter .actions .destination { gap: 5px; padding: 2px; font-size: .74rem; }
.home-encounter .destination img { width: 15px; height: 15px; }
.home-locked { display: grid; place-items: center; min-width: 36px; color: #c3b595; border-left: 1px solid #ffffff12; margin-right: -6px; }
.home-locked:hover { color: var(--gold); }
.home-access-note { color: var(--muted); font-size: .85rem; margin: -4px 0 10px; }
.home-access-note a { color: #ead09b; text-underline-offset: 3px; }
.home-sightings:has(.home-empty:not([hidden])) .home-access-note { display: none; }
.home-empty { grid-column: 1/-1; }
.home-events .calendar-list > li:nth-child(n+4) { display: none; }
.home-events .calendar-range { display: none; }
.home-events .calendar-art { background-image: url("/art/events/community-festival-card.webp"); }
.home-events .calendar-art:has(img:not([hidden])) { background-image: none; }
.home-events .calendar-empty a { color: var(--gold); }
@media (min-width: 621px) and (max-width: 960px) {
  .home-encounters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-tools-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .home-feature { min-height: 116px; padding: 10px; }
  .home-feature img { top: -2px; height: 67%; width: 48%; }
}
@media (max-width: 620px) {
  .home-hero { min-height: 166px; }
  .home-hero::before {
    --park-scene: url("/art/home/park-overlook-mobile.webp");
    background-position: center, center, 73% 43%; background-size: auto, auto, auto 100%;
    background-repeat: no-repeat;
  }
  @supports (background-image: image-set(url("") type("image/avif"))) {
    .home-hero::before { --park-scene: image-set(url("/art/home/park-overlook-mobile.avif") type("image/avif"), url("/art/home/park-overlook-mobile.webp") type("image/webp")); }
    .home-map-card { --map-scene: image-set(url("/art/home/world-map-banner.avif") type("image/avif"), url("/art/home/world-map-banner.webp") type("image/webp")); }
  }
  .home-sightings, .home-community, .home-events { content-visibility: auto; contain-intrinsic-size: auto 480px; }
  .home-hero-content { width: 100%; padding: 16px 0 9px; }
  .home-lapras { left: auto; right: 9%; bottom: 37%; height: 32%; }
  .home-hero h1 { font-size: clamp(1.95rem, 8.2vw, 2.95rem); }
  .home-summary { max-width: 69%; margin: 6px 0 14px; font-size: .8rem; text-shadow: 0 1px 4px #111; }
  .home-featured { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .home-directory { margin-top: 8px; }
  .home-directory .home-section-head { flex-wrap: wrap; gap: 0 12px; }
  .home-section-head { margin-bottom: 5px; }
  .home-feature { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; min-height: 44px; padding: 7px 9px; gap: 6px; }
  .home-feature img { position: static; grid-area: 1 / 2; width: 46px; height: auto; aspect-ratio: 1; }
  .home-feature strong { font-size: 1.4rem; }
  .home-feature small { font-size: .73rem; }
  .home-feature div { grid-area: 1 / 1; max-width: none; }
  .home-more summary { display: flex; justify-content: space-between; align-items: center; min-height: 43px; padding: 0 11px;
    list-style: none; border: 1px solid var(--home-edge); border-radius: 7px; color: #d9dce2; background: var(--home-panel); font-weight: 600; font-size: .9rem; cursor: pointer; }
  .home-more summary::-webkit-details-marker { display: none; }
  .home-chevron { width: 8px; height: 8px; margin-right: 2px; transform: rotate(45deg); border: solid var(--gold); border-width: 0 1.5px 1.5px 0; }
  .home-more[open] .home-chevron { transform: rotate(225deg); }
  .home-tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 7px; }
  .home-community, .home-sightings, .home-events { margin-top: 16px; }
  .home-encounters { grid-template-columns: 1fr; gap: 7px; }
  .home-encounter .actions button, .home-locked { min-height: 44px; }
}
@media (max-width: 480px) {
  .home-feature { gap: 4px; }
  .home-feature img { width: clamp(28px, 9vw, 41px); }
  .home-feature strong { font-size: 1.2rem; }
  .home-feature small { display: none; }
}
