/* ════════════════════════════════════════════
   POKEPERP — Pokémon-flavored perp market DA
   Bright, cartoon, TCG-card energy.
   ════════════════════════════════════════════ */
:root {
  --red: #e3350d;          /* pokeball red */
  --red-dark: #b7280a;
  --yellow: #ffcb05;       /* pikachu yellow */
  --yellow-dark: #c7a008;
  --blue: #3b4cca;         /* pokemon blue */
  --blue-dark: #2a3691;
  --navy: #1b2a59;         /* main text */
  --sky: #eaf4ff;
  --cream: #fffdf5;
  --panel: #ffffff;
  --border: #1b2a59;
  --muted: #5f6c94;
  --green: #2fbf66;        /* up */
  --green-dim: rgba(47, 191, 102, 0.14);
  --down: #e3350d;         /* down */
  --down-dim: rgba(227, 53, 13, 0.1);
  --title: "Luckiest Guy", cursive;
  --poke: "Pokemon Solid", "Luckiest Guy", cursive;
  --body: "Baloo 2", sans-serif;
  --shadow: 4px 4px 0 rgba(27, 42, 89, 0.9);
  --shadow-sm: 3px 3px 0 rgba(27, 42, 89, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 203, 5, 0.18), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(59, 76, 202, 0.12), transparent 35%),
    linear-gradient(180deg, var(--sky) 0%, var(--cream) 60%);
  color: var(--navy);
  font-family: var(--body);
  font-size: 16px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--body); cursor: pointer; }
[hidden] { display: none !important; }
.up, .green { color: var(--green); }
.down, .red { color: var(--down); }

