/* Smash Bots site: landing, privacy, terms, support. Same candy look as the game. */
:root {
  --sun: #ffc21a;
  --sun-hi: #ffe45c;
  --ink: #1f1a2e;
  --ink-soft: #4a4360;
  --pink: #ff4fa8;
  --blue: #2f7bff;
  --sky: #28c9ff;
  --green: #20c465;
  --purple: #7b5cff;
  --cream: #fff8e6;
  --card: #ffffff;
  --radius: 22px;
  --pop: 0 6px 0 var(--ink);
  --pop-sm: 0 4px 0 var(--ink);
  --head: "Titan One", system-ui, sans-serif;
  --body: "Fredoka", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: 0.01em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* language: both texts live in the page, the other one is hidden */
html[data-lang="pt"] [lang="en"]:not(html),
html[data-lang="en"] [lang="pt"]:not(html) { display: none !important; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--sun) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.nav .logo img { height: 46px; width: auto; }
.nav .links { display: flex; gap: 22px; margin-left: auto; font-weight: 600; }
.nav .links a { text-decoration: none; }
.nav .links a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.lang {
  display: inline-flex; border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--card);
}
.lang button {
  border: 0; background: none; font: 600 14px var(--body); padding: 4px 10px; cursor: pointer; color: var(--ink);
}
html[data-lang="pt"] .lang [data-set="pt"],
html[data-lang="en"] .lang [data-set="en"] { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 400 22px var(--head); letter-spacing: 0.02em; text-decoration: none; color: #fff;
  padding: 14px 28px; border-radius: 18px; border: 3px solid var(--ink);
  background: linear-gradient(180deg, #ff8cc4, var(--pink)); box-shadow: var(--pop), inset 0 4px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 2px 0 rgba(31, 26, 46, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink), inset 0 4px 0 rgba(255, 255, 255, 0.35); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink), inset 0 4px 0 rgba(255, 255, 255, 0.35); }
.btn img { width: 28px; height: 28px; }
.btn.small { font-size: 17px; padding: 8px 16px; border-radius: 14px; box-shadow: var(--pop-sm), inset 0 3px 0 rgba(255, 255, 255, 0.35); }
.btn.ghost { background: var(--card); color: var(--ink); text-shadow: none; }

/* Apple's own badge, untouched; the "coming soon" note sits under it */
.store { position: relative; display: inline-flex; text-decoration: none; }
/* same height as .btn (22px text + 2 × 14px padding + 2 × 3px border), so both sit on one line */
.store img { height: 60px; width: auto; }
/* under the badge without taking room, so the badge lines up with the play button */
.store small { position: absolute; top: calc(100% + 6px); left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; opacity: 0.75; line-height: 1; }

/* ------------------------------------------------------------------ footer */
footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); padding: 40px 0; font-size: 15px; border-top: 3px solid var(--ink); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer img { height: 38px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
footer a { color: #fff; text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ doc pages (privacy, terms, support) */
.doc-head { background: var(--sun); border-bottom: 3px solid var(--ink); padding: 56px 0 44px; }
.doc-head h1 { font-size: clamp(38px, 6vw, 60px); }
.doc-head p { margin: 10px 0 0; font-weight: 500; color: var(--ink-soft); }
.doc { padding: 48px 0 88px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 28px; margin: 40px 0 12px; }
.doc h3 { font-family: var(--body); font-weight: 600; font-size: 20px; margin: 24px 0 6px; }
.doc p, .doc li { color: #2e2842; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc a { color: #c2186f; font-weight: 600; }
.doc .card {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--pop); padding: 22px 24px; margin: 24px 0;
}
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 12px 0; }
.doc th, .doc td { text-align: left; border-bottom: 2px solid #eadfc2; padding: 10px 8px; vertical-align: top; }
.doc th { font-weight: 600; }
details.faq {
  background: var(--card); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--pop-sm); margin: 14px 0; padding: 0 20px;
}
details.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font: 400 24px var(--head); line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq > div { padding-bottom: 16px; }
details.faq > div p:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav .links { display: none; }
  .nav .lang { margin-left: auto; }
  footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
