/* Mystery Times · site público. Medidas e cores do turno 2a do handoff (1280px). */

:root {
  --page: #0B151B;
  --night: #14222B;
  --line: #27404D;
  --brass: #C4A15A;
  --brass-dim: #8E7641;
  --brass-ink: #765812;
  --mist: #A9CBD0;
  --support: #C9D6D2;
  --vellum: #EADFC4;
  --cream: #F6ECD8;
  --ink: #2B2117;
  --ink-soft: #5E4E3A;
  --ink-card: #3A2E22;
  --seal: #8A2432;
  --seal-hover: #A83244;
  --fell: 'IM Fell English', Georgia, serif;
  --fell-sc: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
  --side: 56px;
  --band: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--page); color: var(--vellum);
  font-family: 'Spectral', Georgia, serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--vellum); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
button, input { font-family: inherit; }
img { display: block; max-width: 100%; }
h2, h3, h4, p, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--side); padding-right: var(--side); }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 6px;
  font-size: 17px; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.btn-small { min-height: 44px; padding: 0 20px; font-size: 16px; font-weight: 600; }
.btn-seal { background: var(--seal); color: var(--cream); font-weight: 600; }
.btn-seal:hover { background: var(--seal-hover); color: var(--cream); }
/* Log in: o amarelo da fita de cena do crime, par com o vermelho do Jogar agora */
.btn-brass { background: #E2BB34; color: #17130B; font-weight: 600; }
.btn-brass:hover { background: #EDCB55; color: #17130B; }
.btn-ghost { border: 1px solid var(--brass-dim); color: var(--vellum); }
.btn-ghost:hover { border-color: var(--brass); color: var(--cream); }

/* cabeçalho */
.topbar { background: var(--page); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.brand {
  display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; text-decoration: none;
  font-family: var(--fell-sc); font-weight: 400; font-size: 24px; letter-spacing: .06em;
  line-height: 1; color: #F6ECD8;
}
.brand img { flex: none; width: 28px; height: 36px; }
.brand:hover { color: #F6ECD8; }
.brand-small { gap: 12px; font-size: 20px; }
.brand-small img { width: 22px; height: 28px; }
/* menu na mesma fonte do nome Mystery Times */
.topnav { display: flex; align-items: center; gap: 32px; font-family: var(--fell-sc); font-size: 19px; letter-spacing: .04em; white-space: nowrap; }
.topnav .btn-small { font-size: 18px; font-weight: 400; }
.topnav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--vellum); text-decoration: none; }
.topnav-link:hover { color: var(--brass); }

/* tipos comuns */
.kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.sec-head { display: flex; flex-direction: column; gap: 8px; }
.sec-title { font-family: var(--fell); font-weight: 400; font-size: 48px; line-height: 1.05; color: var(--cream); }
.pack-name { font-style: italic; font-size: 15px; color: var(--brass-ink); }

/* hero */
.hero { background: radial-gradient(ellipse at 75% 40%, #1C2F3A 0%, var(--page) 65%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: var(--band); padding-bottom: 96px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-title { font-family: var(--fell); font-weight: 400; font-size: 76px; line-height: 1; color: var(--cream); text-wrap: balance; }
.hero-text { font-size: 20px; line-height: 1.5; color: var(--support); max-width: 520px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; width: 100%; max-width: 540px; margin: 0 auto; padding: 10px 0 40px; }
/* Por baixo, a foto de outro mistério, mais apagada. A fita de cena do crime passa por cima da foto da frente:
   entra pelo topo, logo à direita do texto, e desce até a borda direita, sem passar pelo texto. */
.hero { position: relative; overflow: hidden; }
.hero-copy { position: relative; z-index: 3; }
.hero-back {
  position: absolute; z-index: 0; left: -3%; top: 2px; width: 72%; padding: 14px 14px 64px; background: #DDD0AE; border-radius: 3px;
  transform: rotate(-9deg); box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.hero-back:empty { padding-bottom: 0; aspect-ratio: 4 / 5; }
.hero-back .cover { border-bottom-width: 5px; }
.hero-back img { filter: sepia(.25) saturate(.8) brightness(.88); }
.hero-tape {
  position: absolute; z-index: 3; left: 60%; top: 18%; width: 320vw; transform: translate(-50%, -50%) rotate(30deg); pointer-events: none;
  padding: 11px 0; overflow: hidden; white-space: nowrap; text-align: center;
  background: #E2BB34 linear-gradient(to bottom, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .08));
  color: #17130B; font-family: 'Special Elite', 'Courier New', monospace; font-size: 15px; letter-spacing: .18em; line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
}
.hero-card {
  z-index: 2; position: relative; width: 77.8%; margin-left: 13%; transform: rotate(2deg); background: var(--vellum); color: var(--ink);
  border-radius: 3px; padding: 18px 18px 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 12px;
}
.hero-card-title { font-family: var(--fell); font-size: 32px; line-height: 1.05; margin-top: -8px; }
.cover { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #1C2F3A; border-bottom: 6px double var(--brass-dim); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center;
  background: repeating-linear-gradient(135deg, #1C2F3A 0 12px, #203540 12px 24px); color: var(--cream); font-family: var(--fell); font-size: 28px; line-height: 1.1;
}
.stamp {
  position: absolute; padding: 8px 18px; border: 3px double var(--seal); color: var(--seal); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.stamp-done { right: 32px; bottom: 64px; transform: rotate(-10deg); padding: 6px 14px; font-size: 16px; opacity: .85; }

/* faixas */
.band { padding-top: var(--band); padding-bottom: var(--band); border-top: 3px double var(--brass-dim); }
.band-como .wrap { display: flex; flex-direction: column; gap: 40px; }
.band-como .sec-head { max-width: 640px; }
.band-casos { background: var(--night); padding-bottom: 96px; }
.band-casos .wrap { display: flex; flex-direction: column; gap: 44px; }
.band-quotes .wrap { display: flex; flex-direction: column; gap: 28px; }

/* como funciona: fichas de evidência presas no mural, uma encavalada na outra e ligadas por um fio vermelho (desenhado pelo site.js).
   Tortas e desencontradas no desktop; a do mouse vem para a frente e endireita. O alfinete fica no eixo da rotação, então o fio não sai do lugar. */
.mural { position: relative; padding-top: 18px; }
.steps { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: stretch; row-gap: 44px; padding: 0 8px; }
.step {
  --tilt: 0deg; --dy: 0px;
  position: relative; display: flex; flex-direction: column; gap: 12px; flex: 0 0 calc((100% + 42px) / 4); min-width: 0; margin-left: -14px;
  padding: 62px 30px 28px; color: var(--ink); border-radius: 2px;
  background-color: var(--vellum);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 7px var(--vellum), inset 0 0 0 8px #B9A57A, 0 12px 28px rgba(0, 0, 0, .45);
  transform-origin: 50% 0; transform: translateY(var(--dy)) rotate(var(--tilt));
  transition: transform .25s ease-out, box-shadow .25s ease-out;
}
.step:nth-child(4n+1) { margin-left: 0; --tilt: -1.2deg; --dy: 0px; }
.step:nth-child(4n+2) { --tilt: 1deg; --dy: 12px; }
.step:nth-child(4n+3) { --tilt: -.8deg; --dy: 2px; }
.step:nth-child(4n+4) { --tilt: 1.3deg; --dy: 9px; }
.step:hover { transform: translateY(var(--dy)) rotate(0deg); z-index: 20 !important; box-shadow: inset 0 0 0 7px var(--vellum), inset 0 0 0 8px #B9A57A, 0 18px 38px rgba(0, 0, 0, .55); }
.step-tag { position: absolute; top: 68px; right: 20px; font-family: 'Special Elite', 'Courier New', monospace; font-size: 12px; letter-spacing: .14em; color: var(--ink-soft); }
.step-n { font-family: var(--fell); font-size: 20px; color: var(--seal); }
.step-title { font-family: var(--fell); font-size: 27px; line-height: 1.1; }
.step p { font-size: 16px; line-height: 1.5; color: var(--ink-card); text-wrap: pretty; }
.step-last { padding-bottom: 72px; }
.step-stamp {
  position: absolute; right: 18px; bottom: 20px; transform: rotate(-10deg); padding: 5px 12px; border: 3px double var(--seal); color: var(--seal);
  font-weight: 600; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
}
.mural-fio { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mural-fio-tras { z-index: 0; }
.mural-fio-frente { z-index: 30; }
.mural-fio path { fill: none; stroke: var(--seal); stroke-width: 2; stroke-dasharray: 7 5; stroke-linecap: round; }
.mural-fio path.sombra { stroke: rgba(0, 0, 0, .45); transform: translate(1px, 3px); }
.mural-fio .cabeca { fill: var(--seal); stroke: #5A1520; stroke-width: 1.5; }
.mural-fio .brilho { fill: #F3D9D2; opacity: .55; }
.mural-fio ellipse { fill: rgba(0, 0, 0, .45); }

/* mistérios: polaroides presas com fita amarela, como a foto do topo; o nome fica escrito na foto e o resumo vem embaixo.
   O caso inteiro é o link (sem botão). Cada caso ocupa 3 linhas da grade (subgrid), para a foto, o resumo e o "Abrir o caso"
   ficarem na mesma altura em todos. row-gap fica 0: com subgrid, o espaço entre linhas da grade entraria dentro do caso. */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 44px; row-gap: 0; padding-top: 14px; }
.case { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; color: inherit; text-decoration: none; }
.cases > .case:nth-child(n+4) { margin-top: 56px; }
/* A polaroide não recebe o mouse: a beirada inclinada dela passa da coluna e acionaria o efeito do caso vizinho. */
.case-pola {
  position: relative; pointer-events: none; padding: 14px 14px 0; background-color: var(--vellum); border-radius: 2px; color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: 0 18px 38px rgba(0, 0, 0, .5); transform: rotate(var(--tilt, 0deg)); transition: transform .25s ease-out, box-shadow .25s ease-out;
}
.case:nth-child(3n+1) { --tilt: -2deg; } .case:nth-child(3n+2) { --tilt: 1.6deg; } .case:nth-child(3n+3) { --tilt: -1.2deg; }
.case:hover .case-pola, .case:focus-visible .case-pola { transform: rotate(0deg) translateY(-4px); box-shadow: 0 26px 50px rgba(0, 0, 0, .6); }
.case:focus-visible { outline: 2px solid var(--brass); outline-offset: 10px; }
.case-cover { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #1C2F3A; border-bottom: 5px double var(--brass-dim); }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-fita {
  position: absolute; z-index: 2; top: -14px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(226, 187, 52, .82); box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 97% 100%, 2% 96%, 0 50%);
}
.case:nth-child(3n+2) .case-fita { transform: translateX(-50%) rotate(5deg); }
.case-leg { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px 18px; }
.case-leg .pack-name { font-size: 16px; }
.case-title { font-family: var(--fell); font-weight: 400; font-size: 29px; line-height: 1.05; color: var(--ink); }
/* resumo sempre em 2 linhas: corta o que passar e reserva as duas linhas mesmo quando é curto */
.case-text {
  margin: 22px 4px 0; font-size: 16.5px; line-height: 1.5; min-height: 3em; color: var(--support); text-wrap: pretty;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.case-abrir {
  margin: 14px 4px 0; justify-self: start; align-self: start; padding-bottom: 3px; border-bottom: 1px solid rgba(196, 161, 90, .45);
  font-family: 'Special Elite', 'Courier New', monospace; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass);
  transition: color .2s ease, border-color .2s ease;
}
.case-abrir span { display: inline-block; transition: transform .2s ease; }
.case:hover .case-abrir { color: var(--cream); border-color: var(--cream); }
.case:hover .case-abrir span { transform: translateX(4px); }

/* por que jogar: cartões de pergaminho, capa à esquerda */
.band-porque .wrap { display: flex; flex-direction: column; gap: 40px; }
.whys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.whys[data-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.why {
  position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--vellum); color: var(--ink);
  border-radius: 3px; overflow: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); border-top: 6px double var(--brass-dim);
}
.why-cover { position: relative; background: #1C2F3A; min-height: 100%; }
.why-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why-cover .cover-empty { position: absolute; inset: 0; }
.why-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 24px 24px; }
.why-label { font-family: var(--fell); font-size: 19px; line-height: 1.15; color: var(--seal); }
.why-title { font-family: var(--fell); font-weight: 400; font-size: 30px; line-height: 1.05; color: var(--ink); }
.why-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; font-style: italic; color: var(--ink-soft); }
.why-free { font-style: normal; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--seal); border: 1px solid var(--seal); border-radius: 999px; padding: 1px 10px; }
.why-text { font-size: 16px; line-height: 1.5; color: var(--ink-card); text-wrap: pretty; flex: 1; }
.why-btn { margin-top: 6px; min-height: 44px; padding: 0 18px; font-size: 16px; }

/* sala de troféus */
.trofeus-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 48px; align-items: center; }
.trofeus-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.trofeus-text { font-size: 18px; line-height: 1.55; color: var(--support); max-width: 520px; text-wrap: pretty; }
@media (min-width: 1081px) {
  /* A coluna do texto acompanha o título numa linha só; o painel das medalhas fica com o resto. */
  .trofeus-in { grid-template-columns: auto minmax(0, 1fr); }
  .trofeus-copy .sec-title { white-space: nowrap; }
  .trofeus-text { width: 0; min-width: 100%; }
}
.trofeus-panel {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; padding: 36px 32px 30px;
  background: var(--night); border: 1px solid var(--line); border-radius: 4px;
}
.medal { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; text-align: center; }
.medal-seal {
  position: relative; display: grid; place-items: center; width: min(100%, 128px); aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #F3E8CF, #DCCDA8);
  box-shadow: 0 0 0 4px var(--brass), 0 0 0 5px rgba(0, 0, 0, .4), 0 14px 28px rgba(0, 0, 0, .45);
}
.medal-seal img { width: 100%; height: 100%; object-fit: cover; }
.medal-seal b { font-family: var(--fell); font-weight: 400; font-size: 48px; color: var(--ink); }
.medal figcaption { display: flex; flex-direction: column; gap: 8px; }
.medal-name { font-family: var(--fell); font-size: 21px; line-height: 1.1; color: var(--vellum); text-wrap: balance; }
.medal-case { font-size: 14px; line-height: 1.35; letter-spacing: .03em; color: var(--mist); text-wrap: balance; }
@media (min-width: 641px) {
  .trofeus-panel[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
  .trofeus-panel[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trofeus-panel[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.medal.is-locked .medal-seal { background: rgba(255, 255, 255, .02); box-shadow: none; border: 2px dashed #3A5664; }
.medal.is-locked .medal-seal b { font-size: 46px; color: #7F97A2; }
.medal.is-locked .medal-name { color: #8DA5AD; }
.medal.is-locked .medal-case { color: #86A0AA; }

/* depoimentos */
.quotes { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.quote-main-wrap { position: relative; }
.quote-rest { display: flex; flex-direction: column; gap: 20px; }
.quote {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 24px 18px; background: var(--vellum); color: var(--ink); border-radius: 3px;
  box-shadow: inset 0 0 0 7px var(--vellum), inset 0 0 0 8px #B9A57A, 0 18px 40px rgba(0, 0, 0, .4);
}
.quote-main { gap: 16px; padding: 26px 32px 24px; height: 100%; }
.quote-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 3px double var(--brass-dim); }
.quote-label { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--seal); }
.quote-num { font-family: var(--fell); font-size: 18px; color: var(--brass-ink); }
.quote-text { font-family: var(--fell); font-size: 20px; line-height: 1.3; text-wrap: pretty; }
.quote-main .quote-text { font-size: 30px; line-height: 1.2; flex: 1; }
.quote-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.quote-who { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.quote-main .quote-who { min-width: 180px; }
.quote-name { font-family: var(--fell); font-style: italic; font-size: 20px; line-height: 1; }
.quote-main .quote-name { font-size: 26px; }
.quote-line { border-top: 1px solid var(--ink-soft); }
.quote-role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); }
.quote-case { font-size: 14px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--brass-dim); color: var(--ink-soft); font-style: italic; }

/* perguntas */
.band-faq { background: var(--page); }
.faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; }
.faq { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 16px 0; color: var(--cream);
  font-size: 20px; cursor: pointer; list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--brass); }
.faq-sign { flex: none; width: 28px; text-align: center; font-size: 26px; line-height: 1; color: var(--brass); }
.faq-sign::before { content: "+"; }
.faq-item[open] .faq-sign::before { content: "\2212"; }
.faq-a { margin: 0 0 22px; max-width: 680px; font-size: 17px; line-height: 1.55; color: var(--support); text-wrap: pretty; }

/* rodapé */
.footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--mist); }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.footer-club { flex: none; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mist); }
.footer-nav a:hover { color: var(--cream); }

/* até 1080px */
@media (max-width: 1080px) {
  .topnav { gap: 20px; font-size: 17px; }
  .topnav .btn-small { font-size: 17px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 480px; }
  /* Empilhado, a fita atravessa uma tela larga: com 30° desceria demais e a ponta esquerda subiria até o botão. Mais deitada e no centro da foto. */
  .hero-tape { left: 50%; top: 35%; transform: translate(-50%, -50%) rotate(15deg); }
  .step { flex-basis: calc((100% + 14px) / 2); }
  .step:nth-child(2n+1) { margin-left: 0; }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases > .case:nth-child(n+3) { margin-top: 56px; }
  .whys { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
  .quotes { grid-template-columns: 1fr; }
  .trofeus-in { grid-template-columns: 1fr; gap: 32px; }
  .faq-in { grid-template-columns: 1fr; gap: 32px; }
}

/* até 820px: os links do menu não cabem ao lado da marca; fica só o Log in, como no celular */
@media (max-width: 820px) {
  .topnav-link { display: none; }
}

/* até 640px: escala própria de celular (tipos e espaços menores que no desktop) */
@media (max-width: 640px) {
  :root { --side: 18px; --band: 44px; }
  body { font-size: 16px; line-height: 1.5; }
  .topbar-in { padding-top: 10px; padding-bottom: 10px; }
  .brand { gap: 12px; font-size: 20px; }
  .brand img { width: 25px; height: 32px; }
  .topnav-link { display: none; }
  .btn { min-height: 48px; font-size: 16px; padding: 0 20px; }
  .btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .topnav .btn-small { font-size: 17px; }

  .hero-in { padding-top: 32px; padding-bottom: 44px; gap: 28px; }
  .hero-copy { gap: 14px; }
  .kicker { font-size: 11.5px; letter-spacing: .13em; }
  .hero-title { font-size: 38px; line-height: 1.04; }
  .hero-text { font-size: 16px; line-height: 1.5; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .btn { width: 100%; }
  .btn-small { width: auto; }
  .hero-art { max-width: 270px; padding: 4px 0 22px; }
  .hero-card { width: 88%; margin-left: 8%; padding: 10px 10px 14px; gap: 8px; }
  .hero-card-title { font-size: 21px; margin-top: -4px; }
  .pack-name { font-size: 13px; }
  .hero-back { padding: 8px 8px 38px; }
  .hero-tape { font-size: 11px; padding: 8px 0; top: 40%; transform: translate(-50%, -50%) rotate(20deg); }

  .sec-title { font-size: 30px; }
  .sec-head { gap: 6px; }
  .band-como .wrap, .band-casos .wrap, .band-quotes .wrap, .band-porque .wrap { gap: 22px; }
  .band-casos { padding-bottom: 48px; }

  /* celular: fichas empilhadas, sem rotação nem deslocamento; o fio aparece nos vãos */
  .steps { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 26px; padding: 0; }
  .step, .step:nth-child(n) { --tilt: 0deg; --dy: 0px; flex: none; width: 100%; margin: 0; gap: 6px; padding: 46px 18px 20px; }
  .step.step-last:nth-child(n) { padding-bottom: 70px; }
  .step-tag { top: 50px; right: 14px; font-size: 11px; }
  .step-stamp { font-size: 12px; right: 14px; bottom: 16px; padding: 3px 9px; }
  .step-n { font-size: 15px; }
  .step-title { font-size: 21px; }
  .step p { font-size: 14.5px; line-height: 1.45; }

  /* passos, mistérios e depoimentos: carrosséis de deslizar */
  .cases, .quotes {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-left: calc(var(--side) * -1); margin-right: calc(var(--side) * -1); padding: 4px var(--side) 14px; scroll-padding-left: var(--side);
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .cases::-webkit-scrollbar, .quotes::-webkit-scrollbar { display: none; }
  .cases { gap: 18px; padding-top: 22px; padding-bottom: 26px; }
  .cases > .case, .cases > .case:nth-child(n) { display: flex; flex-direction: column; flex: 0 0 78%; margin-top: 0; scroll-snap-align: start; }
  .case-pola { padding: 12px 12px 0; }
  .case-leg { padding: 10px 4px 14px; }
  .case-leg .pack-name { font-size: 14px; }
  .case-title { font-size: 24px; }
  .case-text { margin-top: 18px; font-size: 14.5px; line-height: 1.45; min-height: 2.9em; }
  .case-abrir { align-self: flex-start; font-size: 12px; }

  /* por que jogar: capa em cima, um cartão por vez no carrossel */
  .whys {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; max-width: none;
    margin-left: calc(var(--side) * -1); margin-right: calc(var(--side) * -1); padding: 4px var(--side) 14px; scroll-padding-left: var(--side);
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .whys::-webkit-scrollbar { display: none; }
  .why { flex: 0 0 82%; scroll-snap-align: start; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .whys[data-count="1"] .why { flex-basis: 100%; }
  .why-cover { aspect-ratio: 16 / 10; min-height: 0; }
  .why-body { padding: 16px 16px 18px; gap: 6px; }
  .why-label { font-size: 16px; }
  .why-title { font-size: 24px; }
  .why-meta { font-size: 13px; }
  .why-text { font-size: 14.5px; line-height: 1.45; }
  .why-btn { width: 100%; }

  .quote-rest { display: contents; }
  .quote-main-wrap, .quotes > .quote-rest > .quote { flex: 0 0 80%; scroll-snap-align: start; }
  .quote-main-wrap .quote-main { height: 100%; }
  .quote, .quote-main { padding: 18px 18px 16px; gap: 10px; }
  .quote-label { font-size: 11px; }
  .quote-num { font-size: 15px; }
  .quote-main .quote-text, .quote-text { font-size: 19px; line-height: 1.28; }
  .quote-main .quote-who, .quote-who { min-width: 0; }
  .quote-name, .quote-main .quote-name { font-size: 22px; }
  .quote-role { font-size: 11px; }
  .quote-case { font-size: 12.5px; padding: 2px 10px; }
  .quote-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stamp-done { right: 12px; bottom: 52px; font-size: 11px; padding: 2px 8px; }


  .trofeus-copy { gap: 14px; }
  .trofeus-text { font-size: 16px; line-height: 1.5; }
  .trofeus-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding: 28px 16px 24px; }
  .medal { gap: 10px; }
  .medal-seal { width: min(100%, 112px); }
  .medal-seal b { font-size: 40px; }
  .medal-name { font-size: 19px; }
  .medal-case { font-size: 13px; }

  .faq-in { gap: 18px; }
  .faq-q { font-size: 16.5px; min-height: 56px; padding: 12px 0; }
  .faq-a { font-size: 15px; margin-bottom: 18px; }

  .footer-in { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 18px; padding-bottom: 18px; }
  .footer-club { align-self: stretch; margin-top: 14px; }
  .brand-small { font-size: 18px; }
  .brand-small img { width: 20px; height: 26px; }
  .footer-nav { gap: 2px 18px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case-pola, .case-abrir, .case-abrir span, .btn, .step { transition: none; }
  .case:hover .case-pola, .case:focus-visible .case-pola { transform: rotate(var(--tilt, 0deg)); }
  .case:hover .case-abrir span { transform: none; }
}

/* modo editor (só dentro do organizador, ?editor=1) */
.is-editor [data-secao] { cursor: pointer; }
.is-editor .is-editing { position: relative; box-shadow: inset 0 0 0 4px var(--brass); }
.is-editor .is-editing::after {
  content: "Editando"; position: absolute; top: 14px; right: 14px; z-index: 5; padding: 4px 12px; border-radius: 999px;
  background: var(--brass); color: var(--night); font-size: 15px; font-weight: 600; line-height: 1.4;
}
.off-band {
  position: relative; padding: 22px var(--side); border-top: 3px double var(--brass-dim); text-align: center; font-size: 18px; color: #7F9AA2;
  background: repeating-linear-gradient(135deg, #0B151B 0 12px, #101D25 12px 24px);
}

/* Enquanto a versão atual não chega, o conteúdo fica invisível (no máximo 1,5 s) e entra com um fade curto. */
main { transition: opacity .2s ease-out; }
.mt-loading main { opacity: 0; }
@media (prefers-reduced-motion: reduce) { main { transition: none; } }

/* Oferta: processo confidencial com a tarja para raspar (js/oferta.js). Papel bege, texto marrom (DESIGN.md 2.1).
   Fitas de cena do crime cruzam o fundo; o papel tem clipe e uma digital. */
.oferta-on, .oferta-on body { overflow: hidden; }
.oferta {
  --tw: 'Special Elite', 'Courier New', monospace;
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, rgba(20, 34, 43, .82) 0%, rgba(3, 6, 8, .94) 70%);
  opacity: 0; transition: opacity .3s ease-out;
}
.oferta.is-in { opacity: 1; }
.oferta-fita {
  position: absolute; left: 50%; top: 50%; width: 180vmax; padding: 16px 0; overflow: hidden; white-space: nowrap; pointer-events: none;
  background: #E8C02E; color: #14110C;
  font-family: var(--tw); font-size: 20px; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .2);
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.oferta-fita-in { display: inline-block; padding-left: 20px; }
.oferta-fita-a { transform: translate(-50%, -50%) translateY(-180px) rotate(-14deg) translateX(-30px); }
.oferta-fita-b { transform: translate(-50%, -50%) translateY(170px) rotate(9deg) translateX(30px); }
.oferta.is-in .oferta-fita-a { transform: translate(-50%, -50%) translateY(-180px) rotate(-14deg); }
.oferta.is-in .oferta-fita-b { transform: translate(-50%, -50%) translateY(170px) rotate(9deg); }
.oferta-papel {
  position: relative; z-index: 1; width: min(460px, 100%); padding: 40px 34px 28px; border-radius: 2px; text-align: left;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 97%, rgba(120, 84, 40, .14) 0 34px, transparent 35px),
    radial-gradient(circle at 4% 97%, transparent 0 38px, rgba(120, 84, 40, .12) 39px 42px, transparent 43px),
    radial-gradient(ellipse at 10% 0%, rgba(120, 90, 50, .18), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(94, 78, 58, .07) 27px 28px),
    #EADFC4;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .7), 0 2px 0 #D8C9A6, 0 4px 0 #CDBD98;
  transform: translateY(24px) rotate(-2.5deg); transition: transform .45s cubic-bezier(.2, .8, .3, 1);
}
.oferta.is-in .oferta-papel { transform: rotate(-1.2deg); }
.oferta-papel:focus { outline: none; }
.oferta-clipe {
  position: absolute; top: -14px; left: 36px; width: 18px; height: 52px; border: 3px solid #8C8A84; border-radius: 9px; border-bottom-color: #6F6D68;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, .25);
}
.oferta-clipe::after { content: ''; position: absolute; left: 3px; top: 8px; width: 6px; height: 32px; border: 3px solid #8C8A84; border-top: 0; border-radius: 0 0 6px 6px; }
.oferta-digital { position: absolute; left: 118px; bottom: 6px; width: 64px; height: 78px; transform: rotate(-24deg); pointer-events: none; }
.oferta-digital ellipse { fill: none; stroke: rgba(94, 78, 58, .22); stroke-width: 1.6; }
.oferta-x {
  position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--ink-soft);
}
.oferta-x:hover { color: var(--ink); }
.oferta-papel :focus-visible { outline-color: var(--seal); }
.oferta-proc { font-family: var(--tw); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.oferta-titulo { margin-top: 10px; font-family: var(--fell); font-weight: 400; font-size: 36px; line-height: 1.05; color: var(--ink); }
.oferta-campo { margin-top: 20px; font-family: var(--tw); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.oferta-raspa { position: relative; margin-top: 12px; height: 120px; -webkit-user-select: none; user-select: none; }
.oferta-premio { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
/* o prêmio é um carimbo: tinta vermelha, borda dupla, levemente torto e com falhas de tinta */
.oferta-selo {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 20px 9px;
  border: 4px double var(--seal); border-radius: 4px; color: var(--seal); text-transform: uppercase; text-align: center;
  transform: rotate(-5deg); mix-blend-mode: multiply;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.62'/%3E%3C/filter%3E%3Crect width='300' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.62'/%3E%3C/filter%3E%3Crect width='300' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.oferta-selo b { font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: .1em; margin-right: -.1em; }
.oferta-selo span { display: flex; align-items: center; gap: 8px; font-family: var(--tw); font-size: 15px; letter-spacing: .14em; margin-right: -.14em; }
.oferta-selo span::before, .oferta-selo span::after { content: ''; width: 18px; border-top: 2px solid currentColor; }
.oferta-raspa.is-open .oferta-selo { animation: oferta-bate .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes oferta-bate { from { transform: rotate(-5deg) scale(1.35); } to { transform: rotate(-5deg) scale(1); } }
.oferta-tarja { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); cursor: crosshair; touch-action: none; transition: opacity .45s ease-out; border-radius: 2px; }
.oferta-tarja.is-gone { opacity: 0; pointer-events: none; }
.oferta-acoes { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 22px; }
@media (max-width: 640px) {
  .oferta-papel { padding: 36px 20px 20px; }
  .oferta-titulo { font-size: 29px; }
  .oferta-selo { padding: 7px 14px 8px; }
  .oferta-selo b { font-size: 23px; }
  .oferta-selo span { font-size: 12px; }
  .oferta-fita { font-size: 14px; padding: 7px 0; }
  .oferta-fita-a, .oferta.is-in .oferta-fita-a { transform: translate(-50%, -50%) translateY(-290px) rotate(-14deg); }
  .oferta-fita-b, .oferta.is-in .oferta-fita-b { transform: translate(-50%, -50%) translateY(280px) rotate(9deg); }
  .oferta-acoes .btn { width: auto; flex: 1; }
  .oferta-digital { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .oferta, .oferta-papel, .oferta-tarja, .oferta-fita { transition: none; }
  .oferta-raspa.is-open .oferta-selo { animation: none; }
}
