/* MineFury player site - matches store.minefury.net Pokédex theme */

:root {
  --shell: #dc0a2d;
  --shell-dark: #9a0820;
  --shell-light: #f04657;
  --shell-shadow: #5e0512;
  --screen: #0e5a9a;
  --screen-light: #ffffff;
  --screen-grid: rgba(4, 22, 46, 0.4);
  --screen-line: rgba(255, 255, 255, 0.18);
  --screen-ink: #f0f7fd;
  --led-blue: #2b76d4;
  --led-blue-hi: #c8dffb;
  --led-red: #ff4d4d;
  --led-yellow: #f5c518;
  --led-green: #2da14a;
  --ink: #e8f3fb;
  --gold: #f7d022;
  --gold-ink: #ffe45c;
  --orange: #f5a81d;
  --panel: rgba(5, 26, 52, 0.45);
  --panel-edge: rgba(255, 255, 255, 0.10);
  --dim: rgba(235, 250, 250, 0.65);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: Nunito, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1400px 700px at 50% 110%, rgb(26, 50, 96) 0%, rgba(26, 50, 96, 0) 60%),
    linear-gradient(rgb(6, 8, 26) 0%, rgb(14, 19, 64) 50%, rgb(26, 32, 86) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  padding: 28px 14px 60px;
}

::selection { background: var(--shell); color: #fff; }

a { color: var(--gold-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Pokédex shell ---------- */

.dex {
  max-width: 1080px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--shell-light) 0%, var(--shell) 12%, var(--shell) 82%, var(--shell-dark) 100%);
  border: 3px solid #1a0206;
  border-radius: 26px 26px 34px 34px;
  box-shadow:
    0 4px 0 var(--shell-shadow),
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

/* top shell */
.shell-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 28px 16px;
}

.lens {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #1a0206;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.lens-glass {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, var(--led-blue-hi) 0%, #6ea4e8 22%, var(--led-blue) 55%, #123c78 100%);
  border: 2px solid #0d2a55;
  animation: lensPulse 5s ease-in-out infinite;
}

@keyframes lensPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(120, 175, 240, 0); }
  50% { box-shadow: 0 0 18px rgba(120, 175, 240, 0.55); }
}

.leds { display: flex; flex-direction: column; gap: 7px; flex: 0 0 auto; }

.led {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.55);
}
.led.red { background: var(--led-red); }
.led.yellow { background: var(--led-yellow); }
.led.green { background: var(--led-green); animation: ledBlink 2.4s steps(1) infinite; }

@keyframes ledBlink {
  0%, 78%, 100% { filter: brightness(1); }
  82%, 90% { filter: brightness(0.45); }
}

.shell-title { flex: 1 1 auto; min-width: 0; }

.shell-title .t1 {
  font-family: "Press Start 2P", monospace;
  font-size: 15px;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
  letter-spacing: 1px;
}

