/* Onde Está o Flávio? — visual da interface.
 * Direção: tabloide policial brasileiro. Papel jornal, tinta preta, vermelho sirene, azul polícia,
 * fita zebrada "NÃO ULTRAPASSE", listras P&B do uniforme como motivo gráfico e a placa PROCURA-SE.
 * Assinatura: o nome "FLÁVIO?" veste o uniforme (letras listradas na horizontal).
 */

/* ======================================================================
   Tokens
   ====================================================================== */
:root {
  --paper: #ece4cf;      /* papel jornal */
  --paper-2: #ddd3b9;    /* papel envelhecido */
  --paper-3: #bfb294;    /* fios e tracejados */
  --white: #fbf8f0;      /* papel novo / cartaz */
  --ink: #161412;        /* tinta */
  --ink-2: #3b3631;
  --ink-3: #6b645a;
  --red: #d7261e;        /* sirene */
  --red-2: #a8170f;
  --blue: #1748a6;       /* polícia */
  --blue-2: #0e2f72;
  --tape: #ffd21a;       /* fita zebrada */
  --night: #0b0b0c;      /* cutscene */
  --chart: #d4d0c4;      /* fundo da régua de ficha policial */

  --f-display: 'Anton', Impact, Haettenschweiler, 'Arial Narrow Bold', 'sans-serif-condensed', sans-serif;
  --f-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-type: 'Special Elite', 'Courier Prime', 'Courier New', Courier, monospace;

  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --gut: 16px;
  --bw: 3px;                         /* espessura da tinta */
  --shadow: 4px 4px 0 var(--ink);    /* sombra "carimbada" */
  --focus: var(--blue);

  /* Grão de papel (ruído) — preto translúcido */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Grão de filme — branco translúcido */
  --grain-film: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Máscara de tinta falhada para carimbos */
  --rough: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 0 0 0 2.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
}

/* ======================================================================
   Base
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;          /* sem pull-to-refresh / bounce */
  background: var(--ink);
}
body {
  position: fixed;
  inset: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
input, textarea { -webkit-user-select: text; user-select: text; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
canvas { display: block; }
b, strong { font-weight: 800; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
}
.boot {
  margin: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font: 18px var(--f-type);
  letter-spacing: .1em;
}

/* Fundo atrás de tudo: cenário pré-borrado (assets/ui/bg-*.jpg, 480 px) esticado + vinheta.
   O blur já vem na imagem, então o navegador só escala uma textura pequena (barato no celular). */
.backdrop { position: absolute; inset: 0; overflow: hidden; background: var(--night); }
.backdrop__img {
  position: absolute;
  inset: -2%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.backdrop__img.is-on { opacity: 1; }
.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(11, 11, 12, 0) 30%, rgba(11, 11, 12, .72) 100%),
    linear-gradient(rgba(11, 11, 12, .18), rgba(11, 11, 12, .18));
}

.layer-screens { position: absolute; inset: 0; }

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* Papel jornal: cor + grão + retícula bem leve */
.paper {
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(22, 20, 18, .055) 1px, transparent 1.4px),
    var(--grain);
  background-size: 5px 5px, 180px 180px;
}

/* ======================================================================
   Botões
   ====================================================================== */
.btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 18px;
  border: var(--bw) solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 800;
  font-stretch: 82%;
  line-height: 1.1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .08s ease, box-shadow .08s ease, background-color .12s;
  touch-action: manipulation;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: #e3342b; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--danger { color: var(--red-2); border-color: var(--red-2); box-shadow: 4px 4px 0 var(--red-2); }
.btn--danger:hover { box-shadow: 5px 5px 0 var(--red-2); }
.btn--danger:active { box-shadow: 1px 1px 0 var(--red-2); }
.btn--block { display: flex; width: 100%; }
.btn--xl { min-height: 58px; font-size: 18px; }

.btn__label { display: block; }
.btn__sub {
  display: block;
  font-family: var(--f-type);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  opacity: .92;
}
.btn--primary.btn--xl, .btn--primary.btn--block { flex-direction: column; gap: 3px; }

/* Botão "voltar" na barra escura */
.btn-back {
  appearance: none;
  min-height: 44px;
  padding: 0 14px 0 10px;
  border: 2px solid rgba(251, 248, 240, .7);
  background: transparent;
  color: var(--white);
  font: 800 14px/1 var(--f-body);
  font-stretch: 82%;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  --focus: var(--tape);
}
.btn-back:hover { background: rgba(251, 248, 240, .1); }
.btn-back__arrow { font-size: 20px; line-height: 1; margin-top: -2px; }

/* ======================================================================
   Elementos gráficos compartilhados: fita, carimbo, régua de ficha
   ====================================================================== */
.tape {
  position: absolute;
  z-index: 3;
  overflow: hidden;
  white-space: nowrap;
  background: var(--tape);
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 6px 0 4px;
  font: 400 13px/1 var(--f-display);
  letter-spacing: .18em;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .2);
  pointer-events: none;
}
.tape > span { display: inline-block; animation: tape-run 22s linear infinite; }
@keyframes tape-run { to { transform: translateX(-50%); } }

.stamp {
  position: absolute;
  z-index: 3;
  color: var(--red);
  border: 6px double currentColor;
  padding: .16em .34em .04em;
  font: 400 clamp(18px, 3.4vh, 34px)/1 var(--f-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  mix-blend-mode: multiply;
  opacity: .9;
  -webkit-mask-image: var(--rough);
  mask-image: var(--rough);
  -webkit-mask-size: 140px 140px;
  mask-size: 140px 140px;
  pointer-events: none;
}

/* Fundo de foto de ficha policial: régua de altura */
.chart {
  background-color: var(--chart);
  background-image:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(2.5% - 1px), rgba(22, 20, 18, .55) calc(2.5% - 1px), rgba(22, 20, 18, .55) 2.5%),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(12.5% - 2px), rgba(22, 20, 18, .5) calc(12.5% - 2px), rgba(22, 20, 18, .5) 12.5%);
  background-size: 12px 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat;
}

/* ======================================================================
   Tela inicial
   ====================================================================== */
