@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&family=Press+Start+2P&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0");

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg0: #060E20;
  --bg1: #0B1326;
  --bg2: #131B2E;
  --bg3: #2D3449;
  --bg4: #31394D;
  --text-primary: #DAE2FD;
  --text-secondary: #D3C5AC;
  --text-muted: #7C8498;
  --text-inverse: #0B1326;
  --amber: #FBBF24;
  --amber-soft: #FFE1A7;
  --amber-dim: #795900;
  --amber-glow: #40FBBF24;
  --cyan: #5DE6FF;
  --cyan-dim: #2FD9F4;
  --cyan-glow: #405DE6FF;
  --hardware-outline: #4F4633;
  --rim-highlight: #1ADAE2FD;
  --grid-dot: #14DAE2FD;
  --scanline: #1A000000;
  --status-alive: #71FDBF;
  --status-danger: #FFB4AB;
  --status-warning: #E8A020;
  --status-muted: #626A7D;
  --type-electric: #FAC000;
  --type-water: #2980EF;
  --type-grass: #3FA129;
  --type-fire: #E62829;
  --type-flying: #748FC9;
  --type-poison: #9141CB;
  --radius-sharp: 2px;
  --radius-small: 4px;
  --radius-medium: 6px;
  --radius-large: 8px;
  --max-width: 1120px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg0);
  color: var(--text-primary);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, var(--scanline) 4px);
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-soft); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--bg3);
  background: color-mix(in srgb, var(--bg1) 92%, transparent);
  backdrop-filter: blur(10px);
}

.nav {
  width: min(100%, var(--max-width));
  height: 56px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  line-height: 1.2;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: pixelated;
}

.brand:hover { text-decoration: none; }
.brand-text span { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.nav-links a {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  border-color: var(--bg3);
  background: var(--bg2);
  color: var(--text-primary);
}

main { overflow: hidden; }

.section,
.hero {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 56px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 48px;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  margin-bottom: 20px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--text-primary);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.3;
}

.lead {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 18px;
}

.copy {
  color: var(--text-secondary);
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 320px;
  padding: 10px 16px;
  border: 1px solid var(--bg3);
  border-radius: var(--radius-medium);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.button.primary {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--text-inverse);
}

.button.secondary {
  background: var(--bg3);
  color: var(--text-primary);
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.status-chip {
  border: 1px solid var(--bg3);
  border-radius: var(--radius-small);
  background: var(--bg2);
  padding: 10px 12px;
}

.status-chip strong {
  display: block;
  color: var(--text-primary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
}

.status-chip span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.device {
  border: 1px solid var(--hardware-outline);
  border-radius: var(--radius-large);
  background: var(--bg1);
  padding: 16px;
  box-shadow: 0 0 0 1px var(--rim-highlight), 0 0 26px var(--cyan-glow);
}

.device-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.leds {
  display: flex;
  gap: 6px;
  align-items: center;
}

.led {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-sharp);
  background: var(--status-muted);
}

.led.alive { background: var(--status-alive); box-shadow: 0 0 8px var(--status-alive); }
.led.warn { background: var(--status-warning); }
.led.danger { background: var(--status-danger); }

.screen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  gap: 12px;
}

.game-screen,
.tracker-panel,
.mini-panel {
  border: 1px solid var(--bg3);
  border-radius: var(--radius-small);
  background: var(--bg2);
}

.game-screen {
  min-height: 274px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg1);
}

.game-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0, transparent 70%, var(--bg2) 70%),
    radial-gradient(circle at 28% 22%, var(--cyan-glow), transparent 28%);
}