.shell-title .t2 {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: #ffd9de;
  margin-top: 8px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.shell-nav {
  display: flex;
  gap: 18px;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.shell-nav a { color: #ffd9de; }
.shell-nav a:hover { color: #fff; text-decoration: none; }

.shell-nav .play-now {
  background: linear-gradient(180deg, #ffc94d 0%, var(--orange) 100%);
  color: #3a2200;
  border: 2px solid #1a0206;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 3px 0 #8a4d05;
  margin-left: 6px;
}
.shell-nav .play-now:hover { filter: brightness(1.07); color: #3a2200; }
.shell-nav .play-now:active { transform: translateY(2px); box-shadow: 0 1px 0 #8a4d05; }

/* ---------- screen ---------- */

.screen {
  margin: 0 22px;
  background: linear-gradient(175deg, #0a3f74 0%, #0e5a9a 45%, #1573b8 100%);
  border: 3px solid #071e38;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22), inset 0 10px 24px rgba(0, 10, 30, 0.3);
  overflow: hidden;
  position: relative;
}

/* status bars */
.statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: rgba(4, 22, 46, 0.4);
  border-bottom: 2px solid var(--screen-line);
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #d6e9f7;
}

.statusbar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--led-green);
  box-shadow: 0 0 6px var(--led-green);
  animation: ledBlink 2s steps(1) infinite;
}

.statusbar .spacer { flex: 1; }

.statusbar .green { color: #ffe45c; white-space: nowrap; }

.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 20, 42, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 3px 10px;
  color: #ffe45c;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ip-chip:hover { border-color: #f7d022; text-decoration: none; }

.wirebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 16px;
  background: rgba(4, 22, 46, 0.4);
  border-top: 2px solid var(--screen-line);
  border-bottom: 2px solid var(--screen-line);
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #d6e9f7;
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--shell-light) 0%, var(--shell) 55%, var(--shell-dark) 100%);
  border-bottom: 3px solid #050803;
  padding: 34px 30px 30px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0 2px,
    transparent 2px 14px
  );
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}
.hero-inner > div { flex: 1 1 auto; min-width: 0; }
.hero-logo {
  flex: 0 1 300px;
  width: 300px;
  max-width: 34%;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}
@media (max-width: 720px) {
  .hero-inner { flex-direction: column-reverse; }
  .hero-logo { max-width: 60%; width: 220px; }
}

.hero h1 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(18px, 3.4vw, 30px);
  line-height: 1.5;
  color: #fff;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  max-width: 21ch;
}

.hero p.sub {
  margin-top: 16px;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffe2e6;
  max-width: 58ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  padding: 13px 18px 12px;
  border-radius: 14px;
  border: 3px solid #1a0206;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.06s ease;
}
.btn:active { transform: translateY(2px); }

.btn-gold {
  background: linear-gradient(180deg, #ffc94d 0%, var(--orange) 100%);
  color: #3a2200;
  box-shadow: 0 3px 0 #8a4d05;
}
.btn-gold:hover { filter: brightness(1.07); }

.btn-dark {
  background: #0c2038;
  color: #eaf4ff;
  box-shadow: 0 3px 0 #040f1e;
}
.btn-dark:hover { background: #143050; color: #fff; }

/* ---------- sections ---------- */

.section { padding: 30px 26px 34px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
}

.section-head .kicker {
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
}

.section-head h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 16px;
  color: var(--screen-light);
  line-height: 1.6;
  text-shadow: 0 2px 0 rgba(0, 18, 42, 0.4);
}

.section > p.lead {
  color: #d9ecf9;
  max-width: 70ch;
  margin-bottom: 22px;
  font-size: 17px;
}

/* ---------- platform cards ---------- */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.platform-card {
  background: var(--panel);
  border: 2px solid var(--panel-edge);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.platform-card .tag {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--dim);
}

.platform-card h3 {
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  color: var(--screen-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-card h3 .orb {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  border: 2px solid;
  flex: 0 0 auto;
}
.platform-card h3 .orb img { display: block; width: 26px; height: 26px; }

.platform-card.pixelmon h3 .orb { border-color: #e89a9a; background: #fdeaea; color: #d43a3a; }
.platform-card.cobblemon h3 .orb { border-color: #8cc2e2; background: #e6f3fc; color: #1f7ec2; }

.platform-card p { margin-top: 14px; color: #e4f0fa; font-size: 16px; }

.server-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.server-pill {
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 5px 9px;
}

.launcher-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.launcher-links a {
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-ink);
  background: rgba(4, 20, 42, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 6px 10px;
}
.launcher-links a:hover { border-color: var(--gold-ink); text-decoration: none; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }

.step {
  background: var(--panel);
  border: 2px solid var(--panel-edge);
  border-radius: 14px;
  padding: 18px;
}

.step .num {
  font-family: "Press Start 2P", monospace;
  font-size: 18px;
  color: var(--gold-ink);
  display: inline-block;
  background: rgba(4, 20, 42, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 8px 11px 6px;
}

.step h3 {
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--screen-light);
  margin-top: 14px;
}

.step p { margin-top: 8px; color: #e4f0fa; }

/* ---------- feature dex grid ---------- */

.dex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.dex-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 2px solid var(--panel-edge);
  border-radius: 14px;
  padding: 16px 16px 18px;
  position: relative;
  transition: border-color 0.12s ease;
}
.dex-card:hover { border-color: rgba(255, 255, 255, 0.45); }

.dex-card .no {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: 1px;
}

.dex-card .head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dex-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(4, 20, 42, 0.5);
  display: grid;
  place-items: center;
  font-size: 21px;
  flex: 0 0 auto;
  color: #ffe45c;
  font-variant-emoji: text;
}

.dex-card h3 {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  line-height: 1.7;
  color: var(--screen-light);
}

.dex-card p { margin-top: 12px; color: #e4f0fa; }

.dex-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  align-items: center;
}
.dex-card.featured .shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.22);
}
.dex-grid.centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.dex-grid.centered > .dex-card { flex: 1 1 300px; max-width: 360px; }

.dex-card.featured.flip .shot { order: 2; }
@media (max-width: 720px) {
  .dex-card.featured { grid-template-columns: 1fr; }
  .dex-card.featured.flip .shot { order: 0; }
}

.article img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  margin-top: 14px;
}

.dex-card.soon { border-style: dashed; border-color: rgba(255, 255, 255, 0.35); }
.dex-card.soon:hover { border-color: rgba(255, 255, 255, 0.22); }
.dex-card.soon .no { color: var(--gold-ink); }
.dex-card.soon .icon, .dex-card.soon h3, .dex-card.soon p { opacity: 0.75; }
.dex-card.soon .meta { color: var(--dim); }

.dex-card .meta {
  margin-top: 10px;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffe45c;
}

/* ---------- chips ---------- */

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #d6e9f7;
  background: rgba(4, 22, 46, 0.4);
  border: 2px solid var(--panel-edge);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------- daily checklist ---------- */

.daily-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }

.daily-item {
  display: flex;
  gap: 12px;
  background: var(--panel);
  border: 2px solid var(--panel-edge);
  border-radius: 14px;
  padding: 14px 16px;
  align-items: flex-start;
}

.daily-item .tick {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: #ffe45c;
  margin-top: 2px;
}

.daily-item b {
  display: block;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--screen-light);
}

.daily-item span { color: #e4f0fa; font-size: 15px; }

.daily-item code {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--gold-ink);
  background: rgba(4, 20, 42, 0.5);
  border-radius: 3px;
  padding: 1px 5px;
}

/* ---------- FAQ ---------- */

.faq details {
  background: var(--panel);
  border: 2px solid var(--panel-edge);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--screen-light);
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "▸";
  color: var(--gold-ink);
  font-size: 15px;
  transition: transform 0.12s ease;
}
.faq details[open] summary::before { transform: rotate(90deg); }

