@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --ink: #08090b;
  --panel: #101216;
  --panel-raised: #15181d;
  --line: #282d35;
  --red: #ff2b35;
  --red-dark: #c8101a;
  --paper: #f7f7f8;
  --muted: #9da3ae;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(24px, 4.5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.94);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 154px;
  height: auto;
  display: block;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4.2vw, 64px);
}

.site-header nav a {
  position: relative;
  padding: 32px 0 28px;
  color: #d7d9dd;
  font-weight: 600;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 20px;
  height: 2px;
  background: var(--red);
  transition: right 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after,
.site-header nav a.active::after {
  right: 0;
}

.live-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid #343943;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.live-pill span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 43, 53, 0.75);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero {
  min-height: calc(100vh - 88px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 72px clamp(24px, 4.5vw, 72px) 52px;
  background:
    radial-gradient(circle at 75% 45%, rgba(255, 20, 34, 0.15), transparent 24%),
    linear-gradient(120deg, #080a0d 10%, #08090b 50%, #0c090a 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, var(--ink) 0 37%, transparent 63%);
}

.hero-grid {
  position: absolute;
  z-index: -2;
  inset: 0 0 auto 45%;
  height: 68%;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000, transparent 72%);
}

.hero-radar {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #08090b 0%, rgba(8,9,11,.96) 31%, rgba(8,9,11,.22) 58%, rgba(8,9,11,.05) 100%),
    url("./hero-radar.png") center right / cover no-repeat;
  animation: radar-breathe 8s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(690px, 53vw);
  animation: rise 560ms ease-out both;
}

.eyebrow,
.coming-section > p {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(70px, 8vw, 118px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 20px #000;
}

h1 span {
  display: block;
  color: var(--red);
}

.hero-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: #b7bbc3;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 46px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 36px;
  border-radius: 7px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  background: linear-gradient(180deg, #ff313b, #e50f1a);
  border: 1px solid #ff5058;
  box-shadow: 0 10px 30px rgba(229,15,26,.22);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(255,43,53,.38);
}

.text-link {
  padding: 10px 0 5px;
  border-bottom: 2px solid var(--red);
  font-weight: 600;
}

.global-search {
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 0 18px;
  border: 1px solid rgba(255,43,53,.9);
  border-radius: 10px;
  background: rgba(14,17,22,.9);
  box-shadow: 0 16px 46px rgba(0,0,0,.28);
}

.global-search:focus-within {
  box-shadow: 0 0 0 3px rgba(255,43,53,.16), 0 16px 46px rgba(0,0,0,.28);
}

.global-search > span {
  color: #c9ccd2;
  font-size: 32px;
  line-height: 1;
  transform: rotate(-20deg);
}

.global-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--paper);
  background: transparent;
  font-size: 17px;
}

.global-search input::placeholder {
  color: #8f949e;
}

kbd {
  padding: 5px 9px;
  border: 1px solid #414650;
  border-radius: 5px;
  color: #a9adb5;
  font-size: 12px;
  font-family: inherit;
}

.hero-dashboard {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.18fr .95fr;
  gap: 20px;
  margin-top: 28px;
}

.event-card,
.stats-card {
  min-height: 154px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(21,24,29,.96), rgba(13,16,20,.96));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.event-card:hover,
.event-card:focus-visible {
  transform: translateY(-2px);
  border-color: #464d59;
  background: #191d23;
}

.card-label {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid #242932;
  color: var(--red);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: .08em;
}

.card-label b {
  margin-left: auto;
  font-size: 28px;
  line-height: 1;
}

.event-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
}

.event-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,43,53,.5);
  border-radius: 50%;
  color: #f3f3f4;
  background: #20242a;
  font-size: 30px;
}

.event-body h2 {
  margin: 0 0 5px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 24px;
}

.event-body p,
.event-body small {
  display: block;
  margin: 0;
  color: var(--muted);
}

.event-body small {
  margin-top: 4px;
}

.event-body strong {
  padding: 13px 15px;
  border: 1px solid var(--red-dark);
  border-radius: 7px;
  color: var(--red);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 21px;
}

.stats-grid {
  height: 105px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #242932;
}

.stats-grid div:last-child {
  border: 0;
}

.stats-grid strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(29px, 3vw, 44px);
  line-height: 1;
}

.stats-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.data-section,
.events-section,
.raids-section,
.toolkit-section {
  position: relative;
  padding: 112px clamp(24px, 6vw, 96px);
  border-top: 1px solid #20242b;
}