.sprite-row {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.sprite {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
}

.battle-card {
  position: absolute;
  right: 16px;
  top: 16px;
  min-width: 152px;
  border: 1px solid var(--bg3);
  border-radius: var(--radius-small);
  background: var(--bg2);
  padding: 10px;
}

.battle-card .name {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-primary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.hp {
  height: 6px;
  margin-top: 8px;
  background: var(--bg4);
}

.hp span {
  display: block;
  height: 100%;
  background: var(--status-alive);
}

.tracker-panel {
  min-height: 274px;
  padding: 12px;
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.panel-tabs span {
  border: 1px solid var(--bg3);
  border-radius: var(--radius-sharp);
  padding: 5px 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.panel-tabs span.active {
  border-color: var(--cyan);
  color: var(--cyan);
}

.team-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  border: 1px solid var(--bg3);
  border-radius: var(--radius-small);
  background: var(--bg2);
  padding: 8px;
}

.team-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}

.team-name {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.team-name span {
  color: var(--text-secondary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 400;
}

.types {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.type {
  border-radius: var(--radius-sharp);
  padding: 1px 5px;
  color: var(--text-inverse);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.type.electric { background: var(--type-electric); }
.type.water { background: var(--type-water); color: var(--text-primary); }
.type.grass { background: var(--type-grass); color: var(--text-primary); }
.type.fire { background: var(--type-fire); color: var(--text-primary); }
.type.flying { background: var(--type-flying); color: var(--text-primary); }
.type.poison { background: var(--type-poison); color: var(--text-primary); }

.route-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--bg3);
  padding-top: 10px;
  color: var(--text-secondary);
  font-size: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-sharp);
  background: var(--amber);
}

.route-row strong {
  color: var(--text-primary);
  font-weight: 500;
}

.route-row span:last-child {
  color: var(--status-warning);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.mini-panel {
  margin-top: 12px;
  padding: 12px;
}

.handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.handle strong {
  color: var(--status-danger);
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  line-height: 1.2;
}

.section-header {
  max-width: 680px;
  margin-bottom: 28px;
}

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

.two-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--bg3);
  border-radius: var(--radius-small);
  background: var(--bg2);
  padding: 20px;
}

.card .icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: var(--radius-small);
  background: var(--bg3);
  color: var(--amber);
}

.pokeball-icon {
  position: relative;
  overflow: hidden;
}

.pokeball-icon::before,
.pokeball-icon::after {
  content: "";
  position: absolute;
}

.pokeball-icon::before {
  inset: 7px;
  border: 2px solid var(--text-primary);
  border-radius: 50%;
  background:
    linear-gradient(
      to bottom,
      var(--status-danger) 0,
      var(--status-danger) 43%,
      var(--text-primary) 43%,
      var(--text-primary) 57%,
      var(--bg1) 57%,
      var(--bg1) 100%
    );
}

.pokeball-icon::after {
  width: 8px;
  height: 8px;
  left: 12px;
  top: 12px;
  border: 2px solid var(--text-primary);
  border-radius: 50%;
  background: var(--bg1);
}

.card p,
.card li {
  color: var(--text-secondary);
  font-size: 14px;
}

.card ul,
.check-list {
  margin: 0;
  padding-left: 18px;
}

.check-list li { margin-bottom: 8px; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.game-chip {
  border: 1px solid var(--bg3);
  border-radius: var(--radius-small);
  background: var(--bg2);
  padding: 14px;
}

.game-chip strong {
  display: block;
  color: var(--text-primary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 500;
}

.game-chip span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.band {
  border-top: 1px solid var(--bg3);
  border-bottom: 1px solid var(--bg3);
  background: var(--bg1);
}

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

.platform-card {
  display: flex;
  min-height: 248px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--bg3);
  border-radius: var(--radius-small);
  background: var(--bg2);
  padding: 20px;
}

.platform-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.platform-card .material-symbols-outlined {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-small);
  background: var(--bg3);
  color: var(--cyan);
}

.meta-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--bg3);
  padding-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.meta-list strong {
  color: var(--text-secondary);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
}

.notice {
  border-left: 2px solid var(--amber);
  background: var(--bg1);
  padding: 16px 18px;
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-hero {
  min-height: calc(100vh - 140px);
}

.contact-panel {
  display: flex;
  min-height: 274px;
  flex-direction: column;
}

.contact-readout {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--bg3);
  border-radius: var(--radius-small);
  background: var(--bg1);
  padding: 18px;
}

.contact-readout .material-symbols-outlined {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-small);
  background: var(--bg3);
  color: var(--amber);
}

.contact-readout strong {
  color: var(--text-primary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-readout p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.contact-cta {
  border-top: 1px solid var(--bg3);
  background: var(--bg1);
}

.contact-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-cta h2 {
  margin-bottom: 0;
}

.footer {
  border-top: 1px solid var(--bg3);
  padding: 28px 24px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 860px) {
  .hero,
  .screen-grid,
  .grid,
  .two-grid,
  .games-grid,
  .alpha-box {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .contact-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav {
    height: auto;
    min-height: 56px;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-links a {
    flex: 0 0 auto;
    text-align: center;
  }

  .section,
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .device {
    padding: 10px;
  }

  .game-screen {
    min-height: 220px;
  }

  .sprite {
    width: 56px;
    height: 56px;
  }
}
