:root { --accent: #44e07a; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #0c130f;
  color: #e8f0ea;
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent, #44e07a); color: #06140c; }
a { color: inherit; text-decoration: none; }
input { font-family: inherit; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floaty2 { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.navtop {
  font-size: 13.5px; font-weight: 600; color: #c0d0c6; white-space: nowrap;
  cursor: pointer; text-decoration: none; background: none; border: none;
  font-family: inherit; display: flex; align-items: center; gap: 5px;
}
.navtop:hover { color: #fff; }
.navtop.active { color: #44e07a; }
.navgroup { position: relative; }
.navmenu {
  display: none; position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%); min-width: 178px; background: #0e1813;
  border: 1px solid #25382d; border-radius: 10px; padding: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5); z-index: 70;
}
.navmenu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.navgroup:hover .navmenu { display: block; }
.navmenu a {
  display: block; padding: 9px 12px; border-radius: 7px; font-size: 13.5px;
  font-weight: 600; color: #c0d0c6; white-space: nowrap; text-decoration: none;
}
.navmenu a:hover { background: #15211a; color: #fff; }
.navmenu a.active { color: var(--accent, #44e07a); }
.nav-burger { display: none; }

@media (max-width: 1240px) {
  .nav-links { display: none !important; }
  .nav-links.open {
    display: flex !important; position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: #101a14;
    border-top: 1px solid #1e2c24; padding: 8px;
  }
  .nav-links.open .navtop { padding: 12px 16px; }
  .nav-links.open .navgroup { position: static; }
  .nav-links.open .navmenu {
    display: block; position: static; transform: none; border: none;
    box-shadow: none; background: transparent; padding: 0 0 6px 14px; min-width: 0;
  }
  .nav-links.open .navmenu::before { display: none; }
  .nav-burger { display: flex !important; }
}
@media (max-width: 720px) {
  .hero-h1 { font-size: 52px !important; }
  .row-wrap { flex-direction: column !important; align-items: stretch !important; }
  /* Shorten the Play CTA so the burger stays on-screen on phones */
  .play-btn { font-size: 0 !important; gap: 0 !important; padding: 10px 13px !important; }
  .play-btn::before { content: "▶ PLAY"; font-size: 12px; font-weight: 700; }
}

[data-density="compact"] .section { padding-top: 46px !important; padding-bottom: 46px !important; }

/* Team Builder two-column layout collapses on narrow screens */
@media (max-width: 880px) { .builder-cols { grid-template-columns: 1fr !important; } }
select { font-family: inherit; -webkit-appearance: none; appearance: none; }

/* ===== Article (SEO long-form) ===== */
.article { max-width: 820px; margin: 0 auto; }
.article-title { font-family: 'Baloo 2'; font-weight: 800; font-size: 38px; line-height: 1.15; color: #fff; margin: 6px 0 10px; }
.article-meta { font-family: 'Space Mono'; font-size: 12px; color: #7d8f85; margin-bottom: 8px; }
.article h2 { font-family: 'Baloo 2'; font-weight: 800; font-size: 26px; margin: 38px 0 14px; color: #e8f0ea; }
.article h3 { font-family: 'Baloo 2'; font-weight: 700; font-size: 20px; margin: 26px 0 10px; color: #d8e6dc; }
.article p { font-size: 16px; line-height: 1.7; color: #b6c6bc; margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; color: #b6c6bc; line-height: 1.7; }
.article li { margin-bottom: 7px; }
.article strong { color: #e8f0ea; font-weight: 700; }
.article a { color: var(--accent, #44e07a); text-decoration: none; }
.article a:hover { text-decoration: underline; }
.article code { font-family: 'Space Mono'; font-size: .9em; background: #15211a; padding: 2px 6px; border-radius: 4px; color: var(--accent, #44e07a); }
.article blockquote { border-left: 3px solid var(--accent, #44e07a); background: #101a14; margin: 0 0 18px; padding: 14px 18px; border-radius: 0 8px 8px 0; color: #9fb3a6; }
.article table { width: 100%; border-collapse: collapse; margin: 4px 0 22px; font-size: 14.5px; display: block; overflow-x: auto; }
.article th { background: #142a1d; color: #e8f0ea; text-align: left; padding: 11px 14px; border: 1px solid #25382d; font-family: 'Baloo 2'; font-weight: 700; white-space: nowrap; }
.article td { padding: 11px 14px; border: 1px solid #1e2c24; color: #b6c6bc; }
.article tbody tr:nth-child(even) td { background: #0e1813; }
.article hr { border: none; border-top: 1px solid #1e2c24; margin: 30px 0; }

/* Hover effects ported from the prototype's style-hover bindings */
.play-btn:hover { filter: brightness(1.08); }
.tlink:hover { color: #fff; }
.card-lift { transition: transform .15s ease, border-color .15s ease; }
.rarity-card:hover { transform: translateY(-3px); }
.res-card:hover { border-color: var(--accent, #44e07a); transform: translateY(-2px); }
.dex-card:hover { transform: translateY(-3px); }
.result-row:hover { background: #15211a; }
