/* The landing evoredux.com (docs/superpowers/specs/2026-10-26-site-landing-design.md). Colours and fonts - from the
   game: the APK icon's ground, the lobby's orange strips, the light steel of its dialogs; Oswald and Play - the free
   fonts of its UI (SIL OFL 1.1, unchanged files). The first screen is the game's login screen: its art, the title in
   the fog where the game puts its logo, the diagonal hatching over it. */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-Regular.ttf?v=3324614698") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Play";
  src: url("../fonts/Play-Regular.ttf?v=e1e9c9a87d") format("truetype");
  font-display: swap;
}

:root {
  --ash: #121014;       /* the APK icon's ground */
  --soot: #1b191c;
  --soot-2: #242126;
  --line: #3a3431;
  --bone: #e6e2dc;
  --dust: #a49e96;
  --steel: #c3c5c4;     /* the game's light dialogs */
  --ink: #16141a;
  --ember: #f4a549;     /* the lobby's strips, the login button */
  --signal: #f05a28;    /* the emblem */
  --display: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Play", "Segoe UI", Roboto, system-ui, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 60px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 8px);
  background: var(--ash);
}

body {
  margin: 0;
  background: var(--ash);
  color: var(--bone);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 3.2vw + 1.2rem, 3.5rem); }
h2::after {          /* the lobby's orange strip under a panel's title */
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  margin-top: 0.45em;
  background: var(--ember);
}
h3 { font-size: clamp(1.375rem, 0.8vw + 1.15rem, 1.75rem); }
h4 { font-size: 1.375rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ember); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #ffc07a; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.nw { white-space: nowrap; }   /* #get-access, 64-bit: no break at the hyphen */

.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--bone);
  color: var(--ink);
}
.skip:focus { top: 8px; }

.intro { max-width: 40rem; color: var(--bone); font-size: 1.125rem; }

/* ---------------------------------------------------------------- buttons: the game's panels cut two corners */

.btn {
  --c: var(--signal);
  display: inline-block;
  padding: 0.55em 1.6em 0.6em;
  background: linear-gradient(135deg, transparent 8px, var(--c) 8.5px calc(100% - 8.5px), transparent calc(100% - 8px));
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.btn:hover, .btn:active { --c: #ff7040; color: var(--ink); }
.btn-main {
  padding: 0.6em 2.2em 0.65em;
  background: linear-gradient(135deg, transparent 12px, var(--c) 12.5px calc(100% - 12.5px), transparent calc(100% - 12px));
  font-size: clamp(1.375rem, 1vw + 1.1rem, 1.75rem);
}

/* ---------------------------------------------------------------- the bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  height: var(--bar-h);
  padding-inline: var(--gutter);
  background: rgba(18, 16, 20, 0.94);
  border-bottom: 1px solid rgba(244, 165, 73, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--bone);
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand:hover { color: var(--bone); }

.nav { display: none; gap: clamp(16px, 1.6vw, 24px); }
.nav a { color: var(--bone); font-family: var(--display); font-size: 1rem; text-decoration: none; }
.nav a:hover { color: var(--ember); }

.langs { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.langs a {
  position: relative;
  display: block;
  padding: 6px 8px 4px;
  color: var(--dust);
  font-family: var(--display);
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.langs a::after { content: ""; position: absolute; inset: -8px -1px; }   /* the finger's zone, the letters stay */
.langs a:hover { color: var(--bone); }
.langs a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--ember); }

.btn-bar { padding: 0.45em 1.1em 0.5em; font-size: 1rem; }

.bar-shop {          /* the shop of EVO Cores: from 700 px (the phone's bar has no room), its word from 1350 px */
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--ember);
  font-family: var(--display);
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.bar-shop img { width: 24px; height: 24px; }
.bar-shop:hover { color: #ffc07a; }

@media (max-width: 419px) {
  .brand span { display: none; }
}
@media (min-width: 700px) {
  .bar-shop { display: flex; }
}
@media (min-width: 1100px) {
  .nav { display: flex; }
  .brand { margin-right: 0; }
  .nav { margin-right: auto; margin-left: clamp(16px, 3vw, 48px); }
}
@media (min-width: 1100px) and (max-width: 1349px) {
  .bar-shop span { display: none; }   /* the nav takes the room: the core alone */
}

/* ---------------------------------------------------------------- the first screen: the game's login screen */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-height: max(36rem, min(100svh, 64rem));
  margin-top: calc(-1 * var(--bar-h));
  padding: calc(var(--bar-h) + 2vh) var(--gutter) clamp(1.5rem, 4vh, 3rem);
  overflow: hidden;
  text-align: center;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(135deg, rgba(18, 16, 20, 0.075) 0 1px, transparent 1px 6px),
    radial-gradient(ellipse 48% 30% at 50% 44%, rgba(238, 242, 242, 0.62), rgba(238, 242, 242, 0) 100%),
    linear-gradient(rgba(18, 16, 20, 0.55), rgba(18, 16, 20, 0) 16%, rgba(18, 16, 20, 0) 58%, rgba(18, 16, 20, 0.86) 80%, var(--ash));
}

