/* 4 Birds Studios — shared styles. No external fonts or libraries: nothing is loaded from third parties. */
:root {
  --ink: #06191f;
  --ink-2: #0a252d;
  --ink-3: #0e2c34;
  --ink-4: #14404b;
  --line: rgba(255, 255, 255, 0.12);
  --coral: #ef4936;
  --coral-2: #f35e4e;
  --coral-deep: #cf3626;
  --coral-ink: #c4301d;
  --pink: #f48078;
  --blush: #f8c8c5;
  --mint: #7ee0b8;
  --paper: #fbf6f3;
  --paper-2: #f2e9e4;
  --on-dark: #eef5f6;
  --muted-dark: #a9c0c6;
  --on-light: #13262c;
  --muted-light: #50646a;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(6, 25, 31, 0.55);
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--on-dark);
  background: var(--ink);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 25, 31, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { width: 46px; height: 46px; }
.brand b { color: var(--coral-2); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 9px 15px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; color: var(--muted-dark); transition: background 0.15s, color 0.15s; }
.nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav a.nav-cta { background: var(--coral-deep); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: #b92d1b; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: #fff; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; margin: 0 auto; position: relative; transition: transform 0.2s, background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons & pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral-deep); color: #fff; box-shadow: 0 12px 24px -12px rgba(239, 73, 54, 0.9); }
.btn-primary:hover { background: #b92d1b; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blush); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: rgba(244, 128, 120, 0.16); color: var(--blush); border: 1px solid rgba(244, 128, 120, 0.4); }
.pill.live { background: rgba(126, 224, 184, 0.14); color: var(--mint); border-color: rgba(126, 224, 184, 0.4); }
.light .pill { background: #fde8e5; color: #9c2616; border-color: #f5b9b2; }
.pill.wt { background: transparent; color: #ffcf9e; border: 1px dashed rgba(255, 207, 158, 0.55); letter-spacing: 0.06em; }
.light .pill.wt { background: transparent; color: #7a4a14; border-color: #d9a766; }
.wt-note { margin: 14px 0 0; font-size: 0.9rem; font-style: italic; color: var(--muted-dark); }
.feature-card .wt-note { margin: 12px 0 0; }
.light .pill.live { background: #dcf6ea; color: #14633f; border-color: #a6e2c6; }

/* store buttons (generic styling — swap for official badges, see README) */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.35); line-height: 1.15; min-width: 190px; transition: transform 0.15s, border-color 0.15s; }
a.store-btn:hover { transform: translateY(-2px); border-color: #fff; }
.store-btn svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.store-btn small { display: block; font-size: 0.7rem; letter-spacing: 0.02em; opacity: 0.85; }
.store-btn b { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.store-btn.is-soon { background: transparent; border-style: dashed; color: var(--muted-dark); cursor: default; }
.light .store-btn.is-soon { color: var(--muted-light); border-color: rgba(19, 38, 44, 0.35); }
.badge-link img { height: 52px; width: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% 12%, rgba(239, 73, 54, 0.32), transparent 62%),
    radial-gradient(700px 480px at -5% 105%, rgba(244, 128, 120, 0.14), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  padding: 76px 0 92px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.eyebrow { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-2); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 4.8rem); letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 0.4em; }
.accent { background: linear-gradient(90deg, var(--coral-2), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.lead { font-size: 1.25rem; color: var(--muted-dark); max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.sun { position: absolute; width: min(430px, 82%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--coral-2), var(--coral) 55%, #b92d1b); opacity: 0.9; filter: blur(0.5px); animation: bob 9s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) scale(1.02); } }
.feature-card { position: relative; width: min(440px, 100%); background: rgba(10, 37, 45, 0.92); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75); transform: rotate(1.6deg); transition: transform 0.25s; }
.feature-card:hover { transform: rotate(0deg) translateY(-4px); }
.feature-card .banner { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; background: var(--ink-3); }
.feature-body { padding: 22px 24px 26px; }
.feature-body h3 { font-size: 1.7rem; margin: 10px 0 6px; }
.feature-body p { color: var(--muted-dark); margin-bottom: 0; }
.feature-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--coral-2); text-decoration: none; }
.feature-link:hover { text-decoration: underline; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.light { background: var(--paper); color: var(--on-light); }
.section.dark2 { background: var(--ink-2); }
.section h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.section-sub { color: var(--muted-light); font-size: 1.15rem; max-width: 58ch; margin-bottom: 2rem; }
.dark2 .section-sub { color: var(--muted-dark); }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.game-tile { display: flex; flex-direction: column; gap: 10px; background: #fff; color: var(--on-light); border-radius: var(--radius); padding: 22px; text-decoration: none; border: 1px solid #eadfd9; box-shadow: 0 10px 26px -18px rgba(6, 25, 31, 0.5); transition: transform 0.18s, box-shadow 0.18s; }
a.game-tile:hover { transform: translateY(-5px); box-shadow: 0 22px 36px -20px rgba(6, 25, 31, 0.6); }
.game-icon { width: 96px; height: 96px; border-radius: 22px; filter: drop-shadow(0 8px 12px rgba(6, 25, 31, 0.55)); object-fit: cover; }
.game-tile h3 { font-size: 1.3rem; margin: 6px 0 0; }
.game-tile .genre { color: var(--muted-light); font-size: 0.95rem; margin: 0; }
.game-tile .pill { align-self: flex-start; margin-top: auto; }
.game-tile.ghost { border: 2px dashed #d9c9c1; background: transparent; box-shadow: none; align-items: center; justify-content: center; text-align: center; color: var(--muted-light); min-height: 250px; }
.ghost svg { width: 46px; height: 46px; stroke: currentColor; fill: none; stroke-width: 1.6; opacity: 0.7; }

.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.about-logo { width: min(340px, 80%); margin: 0 auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45)); }
.about p { color: var(--muted-dark); font-size: 1.15rem; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.pillar { background: var(--ink-3); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; }
.pillar h3 { font-size: 1.05rem; margin-bottom: 4px; color: #fff; }
.pillar p { font-size: 0.97rem; margin: 0; }

.contact { background: linear-gradient(135deg, #b92d1b, var(--coral-deep) 55%); color: #fff; padding: 72px 0; }
.contact-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.contact h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0.3em; }
.contact p { margin: 0; max-width: 52ch; font-size: 1.12rem; }
.contact .mail { font-size: 1.1rem; margin-top: 12px; font-weight: 700; }

.policy-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.policy-card { background: #fff; border: 1px solid #eadfd9; border-radius: 18px; padding: 22px; text-decoration: none; color: var(--on-light); display: block; transition: transform 0.15s, border-color 0.15s; }
.policy-card:hover { transform: translateY(-3px); border-color: var(--coral-2); }
.policy-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.policy-card p { margin: 0; color: var(--muted-light); font-size: 0.98rem; }
.policy-card span { color: var(--coral-ink); font-weight: 700; display: inline-block; margin-top: 10px; }
.game-policies { margin-top: 28px; }
.game-policies h3 { font-size: 1.1rem; }
.game-policies ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.game-policies a { color: var(--coral-ink); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 56px 0 32px; color: var(--muted-dark); font-size: 0.97rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { width: 72px; height: 72px; flex: none; }
.foot-brand p { margin: 0; max-width: 32ch; }
.site-footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal-row { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; }
.legal-row .legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }
.legal-row .legal-links a { color: #fff; }
.fineprint { margin: 18px 0 0; font-size: 0.82rem; opacity: 0.8; max-width: 90ch; }

/* ---------- app page ---------- */
.app-hero { background: radial-gradient(800px 460px at 85% 0%, rgba(239, 73, 54, 0.3), transparent 60%), linear-gradient(180deg, var(--ink-2), var(--ink)); padding: 64px 0 76px; }
.app-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.app-title { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.app-title .game-icon { width: 120px; height: 120px; border-radius: 28px; flex: none; }
.app-title h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); margin: 8px 0 4px; }
.app-title p { margin: 0; color: var(--muted-dark); font-size: 1.15rem; }
.app-banner { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink-3); }
.app-desc { font-size: 1.15rem; max-width: 62ch; }
.app-desc p + p { margin-top: 1rem; }
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.shots img { height: 420px; width: auto; max-width: none; border-radius: 22px; scroll-snap-align: start; border: 1px solid #eadfd9; box-shadow: 0 14px 28px -18px rgba(6, 25, 31, 0.6); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { background: #fff; border: 1px solid #eadfd9; border-radius: 18px; padding: 22px; }
.feature h3 { font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted-light); }
.support-box { background: #fff; border: 1px solid #eadfd9; border-radius: 20px; padding: 26px; max-width: 720px; }
.support-box a { color: var(--coral-ink); font-weight: 700; }

/* ---------- legal documents ---------- */
.doc-wrap { background: var(--paper); color: var(--on-light); padding: 56px 0 90px; }
.doc { max-width: 800px; margin: 0 auto; padding: 0 20px; font-size: 1.04rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.2em; }
.doc .meta { color: var(--muted-light); margin-bottom: 1.6rem; }
.doc h2 { font-size: 1.45rem; margin: 2.2em 0 0.5em; padding-top: 0.4em; border-top: 1px solid #e6d9d2; }
.doc h3 { font-size: 1.12rem; margin: 1.6em 0 0.4em; }
.doc a { color: var(--coral-ink); }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }
.doc .toc { background: #fff; border: 1px solid #eadfd9; border-radius: 16px; padding: 18px 22px; margin: 1.4rem 0 0.6rem; }
.doc .toc strong { display: block; margin-bottom: 6px; }
.doc .toc ol { columns: 2; column-gap: 44px; margin: 0; }
.doc .toc li { break-inside: avoid; padding-right: 8px; }
.doc .callout { background: #fff; border: 1px solid #eadfd9; border-left: 6px solid var(--coral); border-radius: 12px; padding: 16px 20px; margin: 1.2rem 0; }
.doc .callout p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 0.97rem; background: #fff; border-radius: 12px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 13px; border: 1px solid #eadfd9; }
.doc th { background: #f6ebe6; }
.table-scroll { overflow-x: auto; }
.doc-back { display: inline-block; margin-bottom: 18px; font-weight: 700; color: var(--coral-ink); text-decoration: none; }
mark.fill-in { background: #fff04d; color: #000; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .about-grid, .app-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 52px 0 64px; }
  .hero-art { min-height: 320px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .about-logo { width: 220px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; display: none; }
  .nav-open .nav { display: flex; }
  .nav a { padding: 14px 16px; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .doc .toc ol { columns: 1; }
  .app-title { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .store-btn { min-width: 0; flex: 1 1 200px; }
  .shots img { height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
