/* Bullseye Gates website. Bright, cozy palette from the game: sunny sky, meadow green, caramel wood, painted
   red, cream, teal and gold. */
@font-face {
  font-family: "Lilita One";
  src: url("../fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --sky-top: #56b6ec;
  --sky-low: #a4dcf5;
  --grass: #6ebe48;
  --grass-deep: #40963a;
  --cream: #fff8ec;
  --paper: #ffffff;
  --ink: #3a2a1e;
  --muted: #6f5a48;
  --line: #f0dfc4;
  --red: #e2483d;
  --red-deep: #b8322a;
  --gold: #f6b81e;
  --gold-deep: #c98a0c;
  --teal: #1f8a83;
  --navy: #26305e;
  --wood: #c07a3a;
  --radius: 18px;
  --shadow: 0 6px 0 rgba(58, 42, 30, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* height: auto so the width/height attributes only reserve space; the CSS aspect-ratio sets the shape. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3, .brand, .btn, .pill {
  font-family: "Lilita One", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.1; margin: 0 0 12px; color: var(--navy); }
h3 { font-size: 1.3rem; margin: 0 0 4px; color: var(--navy); }
/* The whole site is capped at Tailwind's max-w-7xl (80rem), like the hero. */
.wrap { max-width: 80rem; margin: 0 auto; padding: 0 16px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 248, 236, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-size: 1.25rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { margin-left: auto; display: flex; gap: 18px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); }
.brand { white-space: nowrap; }
@media (max-width: 560px) {
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .site-nav { gap: 12px; font-size: 0.92rem; }
  .site-nav .hide-sm { display: none; }
}

/* Buttons and pills */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 1.15rem; text-decoration: none; color: #fff;
  background: var(--red); box-shadow: 0 5px 0 var(--red-deep);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--red-deep); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 var(--gold-deep); }
.pill {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--paper); color: var(--navy); border: 2px solid var(--navy); font-size: 1rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Hero: the seafang key art (logo painted in) at its own 2:1 shape, the tagline and buttons over the fence and
   grass at the bottom left. On phones the copy sits under the art on the meadow green. */
/* Capped at Tailwind's max-w-7xl (80rem) and centred; wider screens show the page background either side. */
.hero { position: relative; padding: 0; max-width: 80rem; margin: 0 auto; background: var(--grass-deep); }
.hero-art {
  aspect-ratio: 2 / 1; max-height: calc(100vh - 60px); width: 100%;
  background: #8fd0f0 url("../img/hero-seafang-1600.webp") left center / cover no-repeat;
}
.hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(16px, 4vw, 48px); }
.hero p.tagline {
  font-size: 1.25rem; color: var(--navy); font-weight: 600; margin: 0 0 16px;
  background: rgba(255, 255, 255, 0.9); display: inline-block; padding: 8px 16px; border-radius: 14px;
  box-shadow: var(--shadow);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 820px) {
  .hero-art { background-image: url("../img/hero-seafang-800.webp"); max-height: none; }
  .hero-copy {
    position: static; text-align: center; padding: 20px 0 28px;
    background: linear-gradient(180deg, var(--grass) 0%, var(--grass-deep) 100%);
  }
  .hero p.tagline { font-size: 1.1rem; }
  .hero-actions { justify-content: center; }
}

.phone {
  width: min(300px, 80vw); margin: 0 auto; border-radius: 34px; padding: 10px;
  background: var(--navy); box-shadow: 0 14px 0 rgba(38, 48, 94, 0.25);
}
.phone img, .phone video { border-radius: 26px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #222; }

/* How to play: the steps beside the trailer. */
.how { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.how .steps { grid-template-columns: 1fr; gap: 14px; }
.how .step { display: flex; gap: 16px; align-items: center; text-align: left; padding: 16px 20px; }
.how .step .num { margin: 0; flex: 0 0 auto; }
.how .step h3, .how .step p { margin: 0; }
@media (max-width: 820px) {
  .how { grid-template-columns: 1fr; gap: 28px; }
}

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.center .lead { margin: 0 auto 28px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.step {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); text-align: center;
}
.step .num {
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--teal);
  font-family: "Lilita One", sans-serif; font-size: 1.4rem;
}
.step:nth-child(2) .num { background: var(--gold); color: var(--ink); }
.step:nth-child(3) .num { background: var(--red); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.world {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--line); box-shadow: var(--shadow);
}
.world img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.world div { padding: 12px 14px 16px; }
.world .chapter { font-size: 0.8rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; }
.world p { margin: 4px 0 0; font-size: 0.95rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .worlds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .worlds { gap: 10px; } .world p { font-size: 0.88rem; } }

.shots {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 20px; margin-top: 24px;
}
.shots img {
  flex: 0 0 auto; width: clamp(200px, 22vw, 260px); aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 20px; scroll-snap-align: center; border: 4px solid var(--paper); box-shadow: var(--shadow);
}

/* 14 bows: two even rows of 7 on desktop, 4 per row on tablets and 2 on phones, a short last row centred. */
.bows { --cols: 7; --gap: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin-top: 24px; }
.bow {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  background: linear-gradient(180deg, #fff 0%, #fdf1dc 100%); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 14px 10px; text-align: center;
}
@media (max-width: 1000px) { .bows { --cols: 4; } }
@media (max-width: 560px) { .bows { --cols: 2; --gap: 10px; } }
.bow img { height: 90px; width: 100%; object-fit: contain; }
.bow span { display: block; margin-top: 6px; font-weight: 700; color: var(--navy); }
.bow small { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.features li {
  background: var(--paper); border-left: 6px solid var(--gold); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow);
}
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }

.cta {
  background: linear-gradient(135deg, var(--red) 0%, #ef7a3a 100%); color: #fff; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #fff3e3; }

/* Text pages (privacy, terms, support, press) */
.page-hero { background: linear-gradient(180deg, var(--sky-top), var(--sky-low)); padding: 36px 0 28px; }
.page-hero h1 { margin: 0; color: var(--navy); font-size: clamp(2rem, 6vw, 3rem); }
.page-hero p { margin: 6px 0 0; color: var(--navy); }
/* Text pages share the 80rem column (left-aligned with the title above) but keep a readable line length. */
.doc { max-width: 80rem; padding: 32px 16px 64px; margin: 0 auto; }
.doc > * { max-width: 760px; }
.doc h2 { font-size: 1.5rem; margin: 32px 0 8px; color: var(--red); }
.doc h3 { margin: 20px 0 4px; color: var(--teal); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; margin: 14px 0;
}
details.faq {
  background: var(--paper); border: 2px solid var(--line); border-radius: 14px;
  padding: 14px 18px; margin: 12px 0;
}
details.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details.faq[open] summary { margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--navy); color: #dfe4ff; padding: 32px 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .copy { margin-left: auto; color: #aeb6e6; }
@media (max-width: 560px) { .site-footer .copy { margin-left: 0; width: 100%; } }