.faq .answer { padding: 0 18px 16px 44px; color: #e4f0fa; }
.faq .answer a { color: var(--gold-ink); }

/* ---------- connect banner ---------- */

.connect {
  position: relative;
  margin: 0 26px 30px;
  background: linear-gradient(180deg, #ffd84d 0%, #f7bd23 55%, #f5a81d 100%);
  border: 3px solid #1a0206;
  border-radius: 16px;
  padding: 30px 90px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 0 #8a4d05, 0 10px 24px rgba(0, 10, 30, 0.35);
}

.connect::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16) 0 3px,
    transparent 3px 18px
  );
  pointer-events: none;
}

.connect h2 {
  position: relative;
  font-family: "Press Start 2P", monospace;
  font-size: 16px;
  color: #123640;
  line-height: 1.7;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.connect .cb {
  position: absolute;
  top: calc(50% - 28px);
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 6px rgba(0, 10, 30, 0.3));
  animation: cbFloat 3.4s ease-in-out infinite;
}
.connect .cb-l { left: 26px; --rot: -14deg; }
.connect .cb-r { right: 26px; --rot: 14deg; animation-delay: 1.7s; }

@keyframes cbFloat {
  0%, 100% { transform: rotate(var(--rot)) translateY(-6px); }
  50% { transform: rotate(var(--rot)) translateY(6px); }
}

