/* Shared styling for the Pokémon Espionage public site (home + content pages).
   Bridges the dex cyberpunk teal with the game's promo gold (#d1b235). */
:root {
  --bg: #00131b;
  --bg-2: #031e28;
  --panel: #06222e;
  --panel-2: #0a2c3a;
  --line: #174155;
  --neon: #46e8e0;
  --neon-dim: #2aa7a2;
  --gold: #d1b235;
  --ice: #ddf3fb;
  --muted: #7f9aab;
  --text: #cfe8f2;
  --alert: #e2453b;
  --mono: "Consolas", "SFMono-Regular", "Courier New", monospace;
  --sans: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--sans);
  background:
    radial-gradient(1100px 560px at 82% -8%, rgba(70,232,224,0.10), transparent 60%),
    radial-gradient(900px 500px at -8% 108%, rgba(209,178,53,0.08), transparent 60%),
    var(--bg);
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(180deg, rgba(70,232,224,0.03) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}
a { color: var(--neon); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Nav ---- */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 20px; background: rgba(3,30,40,0.88); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-nav .brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.site-nav .brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 6px rgba(70,232,224,0.5)); }
.site-nav .brand span { font-family: var(--mono); font-weight: 700; letter-spacing: 0.22em; color: var(--neon); font-size: 15px; }
.site-nav a.nav { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky, #9fc4d2); padding: 6px 9px; border: 1px solid transparent; }
.site-nav a.nav:hover, .site-nav a.nav.active { color: var(--neon); border-color: var(--line); }
.site-nav a.disc { color: #fff; background: #5865F2; border-radius: 6px; padding: 6px 12px; font-family: var(--mono); font-size: 12px; }
.site-nav a.disc:hover { filter: brightness(1.1); }

.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 20px 70px; }

/* ---- Hero ---- */
.hero { text-align: center; padding: 54px 16px 30px; }
.hero img.logo { max-width: 560px; width: 100%; margin: 0 auto; filter: drop-shadow(0 0 22px rgba(70,232,224,0.25)); }
.tagline { font-family: var(--sans); color: var(--gold); text-shadow: 0 2px 10px rgba(209,178,53,0.4); font-weight: 300; font-size: clamp(26px, 5vw, 44px); margin: 10px 0 4px; }
.subtag { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto 22px; line-height: 1.5; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.btn {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 22px; border: 1px solid var(--neon); color: var(--neon); cursor: pointer;
  clip-path: polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);
  background: rgba(70,232,224,0.06); transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: rgba(70,232,224,0.16); transform: translateY(-2px); }
.btn.gold { border-color: var(--gold); color: var(--gold); background: rgba(209,178,53,0.08); }
.btn.gold:hover { background: rgba(209,178,53,0.18); }
.btn.disc { border-color: #5865F2; color: #fff; background: #5865F2; }

/* ---- Sections ---- */
.section { margin: 56px 0; }
.section > h2 {
  text-align: center; font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-size: 30px; margin: 0 0 6px; text-shadow: 0 2px 10px rgba(209,178,53,0.3);
}
.section > .lead { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 26px; line-height: 1.6; }
.panel {
  background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  padding: 26px; line-height: 1.7; color: var(--ice); font-size: 17px;
  clip-path: polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px);
}
.panel em, .panel i { color: var(--neon); font-style: italic; }

/* ---- Feature grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.feature {
  background: var(--panel); border: 1px solid var(--line); padding: 20px; text-align: center;
  transition: border-color 0.15s, transform 0.15s;
  clip-path: polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px);
}
.feature:hover { border-color: var(--neon); transform: translateY(-3px); }
.feature img { width: 84px; height: 84px; margin: 0 auto 12px; image-rendering: auto; object-fit: contain; }
.feature h3 { font-family: var(--mono); color: var(--neon); font-size: 15px; letter-spacing: 0.04em; margin: 0 0 8px; }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; text-align: left; }

/* ---- Character preview ---- */
.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.char {
  background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); padding: 18px; text-align: center;
  clip-path: polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px);
}
.char img { width: 150px; height: 150px; object-fit: cover; margin: 0 auto 12px; border: 1px solid var(--neon-dim); }
.char h3 { font-family: var(--mono); color: var(--gold); letter-spacing: 0.06em; margin: 0 0 8px; }
.char p { color: var(--muted); font-size: 13.5px; line-height: 1.55; text-align: left; margin: 0; }

