/* Tonytopia — v2 design system
   Palette sampled from the key art: deep night-sky blues, dirt/earth mid-tones,
   and Tony Lock gold as the brand accent. System font stack only. */

:root {
  --bg: #0b0f16;
  --bg-alt: #0e141f;
  --panel: #141d2c;
  --panel-2: #182335;
  --line: #243248;
  --line-soft: #1c293d;
  --text: #eef2f7;
  --muted: #9fb0c3;
  --muted-2: #7e92a9;
  --gold: #f2b33d;
  --gold-dark: #c77f14;
  --gold-text: #241703;
  --green: #57c84c;
  --green-dark: #37992f;
  --green-text: #0c240a;
  --discord: #5865f2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lift: 0 18px 40px rgba(0, 0, 0, .45);
  --container: 1120px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 780px; }

/* ---------- Typography ---------- */

h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 750; margin-bottom: 14px; }
h3 { font-size: 1.12rem; font-weight: 700; }

.eyebrow {
  margin: 0 0 12px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 0 0 36px; }

a { color: var(--gold); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 15, 22, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.01em;
  flex: none;
  padding-block: 2px;
}
.brand img { border-radius: 9px; display: block; flex: none; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover { color: var(--text); border-bottom-color: var(--gold); }
.header-cta { margin-left: 4px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn-big { padding: 15px 28px; font-size: 1.08rem; border-radius: 14px; }
.btn-small { padding: 9px 18px; font-size: .95rem; }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-dark)); color: var(--gold-text); }
.btn-green { background: linear-gradient(180deg, var(--green), var(--green-dark)); color: var(--green-text); }
.btn-discord { background: var(--discord); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(242, 179, 61, .13), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgba(74, 163, 232, .10), transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 1.07fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .tagline {
  color: var(--muted);
  font-size: 1.18rem;
  margin: 20px 0 30px;
  max-width: 30em;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { color: var(--muted-2); font-size: .93rem; margin: 18px 0 0; }
.hero-media { margin: 0; }
.hero-media img {
  display: block;
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 56px 0 0;
}
.stat { background: var(--panel); padding: 20px 16px; text-align: center; }
.stat dt { font-size: 1.55rem; font-weight: 800; color: var(--gold); letter-spacing: -.01em; }
.stat dd { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Sections & cards ---------- */

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cards-small { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .99rem; }
.card-icon { font-size: 1.9rem; line-height: 1; margin-bottom: 14px; }
.card.platform { display: flex; flex-direction: column; }
.card.platform p { flex: 1; margin-bottom: 20px; }
.card.mini { padding: 20px; }
.card.mini .card-icon { font-size: 1.5rem; margin-bottom: 10px; }
.card.mini p { font-size: .93rem; }

/* ---------- Item showcase ---------- */

.rarity-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 28px;
}
.chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid;
  background: rgba(255, 255, 255, .03);
}
.chip-common    { color: #aeb9c6; border-color: #5a6a7d; }
.chip-uncommon  { color: #58c472; border-color: #2f7a44; }
.chip-rare      { color: #4aa3e8; border-color: #2c5f8f; }
.chip-epic      { color: #b18cff; border-color: #6d4bb0; }
.chip-legendary { color: #f0a13c; border-color: #9c6414; }
.chip-mythic    { color: #ff718d; border-color: #a52f49; }

.showcase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.item-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 14px 16px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.item-card img {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
  border-radius: 12px;
  margin-bottom: 12px;
}
.item-card h3 { font-size: .95rem; margin-bottom: 9px; min-height: 2.3em; display: flex; align-items: flex-start; justify-content: center; }
.showcase-note { color: var(--muted-2); text-align: center; margin: 26px 0 0; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.steps li {
  display: flex;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  color: var(--gold-text);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: .99rem; }

.center { text-align: center; }

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

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: 1.05rem; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  text-align: left;
  padding: 20px 6px;
  cursor: pointer;
}
.faq-q::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform .18s ease;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a { padding: 0 6px 22px; }
.faq-a p { color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-alt);
  padding: 36px 0 42px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.brand-footer { font-size: 1.1rem; padding-block: 6px; }
.footer-links { display: flex; gap: 12px; margin-left: auto; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 6px; }
.footer-links a:hover { color: var(--text); }
.copyright { width: 100%; color: var(--muted-2); font-size: .9rem; margin: 14px 0 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .showcase { grid-template-columns: repeat(4, 1fr); }
  .cards-small { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards-small { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 15, 22, .97);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px;
    margin-left: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 2px; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: block; }
  .header-cta { margin-left: 0; }
}

@media (max-width: 640px) {
  /* Phones: brand + hamburger only — the Play CTA lives in the menu and the
     hero, and squeezing all three in the bar wrapped/clipped the header. */
  .header-cta { display: none; }
  .header-inner { gap: 16px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .cards, .cards-small { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-buttons .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { margin-left: 0; }
}