.scr-title {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.ttl {
  --logo: min(27.5vw, 13vh, 150px);
  width: 100%;
  max-width: 1180px;
  min-height: 100%;
  margin: 0 auto;
  padding: calc(var(--sat) + 12px) calc(var(--sar) + var(--gut)) calc(var(--sab) + 18px) calc(var(--sal) + var(--gut));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "mug" "form";
  align-content: start;
  gap: 14px;
}
.ttl__head { grid-area: head; min-width: 0; }
.ttl__form { grid-area: form; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.masthead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 5px 0 4px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font: 700 11px/1 var(--f-body);
  font-stretch: 75%;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
.masthead__extra {
  background: var(--red);
  color: var(--white);
  font: 400 14px/1 var(--f-display);
  letter-spacing: .1em;
  padding: 4px 7px 2px;
}
.masthead__date { overflow: hidden; text-overflow: ellipsis; }
.masthead__wd { display: none; } /* a manchete da direita (classificados) precisa do espaço */
.masthead__price { margin-left: auto; white-space: nowrap; color: var(--red); }
.mh-short { display: none; }
@media (max-width: 520px) { .mh-long { display: none; } .mh-short { display: inline; } }

/* Logo: "ONDE ESTÁ O" numa tarja vermelha, "FLÁVIO?" vestindo o uniforme listrado */
.logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .9;
}
.logo__a {
  font-size: calc(var(--logo) * .4);
  background: var(--ink);
  color: var(--white);
  padding: .1em .24em .02em;
  letter-spacing: .04em;
  transform: rotate(-2deg);
  transform-origin: left bottom;
  margin: 0 0 .06em .04em;
}
.logo__b {
  font-size: var(--logo);
  letter-spacing: .012em;
  padding: 0 .06em .02em 0;
  color: var(--red);
  filter: drop-shadow(.05em .05em 0 var(--ink));
}
/* padding-top dentro da letra: o fundo recortado no texto precisa cobrir o acento (Á) */
.logo__b .ch { display: inline-block; padding-top: .2em; -webkit-text-stroke: max(2px, .024em) var(--ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .logo__b .ch {
    /* 1ª camada: faixa de brilho (fora de vista até a entrada passar); 2ª: vermelho claro → escuro */
    /* 2ª camada: rachaduras (a "rachadinha"), variando por letra via --crack */
    --crack: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M62 18 L55 34 L63 44 L51 62 L57 73 L47 92' fill='none' stroke='%233a0805' stroke-width='2.4' stroke-linejoin='miter' stroke-linecap='round'/%3E%3Cpath d='M62 18 L55 34 L63 44 L51 62 L57 73 L47 92' fill='none' stroke='%23ff8a7a' stroke-opacity='.45' stroke-width='1' transform='translate(1.6 .8)'/%3E%3Cpath d='M55 34 L44 39' fill='none' stroke='%233a0805' stroke-width='2.4' stroke-linejoin='miter' stroke-linecap='round'/%3E%3Cpath d='M55 34 L44 39' fill='none' stroke='%23ff8a7a' stroke-opacity='.45' stroke-width='1' transform='translate(1.6 .8)'/%3E%3Cpath d='M51 62 L40 66 L36 74' fill='none' stroke='%233a0805' stroke-width='2.4' stroke-linejoin='miter' stroke-linecap='round'/%3E%3Cpath d='M51 62 L40 66 L36 74' fill='none' stroke='%23ff8a7a' stroke-opacity='.45' stroke-width='1' transform='translate(1.6 .8)'/%3E%3C/svg%3E");
    background-image:
      linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%),
      var(--crack),
      linear-gradient(180deg, #f0473c 0%, var(--red) 52%, #9f150e 100%);
    background-size: 300% 100%, 100% 100%, 100% 100%;
    background-position: 100% 0, 0 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .logo__b .ch:nth-child(3n+2) { --crack: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M30 40 L41 52 L35 63 L48 77 L42 90 L53 104' fill='none' stroke='%233a0805' stroke-width='2.4' stroke-linejoin='miter' stroke-linecap='round'/%3E%3Cpath d='M30 40 L41 52 L35 63 L48 77 L42 90 L53 104' fill='none' stroke='%23ff8a7a' stroke-opacity='.45' stroke-width='1' transform='translate(1.6 .8)'/%3E%3Cpath d='M41 52 L54 50' fill='none' stroke='%233a0805' stroke-width='2.4' stroke-linejoin='miter' stroke-linecap='round'/%3E%3Cpath d='M41 52 L54 50' fill='none' stroke='%23ff8a7a' stroke-opacity='.45' stroke-width='1' transform='translate(1.6 .8)'/%3E%3Cpath d='M48 77 L60 82' fill='none' stroke='%233a0805' stroke-width='2.4' stroke-linejoin='miter' stroke-linecap='round'/%3E%3Cpath d='M48 77 L60 82' fill='none' stroke='%23ff8a7a' stroke-opacity='.45' stroke-width='1' transform='translate(1.6 .8)'/%3E%3C/svg%3E"); }
  .logo__b .ch:nth-child(3n) { --crack: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M70 60 L59 71 L66 82 L54 97 L60 110' fill='none' stroke='%233a0805' stroke-width='2.4' stroke-linejoin='miter' stroke-linecap='round'/%3E%3Cpath d='M70 60 L59 71 L66 82 L54 97 L60 110' fill='none' stroke='%23ff8a7a' stroke-opacity='.45' stroke-width='1' transform='translate(1.6 .8)'/%3E%3Cpath d='M59 71 L48 68' fill='none' stroke='%233a0805' stroke-width='2.4' stroke-linejoin='miter' stroke-linecap='round'/%3E%3Cpath d='M59 71 L48 68' fill='none' stroke='%23ff8a7a' stroke-opacity='.45' stroke-width='1' transform='translate(1.6 .8)'/%3E%3Cpath d='M66 82 L78 88 L82 98' fill='none' stroke='%233a0805' stroke-width='2.4' stroke-linejoin='miter' stroke-linecap='round'/%3E%3Cpath d='M66 82 L78 88 L82 98' fill='none' stroke='%23ff8a7a' stroke-opacity='.45' stroke-width='1' transform='translate(1.6 .8)'/%3E%3C/svg%3E"); }
}
.tagline {
  margin: 16px 0 0;
  font: 400 clamp(15px, 2.1vw, 19px)/1.3 var(--f-type);
  color: var(--ink-2);
}
.tagline::before {
  content: '';
  display: inline-block;
  width: .6em; height: .6em;
  margin-right: .5em;
  background: var(--red);
  vertical-align: .02em;
}

/* Foto de ficha (mugshot) */
.mug {
  grid-area: mug;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mug__box {
  position: relative;
  container-type: size;
  width: 210px;
  height: 280px;
}
.mug__frame {
  position: absolute;
  inset: 0;
  border: var(--bw) solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.mug__ruler {
  background-color: var(--chart);
  /* marcas a cada 5 cm na lateral esquerda (escala da régua: 2,05 m no topo, 1,35 m na base) */
  --tick: calc(100% / 14);
  --tick-off: 0px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--tick) - 1px), rgba(22, 20, 18, .6) calc(var(--tick) - 1px), rgba(22, 20, 18, .6) var(--tick));
  background-size: 12px calc(100% + var(--tick));
  background-position: 0 calc(var(--tick-off) - var(--tick));
  background-repeat: no-repeat;
}
.mug__chart, .mug__marks { position: absolute; inset: 0; }
.mug__chart span {
  position: absolute;
  left: 0; right: 0;
  padding: 0 0 2px 16px;
  transform: translateY(-100%);
  border-bottom: 2px solid rgba(22, 20, 18, .5);
  font: 11px/1 var(--f-type);
  color: var(--ink-2);
}
/* Altura do Flávio na régua (vem do mugshot.json) */
.mug__height {
  position: absolute;
  left: 0; right: 0;
  height: 0;
  z-index: 2;
  border-top: 2px dashed var(--red);
  text-align: right;
  padding: 3px 8px 0 0;
  font: 400 12px/1 var(--f-type);
  color: var(--red-2);
}
.mug__height::before { content: '\2248\00a0'; }
/* Camadas: corpo (peito para cima) + placa PROCURA-SE (pendurada no pescoço ou segurada pelas mãos) */
.mug__who {
  position: absolute;
  left: 14%; width: 72%;
  top: 16%; height: 84%;
  z-index: 1;
}
.mug__body { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mug__placa {
  position: absolute;
  left: 22%; top: 70%; width: 56%;
  transform-origin: 50% 20%;
  animation: plate-sway 3.6s ease-in-out infinite alternate;
}
.mug__placa img { display: block; width: 100%; height: auto; }
@keyframes plate-sway {
  from { transform: rotate(calc(var(--swing, 2.5deg) * -1)); }
  to { transform: rotate(var(--swing, 2.5deg)); }
}
/* Placeholder enquanto as imagens não existem: silhueta tracejada discreta */
.mug__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10%;
  background:
    radial-gradient(circle at 50% 22%, rgba(22, 20, 18, .16) 0 17%, transparent 17.5%),
    radial-gradient(ellipse 48% 34% at 50% 100%, rgba(22, 20, 18, .16) 0 99%, transparent 100%);
}
.mug__ph span { font: 12px/1.2 var(--f-type); color: var(--ink-3); background: rgba(212, 208, 196, .85); padding: 3px 6px; }
.mug__who.is-ready .mug__ph { display: none; }
.mug .tape--sash {
  width: 82%;
  left: -24%;
  top: 9%;
  transform: rotate(-38deg);
}
.mug .stamp { right: 5%; top: 6%; transform: rotate(-9deg); font-size: clamp(15px, 10cqw, 40px); } /* dentro da moldura: a borda não corta o "O" */
.mug .tape { font-size: clamp(10px, 4.4cqw, 14px); }
@media (max-width: 520px) { .mug .stamp { right: 4%; top: 6%; font-size: clamp(14px, 10.5cqw, 28px); } }
.mug__flash { position: absolute; inset: 0; z-index: 5; background: #fff; opacity: 0; pointer-events: none; }
.mug__plate {
  margin-top: 14px;
  background: var(--ink);
  color: var(--white);
  font: 13px/1.35 var(--f-type);
  letter-spacing: .06em;
  padding: 7px 12px 6px;
  max-width: min(100%, 460px);
  text-align: center;
  text-wrap: balance; /* legendas sorteadas têm tamanhos diferentes: quebra em linhas equilibradas */
}
/* "MILI" + "CIANO" em destaque (o trocadilho do rodapé da ficha) */
.mug__hl {
  font-weight: 900;
  color: var(--ink);
  background: var(--yellow, #ffd400);
  padding: 1px 3px 0;
  margin: 0 1px;
  letter-spacing: .1em;
}
@media (max-width: 420px) { .mug__plate { font-size: 11.5px; letter-spacing: .04em; padding: 7px 9px 6px; } }

/* Formulário + menu */
.field__label {
  display: block;
  margin: 0 0 6px;
  font: 800 12px/1 var(--f-body);
  font-stretch: 75%;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.field__input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: var(--bw) solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: 20px/1 var(--f-type);
  box-shadow: inset 0 3px 0 rgba(22, 20, 18, .08);
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: var(--ink-3); opacity: .7; }
.field__input:focus-visible { outline-offset: 2px; }

.menu { display: flex; flex-direction: column; gap: 12px; }
.btn--play {
  width: 100%;
  min-height: clamp(60px, 9vh, 78px);
  flex-direction: column;
  gap: 2px;
  background: var(--red);
  color: var(--white);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(30px, 5vh, 44px);
  letter-spacing: .08em;
  line-height: 1;
  padding-top: 8px;
}
.btn--play:hover { background: #e3342b; }
.menu__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.menu__row .btn { padding: 4px 6px; font-size: 13.5px; letter-spacing: .04em; }

/* Retrato baixo (celulares pequenos): compacta para caber sem rolar */
@media (max-aspect-ratio: 1/1) and (max-height: 720px) {
  .ttl { --logo: min(24vw, 11.5vh, 150px); gap: 10px; padding-top: calc(var(--sat) + 8px); padding-bottom: calc(var(--sab) + 12px); }
  .masthead { margin-bottom: 8px; }
  .tagline { margin-top: 10px; font-size: 14px; }
  .field__input { height: 46px; }
  .btn--play { min-height: 56px; font-size: 30px; }
  .menu, .ttl__form { gap: 10px; }
  .mug__plate { margin-top: 10px; }
}

/* Paisagem e desktop: título + menu à esquerda, ficha à direita */
@media (min-aspect-ratio: 1/1) and (min-width: 640px) {
  .ttl {
    --logo: min(12.5vw, 20vh, 184px);
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    grid-template-rows: auto auto;
    grid-template-areas: "head mug" "form mug";
    align-content: center;
    column-gap: clamp(24px, 5vw, 80px);
    row-gap: clamp(14px, 3.2vh, 30px);
  }
  .ttl__head { align-self: end; }
  .ttl__form { align-self: start; max-width: 560px; }
  .menu__row .btn { font-size: 14.5px; }
}
/* Paisagem baixa (celular deitado) */
@media (min-aspect-ratio: 1/1) and (max-height: 540px) {
  .ttl { --logo: min(10.5vw, 19vh, 120px); row-gap: 10px; padding-top: calc(var(--sat) + 8px); padding-bottom: calc(var(--sab) + 10px); }
  .masthead { margin-bottom: 6px; }
  .tagline { font-size: 14px; margin-top: 6px; }
  .field__label { margin-bottom: 4px; }
  .field__input { height: 44px; font-size: 18px; }
  .btn--play { min-height: 52px; font-size: 28px; }
  .menu, .ttl__form { gap: 9px; }
  .menu__row .btn { min-height: 44px; }
  .mug__plate { margin-top: 10px; }
}

/* ======================================================================
   Telas internas (Como funciona, Opções, Créditos)
   ====================================================================== */
.sub__bar {
  flex: none;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: calc(var(--sat) + 10px) calc(var(--sar) + var(--gut)) 10px calc(var(--sal) + var(--gut));
  background: var(--ink);
  color: var(--white);
}
/* fita zebrada separando a barra do conteúdo */
.sub__bar::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -10px;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--tape) 0 14px, var(--ink) 14px 28px);
}
.sub__title {
  margin: 0;
  font: 400 clamp(26px, 5vw, 40px)/1 var(--f-display);
  letter-spacing: .03em;
  text-transform: uppercase;
  padding-top: 3px;
}
.sub__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 34px calc(var(--sar) + var(--gut)) calc(var(--sab) + 40px) calc(var(--sal) + var(--gut));
}
.sub__inner { max-width: 1000px; margin: 0 auto; }

.sec-h {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 10px 3px;
  background: var(--ink);
  color: var(--paper);
  font: 400 21px/1.05 var(--f-display);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- Como funciona ---------- */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "steps" "sketch" "controls" "tips";
  gap: 34px;
}
.how__steps { grid-area: steps; }
.how__sketch { grid-area: sketch; }
.how__controls { grid-area: controls; }
.how__tips { grid-area: tips; }
@media (min-width: 880px) {
  .how {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    grid-template-areas: "steps sketch" "controls controls" "tips tips";
    column-gap: 40px;
  }
}

.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 10px; }
.steps li {
  counter-increment: st;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 10px 14px 12px 10px;
  background: var(--white);
  border: 2px solid var(--ink);
}
.steps li::before {
  content: counter(st);
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  font: 400 28px/1 var(--f-display);
  padding-top: 2px;
}
.steps li.is-fuja::before { background: var(--tape); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.steps b {
  display: block;
  font: 400 20px/1.1 var(--f-display);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 2px 0 2px;
}
.steps span { font-size: 15px; color: var(--ink-2); }

/* Recorte de jornal: o Flávio no jatinho */
.jet { margin: 26px 0 0; display: flex; flex-direction: column; align-items: flex-start; }
.jet__photo {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 10px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}
.jet__photo::before, .jet__photo::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 64px;
  height: 20px;
  background: rgba(255, 210, 26, .85);
  border: 1px solid rgba(22, 20, 18, .25);
}
.jet__photo::before { left: 18px; transform: rotate(-8deg); }
.jet__photo::after { right: 18px; transform: rotate(7deg); }
.jet__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 529;
  object-fit: contain;
  background: linear-gradient(180deg, #8fc6f2 0%, #cfe6f7 70%, #f4e7c9 100%);
}
.jet__cap {
  margin: 12px 0 0 6px;
  padding: 5px 10px 4px;
  background: var(--ink);
  color: var(--white);
  font: 13px/1.2 var(--f-type);
  letter-spacing: .06em;
}

.sketch {
  position: relative;
  height: clamp(380px, 62vh, 540px);
  border: var(--bw) solid var(--ink);
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(23, 72, 166, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 72, 166, .09) 1px, transparent 1px);
  background-size: 20px 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sketch.is-mug { height: clamp(300px, 46vh, 430px); }
.sketch__fig { position: absolute; left: 22%; width: 56%; top: 8%; height: 92%; }
.sketch__full { display: block; width: 100%; height: 100%; object-fit: contain; }
.sketch__mug { left: 0; top: 0; width: 100%; height: 100%; }
.sketch .mug__placa { animation: none; }
.sketch__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sketch__lines path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sketch__lines circle { fill: var(--red); stroke: var(--white); stroke-width: 2; }
.sketch__tag {
  position: absolute;
  left: 10px; top: 10px;
  margin: 0;
  font: 12px/1 var(--f-type);
  color: var(--ink-3);
  letter-spacing: .08em;
}
.callout {
  position: absolute;
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  color: var(--ink-2);
}
.callout b {
  display: block;
  color: var(--ink);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.callout em { font-style: normal; font-weight: 800; color: var(--red-2); }
.callout.is-l { text-align: right; }

.warn {
  position: relative;
  margin: 16px 0 0;
  padding: 12px 14px 12px 50px;
  background: var(--tape);
  border: 2px solid var(--ink);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.35;
}
.warn::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 36px;
  border-right: 2px solid var(--ink);
  background: repeating-linear-gradient(180deg, var(--ink) 0 6px, var(--white) 6px 12px);
}

.ctrl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ctrl { border: 2px solid var(--ink); background: var(--white); padding: 12px 14px 14px; }
.ctrl h3 {
  margin: 0 0 10px;
  font: 800 13px/1 var(--f-body);
  font-stretch: 75%;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red-2);
}
.ctrl dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 12px; align-items: baseline; }
.ctrl dt { white-space: nowrap; }
.ctrl dd { margin: 0; font-size: 15px; }
.ctrl__sep { grid-column: 1 / -1; height: 0; border-top: 1px dashed var(--paper-3); margin: 2px 0; }
kbd {
  display: inline-block;
  font: 700 12.5px/1 var(--f-body);
  font-stretch: 85%;
  letter-spacing: .03em;
  padding: 5px 7px 4px;
  border: 2px solid var(--ink);
  border-bottom-width: 4px;
  border-radius: 4px;
  background: var(--paper);
  white-space: nowrap;
}
.tips { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
/* Dica do iPhone (modo silencioso): só em aparelhos de toque */
@media (hover: hover) and (pointer: fine) { .tips .tip--touch { display: none; } }
.tips li {
  padding: 12px 14px;
  border-left: 6px solid var(--red);
  background: rgba(251, 248, 240, .7);
  font-size: 15px;
}

/* ---------- Opções ---------- */
.opts { max-width: 720px; display: flex; flex-direction: column; gap: 26px; }
.opt-group { border: var(--bw) solid var(--ink); background: var(--white); box-shadow: var(--shadow); }
.opt-group__h {
  margin: 0;
  padding: 8px 14px 6px;
  background: var(--ink);
  color: var(--paper);
  font: 400 19px/1 var(--f-display);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-top: 1px dashed var(--paper-3);
  min-width: 0;
}
.opt-group__h + .opt { border-top: 0; }
.opt__txt { flex: 1; min-width: 0; }
.opt__label { display: block; font-weight: 800; font-size: 16px; line-height: 1.25; }
.opt__desc { display: block; margin: 2px 0 0; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.opt--slider .opt__label { flex: 0 0 74px; }
.opt__val {
  flex: 0 0 48px;
  text-align: right;
  font: 15px/1 var(--f-type);
}
.opt--stack { display: block; }
.opt--stack > legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 10px;
}
.opt--stack > .seg { clear: both; }
.opt--stack > .opt__desc { margin-top: 8px; }
.opt--actions { flex-wrap: wrap; gap: 14px; padding-top: 16px; padding-bottom: 18px; }
.opt__fb { margin: 0; padding: 0 14px 14px; min-height: 1.4em; font: 14px var(--f-type); color: var(--blue-2); }
.is-muted .opt--slider { opacity: .5; }

/* Interruptor */
.switch {
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 2px 4px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 800 12.5px/1 var(--f-body);
  font-stretch: 80%;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.switch__track {
  position: relative;
  width: 56px;
  height: 30px;
  border: var(--bw) solid var(--ink);
  background: var(--paper-2);
  transition: background-color .15s;
}
.switch__thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--ink);
  transition: transform .15s ease;
}
.switch[aria-checked="true"] .switch__track {
  background: repeating-linear-gradient(180deg, var(--ink) 0 4px, var(--white) 4px 8px);
}
.switch[aria-checked="true"] .switch__thumb {
  transform: translateX(26px);
  background: var(--red);
  box-shadow: 0 0 0 2px var(--ink);
}
.switch__state { min-width: 6.4em; text-align: left; }
@media (max-width: 480px) {
  .switch { flex-direction: column; gap: 4px; padding: 2px 0; }
  .switch__state { min-width: 0; text-align: center; font-size: 10.5px; letter-spacing: .08em; }
}

/* Segmentado (rádios nativos) */
.seg { display: flex; border: var(--bw) solid var(--ink); background: var(--white); }
.seg__opt { position: relative; flex: 1 1 0; min-width: 0; }
.seg__opt input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.seg__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 4px 8px;
  border-left: 2px solid var(--ink);
  font-weight: 800;
  font-stretch: 82%;
  font-size: 14.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  pointer-events: none;
}
.seg__opt:first-child span { border-left: 0; }
.seg__opt input:checked + span { background: var(--ink); color: var(--tape); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -7px; }
.seg__opt:hover input:not(:checked) + span { background: var(--paper); }

/* Slider */
input[type="range"] {
  --p: 50%;
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 12px;
  border: 2px solid var(--ink);
  background: linear-gradient(to right, var(--red) var(--p), var(--paper-2) var(--p));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  margin-top: -9px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}