/* ---- Screenshots ---- */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.shot-grid a { border: 1px solid var(--line); overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.shot-grid a:hover { border-color: var(--neon); transform: scale(1.02); }
.shot-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Team ---- */
.team-grid { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.member { text-align: center; width: 220px; }
.member img { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 10px; border: 1px solid var(--neon-dim); object-fit: cover; }
.member h3 { font-family: var(--mono); color: var(--neon); margin: 0 0 4px; font-size: 16px; }
.member p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---- Credits ---- */
.credits details { border: 1px solid var(--line); background: var(--panel); margin-bottom: 10px; }
.credits summary { cursor: pointer; padding: 12px 16px; font-family: var(--mono); color: var(--neon); letter-spacing: 0.06em; }
.credits .body { padding: 8px 16px 16px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.credits .body b { color: var(--ice); }

.site-footer { position: relative; z-index: 1; text-align: center; color: var(--muted); font-family: var(--mono); font-size: 12px; padding: 30px 20px; border-top: 1px solid var(--line); }
.disclaimer { max-width: 720px; margin: 8px auto 0; line-height: 1.6; }

@media (max-width: 640px) {
  .site-nav .brand span { display: none; }
  .section > h2 { font-size: 24px; }
}

/* ---- Showcase ---- */
.sprite { display: inline-block; background-repeat: no-repeat; background-position: 0 0; vertical-align: middle; }
.sc-count { font-family: var(--mono); font-size: 15px; color: var(--muted); }
.sc-badge { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); padding: 2px 8px; margin-left: 10px; vertical-align: middle; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.sc-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; background: var(--panel); border: 1px solid var(--line); text-align: center; color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.sc-tile:hover { border-color: var(--neon); transform: translateY(-2px); }
.sc-tile:hover .sprite { filter: drop-shadow(0 0 8px rgba(70, 232, 224, 0.5)); }
.sc-tile span { font-size: 12px; color: var(--ice); line-height: 1.3; }

/* ---- Move Dex ---- */
.md-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.md-input { background: var(--panel); color: var(--ice); border: 1px solid var(--line); padding: 9px 12px; font-family: var(--mono); font-size: 13px; }
.md-input:focus { outline: none; border-color: var(--neon); }
#md-search { flex: 1 1 240px; min-width: 200px; }
.md-chips { display: flex; gap: 6px; }
.chip { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; background: var(--panel); color: var(--sky, #9fc4d2); border: 1px solid var(--line); padding: 7px 12px; cursor: pointer; }
.chip:hover { border-color: var(--neon); color: var(--ice); }
.chip.active { background: rgba(70, 232, 224, 0.12); border-color: var(--neon); color: var(--neon); }
.md-total { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.md-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--panel); }
.md-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.md-table thead th { position: sticky; top: 0; background: var(--panel-2); text-align: left; padding: 9px 11px; border-bottom: 2px solid var(--line); font-weight: 600; z-index: 1; }
.md-table td { padding: 8px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-table tbody tr:hover { background: rgba(127, 127, 127, 0.07); }
.md-sub { display: block; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.md-desc { color: var(--muted); max-width: 44ch; }
.md-cat { display: inline-block; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; font-weight: 600; }
.md-Physical { border-color: #c0392b; }
.md-Special { border-color: #2980b9; }
.md-Status { border-color: #7f8c8d; }

/* ---- World ---- */
.wd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.wd-loc { background: var(--panel); border: 1px solid var(--line); padding: 11px 14px; }
.wd-loc.fly { border-color: var(--neon-dim); }
.wd-name { display: block; color: var(--ice); font-weight: 600; font-size: 14px; }
.wd-poi { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.wd-fly { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--neon); }