@keyframes ipPulse {
  0% { box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(255, 255, 255, 0.6); }
  70% { box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45), 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .connect .cb, .connect .ip-big { animation: none; }
}

@media (max-width: 720px) {
  .connect { padding: 26px 20px; }
  .connect .cb { display: none; }
}

.connect .ip-big {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  background: #17323c;
  border: 3px solid #1a0206;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  color: #ffe45c;
  cursor: pointer;
  animation: ipPulse 2.6s ease-out infinite;
  transition: transform 0.08s ease;
}
.connect .ip-big:hover { transform: scale(1.04); }
.connect .ip-big:active { transform: scale(0.98); }

@media (max-width: 480px) {
  .connect .ip-big { font-size: 17px; padding: 11px 18px; gap: 8px; }
}

.connect .hint {
  position: relative;
  margin-top: 12px;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6e4c04;
}

/* ---------- site footer (link directory) ---------- */

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 26px;
  background: rgba(4, 22, 46, 0.4);
  border-top: 2px solid var(--screen-line);
}

.site-footer b {
  display: block;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 4px;
}

.site-footer a {
  display: block;
  color: #d6e9f7;
  font-size: 14px;
  margin-top: 8px;
}
.site-footer a:hover { color: #ffe45c; text-decoration: none; }

.sf-brand img { display: block; margin-bottom: 8px; }
.sf-brand p { margin-top: 8px; color: var(--dim); font-size: 14px; max-width: 30ch; }

@media (max-width: 720px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
  .sf-brand { grid-column: 1 / -1; }
}

/* ---------- bottom shell ---------- */

.shell-bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 34px 30px;
}

.dpad {
  position: relative;
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
}
.dpad::before, .dpad::after {
  content: "";
  position: absolute;
  background: #3d060f;
  border-radius: 6px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08), 0 2px 0 rgba(0, 0, 0, 0.4);
}
.dpad::before { left: 30px; top: 0; width: 24px; height: 84px; }
.dpad::after { left: 0; top: 30px; width: 84px; height: 24px; }

.foot-mid {
  flex: 1;
  text-align: center;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffd9de;
}