input[type="range"]::-moz-range-track { height: 8px; border: 2px solid var(--ink); background: var(--paper-2); }
input[type="range"]::-moz-range-progress { height: 8px; background: var(--red); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}
input[type="range"]:focus-visible { outline-offset: 0; }

/* ---------- Créditos (tela) ---------- */
.cred { max-width: 680px; }
.cred__list { margin: 0; }
.cred__item { padding: 14px 0 15px; border-bottom: 2px dashed var(--paper-3); }
.cred__item:first-child { padding-top: 0; }
.cred__item dt {
  font: 13.5px/1.2 var(--f-type);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-2);
}
.cred__item dd {
  margin: 5px 0 0;
  font: 400 clamp(22px, 4.4vw, 28px)/1.08 var(--f-display);
  letter-spacing: .015em;
  text-transform: uppercase;
}
.cred__disc {
  margin: 24px 0 0;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-size: 14px;
  line-height: 1.45;
}
.cred__cta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.cred__cta p { margin: 0; flex: 1 1 240px; font: 15px/1.4 var(--f-type); }

/* ======================================================================
   Tela de jogo
   ====================================================================== */
.scr-game { background: transparent; }
.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  outline: none;
}
.pause-btn {
  position: absolute;
  z-index: 50;
  top: calc(var(--sat) + 8px);
  right: calc(var(--sar) + 8px);
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: rgba(22, 20, 18, .84);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
  --focus: var(--tape);
}
.pause-btn i { display: block; width: 6px; height: 18px; background: var(--white); border-radius: 1px; }
.pause-btn:hover { background: var(--ink); }
.pause-btn:active { transform: scale(.94); }