.hero-emblem {
  width: clamp(64px, 9vw, 92px);
  height: auto;
  margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
  border-radius: 22%;
  box-shadow: 0 10px 30px rgba(18, 16, 20, 0.35);
}

.hero h1 {
  max-width: 13ch;     /* two lines, inside the fog: wider, the dark letters would reach the art's dark edges */
  color: var(--ink);
  font-size: clamp(2.75rem, 6.4vw + 1rem, 6rem);
  line-height: 0.95;
  letter-spacing: -0.005em;
}
.hero-lead {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: #26252b;
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.45;
}

.hero-title {
  grid-row: 1;
  align-self: center;
  display: grid;
  justify-items: center;
  padding-top: clamp(1rem, 6vh, 5rem);
}

.hero-act {
  grid-row: 2;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 5vh, 3rem);
}
.hero-note { margin: 0; color: var(--bone); font-size: 0.9375rem; }
.hero-links { display: flex; gap: 1.5rem; margin: 0.25rem 0 0; font-family: var(--display); font-size: 1.125rem; }
.hero-links a { color: var(--bone); }
.hero-links a:hover { color: var(--ember); }

.fan {
  grid-row: 3;
  max-width: 36rem;
  margin: clamp(1.5rem, 4vh, 2.5rem) auto 0;
  color: var(--dust);
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title { animation: surface 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes surface { from { opacity: 0; transform: translateY(8px); } }
  .btn, a.pack, .method { transition: transform 0.12s cubic-bezier(0.22, 1, 0.36, 1); }
  .btn:active, a.pack:active, .method:not(:disabled):active { transform: scale(0.98); }   /* a press: a phone has no hover */
}

/* ---------------------------------------------------------------- what it is */

.about {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.about-text p { max-width: 38rem; }
.about-text h2 { margin-bottom: 1.5rem; }

.facts { display: grid; gap: 1.5rem; margin: 0; align-content: start; }
.facts div { padding-left: 1rem; border-left: 2px solid var(--line); }
.facts dt { color: var(--ember); font-family: var(--display); font-size: 1.375rem; line-height: 1.2; }
.facts dd { margin: 0.25rem 0 0; color: var(--dust); }

@media (min-width: 900px) {
  .about { grid-template-columns: 1.35fr 1fr; align-items: start; }
  .facts { margin-top: 5.25rem; }
}

/* ---------------------------------------------------------------- Emberland: the loading screens with their tips */

.world { padding-block: clamp(3rem, 7vw, 6rem); background: var(--soot); }
.world h2 { margin-bottom: 1.25rem; }
.world .intro { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.biomes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 30rem);
  gap: 12px;
  margin: 0;
  padding: 0 var(--gutter) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.biome { margin: 0; scroll-snap-align: start; }
.biome img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.biome figcaption { padding: 0.75rem 0 0; color: var(--bone); font-size: 0.9375rem; line-height: 1.45; }

@media (min-width: 900px) {
  .biomes {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, 1fr);
    max-width: 90rem;
    margin-inline: auto;
    overflow: visible;
  }
  .b1, .b2 { grid-column: span 3; }
  .b3, .b4, .b5 { grid-column: span 2; }
}

/* ---------------------------------------------------------------- the ruins: the map's I, II, III */

.ruins { padding-block: clamp(3.5rem, 8vw, 7rem); }
.ruins h2 { margin-bottom: 1.25rem; }

.route { margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; }
.lvl {
  position: relative;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  grid-template-areas: "num text" "shot shot";
  column-gap: 1rem;
  row-gap: 1rem;
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.lvl::before {      /* the route between the marks, under the screenshots */
  content: "";
  position: absolute;
  left: 1.7rem;
  top: 2.6rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--line), rgba(58, 52, 49, 0.2));
}
.lvl:last-child::before { content: none; }
.num {              /* the level's mark on the game's map: I, II, III in a frame */
  grid-area: num;
  justify-self: center;
  align-self: start;
  position: relative;
  display: grid;
  place-items: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.25rem;
  border: 2px solid var(--ember);
  background: var(--ash);
  color: var(--ember);
  font-family: var(--display);
  font-size: 1.375rem;
  letter-spacing: 0.08em;
  line-height: 1;
}
.num-none { border-style: dashed; }   /* the roadside shops: no level on the map */
.lvl-text { grid-area: text; }
.lvl-text h3 { margin: 0.25rem 0 0.5rem; }
.lvl-text p { color: var(--dust); max-width: 34rem; }
.lvl-shot { grid-area: shot; position: relative; width: 100%; aspect-ratio: 1380 / 591; object-fit: cover; }

