/* ==========================================================================
   Squad Rush — theme (colours sampled from the app icon, the logo, the feature graphic and the screenshots).
   Identity: a chunky mobile shooter on a sunny road. Concrete ground, the logo's yellow and navy, asphalt
   with white lane marks for Tech inside, blue and red number gates, the feature art as a tilted hero sticker,
   and sticker-style hard shadows like the game's own buttons.
   ========================================================================== */

:root {
  /* Ground and text */
  --page: #ECEEEA;          /* roadside concrete */
  --page-deep: #E0E4DE;
  --ink: #1A2233;
  --ink-soft: #4A5366;      /* 6.8:1 on --page */
  --link: #1F4FBF;

  /* Bands */
  --band: #FFC21A;          /* logo yellow */
  --band-ink: #13235C;      /* logo outline navy */
  --dark: #2C3038;          /* asphalt */
  --dark-ink: #F5F6F2;
  --dark-soft: rgba(245, 246, 242, 0.78);
  --focus: #13235C;

  --navy: #13235C;
  --blue: #1F4FBF;
  --gate-blue: #1FA9E1;
  --gate-red: #E5484D;
  --zombie: #7CC242;
  --squad: #2BB3C9;
  --grass: #78B649;
}

/* ---------- Bands ---------- */
.bar { border-bottom: 4px solid var(--navy); }
.bar .lang { background: var(--navy); color: #FFFFFF; }
.bar .lang:hover { background: var(--blue); }
.cta { position: relative; border-block: 4px solid var(--navy); }
.cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 44px, transparent 44px 72px);
  opacity: 0.85;
  pointer-events: none;
}

/* ---------- Coming soon note (instead of the Google Play badge) ---------- */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px 0 18px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--band);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 16px;
  box-shadow: 4px 4px 0 var(--blue);
}
.soon__icon { flex: none; width: 20px; height: 20px; fill: currentColor; }

/* ---------- Hero: the name sits on a road marking ---------- */
.hero__icon { border: 3px solid var(--navy); box-shadow: 5px 5px 0 var(--navy); }
.hero__name { color: var(--navy); }
.hero__name::after {
  content: "";
  display: block;
  width: min(100%, 520px);
  height: 12px;
  margin-top: 0.16em;
  background: repeating-linear-gradient(90deg, var(--band) 0 56px, transparent 56px 84px);
}
.hero__rest { color: var(--ink-soft); }
.hero__tagline { color: var(--blue); }

/* ---------- Hero art: the store feature graphic as a big, slightly tilted sticker card (still, no motion) ---------- */
@media (min-width: 961px) {
  .hero__grid { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
}
@media (max-width: 960px) {
  .hero__visual { max-width: 640px; }   /* base caps it at 460 px, sized for square boards */
}
.art {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
  padding: 0 10px 12px 0;   /* room for the hard shadow and the tilt inside the column */
}
/* A yellow sticker peeking out behind the card, tilted the other way */
.art::before {
  content: "";
  position: absolute;
  inset: 9% -1% -3% 4%;
  border: 4px solid var(--navy);
  border-radius: 24px;
  background: var(--band);
  transform: rotate(4deg);
}
.art__img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 500;
  border: 4px solid var(--navy);
  border-radius: 22px;
  background: #7FB5E8;      /* sky colour of the art while it loads */
  box-shadow: 8px 10px 0 var(--navy);
  transform: rotate(-2deg);
}

/* ---------- Modes: three sticker cards ---------- */
.patches { gap: 22px; margin-top: clamp(36px, 5vw, 56px); }
.patch {
  overflow: hidden;
  background: #FFFFFF;
  border: 3px solid var(--navy);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--navy);
}
.patch__fabric { border-bottom: 3px solid var(--navy); }
.patch--steer .patch__fabric {
  background:
    linear-gradient(90deg, transparent calc(50% - 3px), rgba(255, 255, 255, 0.9) calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)) 0 0 / 100% 36px,
    #3F444D;
}
.patch--gates .patch__fabric { background: linear-gradient(90deg, var(--gate-blue) 0 50%, var(--gate-red) 50%); }
.patch--boss .patch__fabric {
  background-color: var(--navy);
  background-image: repeating-linear-gradient(-45deg, var(--band) 0 12px, transparent 12px 24px);
}
.patch__title { color: var(--navy); }

/* ---------- Feature notes ---------- */
.note { border-top: 3px solid rgba(19, 35, 92, 0.18); }
.note__title::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--navy);
  background: var(--c, var(--band));
}
.note--heroes { --c: var(--blue); }
.note--weapons { --c: var(--band); }
.note--strikes { --c: #D9772B; }
.note--daily { --c: var(--gate-red); }
.note--offline { --c: var(--zombie); }
.note--languages { --c: var(--gate-blue); }

/* ---------- Gallery ---------- */
.gallery { background: var(--page-deep); border-top: 4px solid var(--navy); }
.shots { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: clamp(14px, 1.8vw, 24px); }
.shot img {
  width: 100%;
  border: 3px solid var(--navy);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--navy);
}

/* ---------- Tech inside: asphalt with lane marks ---------- */
.tech {
  border-top: 4px solid var(--navy);
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0 44px, transparent 44px 88px);
  background-size: 8px 100%;
  background-repeat: no-repeat;
  background-position: 2.5% 0;
}
.tech .section-title { color: var(--dark-ink); }
.spec { border-top: 2px dashed rgba(245, 246, 242, 0.28); }
.spec__title { color: var(--band); }

/* ---------- Smaller screens ---------- */
@media (max-width: 720px) {
  .patches { gap: 18px; }
  .patch__fabric { height: 44px; }
  .art { padding: 0 6px 8px 0; }
  .art::before { inset: 9% 0 -2% 4%; border-width: 3px; border-radius: 18px; transform: rotate(3deg); }
  .art__img { border-width: 3px; border-radius: 16px; box-shadow: 5px 6px 0 var(--navy); transform: rotate(-1.5deg); }
  .soon { min-height: 48px; font-size: 15px; }
}