/* Carregando */
.loading {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 12, .86);
}
.loading__box { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0 24px; text-align: center; }
.loading__txt { margin: 0; color: var(--white); font: 17px/1.4 var(--f-type); letter-spacing: .06em; }
.siren { display: flex; gap: 6px; }
.siren i {
  display: block;
  width: 38px; height: 18px;
  border-radius: 12px 12px 2px 2px;
  border: 2px solid var(--ink);
  background: var(--red);
  color: var(--red);
  animation: siren .7s steps(1) infinite;
}
.siren i + i { background: var(--blue); color: #4d7fff; animation-delay: .35s; }
@keyframes siren {
  0% { opacity: 1; box-shadow: 0 0 26px 6px currentColor; }
  50% { opacity: .25; box-shadow: none; }
}

/* ======================================================================
   Cutscene (só áudio + legenda)
   ====================================================================== */
.cs {
  position: absolute;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--night);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  transition: opacity .35s ease;
  --focus: var(--tape);
}
.cs.is-in { opacity: 1; }
.cs.is-out { opacity: 0; transition-duration: .25s; }
.cs:focus { outline: none; }
.cs__fx {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  background-image: var(--grain-film);
  background-size: 200px 200px;
  opacity: .09;
  animation: grain .9s steps(5) infinite;
}
.cs::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0, 0, 0, .78) 100%);
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-14px, 9px); }
  40% { transform: translate(11px, -16px); }
  60% { transform: translate(-7px, 18px); }
  80% { transform: translate(16px, 4px); }
  100% { transform: translate(0, 0); }
}
.cs__skip {
  position: absolute;
  z-index: 4;
  top: calc(var(--sat) + 12px);
  right: calc(var(--sar) + 12px);
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid rgba(251, 248, 240, .5);
  background: rgba(11, 11, 12, .4);
  color: var(--white);
  font: 800 14px/1 var(--f-body);
  font-stretch: 82%;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cs__skip:hover { border-color: var(--white); }
.cs__count {
  position: absolute;
  z-index: 3;
  top: calc(var(--sat) + 26px);
  left: calc(var(--sal) + 18px);
  margin: 0;
  font: 13px/1 var(--f-type);
  letter-spacing: .14em;
  color: rgba(251, 248, 240, .45);
}
.cs__chapter {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 calc(var(--sar) + 24px) 0 calc(var(--sal) + 24px);
}
.cs__kicker {
  display: inline-block;
  margin: 0 0 20px;
  padding: 9px 14px 6px 18px;
  background: var(--tape);
  color: var(--ink);
  font: 400 clamp(16px, 2.4vw, 22px)/1 var(--f-display);
  letter-spacing: .26em;
  transform: rotate(-2deg);
}
.cs__title {
  margin: 0 auto;
  max-width: 13ch;
  font: 400 clamp(42px, 9vw, 108px)/.96 var(--f-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.cs__rule {
  display: block;
  width: 120px;
  height: 6px;
  margin: 24px auto 0;
  background: var(--red);
  transform-origin: left center;
}
.cs.is-in .cs__chapter.is-on .cs__kicker { animation: cs-drop .5s cubic-bezier(.2, 1.3, .4, 1) both; }
.cs.is-in .cs__chapter.is-on .cs__title { animation: cs-rise .7s .12s cubic-bezier(.2, .9, .3, 1) both; }
.cs.is-in .cs__chapter.is-on .cs__rule { animation: cs-rule .9s .3s cubic-bezier(.2, .9, .3, 1) both; }
.cs__chapter.is-off { opacity: 0; transition: opacity .3s; }
@keyframes cs-drop { from { opacity: 0; transform: translateY(-14px) rotate(-6deg); } }
@keyframes cs-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes cs-rule { from { transform: scaleX(0); } }

.cs__line {
  position: relative;
  z-index: 2;
  width: min(100%, 36em);
  padding: 0 calc(var(--sar) + 24px) 6vh calc(var(--sal) + 24px);
}
.cs__line.is-enter { animation: cs-line .35s ease-out both; }
@keyframes cs-line { from { opacity: 0; transform: translateY(8px); } }
.cs__who { margin: 0 0 16px; }
.cs__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px 5px;
  font: 400 15px/1 var(--f-display);
  letter-spacing: .22em;
  text-transform: uppercase;
}
.is-narrador .cs__badge { color: rgba(251, 248, 240, .75); border: 1px solid rgba(251, 248, 240, .35); }
.is-central .cs__badge { background: var(--blue); color: var(--white); }
.is-flavio .cs__badge {
  background: var(--white);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--red);
}
.cs__tag {
  background: var(--ink);
  color: var(--white);
  padding: 3px 5px 1px;
  font-size: 12px;
  letter-spacing: .06em;
}
.cs__led { width: 9px; height: 9px; border-radius: 50%; background: #ff4b3e; box-shadow: 0 0 8px #ff4b3e; }
.cs__radio { font-family: var(--f-type); font-size: 11px; letter-spacing: .12em; opacity: .75; text-transform: lowercase; }
.cs__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.cs__bars i { display: block; width: 3px; height: 25%; background: currentColor; }
.is-talking .cs__led { animation: blink .9s steps(1) infinite; }
.is-talking .cs__bars i { animation: bars .42s ease-in-out infinite alternate; }
.is-talking .cs__bars i:nth-child(2) { animation-delay: -.12s; }
.is-talking .cs__bars i:nth-child(3) { animation-delay: -.3s; }
.is-talking .cs__bars i:nth-child(4) { animation-delay: -.2s; }
.is-talking .cs__bars i:nth-child(5) { animation-delay: -.36s; }
@keyframes bars { from { height: 20%; } to { height: 100%; } }
@keyframes blink { 50% { opacity: .15; } }

.cs__text {
  margin: 0;
  font: 400 clamp(21px, 3.3vw, 34px)/1.42 var(--f-type);
  color: #f3efe4;
  text-wrap: pretty;
}
.is-central .cs__text { color: #cfe0ff; text-shadow: 0 0 22px rgba(70, 130, 255, .35); }
.is-flavio .cs__text { color: #ffe27a; }
.cs__rest { color: transparent; text-shadow: none; }
.cs__caret {
  display: inline-block;
  width: 0;
  height: 1.02em;
  margin-right: -.42em;
  border-left: .42em solid currentColor;
  vertical-align: -.17em;
  opacity: .85;
}
.cs.is-ready .cs__caret { animation: blink 1s steps(1) infinite; }
.cs__hint {
  position: absolute;
  z-index: 3;
  left: 0; right: 0;
  bottom: calc(var(--sab) + 26px);
  margin: 0;
  text-align: center;
  font: 13px/1 var(--f-type);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(251, 248, 240, .55);
  opacity: 0;
  transition: opacity .3s;
}
.cs.is-ready .cs__hint { opacity: 1; animation: hint-pulse 1.8s ease-in-out infinite; }
@keyframes hint-pulse { 50% { opacity: .35; } }

/* Crachás do final: Presidente Trumpo (bandeirinha) e Big Xande (martelo de juiz) */
.cs__ico { display: block; flex: none; width: 24px; height: 16px; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .45); }
.cs__ico--gavel { width: 18px; height: 18px; box-shadow: none; }
.is-trumpo .cs__badge { background: #1e3a8a; color: var(--white); box-shadow: 4px 4px 0 #c8202a; }
.is-xande .cs__badge { background: var(--ink); color: var(--white); outline: 2px solid var(--white); outline-offset: -5px; box-shadow: 4px 4px 0 var(--red); padding: 9px 13px 7px; }
.is-trumpo .cs__text { color: #ffc27a; }
.is-xande .cs__text { color: #f1e9ff; text-shadow: 0 0 18px rgba(215, 38, 30, .35); }

/* ---------- Cutscene com cena animada (opts.scene): cena atrás, legenda numa faixa embaixo ---------- */
.cs--scene { display: block; }
.cs__stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cs--scene .cs__fx { z-index: 1; opacity: .05; }
.cs--scene::after { z-index: 1; background: radial-gradient(ellipse at 50% 40%, transparent 58%, rgba(0, 0, 0, .42) 100%); }
/* faixa escura no alto: contador e "Pular" legíveis sobre o céu */
.cs--scene::before {
  content: '';
  position: absolute;
  z-index: 2;
  left: 0; right: 0; top: 0;
  height: calc(var(--sat) + 78px);
  background: linear-gradient(rgba(11, 11, 12, .72), rgba(11, 11, 12, 0));
  pointer-events: none;
}
.cs--scene .cs__count { color: rgba(251, 248, 240, .8); }
.cs--scene .cs__chapter {
  position: absolute;
  z-index: 3;
  left: 50%; top: 40%;
  width: min(94%, 980px);
  padding: 34px 24px 40px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse closest-side, rgba(11, 11, 12, .7), rgba(11, 11, 12, .38) 60%, rgba(11, 11, 12, 0));
  text-shadow: 0 4px 0 #000, 0 0 30px rgba(0, 0, 0, .55);
}
.cs--scene .cs__line {
  --cs-cap: clamp(148px, 25vh, 228px);
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  width: auto;
  min-height: var(--cs-cap);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px calc(var(--sar) + 22px) calc(var(--sab) + 40px) calc(var(--sal) + 22px);
  background: rgba(11, 11, 12, .9);
  transition: opacity .3s, transform .3s;
}
/* fita zebrada separando a cena da legenda */
.cs--scene .cs__line::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -6px;
  height: 7px;
  background: repeating-linear-gradient(-45deg, var(--tape) 0 12px, var(--ink) 12px 24px);
}
.cs--scene .cs__who, .cs--scene .cs__text { width: min(100%, 46em); }
.cs--scene .cs__who { margin: 0 0 10px; }
.cs--scene .cs__text { font-size: clamp(17px, 1.25vw + 1vh, 26px); line-height: 1.38; }
.cs--scene .cs__hint { z-index: 4; bottom: calc(var(--sab) + 13px); }
.cs--scene .cs__line.is-gone { opacity: 0; transform: translateY(18px); pointer-events: none; }
@media (max-aspect-ratio: 4/5) {
  .cs--scene .cs__line { --cs-cap: clamp(190px, 33vh, 330px); padding-top: 24px; }
  .cs--scene .cs__chapter { top: 36%; }
}
@media (max-height: 460px) {
  .cs--scene .cs__line { --cs-cap: 132px; padding-top: 14px; padding-bottom: calc(var(--sab) + 30px); }
  .cs--scene .cs__text { font-size: 16px; }
  .cs--scene .cs__hint { bottom: calc(var(--sab) + 8px); }
}

/* ======================================================================
   Cutscene animada do final — aeroporto de Miami (js/ui/miami-scene.js)
   Bonecos de recorte em SVG movidos por Web Animations. Aqui: camadas, estados (terno/toga, máscara,
   mãos), loops (respiração, fala, bandeiras, sirene) e o quadro congelado "PRESO EM MIAMI".
   Unidades das camadas .mi-far/.mi-world = px do mundo (a câmera aplica translate + scale).
   ====================================================================== */
.mi { position: absolute; inset: 0; overflow: hidden; background: #a9d4ec; contain: layout paint; }
.mi svg { overflow: visible; }
.mi .mi-clip { overflow: hidden; }
.mi-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mi-shake { position: absolute; inset: 0; }
.mi-layer, .mi-ch, .mi-pos, .mi-act, .mi-breath, .mi-j, .mi-fl-h { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.mi-layer, .mi-pos { transform-origin: 0 0; }
.mi-act, .mi-breath { transform-origin: var(--fx) var(--fy); }
.mi-part, .mi-abs { position: absolute; display: block; max-width: none; }
.mi-sky {
  position: absolute;
  left: -14000px; top: -9000px;
  width: 30000px; height: 9700px;
  background: linear-gradient(180deg, #2a6fbf 0, #3f8fd6 6000px, #6fb2e6 8100px, #a3d2ee 8800px, #d6eaf0 9250px, #ffe2bd 9520px, #ffc995 9700px);
}
.mi-ground {
  position: absolute;
  left: -14000px; top: 690px;
  width: 30000px; height: 9000px;
  background: linear-gradient(180deg, #c3b3ad 0, #a29b9c 50px, #8a8a92 260px, #73757f 640px, #5c5f69 1200px, #45484f 2600px);
}
.mi-dim, .mi-tint { left: -14000px; top: -9000px; width: 30000px; height: 20000px; opacity: 0; pointer-events: none; }
.mi-dim { background: #06060c; }
.mi-tint { background: #3d0a22; }
.mi-ch.is-off { visibility: hidden; }
.mi-doc { opacity: 0; transform-origin: 80% 85%; }
.mi-maskdrop { opacity: 0; transform-origin: 50% 90%; }

/* estados dos bonecos */
.mi-x .sk-robe, .mi-x.is-robe .sk-suit, .mi-x.is-unmasked .mi-x-mask { display: none; }
.mi-x.is-robe .sk-robe { display: block; }
/* Flávio: em pé (normal) → is-desp (mãos para cima, cara de pânico) → is-cuffed (algemado, cara de pânico) */
.mi-fl-b--s, .mi-fl-b--c, .mi-fl-h--s,
.mi-fl.is-desp .mi-fl-b--n, .mi-fl.is-desp .mi-fl-h--n,
.mi-fl.is-cuffed .mi-fl-b--n, .mi-fl.is-cuffed .mi-fl-b--s, .mi-fl.is-cuffed .mi-fl-h--n { display: none; }
.mi-fl.is-desp .mi-fl-b--s, .mi-fl.is-desp .mi-fl-h--s, .mi-fl.is-cuffed .mi-fl-b--c, .mi-fl.is-cuffed .mi-fl-h--s { display: block; }
.mi-h { display: none; }
[data-h="hang"] > .mi-h--hang, [data-h="open"] > .mi-h--open, [data-h="thumb"] > .mi-h--thumb,
[data-h="pinch"] > .mi-h--pinch, [data-h="fist"] > .mi-h--fist, [data-h="stop"] > .mi-h--stop { display: block; }

/* respiração (parado) e quique de fala */
.mi-breath { animation: mi-breath 3.4s ease-in-out infinite; }
.mi-x .mi-breath { animation-duration: 4s; animation-delay: -1.3s; }
.mi-pf .mi-breath { animation-duration: 3.7s; animation-delay: -2.1s; }
.mi-ch.is-talking .mi-breath { animation: mi-talkbob .46s ease-in-out infinite; }
@keyframes mi-breath { 50% { transform: scale(.996, 1.014); } }
@keyframes mi-talkbob { 50% { transform: translateY(-5px) scale(1, 1.008); } }
/* boca: abre e fecha em ritmo irregular */
.mi-x.is-talking .mi-talk { animation: mi-mouth .7s ease-in-out infinite; }
@keyframes mi-mouth {
  0%, 100% { transform: scale(1, 1); }
  18% { transform: scale(1.05, 1.55); }
  34% { transform: scale(1, 1.08); }
  56% { transform: scale(1.08, 1.75); }
  74% { transform: scale(1, 1.2); }
}
.mi-fl.is-talking .mi-fl-head { animation: mi-fl-head .9s ease-in-out infinite; }
.mi-fl.is-talking .mi-fl-jaw { animation: mi-fl-jaw .24s ease-in-out infinite alternate; }
@keyframes mi-fl-head { 0%, 100% { transform: rotate(0); } 28% { transform: rotate(-2.4deg) translateY(-2px); } 64% { transform: rotate(1.8deg) translateY(1px); } }
@keyframes mi-fl-jaw { from { transform: scaleY(1); } to { transform: scaleY(1.1); } }

.mi-flag { transform-origin: 0 50%; animation: mi-flag 1.9s ease-in-out infinite; }
.mi-flag--br { animation-delay: -.8s; }
@keyframes mi-flag { 0%, 100% { transform: skewY(2.5deg) scaleX(.96); } 50% { transform: skewY(-3deg) scaleX(1); } }

/* efeitos de tela */
.mi-spot, .mi-siren, .mi-flash, .mi-fxs { position: absolute; inset: 0; pointer-events: none; }
.mi-spot { opacity: 0; background: radial-gradient(ellipse 62% 72% at 50% 42%, rgba(5, 5, 12, 0) 38%, rgba(5, 5, 12, .78) 100%); }
.mi-siren { opacity: 0; }
.mi-siren::before, .mi-siren::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60%; animation: mi-siren .7s steps(1) infinite; }
.mi-siren::before { left: 0; background: radial-gradient(ellipse at 0% 38%, rgba(230, 30, 30, .62), rgba(230, 30, 30, 0) 66%); }
.mi-siren::after { right: 0; background: radial-gradient(ellipse at 100% 38%, rgba(40, 100, 255, .62), rgba(40, 100, 255, 0) 66%); animation-delay: -.35s; }
@keyframes mi-siren { 50% { opacity: .12; } }
.mi-flash { z-index: 6; opacity: 0; background: #fff; }
.mi-fxs { z-index: 5; overflow: hidden; }
.mi-sp { position: absolute; pointer-events: none; }
.mi-pt svg, .mi-burst svg { display: block; width: 100%; height: auto; }
.mi-cf { position: absolute; top: 0; width: 10px; height: 15px; border-radius: 2px; }
.mi-bolt { position: absolute; left: 14%; top: 0; width: 16%; height: 72%; opacity: 0; }
.mi-bolt svg { width: 100%; height: 100%; filter: drop-shadow(0 0 18px #c9b8ff); }
.mi-pap {
  width: 200px; height: 200px;
  margin: -100px 0 0 -100px;
  background: radial-gradient(circle, #fff 0, rgba(255, 255, 255, .9) 10%, rgba(255, 255, 255, .25) 32%, rgba(255, 255, 255, 0) 62%);
}
/* onomatopeias de gibi (no mundo: crescem com a câmera) */
.mi-burst { position: relative; width: 270px; transform: rotate(var(--r)); filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, .35)); }
.mi-burst b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
  font: 400 52px/1 var(--f-display);
  letter-spacing: .02em;
  color: var(--ink);
}
.mi-burst--sm { width: 210px; }
.mi-burst--sm b { font-size: 48px; }
.mi-burst--red b { color: var(--white); }
.mi-burst--us { width: 330px; }
.mi-burst--us b { font-size: 40px; color: #1e3a8a; }

/* ---------- Quadro congelado: foto da prisão + carimbo ---------- */
.mi-out { position: absolute; inset: 0; z-index: 4; overflow: hidden; opacity: 0; }
.mi-out__bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, #22345e 0%, #0d1528 62%, #070b16 100%); }
.mi-out__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 5px var(--red), inset 0 0 70px 14px rgba(215, 38, 30, .45);
  animation: siren-edge .7s steps(1) infinite;
}
.mi-out__print {
  position: absolute;
  left: 50%; top: 48%;
  width: min(88vw, calc((100vh - 230px) * 1.6 + 28px), 1000px);
  margin: 0;
  padding: 14px 14px 10px;
  background: var(--white);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .65);
  transform: translate(-50%, -50%) rotate(-2.5deg);
}
.mi-out__photo {
  position: relative;
  aspect-ratio: 1152 / 720;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 38%, #22345e 0%, #0d1528 62%, #070b16 100%);
}
.mi-out__emb { position: absolute; left: 50%; top: 2%; height: 78%; width: auto; transform: translateX(-50%); opacity: .55; }
.mi-out__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.mi-out__cap { margin: 0; padding-top: 8px; text-align: center; font: 15px/1.2 var(--f-type); color: var(--ink-2); }
.mi-out__tag {
  position: absolute;
  left: 50%; top: calc(var(--sat) + 22px);
  margin: 0;
  padding: 8px 14px 6px;
  background: var(--tape);
  color: var(--ink);
  font: 400 clamp(14px, 1.6vw, 20px)/1 var(--f-display);
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, 0) rotate(-3deg);
  box-shadow: 4px 4px 0 var(--ink);
}
.mi-out__stamp {
  position: absolute;
  left: 60%; top: 64%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .16em .45em .1em;
  background: var(--red);
  color: var(--white);
  border: 4px solid var(--white);
  outline: 6px solid var(--red);
  font: 400 clamp(38px, 7vw, 104px)/.92 var(--f-display);
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, .5);
  transform: translate(-50%, -50%) rotate(-11deg);
  -webkit-mask-image: var(--rough);
  mask-image: var(--rough);
  -webkit-mask-size: 140px 140px;
  mask-size: 140px 140px;
}
.mi-out__stamp span + span { font-size: .62em; letter-spacing: .14em; }
@media (max-aspect-ratio: 4/5) {
  .mi-out__tag { top: calc(var(--sat) + 76px); }
  .mi-out__print { top: 44%; width: 92vw; }
  .mi-out__stamp { left: 50%; top: 66%; font-size: clamp(40px, 13vw, 80px); }
}

/* lâmpada do voo PF 001 piscando no painel de partidas */
.mi-blink { animation: blink 1.1s steps(1) infinite; }

/* ---------- Tela final (FG.Cutscene.play com opts.end): botões sobre o quadro congelado ---------- */
.cs__end {
  position: absolute;
  z-index: 5;
  left: 0; right: 0;
  bottom: calc(var(--sab) + 24px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  padding: 0 calc(var(--sar) + 18px) 0 calc(var(--sal) + 18px);
  cursor: default;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .35s ease, transform .4s cubic-bezier(.2, 1.3, .4, 1);
}
.cs__end.is-in { opacity: 1; transform: none; }
.cs__endbtn { min-width: 180px; box-shadow: 5px 5px 0 rgba(0, 0, 0, .6); }
.cs__endbtn:hover { box-shadow: 6px 6px 0 rgba(0, 0, 0, .6); }
.cs__endbtn:active { box-shadow: 1px 1px 0 rgba(0, 0, 0, .6); }
.cs.is-end { cursor: default; }
.cs.is-end .cs__skip, .cs.is-end .cs__hint, .cs.is-end .cs__count { display: none; }
/* com botões, o quadro sobe para abrir espaço embaixo */
.cs--end .mi-out__print { top: 45%; width: min(84vw, calc((100vh - 300px) * 1.6 + 28px), 940px); }
.cs--end .mi-out__stamp { top: 60%; }
@media (max-aspect-ratio: 4/5) {
  .cs__end { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .cs__endbtn { min-width: 0; padding: 6px 8px; font-size: 16px; letter-spacing: .03em; }
  .cs--end .mi-out__print { top: 41%; }
  .cs--end .mi-out__stamp { top: 63%; font-size: clamp(36px, 11vw, 66px); }
}
/* celular deitado (tela baixa): botões numa coluna à direita, foto à esquerda */
@media (max-height: 500px) and (min-aspect-ratio: 1/1) {
  .cs__end {
    left: auto; right: calc(var(--sar) + 18px);
    top: 50%; bottom: auto;
    width: 200px;
    padding: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    transform: translate(18px, -50%);
  }
  .cs__end.is-in { transform: translate(0, -50%); }
  .cs__endbtn { width: 100%; min-width: 0; min-height: 46px; font-size: 15px; }
  .cs--end .mi-out__print { left: calc((100% - 230px) / 2); top: 53%; width: min(calc(100vw - 300px), calc((100vh - 140px) * 1.6 + 28px)); }
  .cs--end .mi-out__stamp { left: calc((100% - 230px) / 2 + 8%); top: 68%; font-size: clamp(28px, 5.5vw, 48px); }
  .cs--end .mi-out__tag { left: calc((100% - 230px) / 2); top: calc(var(--sat) + 8px); }
}
@media (prefers-reduced-motion: reduce) { .cs__end { transition: none; } }
.rm .cs__end { transition: none; }

/* Animações reduzidas: nada de loop (a cena vira uma sequência de quadros) */
.mi--rm .mi-blink, .mi--rm .mi-breath, .mi--rm .mi-flag, .mi--rm .mi-siren::before, .mi--rm .mi-siren::after,
.mi--rm .is-talking .mi-talk, .mi--rm .is-talking .mi-fl-head, .mi--rm .is-talking .mi-fl-jaw, .mi--rm .mi-out__bg::after { animation: none !important; }

/* ======================================================================
   Créditos finais (rolando)
   ====================================================================== */
.roll {
  position: absolute;
  inset: 0;
  z-index: 75;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
  opacity: 0;
  transition: opacity .6s ease;
  --focus: var(--tape);
}
.roll.is-in { opacity: 1; }
.roll.is-out { opacity: 0; transition-duration: .35s; }
.roll::before {
  content: '';
  position: absolute;
  inset: -40px;
  background-image: var(--grain-film);
  background-size: 200px 200px;
  opacity: .07;
  pointer-events: none;
}
.roll__cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.roll__view {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 13%, #000 87%, transparent 100%);
}
.roll__content {
  position: absolute;
  left: 0; right: 0; top: 0;
  padding: 0 calc(var(--sar) + 24px) 0 calc(var(--sal) + 24px);
  text-align: center;
  will-change: transform;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}
.roll__kicker { margin: 0 0 18px; font: 14px/1 var(--f-type); letter-spacing: .3em; text-transform: uppercase; color: var(--tape); }
.roll__logo {
  margin: 0;
  font: 400 clamp(54px, 11vw, 132px)/.92 var(--f-display);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.roll__logo span { display: block; }
.roll__logo .roll__l1 { font-size: .42em; color: var(--red); letter-spacing: .06em; }
.roll__logo .roll__l2 { padding-top: .2em; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .roll__logo .roll__l2 {
    background-image: linear-gradient(180deg, #f0473c 0%, var(--red) 52%, #9f150e 100%);
    background-position: 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: max(2px, .02em) var(--white);
    text-shadow: none;
    filter: drop-shadow(.04em .04em 0 rgba(0, 0, 0, .9));
  }
}
.roll__tag { margin: 18px 0 0; font: clamp(16px, 2.2vw, 20px)/1.4 var(--f-type); color: rgba(251, 248, 240, .75); }
.roll__list { margin: 22vh auto 0; max-width: 34em; }
.roll__item { margin: 0 0 9vh; }
.roll__item dt { font: 14px/1.3 var(--f-type); letter-spacing: .16em; text-transform: uppercase; color: var(--tape); }
.roll__item dd { margin: 8px 0 0; font: 400 clamp(26px, 4.4vw, 42px)/1.08 var(--f-display); text-transform: uppercase; letter-spacing: .015em; }
.roll__disc { margin: 14vh auto 0; max-width: 32em; font: 15px/1.55 var(--f-type); color: rgba(251, 248, 240, .7); }
.roll__thanks {
  margin: 24vh 0 0;
  padding-bottom: 6px;
  font: 400 clamp(44px, 9vw, 96px)/.95 var(--f-display);
  text-transform: uppercase;
  color: var(--tape);
}
.roll__after { margin: 14px 0 30vh; font: 16px/1.4 var(--f-type); color: rgba(251, 248, 240, .7); }
.roll__skip {
  position: absolute;
  z-index: 4;
  top: calc(var(--sat) + 12px);
  right: calc(var(--sar) + 12px);
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid rgba(251, 248, 240, .5);
  background: rgba(11, 11, 12, .5);
  color: var(--white);
  font: 800 14px/1 var(--f-body);
  font-stretch: 82%;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.roll__skip:hover { border-color: var(--white); }
/* Versão estática (animações reduzidas): lista rolável, sem movimento */
.roll.is-static .roll__view { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
.roll.is-static .roll__content { position: static; padding-top: calc(var(--sat) + 90px); transform: none !important; }
.roll.is-static .roll__list { margin-top: 8vh; }
.roll.is-static .roll__item { margin-bottom: 5vh; }
.roll.is-static .roll__thanks { margin-top: 10vh; }
.roll.is-static .roll__after { margin-bottom: 12vh; }

/* ======================================================================
   Modais
   ====================================================================== */
.layer-modals { position: absolute; inset: 0; z-index: 90; pointer-events: none; }
.modal-back {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--sat) + 14px) calc(var(--sar) + 14px) calc(var(--sab) + 14px) calc(var(--sal) + 14px);
  background-color: rgba(11, 11, 12, .78);
  background-image: radial-gradient(rgba(0, 0, 0, .35) 1px, transparent 1.6px);
  background-size: 4px 4px;
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-back.is-in { opacity: 1; }
.modal-back.is-out { opacity: 0; transition-duration: .18s; }
.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image: var(--grain);
  background-size: 180px 180px;
  border: var(--bw) solid var(--ink);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .55);
  transform: translateY(18px) rotate(-1.4deg) scale(.9);
  transition: transform .34s cubic-bezier(.2, 1.4, .4, 1);
}
.modal-back.is-in .modal { transform: none; }
.modal:focus { outline: none; }
.modal__card { display: flex; flex-direction: column; min-height: 0; max-height: 100%; }
.modal__head { flex: none; padding: 18px 20px 8px; }
.modal__kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px 4px;
  background: var(--red);
  color: var(--white);
  font: 400 14px/1 var(--f-display);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.modal__title {
  margin: 0;
  font: 400 clamp(28px, 6.2vw, 42px)/1 var(--f-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 18px;
}
.modal__foot {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  padding: 14px 20px 20px;
  border-top: 2px dashed var(--paper-3);
}
.modal__foot .btn { flex: 1 1 auto; }
.modal__foot .btn--primary { flex: 2 1 auto; }
@media (max-width: 420px) { .modal__foot .btn--xl { font-size: 16px; padding-left: 10px; padding-right: 10px; } }
.modal__lead { margin: 4px 0 0; font-size: 17px; line-height: 1.45; }

/* ---------- Encontrado! ---------- */
.m-found .modal { max-width: 470px; text-align: center; }
.m-found .modal__body { padding: 22px 22px 22px; }
.m-found .modal::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: #fff;
  pointer-events: none;
  opacity: 0;
}
.m-found.is-in .modal::after { animation: flash .55s ease-out; }
@keyframes flash { from { opacity: .95; } to { opacity: 0; } }
.found__kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 7px 10px 5px 14px;
  background: var(--ink);
  color: var(--tape);
  font: 400 16px/1 var(--f-display);
  letter-spacing: .32em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.found__title {
  margin: 0;
  font: 400 clamp(32px, 8.6vw, 50px)/.96 var(--f-display);
  letter-spacing: .01em;
  text-transform: uppercase;
}
.found__title span { display: block; color: var(--red); }
/* Avatar do Flávio desesperado (432×490) sobre a sirene piscando */
.found__pic {
  --px: 4;                               /* escala do pixel art */
  position: relative;
  width: calc(54px * var(--px) + 40px);
  height: calc(61.25px * var(--px) + 16px);
  margin: 14px auto 8px;
  border: var(--bw) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: visible;
}
.found__siren {
  position: absolute;
  inset: 0;
  background: var(--red);
  animation: siren-bg .7s steps(1) infinite;
}
@keyframes siren-bg { 50% { background: var(--blue); } }
.found__cv {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(54px * var(--px));
  height: calc(61.25px * var(--px));
  transform: translateX(-50%);
}
.found__pic .stamp {
  right: -28px; top: 14px;
  transform: rotate(10deg);
  font-size: clamp(16px, 2.8vh, 24px);
  color: var(--white);
  mix-blend-mode: normal;
  background: rgba(22, 20, 18, .55);
}
@media (min-height: 760px) and (min-width: 480px) { .found__pic { --px: 5; } }
@media (max-height: 700px) { .found__pic { --px: 3; } }
/* O card treme junto com o Flávio (desligado com movimento reduzido) */
.m-found.is-in .modal { animation: card-shake 2.6s ease-in-out .5s infinite; }
@keyframes card-shake {
  0%, 86%, 100% { transform: none; }
  88% { transform: translate(-3px, 1px) rotate(-.6deg); }
  90% { transform: translate(3px, -1px) rotate(.5deg); }
  92% { transform: translate(-2px, 0) rotate(-.3deg); }
  94% { transform: translate(2px, 1px); }
}
.found__sub { margin: 12px 0 16px; font: 17px/1.4 var(--f-type); }
.found__hint { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }

.btn-fuja {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  min-height: 100px;
  padding: 14px 10px 8px;
  border: 4px solid var(--ink);
  background: var(--tape);
  color: var(--ink);
  font: 400 clamp(58px, 13vw, 86px)/1 var(--f-display);
  letter-spacing: .08em;
  box-shadow: 7px 7px 0 var(--ink);
  animation: fuja-pulse 1.1s ease-in-out infinite;
  touch-action: manipulation;
}
.btn-fuja::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 9px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--ink) 0 10px, var(--tape) 10px 20px) 9;
  pointer-events: none;
}
.btn-fuja:hover { background: #ffdb45; }
.btn-fuja:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); animation: none; }
.btn-fuja:focus-visible { outline-offset: 5px; }
/* Celular deitado / telas baixas: foto à esquerda, chamada e FUJA! à direita (botão sempre visível). */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .m-found .modal { max-width: 760px; text-align: left; }
  .m-found .modal__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "pic kicker" "pic title" "pic sub" "pic btn" "pic hint";
    column-gap: 22px;
    align-items: center;
    padding: 16px 20px;
  }
  .found__kicker { grid-area: kicker; justify-self: start; margin-bottom: 6px; }
  .found__title { grid-area: title; font-size: clamp(26px, 7.4vh, 40px); }
  .found__title span { display: inline; }
  .found__pic { grid-area: pic; --px: 3; margin: 0; }
  .found__sub { grid-area: sub; margin: 8px 0 12px; font-size: 15px; }
  .btn-fuja { grid-area: btn; min-height: 76px; font-size: clamp(44px, 13vh, 64px); }
  .found__hint { grid-area: hint; margin-top: 10px; font-size: 13px; }
}
@keyframes fuja-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

/* ---------- Fase concluída ---------- */
.clear__phase { margin: 4px 0 0; font: 16px/1.3 var(--f-type); color: var(--ink-2); }
.report { margin: 16px 0 0; border-top: 3px solid var(--ink); }
.report__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 2px 9px;
  border-bottom: 1px dashed var(--ink-3);
}
.report dt { flex: 1; font-weight: 700; font-size: 15px; }
.report dd { margin: 0; font: 21px/1 var(--f-type); }
.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 6px 2px;
  background: var(--tape);
  border: 2px solid var(--ink);
  font: 400 12px/1 var(--f-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.clear__next { margin: 16px 0 0; font-size: 15px; }

/* ---------- Morte (rota da fuga) ---------- */
.m-death .modal { max-width: 720px; }
.escape { margin: 4px 0 4px; }
.escape__track {
  position: relative;
  height: 20px;
  margin-right: 14px;
  border: var(--bw) solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--white) 0 12px, var(--paper-2) 12px 24px);
}
.escape__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); }
.escape__mark {
  position: absolute;
  top: -9px;
  width: 4px;
  height: 32px;
  margin-left: -2px;
  background: var(--ink);
}
.escape__flag {
  position: absolute;
  right: -17px;
  top: -12px;
  width: 22px;
  height: 38px;
  border: 2px solid var(--ink);
  background: conic-gradient(var(--ink) 25%, var(--white) 0 50%, var(--ink) 0 75%, var(--white) 0) 0 0 / 9px 9px;
}
.escape__lead { margin: 0 0 14px; font-size: 16px; line-height: 1.4; }
.escape__txt { margin: 10px 0 0; font: 15px/1.4 var(--f-type); }
.route {
  list-style: none;
  display: flex;
  justify-content: space-between;
  margin: 12px 14px 0 0;
  padding: 0;
  position: relative;
}
.route::before {
  content: '';
  position: absolute;
  left: 7px; right: 7px; top: 6px;
  border-top: 2px dashed var(--ink-3);
}
.route__stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.route__stop:first-child { align-items: flex-start; }
.route__stop:last-child { align-items: flex-end; }
.route__dot {
  position: relative;
  width: 14px; height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}