@media (min-width: 900px) {
  .lvl {
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas: "num text shot";
    column-gap: clamp(1.5rem, 3vw, 3rem);
  }
  .lvl::before { left: 2.5rem; top: 3.4rem; }
  .num { min-width: 3.4rem; height: 3.4rem; font-size: 1.75rem; }
}

.sub { margin: clamp(1rem, 3vw, 2rem) 0 1.5rem; font-size: clamp(1.75rem, 1.5vw + 1.2rem, 2.25rem); }
.events { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.event { margin: 0; }
.event img { width: 100%; aspect-ratio: 1380 / 591; object-fit: cover; }
.event figcaption { padding-top: 1rem; }
.event h4 { margin-bottom: 0.5rem; }
.event p { color: var(--dust); }
.bosses {
  max-width: 44rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--signal);
  background: var(--soot);
}

@media (min-width: 900px) {
  .events { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- together: the squad art */

.team {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(30rem, 78vh, 46rem);
  padding-block: 3rem clamp(2.5rem, 6vw, 5rem);
}
.team-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
.team::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(135deg, rgba(18, 16, 20, 0.08) 0 1px, transparent 1px 6px),
    linear-gradient(var(--ash), rgba(18, 16, 20, 0) 22%, rgba(18, 16, 20, 0) 40%, rgba(18, 16, 20, 0.9) 78%);
}
.team-in { width: 100%; }
.team-in h2 { max-width: 30rem; margin-bottom: 1rem; }
.team-in p { max-width: 34rem; font-size: 1.125rem; }

@media (min-width: 900px) {
  .team::before {
    background:
      repeating-linear-gradient(135deg, rgba(18, 16, 20, 0.08) 0 1px, transparent 1px 6px),
      linear-gradient(var(--ash), rgba(18, 16, 20, 0) 18%),
      linear-gradient(90deg, rgba(18, 16, 20, 0.92) 0, rgba(18, 16, 20, 0.6) 38%, rgba(18, 16, 20, 0) 62%);
  }
  .team { align-items: center; }
}

/* ---------------------------------------------------------------- bases and raids */

.bases { padding-block: clamp(3.5rem, 8vw, 7rem); }
.bases h2 { margin-bottom: 1.5rem; }
.bases-top { display: grid; gap: 1em clamp(2rem, 5vw, 4rem); max-width: 64rem; }
.bases-text p { color: var(--bone); }

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85%, 26rem);
  gap: 12px;
  margin: clamp(1.75rem, 4vw, 3rem) calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter) 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.shots li { scroll-snap-align: start; }
.shots figure { margin: 0; }
.shots img { width: 100%; aspect-ratio: 2.1; object-fit: cover; }
.shots figcaption { padding-top: 0.5rem; font-family: var(--display); font-size: 1.125rem; }

@media (min-width: 900px) {
  .bases-top { grid-template-columns: 1fr 1fr; }
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

/* ---------------------------------------------------------------- vehicles: a dark garage */

.vehicles {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--soot);
}
.vehicles h2 { margin-bottom: 1.25rem; }
.garage {
  display: grid;
  gap: 2rem;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}
.garage li { display: grid; justify-items: center; gap: 0.5rem; }
.garage img {
  width: min(68%, 17rem);
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.55));
}
.garage span { font-family: var(--display); font-size: 1.25rem; }