.data-section,
.raids-section {
  background:
    radial-gradient(circle at 88% 12%, rgba(255,43,53,.08), transparent 22%),
    #0d0f13;
}

.events-section {
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #090b0e;
  background-size: 38px 38px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading h2,
.toolkit-copy h2 {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(52px, 6vw, 82px);
  line-height: .95;
  text-transform: uppercase;
}

.section-heading > div > span {
  display: block;
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.65;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}

.outline-button {
  flex: 0 0 auto;
  padding: 15px 19px;
  border: 1px solid #3a404a;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease;
}

.outline-button:hover,
.outline-button:focus-visible {
  border-color: var(--red);
  background: rgba(255,43,53,.08);
}

.dex-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.type-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.type-filters button {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid #323741;
  border-radius: 999px;
  color: #b6bac2;
  background: #15181d;
  cursor: pointer;
  font-size: 13px;
}

.type-filters button:hover,
.type-filters button:focus-visible,
.type-filters button.selected {
  border-color: var(--red);
  color: #fff;
  background: var(--red-dark);
}

.dex-toolbar > span {
  flex: 0 0 auto;
  color: #737a85;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pokemon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.pokemon-card {
  position: relative;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #262b33;
  border-radius: 11px;
  background: linear-gradient(150deg, #171a20, #111318);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pokemon-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  top: 50px;
  left: 50%;
  border: 1px solid rgba(255,43,53,.16);
  border-radius: 50%;
  transform: translateX(-50%);
}

.pokemon-card:hover,
.pokemon-card:focus-visible {
  z-index: 2;
  transform: translateY(-5px);
  border-color: rgba(255,43,53,.85);
  box-shadow: 0 18px 45px rgba(0,0,0,.35), 0 0 24px rgba(255,43,53,.09);
}

.pokemon-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #747b86;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
}

.pokemon-topline b {
  padding: 3px 6px;
  color: var(--red);
  border: 1px solid rgba(255,43,53,.35);
  border-radius: 4px;
  font-size: 9px;
}

.pokemon-visual {
  position: relative;
  z-index: 2;
  height: 138px;
  display: grid;
  place-items: center;
}

.pokemon-visual img {
  width: 122px;
  height: 122px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.48));
  transition: transform 180ms ease;
}

.pokemon-card:hover .pokemon-visual img {
  transform: scale(1.07);
}

.pokemon-card h3 {
  margin: 5px 0 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 24px;
  white-space: nowrap;
}