.route__code { font: 400 13px/1 var(--f-display); letter-spacing: .08em; color: var(--ink-3); }
.route__stop.is-past .route__dot { background: var(--ink); }
.route__stop.is-past .route__code { color: var(--ink); }
.route__stop.is-here .route__dot { background: var(--red); border-color: var(--red-2); box-shadow: 0 0 0 3px rgba(215, 38, 30, .25); }
.route__stop.is-here .route__code { color: var(--red-2); }
.route__here {
  position: absolute;
  top: 36px;
  white-space: nowrap;
  font: 11px/1 var(--f-type);
  color: var(--red-2);
}
.route__stop.is-here:first-child .route__here { left: 0; }
.route__stop.is-here:last-child .route__here { right: 0; }
.route:has(.is-here) + .escape__txt { margin-top: 26px; }
.escape__txt b { font-family: var(--f-display); font-weight: 400; font-size: 22px; color: var(--red-2); }

/* ---------- Compartilhe com os amigos ----------
   Cartaz de poste: o recado datilografado num papel novo preso com fita amarela e, depois do picotado,
   as abas de destacar (uma por app), que "descolam" no hover. Embaixo: Compartilhar (nativo) e Copiar link. */
.ico { display: block; flex: none; width: 22px; height: 22px; fill: currentColor; }
.ico .ico-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share { position: relative; text-align: center; }
.share__h {
  margin: 0 0 24px;
  font: 400 26px/1 var(--f-display);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.share__flyer {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
  background: var(--white);
  border: var(--bw) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-.8deg);
}
/* pedaço de fita adesiva segurando o cartaz */
.share__flyer::before {
  content: '';
  position: absolute;
  z-index: 2;
  left: 50%; top: -13px;
  width: 96px; height: 24px;
  margin-left: -48px;
  background: rgba(255, 210, 26, .85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transform: rotate(2.5deg);
}
.share__lbl {
  margin: 0;
  padding: 20px 18px 0;
  font: 400 12px/1 var(--f-type);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red-2);
}
.share__msg {
  margin: 10px 0 0;
  padding: 0 18px;
  font: 400 18px/1.42 var(--f-type);
  color: var(--ink);
  text-wrap: pretty;
}
/* marca-texto amarelo nos *destaques* (pontos, Miami...) */
.share__msg mark {
  padding: 0 .12em;
  color: inherit;
  background: linear-gradient(176deg, transparent 10%, var(--tape) 12% 88%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.share__url {
  margin: 10px 0 0;
  padding: 0 18px 16px;
  font: 400 13px/1.25 var(--f-type);
  color: var(--ink-3);
  overflow-wrap: anywhere;
}
.share__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px dashed var(--ink);
}
.share__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 74px;
  padding: 10px 2px 9px;
  background: var(--white);
  color: var(--ink);
  font: 800 12.5px/1 var(--f-body);
  font-stretch: 82%;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transform-origin: 50% 0;
  transition: transform .16s cubic-bezier(.3, 1.5, .5, 1), background-color .12s, color .12s;
}
.share__tab + .share__tab { border-left: 2px dashed var(--ink-3); }
.share__tab .ico { width: 26px; height: 26px; }
.share__tab:focus-visible { z-index: 1; outline-offset: -6px; }
.share__tab:active { background: var(--ink); color: var(--tape); }
@media (hover: hover) {
  .share__tab:hover { z-index: 1; background: var(--ink); color: var(--tape); transform: rotate(-4deg); }
}
.share__acts {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 26px auto 0;
}
.share__acts .btn { flex: 1 1 0; min-width: 0; min-height: 54px; padding-left: 12px; padding-right: 12px; }
.share__acts .ico { width: 20px; height: 20px; }
.share__copy.is-done { background: var(--blue); color: var(--white); }
/* "Link copiado!" fica só para leitor de tela (o botão já muda); visível quando dá erro */
.share__fb {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.share__fb.is-err {
  position: static;
  width: auto; height: auto;
  max-width: 440px;
  margin: 12px auto 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  font: 13px/1.35 var(--f-type);
  color: var(--red-2);
}
.share__manual {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 6px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  font: 14px/1 var(--f-type);
  color: var(--ink);
}
/* No celular (toque), o compartilhamento do aparelho é o botão principal: largura toda, maior. */
@media (pointer: coarse) {
  .share.has-native .share__acts { flex-wrap: wrap; }
  .share.has-native .share__native { flex: 1 1 100%; min-height: 58px; font-size: 17px; }
}

/* Celular em retrato: sombras só para baixo (nada parece puxado para a direita), como na tela inicial */
@media (max-aspect-ratio: 1/1) and (max-width: 700px) {
  .share__flyer { box-shadow: 0 6px 0 var(--ink); }
  .share__acts .btn, .mf__foot .btn { box-shadow: 0 4px 0 var(--ink); }
  .share__acts .btn:hover, .mf__foot .btn:hover { transform: none; box-shadow: 0 4px 0 var(--ink); }
  .share__acts .btn:active, .mf__foot .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
}
/* Telas bem estreitas (≤ 380 px): rótulos das abas cabem sem encostar no picotado */
@media (max-width: 380px) {
  .share__tab { font-size: 11px; letter-spacing: .02em; }
}

/* Compartilhar a partir dos Créditos (modal pequeno) */
.m-share .modal { max-width: 540px; }
.m-share .share { padding: 16px 0 6px; }

/* ---------- Pausa ---------- */
.m-pause .modal { max-width: 440px; }
.m-pause .opt { padding-left: 0; padding-right: 0; }
.m-pause .opt:first-child { border-top: 0; }

/* ---------- Confirmar ---------- */
.m-confirm .modal { max-width: 460px; }

/* ======================================================================
   Telas largas: o papel vira uma folha/pôster sobre o fundo borrado
   ====================================================================== */
@media (min-width: 1100px) {
  .scr-sub.paper { background: transparent; }
  .scr-sub .sub__inner {
    padding: 34px 40px 42px;
    border: var(--bw) solid var(--ink);
    background-color: var(--paper);
    background-image: var(--grain);
    background-size: 180px 180px;
    box-shadow: 12px 12px 0 rgba(0, 0, 0, .5);
  }
  .scr-sub .sub__inner.opts { background: transparent; border: 0; box-shadow: none; padding: 0; }
}
@media (min-width: 1400px) {
  .scr-title.paper { background: transparent; }
  .scr-title .ttl {
    min-height: calc(100% - 64px);
    margin: 32px auto;
    max-width: 1280px;
    border: var(--bw) solid var(--ink);
    background-color: var(--paper);
    background-image: radial-gradient(rgba(22, 20, 18, .055) 1px, transparent 1.4px), var(--grain);
    background-size: 5px 5px, 180px 180px;
    box-shadow: 14px 14px 0 rgba(0, 0, 0, .5);
    padding-left: 56px; padding-right: 56px;
  }
}

/* ======================================================================
   Celular: corta custo de animações contínuas
   ====================================================================== */
@media (pointer: coarse) {
  .cs__fx { animation: none; }
  .tape > span { animation-duration: 34s; }
}


/* ======================================================================
   Entradas (abertura das telas)
   Só transform/opacity/clip-path; will-change só enquanto a classe de entrada existe.
   Ao remover a classe (fim ou toque para pular), tudo fica no estado final.
   ====================================================================== */

/* ---------- Tela inicial: sequência completa (~2,1 s) ---------- */
.intro-full .masthead,
.intro-full .logo__a,
.intro-full .logo__b .ch,
.intro-full .tagline,
.intro-full .mug__box,
.intro-full .mug__chart,
.intro-full .mug__who,
.intro-full .mug .tape--sash,
.intro-full .mug .stamp,
.intro-full .mug__plate,
.intro-full .field,
.intro-full .btn--play,
.intro-full .menu__row .btn { will-change: transform, opacity; animation-fill-mode: both; }

/* 1. manchete desce do topo */
.intro-full .masthead { animation: in-drop .38s cubic-bezier(.2, .9, .3, 1.2) 0s both; }
/* 2. tarja "ONDE ESTÁ O" bate como carimbo */
.intro-full .logo__a { animation: in-slam .42s cubic-bezier(.3, 1.5, .5, 1) .24s both; }
/* 3. letras de FLÁVIO? caem uma a uma, com quique; depois um brilho passa por elas uma vez */
.intro-full .logo__b .ch { animation: in-fall .56s cubic-bezier(.3, 1.4, .5, 1) calc(.5s + var(--i) * 50ms) both, in-shine .7s ease-in-out calc(1.25s + var(--i) * 45ms) both; }
/* 4. tagline se digita (clip-path em passos, um por caractere) */
.intro-full .tagline { animation: in-type .62s steps(var(--n, 40), end) .9s both; }
/* 5. ficha: moldura entra, flash de câmera, foto surge, régua desliza, fita atravessa, carimbo por último */
.intro-full .mug__box { animation: in-pop .32s cubic-bezier(.2, 1.3, .4, 1) .5s both; }
.intro-full .mug__flash { animation: in-flash .2s ease-out .86s both; }
.intro-full .mug__who { animation: in-show .01s linear .95s both; }
.intro-full .mug__chart { animation: in-ruler .45s cubic-bezier(.2, .9, .3, 1) .7s both; }
.intro-full .mug .tape--sash { animation: in-tape .5s cubic-bezier(.2, .9, .3, 1) 1.15s both; }
.intro-full .mug .stamp { animation: in-stamp .42s cubic-bezier(.3, 1.4, .5, 1) 1.66s both; }
.intro-full .mug__plate { animation: in-rise .3s ease-out 1.25s both; }
/* a placa começa balançando forte e vai assentando no balanço sutil */
.intro-full .mug__placa { animation: plate-settle 1.9s cubic-bezier(.3, .6, .4, 1) .95s both; }
/* 6. campo e botões sobem em sequência, com bounce leve */
.intro-full .field { animation: in-up .42s cubic-bezier(.3, 1.45, .5, 1) 1.2s both; }
.intro-full .btn--play { animation: in-up .42s cubic-bezier(.3, 1.45, .5, 1) 1.3s both; }
.intro-full .menu__row .btn { animation: in-up .42s cubic-bezier(.3, 1.45, .5, 1) 1.38s both; }
.intro-full .menu__row .btn:nth-child(2) { animation-delay: 1.44s; }
.intro-full .menu__row .btn:nth-child(3) { animation-delay: 1.5s; }

/* ---------- Versão curta (voltando ao menu): ~0,5 s ---------- */
.intro-short .ttl__head,
.intro-short .mug,
.intro-short .ttl__form { will-change: transform, opacity; animation: in-rise .36s cubic-bezier(.2, 1.2, .4, 1) both; }
.intro-short .mug { animation-delay: .07s; }
.intro-short .ttl__form { animation-delay: .14s; }

/* ---------- Animações reduzidas: só um fade ---------- */
.intro-fade { animation: in-show-fade .2s ease-out both; }

/* JOGAR: pulso discreto depois da entrada */
.btn--play.is-pulse { animation: play-pulse 2.6s ease-in-out 0s infinite; }

@keyframes in-drop { from { opacity: 0; transform: translateY(-46px); } }
@keyframes in-slam {
  0% { opacity: 0; transform: scale(1.45) rotate(-12deg); }
  60% { opacity: 1; transform: scale(.94) rotate(0deg); }
  100% { opacity: 1; transform: rotate(-2deg); }
}
@keyframes in-fall {
  0% { opacity: 0; transform: translateY(-110%) rotate(-8deg); }
  55% { opacity: 1; transform: translateY(6%) rotate(2deg); }
  78% { transform: translateY(-9%) rotate(-1deg); }
  100% { opacity: 1; transform: none; }
}
/* brilho passando uma vez pelas letras (exceção: background-position, só na entrada) */
@keyframes in-shine { from { background-position: 0% 0, 0 0, 0 0; } to { background-position: 100% 0, 0 0, 0 0; } }
@keyframes in-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes in-pop { from { opacity: 0; transform: scale(.9) rotate(2deg); } }
@keyframes in-flash { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
@keyframes in-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes in-show-fade { from { opacity: 0; } }
@keyframes in-ruler { from { opacity: 0; transform: translateY(-14%); } }
@keyframes in-tape {
  from { transform: rotate(-38deg) translateX(-170%); }
  to { transform: rotate(-38deg) translateX(0); }
}
@keyframes in-stamp {
  0% { opacity: 0; transform: scale(2.1) rotate(-20deg); }
  55% { opacity: .95; transform: scale(.92) rotate(-8deg); }
  70% { transform: scale(1.03) translate(1px, -1px) rotate(-10deg); }
  85% { transform: translate(-1px, 1px) rotate(-9deg); }
  100% { opacity: .9; transform: rotate(-9deg); }
}
@keyframes in-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes in-up {
  0% { opacity: 0; transform: translateY(30px); }
  65% { opacity: 1; transform: translateY(-4px); }
  100% { opacity: 1; transform: none; }
}
@keyframes plate-settle {
  0% { transform: rotate(10deg); }
  22% { transform: rotate(-7deg); }
  44% { transform: rotate(4.5deg); }
  66% { transform: rotate(-3deg); }
  84% { transform: rotate(2deg); }
  100% { transform: rotate(calc(var(--swing, 2deg) * -1)); }
}
@keyframes play-pulse {
  0%, 70%, 100% { transform: none; }
  80% { transform: scale(1.025); }
  90% { transform: scale(.995); }
}

/* ---------- Telas internas: barra desce, conteúdo sobe com stagger (≤ 0,45 s) ---------- */
.scr-sub.is-enter .sub__bar { will-change: transform; animation: in-drop .3s cubic-bezier(.2, .9, .3, 1.1) both; }
.scr-sub.is-enter .sub__inner > * { will-change: transform, opacity; animation: in-rise .34s cubic-bezier(.2, 1.15, .4, 1) both; }
.scr-sub.is-enter .sub__inner > :nth-child(2) { animation-delay: .05s; }
.scr-sub.is-enter .sub__inner > :nth-child(3) { animation-delay: .1s; }
.scr-sub.is-enter .sub__inner > :nth-child(n+4) { animation-delay: .14s; }


/* ======================================================================
   Tela de entrada (só quando o navegador bloqueia o autoplay)
   ====================================================================== */
.ttl.is-waiting { visibility: hidden; }
.splash {
  position: absolute;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--sat) + 20px) calc(var(--sar) + 20px) calc(var(--sab) + 20px) calc(var(--sal) + 20px);
  background: radial-gradient(ellipse at 50% 40%, rgba(22, 20, 18, .82) 0%, rgba(11, 11, 12, .97) 70%);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s ease;
  --focus: var(--tape);
}
.splash.is-in { opacity: 1; }
.splash.is-out { opacity: 0; pointer-events: none; }
.splash__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(14px, 3vh, 26px); }
.splash__kicker { margin: 0; font: 13px/1 var(--f-type); letter-spacing: .3em; text-transform: uppercase; color: var(--tape); }
.splash__logo { --logo: min(24vw, 17vh, 170px); align-items: center; }
.splash__logo .logo__a { transform: rotate(-2deg); background: var(--white); color: var(--ink); transform-origin: center; }
.splash__logo .logo__b { filter: drop-shadow(.05em .05em 0 #000); }
.splash__logo .logo__b .ch { -webkit-text-stroke-color: var(--white); }
.splash__btn {
  appearance: none;
  min-height: 64px;
  padding: 10px 28px 8px;
  border: 4px solid var(--ink);
  background: var(--tape);
  color: var(--ink);
  font: 400 clamp(22px, 4.6vw, 34px)/1 var(--f-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 0 0 3px var(--tape), 6px 6px 0 3px #000;
  animation: splash-pulse 1.3s ease-in-out infinite;
}
.splash__snd { margin: 0; display: inline-flex; align-items: center; gap: 8px; font: 13px/1 var(--f-type); letter-spacing: .14em; text-transform: uppercase; color: rgba(251, 248, 240, .7); }
.splash__snd svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.splash__snd svg path:first-child { fill: currentColor; }
.splash__snd .w { animation: blink 1.2s steps(1) infinite; }
@keyframes splash-pulse { 50% { transform: scale(1.06); } }

/* ======================================================================
   Ícone de tela cheia (canto superior direito das telas de menu)
   ====================================================================== */
.fs-ico {
  position: absolute;
  z-index: 55;
  top: calc(var(--sat) + 8px);
  right: calc(var(--sar) + 8px);
  width: 44px; height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  background: rgba(251, 248, 240, .9);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.fs-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; }
.fs-ico .fs-out, .fs-ico.is-on .fs-in { display: none; }
.fs-ico.is-on .fs-out { display: inline; }
.fs-ico:hover { background: var(--white); }
.fs-ico:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
/* nas telas internas o canto fica sobre a barra preta */
.fs-ico.on-dark { border-color: rgba(251, 248, 240, .7); background: rgba(22, 20, 18, .6); color: var(--white); box-shadow: none; --focus: var(--tape); }
.fs-ico.on-dark:hover { background: rgba(251, 248, 240, .12); }
/* o título e as barras abrem espaço para o ícone: nada fica por baixo dele */
/* retrato: o masthead desce para a faixa abaixo do ícone (e cabe a manchete inteira) */
@media (max-aspect-ratio: 1/1) { .scr-title .ttl { padding-top: calc(var(--sat) + 58px); } }
.sub__bar { padding-right: calc(var(--sar) + 64px); }
@media (min-aspect-ratio: 1/1) and (min-width: 640px) { .mug { padding-top: 36px; } }
@media (min-aspect-ratio: 1/1) and (max-height: 540px) { .ttl { padding-top: calc(var(--sat) + 8px); padding-right: calc(var(--sar) + 60px); } .mug { padding-top: 0; } }
.fs-tip { margin: 0; font: 12.5px/1.4 var(--f-type); color: var(--ink-3); }

/* ======================================================================
   Telas finais de borda a borda (morte "Capturado" e zerou): 2 colunas
   ====================================================================== */
.m-full, .modal-back.m-full { padding: 0; } /* (o reforço vence o padding dos modais no celular em retrato) */
.m-full .modal {
  max-width: none;
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  box-shadow: none;
  background: var(--night);
  transform: scale(1.025);
  transition: transform .3s cubic-bezier(.2, 1.2, .4, 1);
}
.m-full.is-in .modal { transform: none; }
.m-full .modal__card { height: 100%; }
.m-full .modal__body { padding: 0; overflow: hidden; display: flex; flex: 1 1 auto; }

.mf {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "stage side" "stage foot";
}
.mf__scroll { display: contents; }

/* Palco (esquerda): noite de viatura, título, arte grande e a rota embaixo */
.mf__stage {
  grid-area: stage;
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background: radial-gradient(ellipse at 50% 38%, #22345e 0%, #0d1528 62%, #070b16 100%);
  padding: calc(var(--sat) + 18px) 0 0 calc(var(--sal) + 0px);
  overflow: hidden;
  --focus: var(--tape);
}
.mf__head { position: relative; z-index: 3; padding: 0 26px; }
.mf__head .modal__kicker { margin-bottom: 8px; }
.mf__title {
  margin: 0;
  font: 400 clamp(28px, 4.2vw, 56px)/.98 var(--f-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 3px 3px 0 #000;
}
.mf__below {
  position: relative;
  z-index: 3;
  flex: none;
  padding: 14px 26px 16px;
  background-color: var(--paper);
  background-image: var(--grain);
  background-size: 180px 180px;
  color: var(--ink);
  border-top: var(--bw) solid var(--ink);
}
.mf__below .escape { margin: 0; }
.mf__below .escape__lead { margin: 0 0 10px; font-size: 15px; }
.mf__below .escape__txt { margin-top: 8px; }
.mf__below .route:has(.is-here) + .escape__txt { margin-top: 22px; }

/* Lado direito: "Compartilhe com os amigos" no papel, centrado na vertical quando sobra espaço */
.mf__side {
  grid-area: side;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--sat) + 26px) calc(var(--sar) + 30px) 18px 30px;
  background-color: var(--paper);
  background-image: var(--grain);
  background-size: 180px 180px;
  border-left: var(--bw) solid var(--ink);
}
.mf__foot {
  grid-area: foot;
  display: flex;
  gap: 12px;
  padding: 14px calc(var(--sar) + 30px) calc(var(--sab) + 16px) 30px;
  background: var(--paper);
  border-left: var(--bw) solid var(--ink);
  border-top: 2px dashed var(--paper-3);
}
.mf__foot .btn { flex: 1 1 auto; min-height: 58px; }
.mf__foot .btn--primary { flex: 2 1 auto; }

/* Compartilhe em tela cheia (prisão e fim de jogo) */
.mf__side { display: flex; flex-direction: column; }
.mf__side > .share { width: 100%; margin: auto 0; }
.share--big .share__h { font-size: clamp(28px, 2.8vw, 38px); }
.share--big .share__msg { font-size: clamp(17px, 1.45vw, 20px); }

/* Cena da prisão: emblema atrás (centralizado no alto), arte por cima entrando com "baque", sirene na borda */
.prison { position: relative; flex: 1 1 auto; min-height: 0; margin-top: 6px; }
.prison__emblem {
  position: absolute;
  left: 50%; top: 2%;
  height: 78%; width: auto;
  max-width: 92%;
  object-fit: contain;
  transform: translateX(-50%);
  opacity: .55;
  animation: emblem-pulse 3.4s ease-in-out infinite;
}
.prison__scene {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  z-index: 1;
}
.prison:not([hidden]) .prison__scene { animation: prison-thud .55s cubic-bezier(.3, 1.6, .5, 1) .12s both; }
.prison.is-empty::after {
  content: 'Capturado';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  padding: .1em .35em 0;
  border: 6px double var(--red);
  color: var(--red);
  font: 400 clamp(36px, 6vw, 72px)/1 var(--f-display);
  text-transform: uppercase;
}
/* sirene vermelho/azul piscando na borda do palco */
.mf__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 0 5px var(--red), inset 0 0 60px 10px rgba(215, 38, 30, .45);
  animation: siren-edge .7s steps(1) infinite;
}
.m-win .mf__stage::after { display: none; }
.prison__siren { display: none; }
@keyframes siren-edge {
  50% { box-shadow: inset 0 0 0 5px #2f6bff, inset 0 0 60px 10px rgba(47, 107, 255, .45); }
}
@keyframes emblem-pulse {
  50% { transform: translateX(-50%) scale(1.04) rotate(2deg); opacity: .68; }
}
@keyframes prison-thud {
  0% { opacity: 0; transform: translateY(-44px) scale(1.1); }
  60% { opacity: 1; transform: translateY(6px) scale(.985); }
  76% { transform: translate(-4px, -2px); }
  88% { transform: translate(3px, 0); }
  100% { opacity: 1; transform: none; }
}

/* Zerou: jatinho chegando em Miami */
.m-win .mf__stage { background: linear-gradient(180deg, #4b3b7a 0%, #c45a8e 48%, #f6a96b 78%, #ffd98a 100%); }
.win { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.win__sun { position: absolute; left: 50%; bottom: -18%; width: 60%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #fff3c4 0%, #ffd27a 45%, rgba(255, 190, 110, 0) 70%); }
.win__jet {
  position: absolute;
  left: 8%; top: 18%;
  width: 84%; height: auto;
  max-height: 70%;
  object-fit: contain;
  filter: drop-shadow(8px 12px 0 rgba(0, 0, 0, .25));
  animation: win-fly .9s cubic-bezier(.2, .9, .3, 1.1) .1s both, win-float 3s ease-in-out 1s infinite;
}
.win__stamp {
  position: absolute;
  right: 6%; top: 8%;
  padding: .1em .35em 0;
  border: 6px double var(--white);
  color: var(--white);
  font: 400 clamp(28px, 4vw, 52px)/1 var(--f-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: rotate(8deg);
  animation: in-stamp-win .45s cubic-bezier(.3, 1.4, .5, 1) .8s both;
}
.win__txt { margin: 0; font: 16px/1.4 var(--f-type); }
@keyframes win-fly { from { opacity: 0; transform: translate(-60%, 30%) rotate(-8deg); } }
@keyframes win-float { 50% { transform: translateY(-10px) rotate(-1deg); } }
@keyframes in-stamp-win { 0% { opacity: 0; transform: scale(2) rotate(-6deg); } 100% { opacity: 1; transform: rotate(8deg); } }

/* Telas grandes: palco um pouco mais largo (o lado direito já centraliza na vertical via .share--big) */
@media (min-width: 1500px) {
  .mf { grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1fr); }
}

/* Celular em retrato (e telas estreitas): empilha; só o meio rola, botões fixos embaixo */
@media (max-aspect-ratio: 1/1), (max-width: 700px) {
  .mf { display: flex; flex-direction: column; }
  .mf__scroll { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .mf__stage { min-height: min(78vh, 640px); padding-top: calc(var(--sat) + 16px); }
  .mf__head { padding: 0 18px; }
  .mf__title { font-size: clamp(26px, 8vw, 40px); }
  .prison, .win { min-height: 240px; }
  .mf__below { padding: 12px 18px 14px; }
  .mf__side { overflow: visible; border-left: 0; border-top: var(--bw) solid var(--ink); padding: 22px 18px 24px; }
  .mf__foot { border-left: 0; border-top: var(--bw) solid var(--ink); padding: 10px calc(var(--sar) + 14px) calc(var(--sab) + 12px) calc(var(--sal) + 14px); }
  .mf__foot .btn { min-height: 54px; font-size: 16px; }
  .mf__stage { min-height: min(60vh, 500px); }
  .mf__side > .share { margin: 0; }
  .share--big .share__h { font-size: clamp(26px, 7.4vw, 32px); }
  .share--big .share__msg { font-size: 17px; }
}
/* Paisagem baixa: 2 colunas compactas */
@media (min-aspect-ratio: 1/1) and (max-height: 520px) {
  .mf { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); }
  .mf__stage { padding-top: calc(var(--sat) + 10px); }
  .mf__head { padding: 0 16px; }
  .mf__head .modal__kicker { margin-bottom: 4px; font-size: 12px; }
  .mf__title { font-size: 24px; }
  .mf__below { padding: 8px 16px 10px; }
  .mf__below .escape__lead { display: none; }
  .route__code { font-size: 11px; }
  .mf__side { padding: 12px 18px 10px; }
  .share--big .share__h { font-size: 22px; margin-bottom: 14px; }
  .share__lbl { display: none; }
  .share--big .share__msg { margin-top: 0; padding-top: 14px; font-size: 14px; }
  .share__url { margin-top: 6px; padding-bottom: 10px; font-size: 12px; }
  .share__tab { min-height: 52px; gap: 4px; font-size: 11px; }
  .share__tab .ico { width: 20px; height: 20px; }
  .share__acts { margin-top: 16px; }
  .share__acts .btn { min-height: 44px; font-size: 14px; }
  .share.has-native .share__acts { flex-wrap: nowrap; }
  .share.has-native .share__native { flex: 1 1 0; min-height: 44px; font-size: 14px; }
  .mf__foot { padding: 8px calc(var(--sar) + 16px) calc(var(--sab) + 8px) 16px; }
  .mf__foot .btn { min-height: 48px; font-size: 16px; }
  .win__txt { font-size: 14px; }
}

/* ======================================================================
   Movimento reduzido (sistema ou Opções)
   ====================================================================== */
.rm *, .rm *::before, .rm *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}
.rm .cs__fx { display: none; }
.rm .mug__placa { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Paisagem baixa de celular (altura ~360–420): barra do topo compacta nas telas internas */
@media (max-height: 460px) and (min-aspect-ratio: 1/1) {
  .sub__bar { padding-top: calc(var(--sat) + 6px); padding-bottom: 6px; }
  .sub__title { font-size: 26px; }
  .sub__scroll { padding-top: 24px; }
  .cs__title { font-size: clamp(34px, 7vw, 64px); }
  .cs__text { font-size: clamp(18px, 2.6vw, 24px); }
  .cs__line { padding-bottom: 2vh; }
}
@media (max-height: 460px) and (min-aspect-ratio: 1/1) {
  .modal__head { padding-top: 12px; }
  .modal__title { font-size: 26px; }
  .m-pause .opt { min-height: 46px; padding-top: 4px; padding-bottom: 4px; }
  .modal__foot { padding-top: 10px; padding-bottom: 12px; }
}



/* ======================================================================
   Créditos: "Sobre o jogo" (aviso legal) + link no título
   ====================================================================== */
.cred { max-width: 1000px; }
.about {
  position: relative;
  margin-top: 28px;
  padding: 18px 20px 16px;
  border: var(--bw) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  outline: none;
}
.about::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--tape) 0 10px, var(--ink) 10px 20px);
}
.about__h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 10px;
  font: 400 19px/1.1 var(--f-type);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.about__ico { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.about__body p { margin: 0 0 9px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.about__body p:first-child { color: var(--ink); font-weight: 600; }
.about__contact { margin: 10px 0 0; font: 14px/1.4 var(--f-type); }
.about__contact a { color: var(--blue-2); }
.about.is-flash { animation: about-flash 1.1s ease-out; }
@keyframes about-flash { 0%, 30% { box-shadow: 0 0 0 5px var(--tape), var(--shadow); } }
.legal-link {
  appearance: none;
  align-self: flex-start;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: 13px/1 var(--f-type);
  letter-spacing: .06em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-link:hover { color: var(--ink); }
@media (min-aspect-ratio: 1/1) and (max-height: 540px) { .legal-link { min-height: 36px; margin-top: -6px; } }

/* ======================================================================
   Desktop: telas internas sem rolagem vertical (grades que usam a largura)
   ====================================================================== */
@media (min-width: 1100px) and (min-height: 560px) and (min-aspect-ratio: 1/1) {
  .scr-sub .sub__scroll { padding: 26px calc(var(--sar) + 28px) calc(var(--sab) + 22px) calc(var(--sal) + 28px); }
  .scr-sub .sub__inner { max-width: 1500px; height: 100%; padding: 22px 26px; }
  .sec-h { font-size: 18px; margin-bottom: 10px; }

  /* Como funciona: passos | retrato falado | controles + dicas */
  .how {
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "steps sketch controls" "steps sketch tips";
    gap: 18px 26px;
  }
  .how > section { min-height: 0; }
  .how__steps { display: flex; flex-direction: column; }
  .steps { gap: 7px; }
  .steps li { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 7px 10px 8px 8px; }
  .steps li::before { width: 36px; height: 36px; font-size: 22px; }
  .steps b { font-size: 17px; }
  .steps span { font-size: 14px; line-height: 1.35; }
  .jet { margin-top: 14px; min-height: 0; flex: 1 1 auto; justify-content: flex-end; }
  .jet__photo { padding: 6px; max-width: 100%; }
  .jet__photo img { max-height: 15vh; }
  .jet__cap { margin-top: 8px; font-size: 12.5px; }
  .how__sketch { display: flex; flex-direction: column; }
  .how__sketch .sketch { flex: 1 1 auto; height: auto; min-height: 260px; }
  .how__sketch .warn { margin-top: 12px; font-size: 14px; padding: 9px 12px 9px 46px; }
  .ctrl-grid { grid-template-columns: 1fr; gap: 10px; }
  .ctrl { padding: 9px 12px 10px; }
  .ctrl h3 { margin-bottom: 7px; }
  .ctrl dl { gap: 6px 10px; }
  .ctrl dd { font-size: 14px; }
  .how__tips { display: flex; flex-direction: column; }
  .tips { grid-template-columns: 1fr; gap: 6px; }
  .tips li { padding: 7px 10px; font-size: 14px; line-height: 1.35; }

  /* Opções: 3 colunas */
  .scr-sub .sub__inner.opts {
    max-width: 1500px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    align-content: start;
    gap: 22px;
  }
  .opts > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .opts > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .opts > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .opts > :nth-child(4) { grid-column: 3; grid-row: 1; }
  .opts > :nth-child(5) { grid-column: 3; grid-row: 2; }
  .opts { grid-template-rows: auto 1fr; }
  .opt { min-height: 52px; padding: 7px 14px; }
  .opt__desc { font-size: 13.5px; }
  .opt--stack > legend { margin-bottom: 7px; }
  .opt--actions { flex-direction: column; align-items: stretch; padding-top: 10px; padding-bottom: 12px; }
  .opt--actions .btn { align-self: flex-start; }

  /* Créditos: lista em 2 colunas | "Sobre o jogo" */
  .scr-sub .sub__inner.cred {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
  }
  .cred__main { display: flex; flex-direction: column; min-height: 0; }
  .cred__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; align-content: start; }
  .cred__item, .cred__item:first-child { padding: 9px 0 10px; }
  .cred__item dd { font-size: 20px; }
  .cred__disc { margin-top: 16px; padding: 10px 12px; }
  .cred__cta { margin-top: auto; padding-top: 14px; }
  .about { margin-top: 0; padding: 16px 20px 14px; overflow: hidden; }
  .about__body p { font-size: 14px; line-height: 1.45; margin-bottom: 8px; }
}
@media (min-width: 1100px) and (min-height: 560px) and (max-height: 760px) and (min-aspect-ratio: 1/1) {
  .jet { display: none; }
  .about__body p { line-height: 1.4; margin-bottom: 6px; }
}

/* Controles: tabela Ação | Computador | Celular */
.ctrl-tab { width: 100%; border-collapse: collapse; background: var(--white); border: 2px solid var(--ink); font-size: 14.5px; }
.ctrl-tab th, .ctrl-tab td { padding: 7px 10px; text-align: left; vertical-align: middle; border-top: 1px dashed var(--paper-3); }
.ctrl-tab thead th { border-top: 0; background: var(--ink); color: var(--paper); font: 800 12px/1 var(--f-body); font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; padding: 8px 10px; }
.ctrl-tab tbody th { font-weight: 700; }
.ctrl-tab tr.is-sep > * { border-top: 2px solid var(--ink-3); }
.ctrl-tab td kbd { margin: 1px 2px 1px 0; }
@media (max-width: 480px) { .ctrl-tab th, .ctrl-tab td { padding: 6px 6px; font-size: 13.5px; } .ctrl-tab kbd { font-size: 11.5px; padding: 4px 5px 3px; } }

@media (min-width: 1100px) and (min-height: 560px) and (min-aspect-ratio: 1/1) {
  .ctrl-tab { font-size: 14px; }
  .ctrl-tab th, .ctrl-tab td { padding: 5px 8px; }
  .how__steps { overflow: hidden; }
  .jet { flex: 0 1 auto; }
}
@media (min-width: 1100px) and (min-height: 560px) and (max-height: 900px) and (min-aspect-ratio: 1/1) {
  .jet { display: none; }
}
@media (min-width: 1100px) and (min-height: 560px) and (max-height: 760px) and (min-aspect-ratio: 1/1) {
  .tips li:not(.tip--touch):nth-child(n+5) { display: none; }
  .steps li { padding-top: 5px; padding-bottom: 6px; }
  .opt { min-height: 46px; padding-top: 5px; padding-bottom: 5px; }
  .opt__desc { display: none; }
  .opt [data-diff-desc] { display: block; }
}
@media (min-width: 1100px) and (min-height: 560px) and (min-aspect-ratio: 1/1) {
  .scr-sub .sub__inner.cred { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}
@media (min-width: 1100px) and (min-height: 560px) and (max-height: 760px) and (min-aspect-ratio: 1/1) {
  .cred__item, .cred__item:first-child { padding: 6px 0 7px; }
  .cred__item dd { font-size: 18px; margin-top: 3px; }
  .cred__disc { margin-top: 10px; font-size: 14px; }
  .cred__cta { padding-top: 10px; }
}
@media (min-width: 1100px) and (min-height: 560px) and (min-aspect-ratio: 1/1) { .cred .about { align-self: start; max-height: 100%; } }
.about__contact + .about__contact { margin-top: 4px; }
/* Créditos no desktop: vários nomes na mesma linha, separados por "·" */
@media (min-width: 1100px) and (min-height: 560px) and (min-aspect-ratio: 1/1) {
  .cred__item dd { display: inline; }
  .cred__item dd + dd::before { content: ' · '; color: var(--red); }
  .cred__item dt { margin-bottom: 4px; }
  .cred__cta { flex-wrap: nowrap; }
  .cred__cta p { font-size: 14px; }
  .cred__cta .btn { flex: none; }
}

/* ======================================================================
   Tela inicial no celular em retrato: a ficha é o herói
   (manchete ao lado do ícone de tela cheia, logo compacto numa linha, ficha grande)
   ====================================================================== */
@media (max-aspect-ratio: 1/1) and (max-width: 700px) {
  .scr-title .ttl { padding-top: calc(var(--sat) + 12px); gap: 10px; --logo: min(17.5vw, 8.6vh, 84px); }
  .scr-title .masthead { margin: 0 52px 8px 0; }
  .scr-title .logo { flex-direction: row; align-items: center; flex-wrap: nowrap; gap: .1em; }
  .scr-title .logo__a {
    font-size: calc(var(--logo) * .3);
    line-height: 1;
    padding: .16em .22em .08em;
    margin: 0;
    max-width: 5.6em;
    white-space: normal;
    text-align: center;
    transform: rotate(-4deg);
    transform-origin: center;
    flex: none;
  }
  .scr-title .logo__b { white-space: nowrap; }
  .scr-title .tagline { margin-top: 6px; font-size: 14px; }
  .scr-title .mug__plate { margin-top: 10px; }
  .scr-title .field__label { margin-bottom: 4px; }
  .scr-title .field__input { height: 46px; }
  .scr-title .btn--play { min-height: 60px; font-size: 32px; }
  .scr-title .ttl__form, .scr-title .menu { gap: 10px; }
  .mug .stamp { top: 5%; right: 4%; font-size: clamp(16px, 9cqw, 30px); }
}
@media (max-aspect-ratio: 1/1) and (max-width: 700px) and (max-height: 820px) {
  .scr-title .tagline { display: none; }
}
.intro-full .legal-link { animation: in-rise .3s ease-out 1.56s both; }
.intro-short .legal-link { animation: in-rise .3s ease-out .2s both; }


/* ======================================================================
   Celular em retrato (Safari iOS com barras): ficha grande, JOGAR na 1ª dobra
   ====================================================================== */
#app { height: 100%; height: 100dvh; }
.ttl__more { display: none; }
@media (max-aspect-ratio: 1/1) and (max-width: 700px) {
  .scr-title .ttl {
    --side: calc(16px + var(--sal));
    padding-left: max(16px, var(--sal) + 16px);
    padding-right: max(16px, var(--sar) + 16px);
    padding-top: calc(var(--sat) + 8px);
    gap: 8px;
    justify-items: center;
  }
  .scr-title .ttl__head, .scr-title .ttl__form { width: 100%; }
  /* manchete: só EXTRA! + piada, na mesma linha/eixo do ícone de tela cheia (44 px) */
  .scr-title .masthead { height: 44px; margin: 0 56px 6px 0; padding: 0; border-top-width: 3px; justify-content: space-between; }
  .scr-title .masthead > span:nth-child(2), .scr-title .masthead__date { display: none; }
  .scr-title .masthead__price { margin-left: 0; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .scr-title .masthead .mh-long { display: none; }
  .scr-title .masthead .mh-short { display: inline; }
  .scr-title .logo { justify-content: center; }
  .scr-title .tagline { text-align: center; }
  .scr-title .mug { width: 100%; }
  .scr-title .mug__plate { box-sizing: border-box; max-width: 100%; white-space: normal; text-align: center; line-height: 1.35; padding: 7px 10px 6px; margin-top: 8px; }
  /* nome do agente + JOGAR na mesma linha (formulário de login); secundários embaixo */
  .scr-title .ttl__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(128px, 40%); column-gap: 10px; row-gap: 12px; align-items: end; }
  .scr-title .menu { display: contents; }
  .scr-title .field { grid-column: 1; min-width: 0; }
  .scr-title .field__label { font-size: 10.5px; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .scr-title .btn--play { grid-column: 2; min-height: 48px; height: 48px; font-size: 28px; padding-top: 4px; }
  .scr-title .menu__row, .scr-title .legal-link, .scr-title .fs-tip { grid-column: 1 / -1; }
  .scr-title .menu__row { width: 100%; gap: 8px; }
  .scr-title .legal-link { justify-self: center; }
  /* dica de rolagem */
  .ttl__more { display: block; position: sticky; bottom: 0; height: 0; pointer-events: none; z-index: 4; }
  /* sem texto: só um degradê sutil na borda inferior quando há conteúdo abaixo (a linha de botões aparece cortada) */
  .ttl__more span {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 28px;
    background: linear-gradient(to bottom, rgba(22, 20, 18, 0), rgba(22, 20, 18, .28));
    opacity: 0;
    transition: opacity .25s;
  }
  .scr-title.can-scroll .ttl__more span { opacity: 1; }
}
@keyframes more-bob { 50% { transform: translate(-50%, -4px); } }

/* ======================================================================
   Celular em retrato: simetria e espaçamento consistente (16 px + safe-area; gaps 8/12/16)
   ====================================================================== */
@media (max-aspect-ratio: 1/1) and (max-width: 700px) {
  /* ícone de tela cheia no mesmo eixo e margem do resto (16 px) */
  .fs-ico { top: calc(var(--sat) + 8px); right: calc(var(--sar) + 16px); }
  .scr-title .masthead { margin-right: 60px; }
  /* cabeçalho das telas internas: Voltar e ícone com a mesma altura, margens iguais */
  .sub__bar { min-height: 60px; padding: calc(var(--sat) + 8px) calc(var(--sar) + 72px) 8px calc(var(--sal) + 16px); }
  .btn-back { min-height: 44px; }
  .sub__title { flex: 1; text-align: center; font-size: clamp(24px, 7vw, 30px); margin-right: -56px; }
  .sub__scroll { padding-left: calc(var(--sal) + 16px); padding-right: calc(var(--sar) + 16px); padding-top: 28px; }
  /* cutscene: rótulo e legenda centralizados; Pular alinhado à margem */
  .cs__line { text-align: center; padding-left: calc(var(--sal) + 16px); padding-right: calc(var(--sar) + 16px); }
  .cs__who { display: flex; justify-content: center; }
  .cs__skip { top: calc(var(--sat) + 8px); right: calc(var(--sar) + 16px); }
  .cs__count { top: calc(var(--sat) + 22px); left: calc(var(--sal) + 16px); }
  /* modais: conteúdo centralizado, botões com a mesma largura e gaps iguais */
  .modal-back { padding: calc(var(--sat) + 16px) calc(var(--sar) + 16px) calc(var(--sab) + 16px) calc(var(--sal) + 16px); }
  .modal__head { text-align: center; padding: 16px 16px 8px; }
  .modal__body { padding: 8px 16px 16px; }
  .modal__foot { padding: 12px 16px 16px; gap: 12px; }
  .modal__foot .btn, .modal__foot .btn--primary, .mf__foot .btn, .mf__foot .btn--primary { flex: 1 1 0; min-width: 0; }
  .m-pause .opt { padding-left: 0; padding-right: 0; }
  .mf__head { text-align: center; }
  .mf__head .modal__kicker { margin-left: auto; margin-right: auto; }
  .mf__below { padding-left: 16px; padding-right: 16px; }
  .mf__side { padding-left: 16px; padding-right: 16px; }
  .mf__foot { gap: 12px; }
}
@media (max-aspect-ratio: 1/1) and (max-width: 700px) {
  .sub__title { margin-right: 0; }
  .modal__foot .btn, .mf__foot .btn { white-space: nowrap; font-size: 15px; letter-spacing: .04em; padding-left: 8px; padding-right: 8px; }
}

/* ======================================================================
   Celular em retrato: tudo na tela, sem rolagem (rev. iPhone real)
   ====================================================================== */
@media (max-aspect-ratio: 1/1) and (max-width: 700px) {
  .scr-title { overflow-y: hidden; }
  .ttl__more { display: none !important; }
  /* manchete: da margem esquerda até 8 px do ícone (44 px), mesma altura e bordas alinhadas */
  .scr-title .masthead {
    height: 44px;
    margin: 0 52px 6px 0;
    padding: 0;
    border-top: 3px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    box-sizing: border-box;
  }
  .scr-title .masthead__price { margin-left: auto; text-align: right; }
  .fs-ico { top: calc(var(--sat) + 8px); }
  .scr-title .ttl { padding-top: calc(var(--sat) + 8px); padding-bottom: calc(var(--sab) + 10px); }
  .scr-title .mug__plate { font-size: 12px; padding: 5px 8px 4px; margin-top: 6px; }
  .scr-title .ttl__form { row-gap: 8px; }
  /* secundários + Aviso legal numa linha baixa (44 px de toque) */
  .scr-title .menu__row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .scr-title .menu__row .btn { min-height: 44px; padding: 2px 4px; font-size: 12.5px; line-height: 1.1; box-shadow: 3px 3px 0 var(--ink); }
  .scr-title .legal-link { min-height: 28px; margin: -2px 0 0; padding: 0 6px; font-size: 12px; }
}
@media (max-aspect-ratio: 1/1) and (max-width: 700px) and (max-height: 720px) {
  .scr-title .tagline { display: none; }
  .scr-title .ttl { --logo: min(16vw, 8.4vh, 76px); gap: 6px; }
  .scr-title .field__label { display: none; }
  .scr-title .field__input { height: 46px; }
  .scr-title .btn--play { height: 46px; min-height: 46px; }
}
@media (max-aspect-ratio: 1/1) and (max-width: 700px) { .scr-title .ttl { align-content: start; height: 100%; min-height: 0; } }


/* ======================================================================
   Celular em retrato: coluna única simétrica (rev. iPhone real)
   ====================================================================== */
.tip-short { display: none; }
@media (max-aspect-ratio: 1/1) and (max-width: 700px) {
  .scr-title .ttl {
    padding-left: calc(16px + var(--sal));
    padding-right: calc(16px + var(--sar));
    justify-items: stretch;
    row-gap: 12px;
  }
  .scr-title .ttl__head, .scr-title .mug, .scr-title .ttl__form { width: 100%; justify-self: stretch; }
  .scr-title .mug__box { margin: 0 auto; }
  .scr-title .mug__plate { width: 100% !important; margin-top: 8px; }
  /* manchete: com o ícone, termina 8 px antes dele; sem o ícone (iOS), largura toda */
  .no-fs .scr-title .masthead { margin-right: 0; }
  /* logo centralizado como conjunto (folgas iguais dos dois lados) */
  .scr-title .logo { justify-content: center; margin: 0 auto; }
  .scr-title .logo__b { padding-left: .03em; padding-right: .03em; }
  /* sombras só para baixo: nada parece puxado para a direita */
  .scr-title .mug__frame { box-shadow: 0 6px 0 var(--ink); }
  .scr-title .btn, .scr-title .btn--play { box-shadow: 0 4px 0 var(--ink); }
  .scr-title .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
  .scr-title .btn:hover { transform: none; }
  .scr-title .menu__row .btn { box-shadow: 0 3px 0 var(--ink); }
  .scr-title .ttl__form { row-gap: 12px; }
  /* rodapé: "Aviso legal · dica do iPhone" numa linha, centralizado */
  .scr-title .ttl__foot { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 10px; }
  .scr-title .ttl__foot .legal-link { margin: 0; min-height: 28px; }
  .scr-title .fs-tip { margin: 0; font-size: 11.5px; text-align: center; white-space: nowrap; }
  .scr-title .fs-tip:not([hidden])::before { content: '·'; margin-right: 10px; color: var(--ink-3); }
  .scr-title .tip-long { display: none; }
  .scr-title .tip-short { display: inline; }
}
/* telas estreitas: a dica do iPhone vai para a linha de baixo, centralizada, sem o "·" solto */
@media (max-aspect-ratio: 1/1) and (max-width: 385px) {
  .scr-title .ttl__foot { flex-direction: column; gap: 0; }
  .scr-title .fs-tip:not([hidden])::before { content: none; }
  .scr-title .fs-tip { font-size: 11px; }
}
.scr-title .ttl__foot .legal-link { align-self: center; }