@media (min-width: 700px) {
  .garage { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .garage img { width: 100%; }
}

/* ---------------------------------------------------------------- install: the game's light steel dialog */

.install { padding-block: clamp(3.5rem, 8vw, 7rem); }
.panel {            /* a dialog of the game: inside the column, its left edge on the page's */
  max-width: 60rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  background:
    repeating-linear-gradient(135deg, rgba(22, 20, 26, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, #d3d5d4, var(--steel) 45%, #b4b7b6);
  color: var(--ink);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}
.panel h2::after { background: var(--signal); }
.panel h2 { margin-bottom: 1.25rem; }
.panel a:not(.btn) { color: #7f280a; }
.panel a:not(.btn):hover { color: #6e2309; }
.panel :focus-visible { outline-color: var(--ink); }
.needs { max-width: 44rem; font-size: 1.0625rem; }
.install > h1 { margin-bottom: 2rem; }           /* the downloads' page: its title over the panels */
.panel + .panel { margin-top: 2rem; }
.panel > .btn { margin-top: 0.75rem; }

.steps { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 1.5rem 3.25rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  color: #9c3410;   /* 3.6:1 at the panel's darkest end: --signal is 2:1 here */
  font-family: var(--display);
  font-size: 2.25rem;
  line-height: 1;
}
.steps h3 { margin-bottom: 0.25rem; font-size: 1.5rem; }
.steps p { max-width: 40rem; color: #2e2c33; }
.steps .btn { margin-top: 0.5rem; }

.trouble {
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  background: rgba(22, 20, 26, 0.07);
}
.trouble summary { font-family: var(--display); font-size: 1.25rem; cursor: pointer; }
.trouble ol { margin: 1rem 0 0; padding-left: 1.25rem; }
.trouble li { margin-bottom: 0.5rem; color: #2e2c33; }
.trouble p { margin-top: 0.75rem; color: #2e2c33; }

/* ---------------------------------------------------------------- questions */

.faq { padding-block: clamp(1rem, 4vw, 3rem) clamp(3.5rem, 8vw, 6rem); }
.faq h2 { margin-bottom: 1.5rem; }
.faq details { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 0.5vw + 1.05rem, 1.375rem);
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--ember);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 42rem; padding-bottom: 1.25rem; color: var(--dust); }

/* ---------------------------------------------------------------- community */

.community { padding-block: clamp(1rem, 4vw, 2rem) clamp(4rem, 9vw, 7rem); }
.community h2 { margin-bottom: 1.25rem; }
.links { margin: 2rem 0 0; padding: 0; list-style: none; }
.links a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.125rem;
  padding: 1.25rem 0.25rem;
  border-top: 1px solid var(--line);
  color: var(--bone);
  text-decoration: none;
}
.links li:last-child a { border-bottom: 1px solid var(--line); }
.links strong { font-family: var(--display); font-size: clamp(1.5rem, 1vw + 1.2rem, 2rem); font-weight: 400; line-height: 1.15; }
.links span { color: var(--dust); }
.links em { color: var(--ember); font-style: normal; font-size: 0.9375rem; }
.links a:hover strong, .links a:active strong { color: var(--ember); }

@media (min-width: 900px) {
  .links a {
    grid-template-columns: minmax(14rem, 1fr) 2fr auto;
    align-items: baseline;
    gap: 2rem;
    padding-inline: 0.5rem;
  }
  .links a:hover { background: var(--soot); }
}

/* ---------------------------------------------------------------- the foot */

.foot { padding-block: 2.5rem 3rem; background: var(--soot); color: var(--dust); font-size: 0.875rem; }
.foot .wrap { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.foot img { width: 48px; height: 48px; border-radius: 10px; }
.foot p { max-width: 52rem; margin-bottom: 0.5rem; }
.foot a { color: var(--dust); }
.foot a:hover { color: var(--bone); }
.foot .foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1rem; }
.foot .foot-links > a, .foot-links span { color: var(--bone); }

/* ---------------------------------------------------------------- the donate page: EVO Cores (/<lang>/donate/) */

.shop-head {        /* the game's top-up window: its misty store and the biggest pack in the light */
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(28rem, 64vh, 40rem);
  margin-top: calc(-1 * var(--bar-h));
  padding: calc(var(--bar-h) + 2rem) 0 clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}
.shop-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 40%;
}
.shop-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(135deg, rgba(18, 16, 20, 0.08) 0 1px, transparent 1px 6px),
    linear-gradient(rgba(18, 16, 20, 0.5), rgba(18, 16, 20, 0.1) 30%, rgba(18, 16, 20, 0.55) 65%, var(--ash));
}
.shop-head-in {
  display: grid;
  grid-template-areas: "pack" "title" "lead" "note";
  justify-items: start;
  width: 100%;
}
.shop-pack {
  grid-area: pack;
  width: clamp(8rem, 30vw, 16rem);
  height: auto;
}
.shop-head h1 { grid-area: title; font-size: clamp(3rem, 6vw + 1rem, 6rem); line-height: 0.95; }
.shop-lead { grid-area: lead; max-width: 36rem; margin: 1rem 0 0; font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem); }
.soon-note {
  grid-area: note;
  margin: 1.25rem 0 0;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(244, 165, 73, 0.55);
  color: var(--ember);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .shop-head-in {
    grid-template-columns: 1fr auto;
    grid-template-areas: "title pack" "lead pack" "note pack";
    align-items: end;
  }
  .shop-pack { align-self: center; justify-self: end; }
}

.packs-sec { padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.packs-sec h2 { margin-bottom: 1.5rem; }
.packs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.packs li { display: grid; }
.pack {             /* a pack: soot, the corners cut as the game's panels */
  --c: var(--soot);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.5rem 1.25rem;
  background: linear-gradient(135deg, transparent 13px, var(--c) 13.5px calc(100% - 13.5px), transparent calc(100% - 13px));
  color: var(--bone);
  text-align: center;
  text-decoration: none;
}
a.pack:hover, a.pack:active { --c: var(--soot-2); color: var(--bone); }
.pack-buy { margin-top: 1rem; font-size: 1.125rem; }
.pack-img { width: min(100%, 10rem); height: auto; }
.pack-n { margin: 0 0 0.75rem; color: var(--dust); font-size: 0.9375rem; line-height: 1.2; }
.pack-n strong {
  display: block;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(1.75rem, 1vw + 1.4rem, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
}
.pack-bonus { margin: -0.5rem 0 0.75rem; color: var(--ember); font-size: 0.875rem; }
.pack-price {       /* the price and Buy at the card's bottom: rows of cards keep them in line */
  margin: auto 0 0;
  padding: 0.25rem 1rem;
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1.25rem;
}
.packs-note { margin: 1.25rem 0 0; max-width: 44rem; color: var(--dust); font-size: 0.9375rem; }

@media (min-width: 700px) {
  .packs { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1100px) {
  .packs { grid-template-columns: repeat(6, 1fr); }
}

/* the payment page of a pack: /<lang>/donate/<cores>/ */
.pay-head {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--bar-h));
  padding: calc(var(--bar-h) + clamp(1.5rem, 5vw, 3rem)) 0 clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
}
.pay-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(135deg, rgba(18, 16, 20, 0.08) 0 1px, transparent 1px 6px),
    linear-gradient(rgba(18, 16, 20, 0.45), rgba(18, 16, 20, 0.35) 40%, var(--ash));
}
.pay-back { color: var(--dust); font-family: var(--display); font-size: 1.0625rem; }
.pay-back:hover { color: var(--bone); }
.pay-head h1 { margin-top: 0.5rem; font-size: clamp(2.5rem, 4vw + 1rem, 4rem); line-height: 1; }

.pay-body {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(4rem, 9vw, 7rem);
}
.pack-chosen {      /* phones: one row - the picture, then the cores and the price - the methods stay in sight */
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  column-gap: 1rem;
  align-items: center;
  justify-items: start;
  padding: 0.5rem 1rem;
  text-align: left;
}
.pack-chosen .pack-img { grid-row: 1 / span 3; width: 6.5rem; }
.pack-chosen .pack-n { margin-bottom: 0.5rem; }
.pack-chosen .pack-bonus { margin: -0.125rem 0 0.5rem; }
.pack-chosen .pack-price { margin: 0; }
.pay-methods h2 { margin-bottom: 1.25rem; font-size: clamp(1.75rem, 1.6vw + 1.3rem, 2.5rem); }

.methods { display: grid; gap: 12px; max-width: 46rem; margin: 0; padding: 0; list-style: none; }
.method {           /* a payment button: on with the payments; till then disabled, "soon" */
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "t s" "d s";
  align-items: center;
  column-gap: 1rem;
  width: 100%;
  padding: 1rem 1rem;
  border: 1px solid var(--line);
  background: var(--soot);
  color: var(--bone);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.method:disabled { cursor: not-allowed; }
.method:not(:disabled) { border-color: rgba(244, 165, 73, 0.6); }
.method:not(:disabled):hover, .method:not(:disabled):active { border-color: var(--ember); background: var(--soot-2); }
.method:not(:disabled) .method-t { color: var(--ember); }
.method-t {
  grid-area: t;
  font-family: var(--display);
  font-size: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  line-height: 1.2;
}
.method-d { grid-area: d; margin-top: 0.25rem; color: var(--dust); font-size: 0.9375rem; line-height: 1.4; }
.soon {
  grid-area: s;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--dust);
  font-family: var(--display);
  font-size: 0.9375rem;
}
.pay-state { max-width: 46rem; min-height: 1.4em; margin: 0.75rem 0 0; color: var(--bone); }
.pay-state[data-shown="fail"], .pay-state[data-shown="slow"] { color: #ff8a6a; }
/* the recipient of the donations: the ID from the game, its name (site.js) */
.recipient { display: grid; gap: 0.5rem; max-width: 46rem; margin: 0 0 1.75rem; }
.recipient label { font-family: var(--display); font-size: 1.25rem; }
.recipient input {
  width: min(100%, 16rem);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--ash);
  color: var(--bone);
  font: inherit;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}
.recipient input:focus-visible { border-color: var(--ember); outline-offset: 1px; }
.recipient-state { min-height: 1.5em; margin: 0; color: var(--dust); }
.recipient-state[data-shown="found"] { color: var(--ember); }
.recipient-state[data-shown="none"], .recipient-state[data-shown="slow"], .recipient-state[data-shown="error"] { color: #ff8a6a; }
.recipient-hint { margin: 0; color: var(--dust); font-size: 0.875rem; }
.paid-note {
  max-width: 46rem;
  margin: 0 0 1.75rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--ember);
  background: var(--soot-2);
}
.pay-consent { max-width: 46rem; margin: 0.5rem 0 0; color: var(--dust); font-size: 0.9375rem; }
.support-note { max-width: 46rem; margin: 0.5rem 0 0; color: var(--bone); font-size: 0.9375rem; }

@media (min-width: 900px) {
  .pay-body { grid-template-columns: 17rem minmax(0, 1fr); align-items: start; }
  .pack-chosen { display: flex; padding: 0.5rem 0.5rem 1.25rem; text-align: center; }
  .pack-chosen .pack-img { width: min(100%, 10rem); }
  .pack-chosen .pack-n { margin-bottom: 0.75rem; }
  .pack-chosen .pack-bonus { margin: -0.5rem 0 0.75rem; }
}

.spend-sec { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 9vw, 7rem); }
.spend-sec h2 { margin-bottom: 1.5rem; }
.spend { display: grid; gap: 1.5rem; max-width: 52rem; margin: 0; }
.spend div { padding-left: 1rem; border-left: 2px solid var(--line); }
.spend dt { color: var(--ember); font-family: var(--display); font-size: 1.25rem; line-height: 1.25; }
.spend dd { margin: 0.25rem 0 0; color: var(--dust); }
.spend-note {
  max-width: 44rem;
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--signal);
  background: var(--soot);
}

