/* Evolve Army Frenzy website. One stylesheet, no build step. */
:root {
  --bg: #1a0f33;
  --bg-alt: #23154a;
  --card: #2e1d5e;
  --card-edge: #48308a;
  --text: #f6f1ff;
  --muted: #c4b6ea;
  --yellow: #ffd23f;
  --play: #00b06f;
  --play-dark: #008a57;
  --radius: 18px;
  --head: "Lilita One", "Arial Black", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--yellow); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: 0.5px; line-height: 1.1; margin: 0; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head); font-size: 22px; letter-spacing: 0.5px;
  text-decoration: none; color: #fff;
  padding: 14px 28px; border-radius: 14px; border: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s;
}
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn-play {
  background: var(--play);
  box-shadow: 0 6px 0 var(--play-dark), 0 10px 24px rgba(0, 176, 111, 0.35);
}
.btn-play:hover { background: #00c47c; transform: translateY(-2px); box-shadow: 0 8px 0 var(--play-dark), 0 14px 30px rgba(0, 176, 111, 0.45); }
.btn-play:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--play-dark); }
.btn-huge { font-size: clamp(26px, 5vw, 38px); padding: 20px 44px; border-radius: 20px; animation: pulse 2.4s ease-in-out infinite; }
.btn-small { font-size: 17px; padding: 9px 18px; border-radius: 11px; box-shadow: 0 4px 0 var(--play-dark); }
@keyframes pulse { 0%, 100% { scale: 1; } 50% { scale: 1.04; } }
@media (prefers-reduced-motion: reduce) { .btn-huge { animation: none; } html { scroll-behavior: auto; } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(26, 15, 51, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--head); font-size: 21px; }
.brand img { border-radius: 9px; }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-weight: 800; font-size: 16px; }
.topnav a:hover { color: #fff; }
@media (max-width: 760px) {
  .topnav { display: none; }
  .topbar .btn-small { margin-left: auto; }
  .brand span { font-size: 18px; }
}
@media (max-width: 400px) { .brand span { font-size: 16px; } .topbar { gap: 10px; } }
@media (max-width: 340px) { .brand span { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 820px);
  display: grid; place-items: center; text-align: center;
  padding: 60px 16px 70px;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(26, 15, 51, 0.35) 0%, rgba(26, 15, 51, 0.7) 70%),
    linear-gradient(to bottom, rgba(26, 15, 51, 0.1) 60%, var(--bg) 100%);
}
.hero-inner { position: relative; max-width: 900px; }
.logo {
  font-size: clamp(52px, 11vw, 120px);
  color: var(--yellow);
  text-transform: uppercase;
  -webkit-text-stroke: 3px #1a0f33;
  paint-order: stroke fill;
  text-shadow: 0 6px 0 #1a0f33, 0 12px 30px rgba(0, 0, 0, 0.5);
  line-height: 0.95;
}
.tagline { font-size: clamp(19px, 2.6vw, 26px); margin: 18px 0 30px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.tagline strong { color: var(--yellow); font-weight: 900; }
.hero-note { margin: 22px 0 0; color: var(--text); font-weight: 800; font-size: 16px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); opacity: 0.95; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px); max-width: 1200px; margin: 0 auto; }
.section-alt { max-width: none; background: var(--bg-alt); }
.section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(36px, 6vw, 58px); text-align: center; color: var(--yellow); }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 10px auto 40px; font-size: 19px; }
.cta-row { text-align: center; margin-top: 44px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.step { background: var(--card); border: 2px solid var(--card-edge); border-radius: var(--radius); overflow: hidden; }
.step-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.step-media video { width: 100%; height: 100%; object-fit: cover; }
.step-num {
  position: absolute; top: 12px; left: 12px;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--yellow); color: #1a0f33; border-radius: 50%;
  font-family: var(--head); font-size: 26px; box-shadow: 0 4px 0 #b8920f;
}
.step h3 { font-size: 30px; padding: 18px 22px 4px; }
.step p { margin: 0; padding: 0 22px 22px; color: var(--muted); }
.step p strong { color: var(--text); }

/* armies */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-size: 22px; color: var(--text);
  background: var(--card); border: 3px solid var(--card-edge); border-radius: 16px;
  padding: 6px 18px 6px 8px; cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.tab img { width: 48px; height: 48px; object-fit: contain; }
