/* Boredom Buster promo page. Palette is the app's own: dark felt (#12171b) from
   css/legal.css, the store-icon yellow, and the deck tile colors from Theme.swift. */
@font-face {
  font-family: "Manrope";
  src: url("/boredom-buster/fonts/manrope.woff") format("woff");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #12171b;
  --bg-2: #1a2126;
  --card: #20282e;
  --line: #2c363d;
  --fg: #f4efe4;
  --muted: #9aa4aa;
  --yellow: #ffc42e;
  --ink: #12171b;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Manrope", "Avenir Next", -apple-system, system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--yellow); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.sub { color: var(--muted); margin: 0.6rem 0 2rem; font-size: 1.1rem; }

main > section { max-width: var(--max); margin: 0 auto; padding: 72px 22px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(22px, calc((100vw - var(--max)) / 2 + 22px));
  background: rgba(18, 23, 27, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 10px; align-items: center; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.brand img { border-radius: 9px; }
.share {
  display: inline-flex; gap: 8px; align-items: center;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  color: var(--fg); background: var(--card);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
}
.share:hover { border-color: var(--yellow); }

/* Hero */
.hero {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
  padding-top: 56px !important;
}
.eyebrow {
  margin: 0 0 14px; color: var(--yellow);
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
h1 { font-size: clamp(3.2rem, 9vw, 6.2rem); font-weight: 800; letter-spacing: -0.04em; }
.hl {
  background: var(--yellow); color: var(--ink);
  padding: 0 0.18em; border-radius: 0.16em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.lede { font-size: 1.2rem; color: #d8d3c8; max-width: 34ch; margin: 22px 0 28px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 800; text-decoration: none; font-size: 1.05rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pill-solid { background: var(--yellow); color: var(--ink); }
.pill-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 196, 46, 0.25); }
.pill-ghost { color: var(--fg); border: 1.5px solid var(--line); }
.pill-ghost:hover { border-color: var(--fg); }
.quick-get { display: flex; flex-wrap: wrap; gap: 12px; }

.stat-row { display: flex; gap: 28px; list-style: none; padding: 0; margin: 34px 0 0; color: var(--muted); }
.stat-row strong { display: block; color: var(--fg); font-size: 1.6rem; font-weight: 800; }

.hero-phone { position: relative; justify-self: center; }
.phone {
  width: min(300px, 70vw);
  border-radius: 42px; padding: 10px;
  background: #050708;
  box-shadow: 0 0 0 2px #2c363d, 0 40px 80px rgba(0, 0, 0, 0.55);
  transform: rotate(3deg);
}
.phone video { border-radius: 33px; width: 100%; aspect-ratio: 432 / 936; object-fit: cover; background: var(--bg-2); }

.tile-float {
  position: absolute; padding: 12px 16px; border-radius: 16px;
  font-weight: 800; color: var(--ink); font-size: 0.95rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  animation: bob 6s ease-in-out infinite;
}
.t1 { background: #3FA9A0; left: -70px; top: 16%; transform: rotate(-8deg); }
.t2 { background: #59A75C; right: -48px; top: 48%; transform: rotate(7deg); animation-delay: -2s; }
.t3 { background: #B5D33D; left: -40px; bottom: 10%; transform: rotate(-4deg); animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .tile-float { animation: none; } }

/* Stores */
.get { text-align: center; }
.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.store {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 28px 24px 24px; border-radius: var(--radius);
  background: var(--card); border: 1.5px solid var(--line);
  color: var(--fg); text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.store:hover, .store:focus-visible { transform: translateY(-4px); border-color: var(--yellow); }
.store-logo { margin-bottom: 14px; }
.store-ios .store-logo { color: #f4efe4; }
.store-android .store-logo { color: #3ddc84; }
.store-tiktok .store-logo { color: #fe2c55; filter: drop-shadow(-2px -1px 0 #25f4ee); }
.store-kicker { color: var(--muted); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.store-name { font-size: 1.5rem; font-weight: 800; }
.store-note { color: var(--muted); flex: 1; margin: 6px 0 20px; }
.store-btn {
  display: block; text-align: center; padding: 13px 16px; border-radius: 999px;
  background: var(--fg); color: var(--ink); font-weight: 800;
}
.store.is-mine { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow), 0 20px 40px rgba(255, 196, 46, 0.12); }
.store.is-mine .store-btn { background: var(--yellow); }
.badge-mine {
  position: absolute; top: 16px; right: 16px;
  background: var(--yellow); color: var(--ink);
  font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}

.qr {
  display: flex; gap: 24px; align-items: center; text-align: left;
  max-width: 520px; margin: 36px auto 0; padding: 20px;
  border-radius: var(--radius); background: var(--bg-2); border: 1px dashed var(--line);
}
.qr img { border-radius: 12px; background: #fff; padding: 6px; flex: none; }
.qr h3 { font-size: 1.2rem; }
.qr p { color: var(--muted); margin: 6px 0 0; }
/* Phones don't need a QR code. promo.js also hides it on touch devices. */
@media (max-width: 760px) { .qr { display: none; } }
.is-handheld .qr { display: none; }

/* Screenshots */
.screens { text-align: center; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.screens h2, .screens .sub { padding: 0 22px; }
.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(22px, calc((100vw - var(--max)) / 2 + 22px)) 24px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.gallery:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.gallery figure { margin: 0; flex: 0 0 auto; width: clamp(200px, 22vw, 250px); scroll-snap-align: center; }
.gallery img { border-radius: 26px; border: 1.5px solid var(--line); aspect-ratio: 540 / 1200; object-fit: cover; }
.gallery figcaption { margin-top: 12px; font-weight: 700; color: var(--muted); font-size: 0.95rem; }

/* Games */
.tiles {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}
.tiles li {
  background: var(--tile); color: var(--ink);
  border-radius: 20px; padding: 18px 18px 16px; min-height: 150px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.15s ease;
}
.tiles li:hover { transform: rotate(-1.5deg) scale(1.02); }
.tiles b { font-size: 1.2rem; font-weight: 800; line-height: 1.15; }
.tiles span { font-size: 0.95rem; font-weight: 500; flex: 1; }
.tiles i { font-style: normal; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Features */
.feats { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feats li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feats b { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.feats span { color: var(--muted); }

/* Final CTA */
.final {
  text-align: center;
  background: var(--yellow); color: var(--ink);
  border-radius: 32px; margin: 24px auto 72px !important;
  max-width: calc(var(--max) - 44px) !important;
}
.final p { font-size: 1.3rem; font-weight: 700; margin: 10px 0 28px; }
.final-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.final .pill-solid { background: var(--ink); color: var(--fg); }
.final .pill-solid:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }

/* Footer */
.foot { text-align: center; color: var(--muted); padding: 0 22px 48px; font-size: 0.95rem; }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--fg); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 56px; }
  .lede { margin-left: auto; margin-right: auto; }
  .quick-get, .stat-row { justify-content: center; }
  .stores { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .t1 { left: -40px; } .t2 { right: -30px; } .t3 { left: -20px; }
}
@media (max-width: 520px) {
  main > section { padding: 56px 18px; }
  .feats { grid-template-columns: 1fr; }
  .final { margin: 12px 12px 56px !important; border-radius: 26px; }
  .tile-float { font-size: 0.8rem; padding: 9px 12px; }
  .stat-row { gap: 20px; }
}