.type-row {
  min-height: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.type-chip {
  padding: 4px 7px;
  border: 1px solid #404650;
  border-radius: 4px;
  color: #c7cad0;
  background: rgba(255,255,255,.035);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.type-fire,
.type-fighting { color: #ff777d; border-color: #74383c; }
.type-water,
.type-ice { color: #70c8ff; border-color: #2b5e7c; }
.type-grass,
.type-bug { color: #8fd77c; border-color: #446d3a; }
.type-electric { color: #ffe269; border-color: #6e6025; }
.type-psychic,
.type-fairy { color: #ff8fd4; border-color: #794566; }
.type-ghost,
.type-dark { color: #b8a3ff; border-color: #524878; }
.type-dragon { color: #a494ff; border-color: #54489b; }
.type-steel,
.type-rock { color: #c8ccd2; border-color: #555b64; }
.type-poison { color: #d488ff; border-color: #6d4383; }
.type-ground { color: #dcac6d; border-color: #765d3e; }

.pokemon-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #262b33;
  color: #7d838d;
  font-size: 9px;
  text-align: center;
}

.loading-panel {
  grid-column: 1 / -1;
  min-height: 140px;
  display: grid;
  place-items: center;
  border: 1px dashed #363c46;
  color: var(--muted);
  background: rgba(255,255,255,.02);
}

.load-more {
  display: block;
  margin: 32px auto 0;
  padding: 15px 28px;
  border: 1px solid var(--red);
  border-radius: 7px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.load-more:hover,
.load-more:focus-visible {
  background: var(--red-dark);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.community-event {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid #2b3038;
  border-radius: 12px;
  background-color: #14171b;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -90px 80px rgba(0,0,0,.4);
  transition: transform 180ms ease, border-color 180ms ease;
}

.community-event:hover,
.community-event:focus-visible {
  transform: translateY(-3px);
  border-color: var(--red);
}

.community-event.featured {
  grid-column: span 2;
}

.community-event > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-event > div small {
  color: #a6abb3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.event-status {
  padding: 5px 7px;
  border-radius: 4px;
  color: #fff;
  background: #444a54;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.event-status.active {
  background: var(--red-dark);
  box-shadow: 0 0 18px rgba(255,43,53,.32);
}

.community-event h3 {
  max-width: 620px;
  margin: 14px 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: .95;
}

.community-event time {
  color: #f0f0f1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.community-event p {
  margin: 9px 0 0;
  color: #aeb2ba;
  font-size: 12px;
}

.raid-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.raid-card {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto 88px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #292e37;
  border-radius: 10px;
  background: #14171c;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.raid-card:hover,
.raid-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--red);
  background: #191d23;
}

.raid-rank {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  color: #444a54;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  font-weight: 800;
}

.raid-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.45));
}

.raid-card small {
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.raid-card h3 {
  margin: 5px 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 24px;
}

.raid-card div:last-child span {
  color: #9fa4ad;
  font-size: 11px;
  font-weight: 700;
}

.toolkit-section {
  display: grid;
  grid-template-columns: .8fr 2fr;
  gap: 64px;
  background: var(--red-dark);
}

.toolkit-copy .section-kicker {
  color: #ffd1d3;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.26);
}

.toolkit-grid a {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-right: 1px solid rgba(255,255,255,.26);
  background: rgba(0,0,0,.08);
  transition: background 160ms ease;
}

.toolkit-grid a:last-child {
  border: 0;
}

.toolkit-grid a:hover,
.toolkit-grid a:focus-visible {
  background: rgba(0,0,0,.24);
}

.toolkit-grid span {
  color: #ffc2c5;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  font-weight: 800;
}

.toolkit-grid h3 {
  margin: auto 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 30px;
}

.toolkit-grid p {
  min-height: 42px;
  margin: 0 0 18px;
  color: #ffd6d8;
  font-size: 12px;
  line-height: 1.55;
}

.toolkit-grid b {
  font-size: 12px;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 38px clamp(24px, 6vw, 96px);
  border-top: 1px solid #272c34;
  background: #07080a;
}

footer img {
  width: 126px;
}

footer p {
  max-width: 760px;
  margin: 0;
  color: #777d87;
  font-size: 11px;
  line-height: 1.65;
}

footer p a {
  color: #d4d7dc;
  text-decoration: underline;
}

footer > a {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes radar-breathe {
  from { opacity: .84; transform: scale(1); }
  to { opacity: 1; transform: scale(1.012); }
}

@keyframes pulse {
  50% { opacity: .42; transform: scale(.82); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-radar {
    opacity: .62;
    background-position: 65% center;
  }

  .hero-content {
    width: min(720px, 88vw);
  }

  .hero-dashboard {
    grid-template-columns: 1fr;
  }

  .pokemon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .events-grid,
  .toolkit-section {
    grid-template-columns: 1fr;
  }

  .community-event.featured {
    grid-column: auto;
  }

  .raid-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 72px;
    padding-inline: 18px;
  }

  .brand img {
    width: 126px;
  }

  .live-pill {
    padding: 10px 12px;
    font-size: 11px;
  }

  .hero {
    padding: 48px 18px 36px;
  }

  .hero-radar {
    opacity: .38;
    background-position: 70% center;
  }

  .hero-content {
    width: 100%;
  }

  h1 {
    font-size: clamp(62px, 20vw, 86px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .button {
    width: 100%;
  }

  .text-link {
    align-self: flex-start;
  }

  .global-search {
    height: 58px;
  }

  .event-body {
    grid-template-columns: auto 1fr;
  }

  .event-body strong {
    display: none;
  }

  .stats-card,
  .event-card {
    min-height: 142px;
  }

  .data-section,
  .events-section,
  .raids-section,
  .toolkit-section {
    padding: 78px 18px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .dex-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .type-filters {
    max-width: 100%;
  }

  .pokemon-grid,
  .events-grid,
  .raid-grid,
  .toolkit-grid {
    grid-template-columns: 1fr;
  }

  .pokemon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pokemon-card {
    padding: 13px;
  }

  .pokemon-visual {
    height: 120px;
  }

  .pokemon-visual img {
    width: 105px;
    height: 105px;
  }

  .community-event {
    min-height: 250px;
  }

  .raid-card {
    grid-template-columns: auto 82px 1fr;
  }

  .toolkit-grid a {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.26);
  }

  footer {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