/* ---------------------------------------------------------------- the program's page (build.py PREVIEW_PAGES) */
.cc-head {          /* the squad's fight seen through a camera: a viewfinder's corners and its red dot over the art */
  --frame: clamp(9rem, 30vh, 20rem);
  --corner: clamp(18px, 3vw, 34px);
  align-items: stretch;
  min-height: 0;
}
.cc-head .shop-art { object-position: 62% 50%; }
.cc-head::before {
  background:
    repeating-linear-gradient(135deg, rgba(18, 16, 20, 0.08) 0 1px, transparent 1px 6px),
    linear-gradient(rgba(18, 16, 20, 0.45), rgba(18, 16, 20, 0.05) 28%, rgba(18, 16, 20, 0.72) 62%, var(--ash));
}
.cc-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(var(--bar-h) + 2rem);
  height: var(--frame);
  inset-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  background:
    radial-gradient(circle, var(--signal) 0 6px, transparent 6.5px) calc(100% - 14px) 14px / 16px 16px no-repeat,
    linear-gradient(var(--ember), var(--ember)) 0 0 / var(--corner) 2px no-repeat,
    linear-gradient(var(--ember), var(--ember)) 0 0 / 2px var(--corner) no-repeat,
    linear-gradient(var(--ember), var(--ember)) 100% 0 / var(--corner) 2px no-repeat,
    linear-gradient(var(--ember), var(--ember)) 100% 0 / 2px var(--corner) no-repeat,
    linear-gradient(var(--ember), var(--ember)) 0 100% / var(--corner) 2px no-repeat,
    linear-gradient(var(--ember), var(--ember)) 0 100% / 2px var(--corner) no-repeat,
    linear-gradient(var(--ember), var(--ember)) 100% 100% / var(--corner) 2px no-repeat,
    linear-gradient(var(--ember), var(--ember)) 100% 100% / 2px var(--corner) no-repeat;
}
.cc-head-in { width: 100%; padding-top: calc(var(--frame) + 1.5rem); }
.cc-head h1 { font-size: clamp(2.75rem, 4.6vw + 1.2rem, 5rem); }
.cc-cta { margin-top: 1.5rem; }

