/* The website wears the game's own look: its daytime sky and sea, the sand of the
   launch beach, the HUD's navy panels with yellow numbers, and chunky outlined
   shapes with hard shadows. Flat colors only: no glows and no frosted glass. */
/* Fonts served from this site (SIL Open Font License, fonts/OFL.txt): nothing is
   loaded from other servers. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The few signs Nunito has no drawing for: star, arrows, triangles, delta, ≈, ∞, ✓ and ✕. */
@font-face {
  font-family: 'Rocketsmith Symbols';
  font-display: swap;
  src: url(fonts/symbols-math.woff2) format('woff2');
  unicode-range: U+0394, U+2190-2194, U+221E, U+2248, U+25B2, U+25B6, U+25B8, U+25BC, U+25C0, U+2605, U+2713;
}

@font-face {
  font-family: 'Rocketsmith Symbols';
  font-display: swap;
  src: url(fonts/symbols-2.woff2) format('woff2');
  unicode-range: U+2715;
}

:root {
  --ink: #12263a;
  --ink-soft: #3d566e;
  --sky-top: #4a9bd8;
  --sky: #8fcdf0;
  --haze: #dff2fb;
  --sea: #3fa9d8;
  --sea-deep: #1f6f9f;
  --sand: #f3e3b8;
  --sand-dark: #e3cd95;
  --paper: #fffaf0;
  --yellow: #ffc93c;
  --red: #e2543b;
  --hud: #12263a;
  --hud-muted: #9fb6cc;
  --font: 'Nunito', 'Rocketsmith Symbols', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --edge: 3px solid var(--ink);
  --drop: 0 5px 0 var(--ink);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- top bar, in the HUD's navy. On the landing page it slides in once the
   hero (which carries the big logo) has scrolled away; see the script there. ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid #0a1826;
}

.js .bar {
  position: fixed;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  visibility: hidden;
  transition:
    transform 0.25s ease,
    visibility 0s 0.25s;
}

.js .bar.show {
  transform: none;
  visibility: visible;
  transition: transform 0.25s ease;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1px;
}

.brand img {
  border-radius: 9px;
}

.brand b span {
  color: var(--yellow);
}

/* The logo at the top of the hero: the bar's brand, larger, outlined like the headline. */
.herotop {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  left: 0;
  right: 0;
}

.brand.big {
  display: inline-flex;
  gap: clamp(10px, 1.4vw, 16px);
  font-size: clamp(26px, 3.6vw, 44px);
  letter-spacing: 2px;
  text-shadow:
    2px 2px 0 var(--ink),
    -1px -1px 0 var(--ink),
    1px -1px 0 var(--ink),
    -1px 1px 0 var(--ink);
}

.brand.big img {
  width: clamp(44px, 5.4vw, 68px);
  height: auto;
  border: var(--edge);
  border-radius: 24%;
  box-shadow: 0 4px 0 var(--ink);
}

.navlink {
  padding: 5px 16px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- hero: the game itself, filmed without its HUD ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: clamp(430px, 43.75vw, 640px);
  overflow: hidden;
  background: var(--sea-deep);
  border-bottom: 4px solid var(--ink);
}

.herovid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .wrap {
  width: 100%;
  padding-bottom: clamp(18px, 3vw, 36px);
}

/* On the footage the label gets the same navy chip as the stores, in yellow. */
.hero .stores .soon {
  margin-right: 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--yellow);
  font-size: 12px;
}

/* Big words over the picture, the way the game shouts DIRECT HIT. */
h1 {
  margin: 0 0 clamp(14px, 2vw, 22px);
  font-size: clamp(36px, 6.2vw, 76px);
  line-height: 1;
  font-weight: 900;
  color: #fff;
  text-shadow:
    3px 3px 0 var(--ink),
    -1px -1px 0 var(--ink),
    1px -1px 0 var(--ink),
    -1px 1px 0 var(--ink),
    0 2px 0 var(--ink);
}

h1 span {
  color: var(--yellow);
}

.pitch {
  max-width: 860px;
  margin-left: max(0px, calc(50% - 560px));
  padding-top: 30px;
}