.foot-mid a { color: #fff; }

.foot-mid .fine {
  margin-top: 10px;
  font-size: 11px;
  color: #f8a7b0;
  letter-spacing: 1px;
}

.ab { display: flex; gap: 14px; align-items: flex-end; flex: 0 0 auto; }

.ab .b-btn, .ab .a-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #1a0206;
  display: grid;
  place-items: center;
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}
.ab .b-btn { background: #17181c; color: #e8e8e8; margin-bottom: 14px; }
.ab .a-btn { background: var(--gold); color: #3a2200; }

/* ---------- wiki ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 26px;
  background: rgba(4, 22, 46, 0.4);
  border-bottom: 2px solid var(--screen-line);
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--dim);
}
.crumbs a { color: #d6e9f7; }
.crumbs span { color: rgba(255, 255, 255, 0.55); }
.crumbs b { color: var(--gold-ink); font-weight: 700; }

a.dex-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none !important;
}
a.dex-card:hover { border-color: rgba(255, 255, 255, 0.45); }
.dex-card .go {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  align-self: flex-start;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-ink);
}

.wiki-cat {
  margin-top: 26px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wiki-cat:first-of-type { margin-top: 0; }
.wiki-cat h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 13px;
  color: var(--screen-light);
  text-shadow: 0 2px 0 rgba(0, 18, 42, 0.4);
}
.wiki-cat .rule { flex: 1; height: 2px; background: rgba(255, 255, 255, 0.3); }

/* article pages */
.article h1 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(16px, 3vw, 24px);
  line-height: 1.6;
  color: var(--screen-light);
  text-shadow: 0 2px 0 rgba(0, 18, 42, 0.5), 0 3px 8px rgba(0, 15, 35, 0.4);
}
.article .sub { margin-top: 12px; color: #d9ecf9; font-size: 17px; max-width: 70ch; }
.article h2 {
  display: inline-block;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #12283c;
  background: var(--gold);
  padding: 8px 16px 7px;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(0, 18, 42, 0.35);
  margin-top: 34px;
}
.article h2:first-of-type { margin-top: 26px; }
.article h3 {
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  margin-top: 22px;
}
.article p { margin-top: 12px; color: var(--ink); max-width: 76ch; }
.article ul { margin-top: 12px; padding-left: 22px; color: var(--ink); max-width: 74ch; }
.article li { margin-top: 6px; }
.article li::marker { color: #ffe45c; }
.article p a, .article li a { color: #ffe45c; text-decoration: underline; }

.cmd {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-ink);
  background: rgba(4, 20, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  padding: 1px 6px;
  white-space: nowrap;
}

.cmd-table { margin-top: 14px; border: 2px solid var(--panel-edge); border-radius: 14px; overflow: hidden; }
.cmd-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding: 10px 16px;
  background: var(--panel);
}
.cmd-row:nth-child(even) { background: rgba(255, 255, 255, 0.06); }
.cmd-row .c { align-self: start; }
.cmd-row .d { color: #e4f0fa; }

.tipbox {
  margin-top: 16px;
  background: rgba(5, 26, 52, 0.55);
  border: 2px solid #f7d022;
  border-left-width: 6px;
  border-radius: 12px;
  padding: 12px 16px;
  color: #f0f7fd;
  max-width: 76ch;
}
.tipbox b {
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffe45c;
  display: block;
  margin-bottom: 4px;
}

.related {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 2px solid var(--panel-edge);
}
.related .label {
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}
.related a {
  display: inline-block;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-ink);
  background: rgba(4, 20, 42, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 0 6px 6px 0;
}
.related a:hover { border-color: var(--gold-ink); text-decoration: none; }

@media (max-width: 720px) {
  .cmd-row { grid-template-columns: 1fr; gap: 4px; }
  .crumbs { padding: 12px 16px 0; }
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 80px);
  background: rgba(4, 20, 42, 0.5);
  border: 2px solid #f7d022;
  color: #ffe45c;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 18px;
  border-radius: 6px;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
  z-index: 50;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  body { padding: 12px 6px 40px; }
  .shell-top { flex-wrap: wrap; padding: 16px 18px 12px; }
  .shell-nav { width: 100%; justify-content: flex-end; }
  .screen { margin: 0 12px; }
  .hero { padding: 24px 18px; }
  .section { padding: 24px 16px 26px; }
  .connect { margin: 0 16px 22px; }
  .shell-bottom { padding: 20px 20px 24px; gap: 16px; }
  .dpad { width: 64px; height: 64px; }
  .dpad::before { left: 22px; width: 20px; height: 64px; }
  .dpad::after { top: 22px; width: 64px; height: 20px; }
  .statusbar .hide-sm { display: none; }
  .section-head { flex-direction: column; gap: 8px; }
  .wirebar { gap: 12px; }
}

/* phone header: nav wraps whole links, status bar drops the clock so the IP chip fits */
@media (max-width: 480px) {
  .shell-nav { flex-wrap: wrap; align-items: center; gap: 10px 14px; }
  .shell-nav a { white-space: nowrap; }
  .shell-nav .play-now { margin-left: 0; }
  .ip-chip { white-space: nowrap; }
  .statusbar #clock, .statusbar #clock + span { display: none; }
}