.cc-sec { padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.cc-sec h2 { margin-bottom: 1.5rem; }
.cc-get { margin-top: 0; }      /* .facts beside the main page's text sits lower */
@media (min-width: 600px) { .cc-get { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cc-get { grid-template-columns: repeat(4, 1fr); } }

.cc-levels { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.cc-levels > li {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 3px solid var(--ember);
  background: var(--soot);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
}
.cc-levels > li:last-child { border-top-color: var(--signal); background: var(--soot-2); }
.cc-levels h3 { font-size: clamp(1.75rem, 1vw + 1.35rem, 2.25rem); }
.cc-when { margin: 0.25rem 0 1rem; color: var(--ember); }
.cc-levels ul { margin: 0; padding: 0; list-style: none; }
.cc-levels ul li { color: var(--bone); }
.cc-levels ul li + li { margin-top: 0.5rem; }

@media (min-width: 800px) {     /* the levels as a staircase: each one starts higher than the last */
  .cc-levels { grid-template-columns: repeat(3, 1fr); }
  .cc-levels > li:nth-child(1) { margin-top: 5rem; }
  .cc-levels > li:nth-child(2) { margin-top: 2.5rem; }
}

.cc-apply { padding-block: 0; }
.cc-rules { padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.cc-rules h2 { margin-bottom: 1.5rem; }
.cc-rules .spend-note { margin-top: 1.5rem; }
.cc-end { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 9vw, 7rem); }

/* ---------------------------------------------------------------- the documents: /<lang>/terms/, /<lang>/privacy/ */
.legal {             /* one column in the middle of the page on a PC */
  --wrap: 50rem;
  padding-block: clamp(2rem, 6vw, 4rem) clamp(4rem, 9vw, 7rem);
}
.legal h1 { font-size: clamp(2.25rem, 3vw + 1.2rem, 3.5rem); }
.legal-date { margin: 0.75rem 0 0; color: var(--dust); }
.legal-note {
  margin: 1.25rem 0 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--ember);
  background: var(--soot);
  font-size: 0.9375rem;
}
.legal-text { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.legal-license { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.8rem; }
.legal-text h2 { margin: 2rem 0 0.75rem; font-size: clamp(1.375rem, 0.8vw + 1.15rem, 1.75rem); }
.legal-text h2::after { width: 2.2rem; height: 2px; margin-top: 0.35em; }
.legal-text p, .legal-text li { color: var(--bone); }
.legal-text ul { margin: 0 0 1em; padding-left: 1.25rem; }
.legal-text li { margin-bottom: 0.5rem; }

/* ---------------------------------------------------------------- the root page: the language */

.root { display: grid; min-height: 100svh; place-items: center; }
.root-in { display: grid; justify-items: center; gap: 1rem; padding: 2rem var(--gutter); text-align: center; }
.root-in img { width: 120px; border-radius: 26px; }
.root-in h1 { font-size: 2.5rem; }
.root-langs { display: grid; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.root-langs a { font-family: var(--display); font-size: 1.5rem; color: var(--bone); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