/* ══════════ TICKER ══════════ */
.ticker-bar {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy);
  border-bottom: 3px solid var(--yellow);
  overflow: hidden; height: 34px;
  display: flex; align-items: center;
}
.ticker-track {
  display: flex; gap: 36px; white-space: nowrap;
  animation: ticker 60s linear infinite;
  font-size: 13px; font-weight: 700; color: #cfd9f7;
}
.ticker-track span b { color: var(--yellow); }
.ticker-track .green { color: #5ce694; }
.ticker-track .red { color: #ff7a5c; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════ NAV ══════════ */
.nav {
  position: sticky; top: 34px; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
  background: rgba(255, 253, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--navy);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-ball {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(180deg, var(--red) 46%, var(--navy) 46%, var(--navy) 54%, #fff 54%);
  border: 3px solid var(--navy);
  position: relative;
  animation: wobble 3.5s ease-in-out infinite;
}
.logo-ball::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--navy);
}
@keyframes wobble { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }
.logo-text { font-family: var(--poke); font-size: 19px; letter-spacing: 0.1em; color: var(--red); -webkit-text-stroke: 0.5px var(--navy); }
.logo-text span { color: var(--yellow); }
.logo-text.light { -webkit-text-stroke: 0; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  padding: 7px 14px; font-size: 13px; font-weight: 800;
  color: var(--navy); border-radius: 999px; letter-spacing: 0.04em;
}
.nav-links a:hover { background: var(--yellow); box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.ca-chip {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 2.5px solid var(--navy);
  color: var(--navy); padding: 7px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
}
.ca-chip:hover { background: var(--yellow); box-shadow: var(--shadow-sm); }
.ca-label { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  border: 3px solid var(--navy);
  font-size: 14px; font-weight: 800; letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  color: var(--navy);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(27, 42, 89, 0.9); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(27, 42, 89, 0.9); }
.btn-buy { background: var(--yellow); }
.btn-blue { background: #fff; }
.btn.big { padding: 14px 28px; font-size: 16px; }
.btn.full { width: 100%; }

/* ══════════ HERO ══════════ */
.hero { position: relative; text-align: center; padding: 88px 20px 70px; overflow: hidden; }
.hero-clouds {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image:
    radial-gradient(ellipse 90px 32px at 12% 22%, #fff 60%, transparent 61%),
    radial-gradient(ellipse 130px 44px at 82% 14%, #fff 60%, transparent 61%),
    radial-gradient(ellipse 110px 36px at 68% 82%, #fff 60%, transparent 61%),
    radial-gradient(ellipse 80px 30px at 25% 78%, #fff 60%, transparent 61%);
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; }
.hero-badge {
  display: inline-block; margin-bottom: 26px;
  padding: 8px 18px; border: 3px solid var(--navy);
  background: #fff; color: var(--navy);
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em;
  border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero-title {
  font-family: var(--poke);
  font-size: clamp(44px, 9vw, 100px);
  line-height: 1.15;
  color: var(--yellow);
  -webkit-text-stroke: 2.5px var(--blue);
  text-shadow: 5px 6px 0 var(--blue), 8px 9px 0 rgba(27, 42, 89, 0.25);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.hero-title-img { margin: 6px 0 14px; }
.hero-title-img img {
  width: min(640px, 90vw); height: auto;
  filter: drop-shadow(0 10px 22px rgba(27, 42, 89, 0.25));
  animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-catch {
  font-family: var(--title);
  font-size: clamp(18px, 3vw, 30px);
  color: var(--red);
  -webkit-text-stroke: 0.5px var(--navy);
  text-shadow: 2px 2px 0 rgba(27, 42, 89, 0.2);
  margin-bottom: 24px;
}
.hero-sub { color: var(--navy); line-height: 1.7; margin-bottom: 30px; font-size: 18px; font-weight: 600; }
.hero-sub .up { color: var(--green); }
.hero-sub .down { color: var(--down); }
.hero-ca {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; border: 3px solid var(--navy);
  padding: 12px 18px; border-radius: 14px; margin-bottom: 32px;
  box-shadow: var(--shadow); max-width: 100%;
}
.hero-ca-label { color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; }
.hero-ca code { font-size: 14px; font-weight: 700; word-break: break-all; }
.copy-mini {
  background: var(--yellow); border: 2.5px solid var(--navy);
  color: var(--navy); font-size: 12px; font-weight: 800;
  padding: 5px 12px; border-radius: 999px;
}
.copy-mini:hover { background: var(--yellow-dark); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }
.hero-stats {
  display: flex; justify-content: center; flex-wrap: wrap;
  border: 3px solid var(--navy); border-radius: 18px;
  background: #fff; overflow: hidden; box-shadow: var(--shadow);
}
.hstat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 36px; border-right: 3px solid var(--navy);
  min-width: 150px;
}
.hstat:last-child { border-right: none; }
.hstat-val { font-family: var(--title); font-size: 26px; }
.hstat-label { font-size: 11px; color: var(--muted); letter-spacing: 0.15em; font-weight: 800; }

/* ══════════ SECTIONS ══════════ */
.perps, .markets, .terminal, .how { max-width: 1180px; margin: 0 auto; padding: 64px 20px 10px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 {
  font-family: var(--title); font-size: clamp(28px, 4.5vw, 44px);
  color: var(--red); -webkit-text-stroke: 1.5px var(--navy);
  text-shadow: 3px 3px 0 rgba(27, 42, 89, 0.2);
  letter-spacing: 0.03em;
}
.section-sub { color: var(--muted); font-weight: 600; margin-top: 8px; }
.demo-tag {
  display: inline-block; font-size: 12px; font-family: var(--body); font-weight: 800;
  color: var(--navy); background: var(--yellow); border: 2.5px solid var(--navy);
  padding: 3px 12px; border-radius: 999px; vertical-align: middle;
  -webkit-text-stroke: 0; text-shadow: none; margin-left: 10px;
}
.grid-label {
  font-size: 14px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--blue); margin: 10px 0 14px;
}

/* ══════════ WHAT'S A PERP ══════════ */
.perp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.perp-card {
  background: #fff; border: 3px solid var(--navy); border-radius: 18px;
  padding: 26px 22px; box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}
.perp-card:hover { transform: translateY(-4px) rotate(-0.5deg); }
.perp-card h3 { font-family: var(--title); font-size: 22px; margin: 10px 0 8px; letter-spacing: 0.04em; }
.perp-card p { color: var(--navy); font-size: 14.5px; line-height: 1.65; font-weight: 600; }
.perp-emoji { font-size: 34px; }
.up-card { border-bottom: 8px solid var(--green); }
.up-card h3 { color: var(--green); }
.down-card { border-bottom: 8px solid var(--down); }
.down-card h3 { color: var(--down); }
.lev-card { border-bottom: 8px solid var(--yellow); }
.lev-card h3 { color: var(--yellow-dark); }
.coin-card { border-bottom: 8px solid var(--blue); }
.coin-card h3 { color: var(--blue); }

/* ══════════ CARD GRID ══════════ */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px; margin-bottom: 36px;
}
.mcard {
  background: #fff; border: 3px solid var(--navy);
  border-radius: 16px; overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease;
}
.mcard:hover { transform: translateY(-5px) rotate(0.6deg); }
.mcard-img {
  height: 155px; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 35%, #fff 0%, #dbeaff 80%);
  border-bottom: 3px solid var(--navy);
  padding: 14px; position: relative; overflow: hidden;
}
.mcard-img img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(27, 42, 89, 0.35)); }
.mcard-img .spark { position: absolute; bottom: 0; left: 0; right: 0; height: 40px; opacity: 0.55; }
.mcard-body { padding: 14px 16px 16px; }
.mcard-name { font-family: var(--title); font-size: 16px; letter-spacing: 0.04em; }
.mcard-desc { color: var(--muted); font-size: 12px; font-weight: 600; margin: 3px 0 10px; }
.mcard-tag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  color: #fff; background: var(--blue); border: 2px solid var(--navy);
  border-radius: 999px; padding: 2px 10px; margin-bottom: 10px;
}
.mcard-tag.perp { background: var(--red); }
.mcard-price { display: flex; align-items: baseline; gap: 10px; }
.mcard-price .p { font-size: 19px; font-weight: 800; }
.mcard-price .chg { font-size: 13px; font-weight: 800; }
.flash-up { animation: flashUp 0.6s ease; }
.flash-down { animation: flashDown 0.6s ease; }
@keyframes flashUp { 0% { background: var(--green-dim); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: var(--down-dim); } 100% { background: transparent; } }

/* ══════════ BATTLE ARENA ══════════ */
.terminal-box {
  display: grid; grid-template-columns: 330px 1fr;
  border: 3px solid var(--navy); border-radius: 18px;
  background: #fff; overflow: hidden; box-shadow: var(--shadow);
  margin-bottom: 36px;
}
.terminal-left {
  padding: 24px; border-right: 3px solid var(--navy);
  display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(180deg, #fff 0%, #f2f6ff 100%);
}
.term-row { display: flex; flex-direction: column; gap: 8px; }
.term-label { font-size: 11px; color: var(--muted); letter-spacing: 0.12em; font-weight: 800; }
.term-label b { color: var(--red); float: right; font-size: 13px; }
.terminal select, .terminal input[type="number"] {
  background: #fff; border: 2.5px solid var(--navy);
  color: var(--navy); font-family: var(--body); font-weight: 700; font-size: 14px;
  padding: 10px 12px; border-radius: 10px; width: 100%;
}
.terminal select:focus, .terminal input:focus { outline: none; border-color: var(--blue); }
input[type="range"] { accent-color: var(--red); width: 100%; }
.side-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-btn {
  padding: 11px; border-radius: 10px; font-weight: 800; font-size: 13px;
  background: #fff; border: 2.5px solid var(--navy); color: var(--muted);
}
.side-btn.long.active { background: var(--green-dim); border-color: var(--green); color: var(--green); box-shadow: 2px 2px 0 var(--green); }
.side-btn.short.active { background: var(--down-dim); border-color: var(--down); color: var(--down); box-shadow: 2px 2px 0 var(--down); }
.term-note { font-size: 11px; color: var(--muted); font-weight: 600; }
.terminal-right { display: flex; flex-direction: column; min-height: 430px; }
.term-price-head {
  display: flex; justify-content: space-between; padding: 14px 20px;
  border-bottom: 3px solid var(--navy);
  font-family: var(--title); font-size: 16px; letter-spacing: 0.04em;
  background: var(--yellow);
}
.term-price-head span:first-child { color: var(--navy); }
#termChart { flex: 1; width: 100%; background: #f7faff; }
.term-log {
  height: 120px; overflow-y: auto; padding: 12px 20px;
  border-top: 3px solid var(--navy); font-size: 13px; font-weight: 700;
  color: var(--muted); background: #fff;
}
.log-line { padding: 2px 0; }
.log-line.green { color: var(--green); }
.log-line.red { color: var(--down); }

/* ══════════ WALLET + POSITIONS ══════════ */
.wallet-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.balance-chip, .net-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 2.5px solid var(--navy);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 800; color: var(--navy);
}
.net-chip { background: var(--navy); color: var(--yellow); }
.positions-box {
  background: #fff; border: 3px solid var(--navy); border-radius: 16px;
  box-shadow: var(--shadow); padding: 6px; margin-bottom: 36px; overflow-x: auto;
}
.pos-empty { padding: 22px; text-align: center; color: var(--muted); font-weight: 700; }
.pos-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pos-table th {
  text-align: left; padding: 12px 14px; font-size: 11px;
  letter-spacing: 0.1em; color: var(--muted);
  border-bottom: 2.5px solid var(--navy);
}
.pos-table td { padding: 12px 14px; border-bottom: 1.5px solid #e4e9f7; font-weight: 700; }
.pos-table tr:last-child td { border-bottom: none; }
.pos-close {
  background: var(--red); color: #fff; border: 2.5px solid var(--navy);
  font-weight: 800; font-size: 11px; padding: 5px 14px; border-radius: 999px;
}
.pos-close:hover { background: var(--red-dark); }
.pos-link { color: var(--blue); font-weight: 800; }
.term-log a { color: var(--blue); text-decoration: underline; }

/* ══════════ MARQUEE ══════════ */
.marquee {
  margin-top: 64px;
  background: var(--yellow);
  border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy);
  overflow: hidden; height: 52px; display: flex; align-items: center;
  transform: rotate(-1deg) scale(1.02);
}
.marquee-track {
  display: flex; gap: 42px; white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-family: var(--title); font-size: 20px; color: var(--navy);
  letter-spacing: 0.06em;
}

/* ══════════ TOKENOMICS ══════════ */
.tokenomics, .roadmap, .faq { max-width: 1180px; margin: 0 auto; padding: 64px 20px 10px; }
.tok-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 36px; }
.tok-card {
  background: #fff; border: 3px solid var(--navy); border-radius: 18px;
  padding: 26px 22px; box-shadow: var(--shadow); text-align: center;
  transition: transform 0.12s ease;
}
.tok-card:hover { transform: translateY(-4px); }
.tok-emoji { font-size: 34px; margin-bottom: 8px; }
.tok-val { font-family: var(--title); font-size: 26px; color: var(--blue); }
.tok-label { font-size: 11px; font-weight: 800; letter-spacing: 0.15em; color: var(--muted); margin: 4px 0 12px; }
.tok-card p { font-size: 13.5px; color: var(--navy); font-weight: 600; line-height: 1.6; }

/* ══════════ ROADMAP ══════════ */
.quest-list { display: flex; flex-direction: column; gap: 0; max-width: 760px; margin: 0 auto 36px; }
.quest { display: flex; gap: 20px; position: relative; padding-bottom: 26px; }
.quest::before {
  content: ""; position: absolute; left: 25px; top: 52px; bottom: 0;
  width: 4px; background: var(--navy); border-radius: 2px; opacity: 0.18;
}
.quest:last-child::before { display: none; }
.quest-badge {
  flex: 0 0 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; border: 3px solid var(--navy); box-shadow: var(--shadow-sm);
  background: #fff;
}
.quest-body {
  flex: 1; background: #fff; border: 3px solid var(--navy); border-radius: 16px;
  padding: 18px 22px; box-shadow: var(--shadow);
}
.quest-body h3 { font-family: var(--title); font-size: 17px; letter-spacing: 0.05em; margin-bottom: 6px; }
.quest-body p { color: var(--muted); font-weight: 600; font-size: 14px; line-height: 1.65; }
.quest.done .quest-body { border-color: var(--green); }
.quest-tag {
  display: inline-block; font-family: var(--body); font-size: 10px; font-weight: 800;
  padding: 2px 10px; border-radius: 999px; border: 2px solid var(--navy);
  vertical-align: middle; margin-left: 6px; letter-spacing: 0.1em;
}
.quest-tag.live { background: var(--green); color: #fff; }

/* ══════════ FAQ ══════════ */
.faq-list { max-width: 760px; margin: 0 auto 36px; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff; border: 3px solid var(--navy); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-weight: 800; font-size: 16px; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; font-size: 20px; color: var(--red); font-weight: 800; }
.faq-item[open] summary::after { content: "－"; }
.faq-item[open] summary { border-bottom: 2px dashed #e4e9f7; }
.faq-item p { padding: 16px 22px 20px; color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.7; }

/* ══════════ CTA BANNER ══════════ */
.cta-banner {
  max-width: 1100px; margin: 64px auto 0; padding: 54px 30px;
  background: var(--yellow); border: 3px solid var(--navy); border-radius: 24px;
  box-shadow: var(--shadow); text-align: center;
}
.cta-banner h2 {
  font-family: var(--poke); font-size: clamp(26px, 5vw, 44px);
  color: var(--red); -webkit-text-stroke: 1px var(--navy);
  text-shadow: 3px 3px 0 rgba(27, 42, 89, 0.2); letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.cta-banner p { font-weight: 700; color: var(--navy); margin-bottom: 26px; }
.cta-banner .hero-actions { margin-bottom: 0; }
.cta-banner .btn-blue { background: #fff; }

/* ══════════ HOW TO JOIN ══════════ */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 36px; }
.how-card {
  background: #fff; border: 3px solid var(--navy); border-radius: 18px;
  padding: 26px 22px; box-shadow: var(--shadow); text-align: center;
  transition: transform 0.12s ease;
}
.how-card:hover { transform: translateY(-4px); }
.how-badge {
  width: 52px; height: 52px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--title); font-size: 24px; color: #fff;
  border-radius: 50%; border: 3px solid var(--navy);
  box-shadow: var(--shadow-sm);
}
.b1 { background: var(--red); }
.b2 { background: var(--blue); }
.b3 { background: var(--yellow); color: var(--navy); }
.b4 { background: var(--green); }
.how-card h3 { font-family: var(--title); font-size: 17px; margin-bottom: 8px; letter-spacing: 0.04em; }
.how-card p { color: var(--muted); font-size: 14px; line-height: 1.65; font-weight: 600; }

/* ══════════ FOOTER ══════════ */
.footer { background: var(--navy); border-top: 6px solid var(--yellow); margin-top: 50px; padding: 44px 20px; }
.footer-inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-brand .logo-text { color: var(--yellow); }
.footer-brand .logo-text span { color: #fff; }
.footer-disclaimer { color: #9fb0dd; font-size: 12px; line-height: 1.8; max-width: 660px; margin: 0 auto 22px; font-weight: 600; }
.footer-links { display: flex; gap: 24px; justify-content: center; }
.footer-links a { color: #cfd9f7; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; }
.footer-links a:hover { color: var(--yellow); }

/* ══════════ PAGE HEAD (subpages) ══════════ */
.page-head {
  text-align: center; padding: 54px 20px 8px;
  max-width: 900px; margin: 0 auto;
}
.page-head h1 {
  font-family: var(--poke); font-size: clamp(30px, 6vw, 54px);
  color: var(--red); -webkit-text-stroke: 1.5px var(--navy);
  text-shadow: 4px 4px 0 rgba(27, 42, 89, 0.2); letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.footer-version { color: #6d7fb4; font-size: 11px; font-weight: 700; margin-top: 18px; letter-spacing: 0.08em; }
.stats-grid .tok-val { font-size: 22px; }
.link-card { display: block; }
.link-card p b { color: var(--blue); }

/* ══════════ DOCS ══════════ */
.docs-layout {
  display: grid; grid-template-columns: 250px 1fr; gap: 30px;
  max-width: 1180px; margin: 24px auto 40px; padding: 0 20px;
  align-items: start;
}
.docs-side {
  position: sticky; top: 100px;
  background: #fff; border: 3px solid var(--navy); border-radius: 16px;
  box-shadow: var(--shadow); padding: 18px 14px;
}
.docs-side nav { display: flex; flex-direction: column; gap: 2px; }
.docs-side-title {
  font-size: 10px; font-weight: 800; letter-spacing: 0.15em;
  color: var(--red); margin: 12px 8px 4px;
}
.docs-side-title:first-child { margin-top: 0; }
.docs-side a {
  padding: 6px 10px; border-radius: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--navy);
}
.docs-side a:hover { background: var(--yellow); }
.docs-main { min-width: 0; }
.doc-block {
  background: #fff; border: 3px solid var(--navy); border-radius: 18px;
  box-shadow: var(--shadow); padding: 28px 30px; margin-bottom: 24px;
  scroll-margin-top: 96px;
}
.doc-block h2 {
  font-family: var(--title); font-size: 24px; color: var(--blue);
  letter-spacing: 0.04em; margin-bottom: 14px;
}
.doc-block p, .doc-block li { color: var(--navy); font-size: 14.5px; font-weight: 600; line-height: 1.75; }
.doc-block p { margin-bottom: 12px; }
.doc-block ul, .doc-block ol { padding-left: 22px; margin-bottom: 12px; }
.doc-block li { margin-bottom: 8px; }
.doc-block a { color: var(--blue); text-decoration: underline; }
.doc-block code {
  font-family: "JetBrains Mono", monospace; font-size: 12.5px;
  background: #f0f3fd; border: 1px solid #d9e0f5; border-radius: 6px;
  padding: 1px 6px; word-break: break-all;
}
.doc-block pre {
  font-family: "JetBrains Mono", monospace; font-size: 12.5px; line-height: 1.6;
  background: var(--navy); color: #d9e2ff; border-radius: 12px;
  padding: 14px 18px; overflow-x: auto; margin: 10px 0 16px;
  border: 2.5px solid var(--navy);
  white-space: pre;
}
.doc-block pre.resp { background: #f0f3fd; color: var(--navy); border: 2px dashed #c6d1f0; }
.api-endpoint { border-top: 2px dashed #e4e9f7; padding-top: 18px; margin-top: 18px; }
.api-endpoint h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; font-family: "JetBrains Mono", monospace; }
.method {
  display: inline-block; background: var(--green); color: #fff;
  font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 8px;
  margin-right: 8px; vertical-align: middle; border: 2px solid var(--navy);
}
.doc-block .faq-item { box-shadow: none; margin-bottom: 10px; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; }
}

/* ══════════ TOAST ══════════ */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(90px);
  background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 14px;
  padding: 14px 26px; border-radius: 999px; z-index: 100;
  border: 3px solid var(--navy); box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .terminal-box { grid-template-columns: 1fr; }
  .terminal-left { border-right: none; border-bottom: 3px solid var(--navy); }
  .hstat { min-width: 45%; padding: 14px 18px; }
  .ca-chip .ca-value { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
  .hero-title { -webkit-text-stroke: 2px var(--blue); }
}
