/* Branchy site styles */
:root {
  /* Palette sampled from the Branchy logo */
  --ground: #0e0d0a;
  --raise: #1a1813;
  --sunk: #26231c;
  --ink: #f7f3e9;
  --ink-2: #d6d0c1;
  --muted: #9a9384;
  --on-accent: #0e0d0a;
  --accent: #ea6b45;
  --accent-tint: #f08a68;
  --gold: #f1c158;
  --live: #64c9c2;
  --violet: #9979ef;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 20px;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--ground); padding: 8px 12px; }

/* ---------- Placeholders (swap for real art later) ---------- */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.7);
  font: 700 12px/1.2 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- Store badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 12px;
  background: #000;
  border: 1px solid #a6a6a6;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.badge:active { transform: scale(0.97); }
.badge svg { flex: none; }
.badge small { display: block; font: 500 11px/1 -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.02em; margin-bottom: 3px; }
.badge strong { display: block; font: 600 22px/1 -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.01em; }
.badge.play small { text-transform: uppercase; font-size: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 14px;
}
.site-footer .inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Social icons ---------- */
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--raise);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.socials a:hover { text-decoration: none; }
.socials a:active { transform: scale(0.94); }
.socials a[data-social="discord"]:hover { background: var(--violet); color: var(--on-accent); }
.socials a[data-social="instagram"]:hover { background: var(--accent); color: var(--on-accent); }
.socials a[data-social="tiktok"]:hover { background: var(--live); color: var(--on-accent); }
.socials a[data-social="x"]:hover { background: var(--gold); color: var(--on-accent); }
.socials svg { width: 20px; height: 20px; }

/* ---------- Legal pages ---------- */
.legal-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: rgba(14, 13, 10, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.legal-top .logo-mini { display: block; }
.legal-top .logo-mini img { height: 36px; width: auto; }
.legal-top .back { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; }
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}
.legal .eyebrow { color: var(--accent-tint); font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 8px; }
.legal h1 { font: 800 clamp(34px, 7vw, 48px)/1.05 var(--font-display); margin: 0 0 8px; letter-spacing: -0.01em; }
.legal .effective { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font: 700 22px/1.25 var(--font-display); margin: 40px 0 10px; }
.legal p { color: var(--ink-2); margin: 0 0 14px; }
.legal a { color: var(--violet); }