.tab:hover { transform: translateY(-2px); }
.tab[aria-selected="true"] { border-color: var(--army); background: color-mix(in srgb, var(--army) 22%, var(--card)); }
.army-head { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin-bottom: 26px; text-align: center; }
.army-intro { margin: 0; font-size: 19px; }
.army-bonus { margin: 0; font-weight: 800; color: var(--text); background: var(--card); border: 2px solid var(--army); border-radius: 999px; padding: 4px 16px 4px 6px; }
.army-bonus span { background: var(--army); color: #1a0f33; border-radius: 999px; padding: 1px 10px; margin-right: 6px; font-weight: 900; }
.units { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
@media (max-width: 480px) { .units { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.unit {
  background: var(--card); border: 2px solid var(--card-edge); border-radius: var(--radius);
  padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.15s, border-color 0.15s;
}
.unit:hover { transform: translateY(-4px); border-color: var(--army); }
.unit-pic {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin-bottom: 6px;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--army) 30%, transparent) 0%, transparent 65%);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4));
}
.unit-pic-empty { display: grid; place-items: center; font-family: var(--head); font-size: 72px; color: var(--card-edge); filter: none; }
.unit-tier { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.6px; color: var(--army); }
.unit-name { font-family: var(--head); font-weight: 400; font-size: 22px; line-height: 1.15; }
.unit-line { font-size: 15px; color: var(--muted); line-height: 1.4; }
.unit-apex { border-color: var(--yellow); background: linear-gradient(160deg, #4a3480, var(--card)); }
.unit-apex .unit-tier { color: var(--yellow); }
@media (max-width: 480px) { .unit-name { font-size: 18px; } .unit-line { font-size: 14px; } }

/* lore */
.lore-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.lore-card { flex: 1 1 280px; max-width: 380px; background: var(--card); border: 2px solid var(--card-edge); border-radius: var(--radius); padding: 22px; }
.lore-card h3 { font-size: 26px; color: var(--yellow); margin-bottom: 8px; }
.lore-card p { margin: 0; color: var(--muted); font-size: 16px; }
.lore-apex { border-color: var(--yellow); }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 34px 0 28px; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .quote { grid-template-columns: 80px 1fr; padding: 14px; } .quote img { width: 80px; height: 80px; } .quote blockquote { font-size: 16px; } }
.quote { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 6px 18px; align-items: center; background: var(--bg-alt); border-radius: var(--radius); padding: 18px; }
.quote img { grid-row: span 2; width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4)); }
.quote blockquote { margin: 0; font-size: 17px; font-style: italic; }
.quote figcaption { color: var(--yellow); font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.link-arrow { font-weight: 900; text-decoration: none; font-size: 19px; }
.link-arrow:hover { text-decoration: underline; }

/* follow */
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.social {
  display: grid; grid-template-columns: 44px auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  min-width: 250px; padding: 16px 22px; border-radius: var(--radius); text-decoration: none; color: #fff;
  background: var(--card); border: 2px solid var(--card-edge); transition: transform 0.15s, border-color 0.15s;
}
.social svg { grid-row: span 2; width: 44px; height: 44px; fill: currentColor; }
.social span { font-family: var(--head); font-size: 24px; line-height: 1; }
.social small { color: var(--muted); font-size: 15px; }
.social:hover { transform: translateY(-3px); }
.social.yt:hover { border-color: #ff3b3b; }
.social.tt:hover { border-color: #25f4ee; }
.social.ig:hover { border-color: #e1306c; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 2px solid var(--card-edge); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 900; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--head); color: var(--yellow); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* final call to action */
.final { position: relative; overflow: hidden; text-align: center; padding: clamp(80px, 12vw, 150px) 16px; }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 80%; }
.final-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg) 0%, rgba(26, 15, 51, 0.55) 35%, rgba(26, 15, 51, 0.75) 100%); }
.final-inner { position: relative; }
.final h2 { font-size: clamp(38px, 7vw, 72px); color: #fff; margin-bottom: 30px; -webkit-text-stroke: 2px #1a0f33; paint-order: stroke fill; text-shadow: 0 5px 0 #1a0f33, 0 10px 30px rgba(0, 0, 0, 0.6); }

/* footer */
.footer { text-align: center; padding: 30px 16px 40px; color: var(--muted); font-size: 16px; }
.footer a { color: var(--text); }
.footer .small { font-size: 13px; opacity: 0.75; max-width: 640px; margin: 8px auto 0; }

/* privacy page */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 16px 70px; }
.doc h1 { font-size: clamp(38px, 6vw, 54px); color: var(--yellow); margin-bottom: 6px; }
.doc h2 { font-size: 26px; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc .updated { margin-top: 0; font-size: 15px; }
.doc .back { margin-top: 44px; text-align: center; }
