/* ============================================================
   FAMOUS PIGEON — PLAÇA PUMP
   The pop layer (27 October 2026): the studio portfolio's social
   palette and poster face, carried onto the game's screens.

   Where it applies: the DOM screens (opening, adventure map, the
   flight title, results, the ending, modals) and the share card.
   Where it never applies: the game canvas and the HUD. The flight
   keeps its four colours, because scenery-pale / gameplay-ink is the
   readability system (brand-system §4).

   One rule makes it hold on the sky: a pop colour is a surface that
   carries ink (navy carries white). It is never text, never a line
   on the sky. Lime on sky is 1.44:1; ink on lime is 16.1:1.
   ============================================================ */

@font-face {
  font-family: 'Anton';
  src: url('../fonts/studio/anton-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --lime: #D8F43C;
  --pink: #F2479B;
  --orange: #FF6A1F;
  --navy: #1F2A8C;
  --blush: #F8C6DA;
  --font-poster: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
}

::selection { background: var(--lime); color: var(--ink); }

/* ---------- the loud voice: poster caps ---------- */
.display {
  font-family: var(--font-poster);
  font-weight: 400;
  font-stretch: normal;
  letter-spacing: -0.005em;
  line-height: 0.9;
}
/* Anton stands taller than Archivo at the same size: the flight title
   yields height so Play stays above the fold on a laptop. */
#title .display { font-size: min(var(--t-display), 15vh); }
.modal-box h2 {
  font-family: var(--font-poster);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* One phrase per screen sits on a lime marker, tipped like a sticker.
   The top margin clears the Ç of PLAÇA on the line above. */
.marker {
  display: inline-block;
  padding: 0.04em 0.14em 0;
  margin-top: 0.22em;
  background: var(--lime);
  color: var(--ink);
  font-style: normal;
  transform: rotate(-1.2deg);
}

/* Kicker tags: mono caps on a flat pop surface. */
.marker-tag {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  padding: 5px 9px 4px;
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-1deg);
}
.marker-tag.is-pink { background: var(--pink); }
.marker-tag.is-orange { background: var(--orange); }
body.rekt #res-kind { background: var(--pink); }

/* Bodoni italic carries the pigeon's own line under the poster. */
.episode-line {
  font-family: var(--studio-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---------- the stripe: six flat bands, once per screen ---------- */
.pop-stripe { display: grid; grid-template-columns: repeat(6, 1fr); height: 10px; }
.pop-stripe i:nth-child(1) { background: var(--lime); }
.pop-stripe i:nth-child(2) { background: var(--pink); }
.pop-stripe i:nth-child(3) { background: var(--orange); }
.pop-stripe i:nth-child(4) { background: var(--navy); }
.pop-stripe i:nth-child(5) { background: var(--ink); }
.pop-stripe i:nth-child(6) { background: var(--blush); }
.screen > .pop-stripe { position: absolute; top: 0; left: 0; right: 0; z-index: 1; }
.modal-box > .pop-stripe { margin: calc(-1 * clamp(24px, 4vw, 44px)) calc(-1 * clamp(24px, 4vw, 44px)) clamp(20px, 3vw, 32px); }

/* ---------- controls: lime is the hover, ink stays the focus ring ---------- */
@media (hover: hover) {
  .btn-ink:hover, .btn-ghost:hover { background: var(--lime); color: var(--ink); border-color: var(--ink); }
}

/* ---------- the map: the next adventure is the lime one ---------- */
.level.next { background: var(--lime); color: var(--ink); }
.level.next .level-tile { border-color: var(--ink); }
.new-best { background: var(--lime); color: var(--ink); transform: rotate(-1deg); }

@media (max-width: 560px) {
  .modal-box h2 { font-size: clamp(28px, 8vw, 38px); }
  .episode-line { font-size: 20px; }
}
