/* Birdman website — the game's identity: sky blue, Titan One titles, Nunito text, sunny yellow and jelly pink,
   moulded-plastic buttons with an ink outline. No script. */
@font-face { font-family: "Titan One"; src: url("/fonts/TitanOne.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; font-weight: 800; src: url("/fonts/Nunito-ExtraBold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; font-weight: 900; src: url("/fonts/Nunito-Black.woff2") format("woff2"); font-display: swap; }

:root {
  --sky: #2f7cf0;          /* = the top colour of the hero image, html, body and theme-color */
  --sky-2: #4f9dff;
  --deep: #123a9e;
  --ink: #0d1b4d;
  --yel: #ffc93c;
  --yel-d: #e08a00;
  --pink: #ff4d8d;
  --text: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--sky); color: var(--text); }
body { font: 800 18px/1.55 "Nunito", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--yel); }
img { display: block; max-width: 100%; }
h1, h2 { font-family: "Titan One", system-ui, sans-serif; font-weight: 400; letter-spacing: .5px; margin: 0; }

/* ------------------------------------------------------------------ the immersive first screen */
.hero { position: relative; height: 100lvh; min-height: 520px; }
.hero .art {
  position: absolute; inset: 0; height: 100lvh;
  background: var(--sky) url("/img/hero.jpg") center top / cover no-repeat;
  /* the image melts into the page colour at the bottom: no edge, no band */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0,0,0,.55) 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0,0,0,.55) 80%, transparent 100%);
}
.hero-ui {
  position: absolute; left: 0; right: 0; top: 0; height: 100svh;  /* the buttons sit on the SMALL viewport: always visible */
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) 16px max(22px, calc(env(safe-area-inset-bottom) + 14px));
}
.logo { width: min(86vw, 520px); margin: 2vh 0 0; filter: drop-shadow(0 6px 0 rgba(13, 27, 77, .25)); }
.logo img { width: 100%; height: auto; }

/* store buttons: side by side, moulded plastic */
.stores { display: flex; gap: 12px; justify-content: center; width: 100%; }
.store {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff;
  background: linear-gradient(#1c2b66, #0d1b4d); border: 3px solid #050d2b; border-radius: 16px;
  padding: 9px 16px 10px 13px; box-shadow: 0 6px 0 #050d2b, 0 10px 24px rgba(5, 13, 43, .35);
  transition: transform .12s, box-shadow .12s; min-width: 0; flex: 0 1 auto;
}
.store:active { transform: translateY(4px); box-shadow: 0 2px 0 #050d2b; }
.store .si svg { width: 28px; height: 28px; display: block; }
.store .st { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.store small { font: 800 11px "Nunito", sans-serif; opacity: .85; }
.store b { font: 400 20px "Titan One", sans-serif; letter-spacing: .3px; }
.store.big { padding: 11px 18px 12px 14px; }
.store.soon { opacity: .92; }
@media (max-width: 360px) {
  .stores { gap: 8px; }
  .store, .store.big { padding: 8px 10px 9px 9px; gap: 7px; }
  .store .si svg { width: 22px; height: 22px; }
  .store b { font-size: 16px; }
  .store small { font-size: 9.5px; }
}

/* ------------------------------------------------------------------ the rest, well below */
.below { position: relative; max-width: 1080px; margin: 0 auto; padding: 18vh 20px 40px; }
.slogan { font: 400 clamp(34px, 7vw, 64px)/1.08 "Titan One", sans-serif; text-align: center; margin: 0 0 14px; text-shadow: 0 5px 0 var(--ink); }
.slogan b { color: var(--yel); font-weight: 400; }
.lead { text-align: center; font-size: 20px; max-width: 640px; margin: 0 auto 70px; opacity: .95; }
.feat { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; margin: 0 0 80px; }
.feat.rev { grid-template-columns: 1.2fr 1fr; }
.feat.rev .phone { order: 2; }
.feat h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; color: var(--yel); text-shadow: 0 4px 0 var(--ink); margin-bottom: 10px; }
.feat p { font-size: 19px; margin: 0; }
.phone { justify-self: center; width: min(300px, 78vw); border-radius: 38px; padding: 9px; background: #0d1b4d; box-shadow: 0 18px 50px rgba(5, 13, 43, .45), 0 0 0 3px rgba(255,255,255,.2) inset; transform: rotate(-2deg); }
.feat.rev .phone { transform: rotate(2deg); }
.phone img { border-radius: 30px; width: 100%; height: auto; }
.cta { text-align: center; padding: 30px 0 60px; }
.cta h2 { font-size: clamp(40px, 7vw, 70px); text-shadow: 0 6px 0 var(--ink); }
.cta p { margin: 6px 0 22px; font-size: 20px; }
@media (max-width: 760px) {
  .feat, .feat.rev { grid-template-columns: 1fr; gap: 22px; text-align: center; margin-bottom: 64px; }
  .feat.rev .phone { order: 0; }
}

/* ------------------------------------------------------------------ computer: logo + buttons on one side, the image on the other */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero .art {
    left: 38%; background-image: url("/img/hero-wide.jpg"); background-position: center top;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%), linear-gradient(to bottom, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 22%), linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-composite: intersect;
  }
  .hero-ui { right: auto; width: 44%; justify-content: center; gap: 7vh; align-items: center; padding-left: 4vw; }
  .logo { width: min(36vw, 560px); margin: 0; }
}

/* ------------------------------------------------------------------ other pages */
.page .bar { position: sticky; top: 0; z-index: 5; background: rgba(18, 58, 158, .92); backdrop-filter: blur(8px); padding: max(10px, env(safe-area-inset-top)) 16px 10px; }
.bar .back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font: 400 26px "Titan One"; }
.bar .back img { height: 34px; width: auto; }
.doc { max-width: 760px; margin: 0 auto; padding: 34px 20px 60px; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); text-shadow: 0 4px 0 var(--ink); margin-bottom: 14px; }
.doc h2 { font-size: 26px; color: var(--yel); margin: 28px 0 6px; text-shadow: 0 3px 0 var(--ink); }
.doc p, .doc li { font-size: 18px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .upd { opacity: .8; font-size: 15px; }
.doc.center { text-align: center; }
.doc .biglogo { width: min(80vw, 420px); margin: 10px auto 24px; }
.doc .code { color: var(--yel); font-family: "Titan One"; letter-spacing: 2px; }
.doc .stores { margin: 26px 0; }
.doc .open { display: inline-block; margin-top: 8px; }

.foot { text-align: center; padding: 30px 16px max(30px, env(safe-area-inset-bottom)); font-size: 15px; background: var(--deep); }
.foot .links a { color: #fff; margin: 0 10px; text-decoration: none; opacity: .9; }
.foot p { margin: 6px 0; }