.lead {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 700;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ctas.center {
  justify-content: center;
}

/* Buttons are the game's FIRE button: flat color, thick outline, a hard edge below. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 28px;
  border: var(--edge);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  font-size: 19px;
  text-decoration: none;
  box-shadow: var(--drop);
  transition:
    transform 0.08s,
    box-shadow 0.08s;
}

.btn.primary {
  background: var(--yellow);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 0 var(--ink);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}

/* The stores: links where the game is out, then "Coming soon" and the rest. */
.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.stores .soon {
  margin-right: 4px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}

/* Google's official badge. The picture carries its own clear space (a quarter of the
   badge's height on every side), so the margins pull it back in line with the rest. */
.play-badge {
  display: inline-flex;
  margin: -12px -10px -12px -14px;
}

.play-badge img {
  display: block;
  height: 80px;
  width: auto;
}

/* Apple's official badge, at the same visible height as Google's (40px, Apple's minimum),
   with the clear space Apple asks for (a quarter of its height). */
.store-badge {
  display: inline-flex;
  margin: 0 2px;
}

.store-badge img {
  display: block;
  height: 40px;
  width: auto;
}

a.badge {
  background: var(--yellow);
  color: var(--ink);
  border: var(--edge);
  box-shadow: 0 3px 0 var(--ink);
}

.note {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ---------- the beach: everything below the hero ---------- */

main h2,
.final h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.8vw, 38px);
  font-weight: 900;
  line-height: 1.1;
}

.loops h2 {
  margin-bottom: 14px;
}

.final h2 {
  margin-bottom: 20px;
}

.film {
  padding-top: 68px;
}

.trailer {
  display: block;
  width: 100%;
  margin-top: 14px;
  aspect-ratio: 16 / 9;
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: #000;
  box-shadow: 0 8px 0 var(--ink);
  object-fit: cover;
}

.loops {
  padding-top: 56px;
}

/* A strip of clips that scrolls sideways and snaps; it runs to the screen edge. */
.reel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 16px;
  margin: 0 -20px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}

.reel figure {
  flex: 0 0 min(78vw, 520px);
  margin: 0;
  scroll-snap-align: center;
  background: var(--paper);
  border: var(--edge);
  border-radius: 18px;
  box-shadow: var(--drop);
  overflow: hidden;
}

.reel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink);
  border-bottom: var(--edge);
}

.reel figcaption {
  padding: 10px 14px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
}

.reel figcaption b {
  color: var(--ink);
  font-weight: 900;
}

.rows {
  display: grid;
  gap: 60px;
  padding-top: 64px;
}

.rowshead {
  margin-bottom: -24px !important;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.row.flip > a {
  order: 2;
}

/* Screenshots are pinned up like photos on the workshop wall: a little crooked. */
.row img,
.grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
  box-shadow: 8px 8px 0 rgba(18, 38, 58, 0.22);
  transition: transform 0.15s;
}

.row > a img {
  transform: rotate(-1.2deg);
}

.row.flip > a img {
  transform: rotate(1.2deg);
}

a.zoom {
  display: block;
  cursor: zoom-in;
}

.row > a.zoom:hover img,
.grid a.zoom:hover img {
  transform: rotate(0) scale(1.015);
}

.row h2 {
  font-size: clamp(26px, 3.2vw, 34px);
}

.row p {
  margin: 0;
  font-weight: 600;
  color: var(--ink-soft);
}

/* The label over each feature: a contract number, like the generals' cards in the game. */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 2px 12px 2px 2px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.stamp b {
  min-width: 24px;
  padding: 2px 8px;
  text-align: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
}

.gallery {
  padding-top: 68px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.grid img {
  border-width: 3px;
  border-radius: 14px;
  box-shadow: 5px 5px 0 rgba(18, 38, 58, 0.22);
}

.grid a:nth-child(odd) img {
  transform: rotate(-0.8deg);
}

.grid a:nth-child(even) img {
  transform: rotate(0.8deg);
}

#lightbox {
  padding: 0;
  border: 0;
  background: none;
  max-width: 96vw;
  max-height: 94vh;
  cursor: zoom-out;
}

#lightbox::backdrop {
  background: rgba(18, 38, 58, 0.9);
}

#lightbox img {
  display: block;
  max-width: 96vw;
  max-height: 94vh;
  border: 4px solid var(--paper);
  border-radius: 14px;
}

.list {
  padding: 68px 0 70px;
}

.list h2 {
  margin-bottom: 16px;
}

.list ul {
  margin: 0;
  padding: 22px 26px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 30px;
  border: var(--edge);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--drop);
  font-weight: 800;
}

/* A warhead-red nose cone for a bullet. */
.list li {
  position: relative;
  padding-left: 24px;
}

.list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.38em;
  border-left: 12px solid var(--red);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

/* ---------- the last call: golden hour, a rocket on its way up ---------- */

.final {
  position: relative;
  overflow: hidden;
  padding: 200px 0 150px;
  text-align: center;
  background: linear-gradient(180deg, #f08a4b 0%, #f7b267 45%, #fbe3b0 100%);
  border-top: 4px solid var(--ink);
}

.final::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  background: linear-gradient(180deg, #3d8fbd 0%, #1b5f8f 100%);
  border-top: 2px solid rgba(255, 255, 255, 0.7);
}

.final p {
  margin: 0 0 20px;
  font-weight: 700;
}

.final .stores {
  justify-content: center;
}

/* A rocket crosses the evening sky on a steady climb, trailing smoke. */
.liftoff {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 340px;
  transform-origin: 50% 50%;
  animation: climb 9s linear infinite;
}

.liftoff img {
  display: block;
  width: 100%;
}

.liftoff i {
  position: absolute;
  left: 14px;
  bottom: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff8ea;
  opacity: 0;
  animation: trail 1.6s linear infinite;
}

.liftoff i:nth-child(2) {
  animation-delay: -0.32s;
}
.liftoff i:nth-child(3) {
  animation-delay: -0.64s;
}
.liftoff i:nth-child(4) {
  animation-delay: -0.96s;
}
.liftoff i:nth-child(5) {
  animation-delay: -1.28s;
}

@keyframes trail {
  from {
    transform: translateY(0) scale(0.4);
    opacity: 0.9;
  }
  to {
    transform: translateY(330px) scale(2.2);
    opacity: 0;
  }
}

/* A shallow climb through the strip of sky above the words: 14 up for every 145 across,
   with the nose turned to match. */
@keyframes climb {
  from {
    transform: translate(-30vw, -50px) rotate(84.5deg);
  }
  to {
    transform: translate(115vw, calc(-50px - 14vw)) rotate(84.5deg);
  }
}

/* ---------- the margin rocket (wide screens only) ----------
   A rocket dives down the empty left margin as the page scrolls, trailing smoke, and
   hits a ship by the footer. The script on the landing page moves it. */

.dive,
.target {
  display: none;
}

@media (min-width: 1340px) and (prefers-reduced-motion: no-preference) {
  .dive {
    display: block;
    position: fixed;
    z-index: 1;
    top: 0;
    /* The middle of the margin beside the 1120px column. */
    left: calc((100vw - 1120px) / 4 - 20px);
    width: 40px;
    pointer-events: none;
  }

  /* The hero covers the rocket until the page has scrolled past it. */
  .hero {
    z-index: 2;
  }

  /* Nose at the element's bottom edge, so translateY(n) puts the nose n below the top. */
  .missile {
    position: absolute;
    left: 0;
    bottom: 100%;
    width: 100%;
    will-change: transform;
  }

  .missile img {
    display: block;
    width: 100%;
    transform: rotate(180deg);
  }

  /* Smoke: two rows of puffs above the rocket, thinning out upward. */
  .smoke {
    position: absolute;
    left: -11px;
    right: -11px;
    bottom: calc(100% - 26px);
    height: 62vh;
    background:
      radial-gradient(circle, #fff8ea 0 46%, transparent 48%) 0 0 / 34px 30px repeat-y,
      radial-gradient(circle, #fff8ea 0 46%, transparent 48%) 26px 15px / 34px 30px repeat-y,
      radial-gradient(circle, #fff8ea 0 46%, transparent 48%) 12px 8px / 38px 44px repeat-y;
    -webkit-mask-image: linear-gradient(to top, #000 10%, rgba(0, 0, 0, 0.45) 55%, transparent);
    mask-image: linear-gradient(to top, #000 10%, rgba(0, 0, 0, 0.45) 55%, transparent);
    opacity: 0.9;
  }

  .dive.boom .missile {
    visibility: hidden;
  }

  /* The explosion: three flat discs that pop at the nose and fade. */
  .blast {
    position: absolute;
    left: 50%;
    top: var(--nose, 0);
  }

  .blast i {
    position: absolute;
    left: 0;
    top: 0;
    width: 150px;
    height: 150px;
    margin: -75px;
    border-radius: 50%;
    border: var(--edge);
    background: var(--yellow);
    transform: scale(0);
    opacity: 0;
  }

  .blast i:nth-child(2) {
    width: 100px;
    height: 100px;
    margin: -50px;
    background: var(--red);
  }

  .blast i:nth-child(3) {
    width: 54px;
    height: 54px;
    margin: -27px;
    background: var(--paper);
  }

  .dive.boom .blast i {
    animation: pop 0.9s ease-out forwards;
  }

  .dive.boom .blast i:nth-child(2) {
    animation-delay: 0.07s;
  }

  .dive.boom .blast i:nth-child(3) {
    animation-delay: 0.14s;
  }

  @keyframes pop {
    0% {
      transform: scale(0);
      opacity: 1;
    }
    45% {
      transform: scale(1);
      opacity: 1;
    }
    100% {
      transform: scale(1.25);
      opacity: 0;
    }
  }

  /* The ship floats in the strip of sea at the bottom of the last section; the sea
     (drawn after it) hides its keel. Hit, it goes down by the bow and the crew rows off. */
  .target {
    display: block;
    position: absolute;
    left: calc((100vw - 1120px) / 4 - 60px);
    bottom: 58px;
    width: 120px;
    overflow: visible;
  }

  .target .boat {
    transform-origin: 60px 50px;
    transition: transform 0.5s ease-out;
  }

  .target.hit .boat {
    transform: translateY(34px) rotate(-16deg);
    transition: transform 1.6s ease-in 0.25s;
  }

  .target .raft {
    opacity: 0;
    transition:
      opacity 0.2s,
      transform 0.5s;
  }

  .target.hit .raft {
    opacity: 1;
    transform: translateX(-46px);
    transition:
      opacity 0.3s 0.5s,
      transform 2.4s ease-out 0.5s;
  }
}

footer {
  background: var(--ink);
  color: var(--hud-muted);
  font-size: 14px;
  font-weight: 700;
}

footer .wrap,
footer:not(:has(.wrap)) {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 24px;
  padding-bottom: 34px;
}

/* The trademark line a store's badge asks for, on a line of its own. */
footer .marks {
  flex-basis: 100%;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

footer:not(:has(.wrap)) {
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- text pages: privacy, support, press kit ---------- */

.top.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
}

.top.page .brand {
  color: var(--ink);
}

.top.page .brand b span {
  color: var(--red);
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 50px;
}

.page h1 {
  font-size: clamp(34px, 6vw, 48px);
  color: var(--ink);
  text-shadow: none;
}

.page h2 {
  margin: 28px 0 6px;
  font-size: 22px;
}

.page h3 {
  margin: 20px 0 4px;
  font-size: 19px;
}

.page a {
  font-weight: 800;
}

.press .ctas {
  margin: 18px 0 8px;
}

.press .trailer {
  margin-top: 8px;
}

.facts {
  width: 100%;
  border-collapse: collapse;
}

.facts th,
.facts td {
  padding: 8px 10px;
  border-bottom: 2px solid rgba(18, 38, 58, 0.15);
  text-align: left;
  vertical-align: top;
}

.facts th {
  width: 34%;
  color: var(--ink-soft);
  font-weight: 900;
}

.pressgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pressgrid a {
  display: block;
  border: var(--edge);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
}

.pressgrid img {
  display: block;
  width: 100%;
}

.pressgrid.logos a {
  display: grid;
  place-items: center;
  padding: 16px;
  min-height: 140px;
}

.pressgrid.logos .onlight {
  background: var(--paper);
}

.pressgrid.logos img {
  width: auto;
  max-width: 100%;
  max-height: 160px;
}

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  .brand {
    font-size: 19px;
    gap: 8px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .navlink {
    padding: 4px 12px;
    font-size: 15px;
  }
  .list ul,
  .row,
  .pressgrid {
    grid-template-columns: 1fr;
  }
  .row {
    gap: 16px;
  }
  .row.flip > a {
    order: 0;
  }
  .rows {
    gap: 44px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pitch {
    padding-top: 22px;
  }
  .ctas .btn {
    width: 100%;
  }
  .liftoff {
    width: 40px;
    height: 227px;
  }
  .final {
    padding-top: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .liftoff {
    display: none;
  }
  .js .bar,
  .js .bar.show {
    transition: none;
  }
}
